
%dx.types.Handle = type { i8* }
%dx.types.CBufRet.i32 = type { i32, i32, i32, i32 }
%dx.types.CBufRet.f32 = type { float, float, float, float }
%dx.types.i8x192 = type { [192 x i8] }

define void @main() {
entry:
  %dx.v32.x01 = alloca [16 x i32], align 4
  %dx.v16.x0 = alloca [16 x half], align 4
  %0 = call %dx.types.Handle @dx.op.createHandle(i32 57, i8 2, i32 0, i32 0, i1 false)
  %1 = call i32 @dx.op.loadInput.i32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  %2 = add i32 %1, 4
  %3 = call %dx.types.CBufRet.i32 @dx.op.cbufferLoadLegacy.i32(i32 59, %dx.types.Handle %0, i32 %2)
  %4 = extractvalue %dx.types.CBufRet.i32 %3, 0
  %5 = getelementptr [16 x i32], [16 x i32]* %dx.v32.x01, i32 0, i32 0
  store i32 %4, i32* %5, align 4
  %6 = call %dx.types.CBufRet.f32 @dx.op.cbufferLoadLegacy.f32(i32 59, %dx.types.Handle %0, i32 %1)
  %7 = extractvalue %dx.types.CBufRet.f32 %6, 0
  %8 = getelementptr [16 x half], [16 x half]* %dx.v16.x0, i32 0, i32 0
  %9 = fptrunc float %7 to half
  store half %9, half* %8, align 2
  %10 = add i32 %1, 4
  %11 = call %dx.types.CBufRet.f32 @dx.op.cbufferLoadLegacy.f32(i32 59, %dx.types.Handle %0, i32 %10)
  %12 = extractvalue %dx.types.CBufRet.f32 %11, 0
  %13 = getelementptr [16 x half], [16 x half]* %dx.v16.x0, i32 0, i32 4
  %14 = fptrunc float %12 to half
  store half %14, half* %13, align 2
  %15 = call i32 @dx.op.loadInput.i32(i32 4, i32 0, i32 0, i8 1, i32 undef)
  %16 = mul i32 %15, 4
  %17 = add i32 %16, 0
  %18 = getelementptr [16 x half], [16 x half]* %dx.v16.x0, i32 0, i32 %17
  %19 = load half, half* %18, align 2
  %20 = fadd fast half %19, undef
  %21 = mul i32 %15, 4
  %22 = add i32 %21, 0
  %23 = getelementptr [16 x half], [16 x half]* %dx.v16.x0, i32 0, i32 %22
  store half %20, half* %23, align 2
  %24 = mul i32 %15, 4
  %25 = add i32 %24, 0
  %26 = getelementptr [16 x half], [16 x half]* %dx.v16.x0, i32 0, i32 %25
  %27 = load half, half* %26, align 2
  %28 = fpext half %27 to float
  %29 = call i32 @dx.op.bitcastF32toI32(i32 127, float %28)
  call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 0, i32 %29)
  ret void
}

; Function Attrs: nounwind readonly
declare %dx.types.Handle @dx.op.createHandle(i32, i8, i32, i32, i1) #0

; Function Attrs: nounwind readnone
declare i32 @dx.op.loadInput.i32(i32, i32, i32, i8, i32) #1

; Function Attrs: nounwind
declare void @dx.op.tempRegStore.i32(i32, i32, i32) #2

; Function Attrs: nounwind readonly
declare i32 @dx.op.tempRegLoad.i32(i32, i32) #0

; Function Attrs: nounwind readonly
declare %dx.types.CBufRet.i32 @dx.op.cbufferLoadLegacy.i32(i32, %dx.types.Handle, i32) #0

; Function Attrs: nounwind readnone
declare float @dx.op.bitcastI32toF32(i32, i32) #1

; Function Attrs: nounwind readnone
declare i32 @dx.op.bitcastF32toI32(i32, float) #1

; Function Attrs: nounwind readonly
declare %dx.types.CBufRet.f32 @dx.op.cbufferLoadLegacy.f32(i32, %dx.types.Handle, i32) #0

; Function Attrs: nounwind readonly
declare half @dx.op.tempRegLoad.f16(i32, i32) #0

; Function Attrs: nounwind
declare void @dx.op.storeOutput.i32(i32, i32, i32, i8, i32) #2

attributes #0 = { nounwind readonly }
attributes #1 = { nounwind readnone }
attributes #2 = { nounwind }

!dx.version = !{!0}
!dx.valver = !{!0}
!dx.shaderModel = !{!1}
!dx.resources = !{!2}
!dx.entryPoints = !{!5}
!llvm.ident = !{!13}

!0 = !{i32 1, i32 0}
!1 = !{!"ps", i32 6, i32 0}
!2 = !{null, null, !3, null}
!3 = !{!4}
!4 = !{i32 0, %dx.types.i8x192 addrspace(2)* undef, !"CB0", i32 0, i32 0, i32 1, i32 192, null}
!5 = !{void ()* @main, !"main", !6, !2, !12}
!6 = !{!7, !10, null}
!7 = !{!8}
!8 = !{i32 0, !"1_", i8 5, i8 0, !9, i8 1, i32 1, i8 2, i32 1, i8 0, null}
!9 = !{i32 0}
!10 = !{!11}
!11 = !{i32 0, !"SV_Target", i8 5, i8 16, !9, i8 0, i32 1, i8 1, i32 0, i8 0, null}
!12 = !{i32 0, i64 288}
!13 = !{!"dxbc2dxil 1.2"}
