target triple = "air64_v28-apple-macosx26.0.0"
source_filename = "-"
; datalayout DataLayout { endian: Little, pointers: {0: PointerSpec { size_bits: 64, abi_bits: 64, pref_bits: 64, index_bits: 64 }}, ints: {1: AlignSpec { abi_bits: 8, pref_bits: 8 }, 8: AlignSpec { abi_bits: 8, pref_bits: 8 }, 16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }}, floats: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }}, vectors: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 24: AlignSpec { abi_bits: 32, pref_bits: 32 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 48: AlignSpec { abi_bits: 64, pref_bits: 64 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 96: AlignSpec { abi_bits: 128, pref_bits: 128 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }, 192: AlignSpec { abi_bits: 256, pref_bits: 256 }, 256: AlignSpec { abi_bits: 256, pref_bits: 256 }, 512: AlignSpec { abi_bits: 512, pref_bits: 512 }, 1024: AlignSpec { abi_bits: 1024, pref_bits: 1024 }}, aggregate: AlignSpec { abi_bits: 0, pref_bits: 64 }, native_ints: [8, 16, 32], stack_align_bits: None, alloca_space: 0, program_space: 0, globals_space: 0, mangling: None, fn_ptr_align: None, non_integral: [] }
%t5 = type <{ <4 x float>, <4 x float>, <2 x float>, i32 }>
%t8 = type %t5 (i32, i32, i16, i16, ptr addrspace(2))
%t9 = type float (i32)
%t10 = type float (i16)
%t12 = type <4 x float> (i32, i32, i32, ptr addrspace(1))
%t13 = type <{ <4 x float>, i32 }>
%t14 = type %t13 (i32, i32, i16, ptr addrspace(2))
%t15 = type <4 x float> (<4 x float>, i32, i16, i16)
%t16 = type <4 x float> (i32, i16)
%t18 = type <4 x float> (<3 x float>, i16, i16)
%t20 = type [2 x i32]
c11 = %t20 [27, 2]
c27 = <2 x float> [0x40000000, 0x40000000]
c28 = <2 x float> [0xBF800000, 0xBF800000]
c31 = <4 x i32> [0, 1, poison, poison]
c35 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c36 = <4 x i32> [0, 1, 6, 7]
c38 = <4 x float> [poison, poison, 0x3E800000, 0x3F800000]
c40 = <4 x float> [0x0, 0x0, 0x0, 0x3F800000]
c42 = <4 x float> [poison, poison, poison, 0x0]
c46 = <4 x i32> [0, 1, 2, poison]

define %t8 @f0 "amp_vertex" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a4( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shl i32 %a0, i32 1
  %i1 = and i32 %i0, i32 2
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i1)
  %i3 = insertelement <2 x float> undef, %i2, i64 0
  %i4 = and i32 %a0, i32 2
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i4)
  %i6 = insertelement %i3, %i5, i64 1
  %i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, <2 x float> c27
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c28
  %i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
  %i10 = shufflevector <4 x float> %i9, <4 x float> c35, <0, 1, 6, 7>
  %i11 = zext %a2 to i64
  %i12 = getelementptr inbounds <4 x float>, %a4, %i11
  %i13 = load <4 x float>, %i12, align 16
  %i14 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i10, %i13
  %i15 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i16 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a3)
  %i17 = insertelement <4 x float> c38, %i15, i64 0
  %i18 = insertelement %i17, %i16, i64 1
  %i19 = and i32 %a1, i32 1
  %i20 = insertvalue %t5 undef %i14, 0
  %i21 = insertvalue %i20 %i18, 1
  %i22 = insertvalue %i21 %i6, 2
  %i23 = insertvalue %i22 %i19, 3
  ret %i23
}

declare %t9 @f1 "air.convert.f.f32.u.i32" memory(NoModRef, NoModRef, NoModRef)

declare %t10 @f2 "air.convert.f.f32.u.i16" memory(NoModRef, NoModRef, NoModRef)

define %t12 @f3 "amp_vertex_store" memory(Mod, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a3( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shl i32 %a2, i32 16
  %i1 = add i32 %a1, i32 1
  %i2 = or i32 %i0, %i1
  %i3 = shl i32 %a0, i32 3
  %i4 = add i32 %i3, %a1
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds i32, %a3, %i5
  store %i2, %i6, align 4
  ret <4 x float> c40
}

define %t14 @f4 "amp_vertex_layer" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a3( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a0)
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i2 = insertelement <4 x float> c35, %i0, i64 0
  %i3 = insertelement %i2, %i1, i64 1
  %i4 = and i32 %a1, i32 1
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds i32, %a3, %i5
  %i7 = load i32, %i6, align 4
  %i8 = insertvalue %t13 undef %i3, 0
  %i9 = insertvalue %i8 %i7, 1
  ret %i9
}

define %t15 @f5 "amp_fragment" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a3)
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a1)
  %i3 = insertelement <4 x float> c42, %i0, i64 0
  %i4 = insertelement %i3, %i1, i64 1
  %i5 = insertelement %i4, %i2, i64 2
  %i6 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i5, %a0
  ret %i6
}

define %t16 @f6 "amp_fragment_layer" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a0)
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a1)
  %i2 = insertelement <4 x float> c35, %i0, i64 0
  %i3 = insertelement %i2, %i1, i64 1
  ret %i3
}

define %t18 @f7 "amp_post_tessellation" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" {
bb0:
  %i0 = zext %a1 to i32
  %i1 = add nuw nsw i32 %i0, i32 1
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f8 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Signed, src_fp8: None, rounding: None, saturate: false })](%i1)
  %i3 = insertelement <3 x float> poison, %i2, i64 0
  %i4 = shufflevector <3 x float> %i3, <3 x float> poison, <0, 0, 0>
  %i5 = fmul reassoc nnan ninf nsz arcp contract afn <3 x float> %i4, %a0
  %i6 = shufflevector <4 x float> %i5, <3 x float> poison, <0, 1, 2, poison>
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn float @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i8 = insertelement %i6, %i7, i64 3
  ret %i8
}

declare %t9 @f8 "air.convert.f.f32.s.i32" memory(NoModRef, NoModRef, NoModRef)
!md0 = !"SDK Version"
!md1 = !"wchar_size"
!md2 = !"frame-pointer"
!md3 = !"air.max_device_buffers"
!md4 = !"air.max_constant_buffers"
!md5 = !"air.max_threadgroup_buffers"
!md6 = !"air.max_textures"
!md7 = !"air.max_read_write_textures"
!md8 = !"air.max_samplers"
!md9 = !"air.position"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.arg_name"
!md13 = !"position"
!md14 = !"air.vertex_output"
!md15 = !"user(locn0)"
!md16 = !"color"
!md17 = !"generated(2uvDv2_f)"
!md18 = !"air.shared"
!md19 = !"float2"
!md20 = !"uv"
!md21 = !"air.viewport_array_index"
!md22 = !"uint"
!md23 = !"viewport"
!md24 = !"air.vertex_id"
!md25 = !"vid"
!md26 = !"air.instance_id"
!md27 = !"iid"
!md28 = !"air.amplification_id"
!md29 = !"ushort"
!md30 = !"amp"
!md31 = !"air.amplification_count"
!md32 = !"count"
!md33 = !"air.buffer"
!md34 = !"air.location_index"
!md35 = !"air.read"
!md36 = !"air.address_space"
!md37 = !"air.arg_type_size"
!md38 = !"air.arg_type_align_size"
!md39 = !"offsets"
!md40 = !"air.read_write"
!md41 = !"out"
!md42 = !"air.render_target_array_index"
!md43 = !"layer"
!md44 = !"slices"
!md45 = !"air.position_in_patch"
!md46 = !"float3"
!md47 = !"bary"
!md48 = !"air.patch"
!md49 = !"triangle"
!md50 = !"air.patch_control_point"
!md51 = !"air.render_target"
!md52 = !"air.fragment_input"
!md53 = !"air.center"
!md54 = !"air.perspective"
!md55 = !"air.compile.denorms_disable"
!md56 = !"air.compile.fast_math_enable"
!md57 = !"air.compile.framebuffer_fetch_enable"
!md58 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md59 = !"Metal"
!md60 = !"omnipotent char"
!md61 = !"Simple C++ TBAA"
!md62 = !"int"
!md63 = !"air-alias-scope-arg(3)"
!md64 = i32 2
!md65 = %t20 c11
!md66 = i32 1
!md67 = i32 4
!md68 = i32 7
!md69 = i32 31
!md70 = i32 128
!md71 = i32 8
!md72 = i32 16
!md73 = ptr addrspace(0) @f0
!md74 = i32 0
!md75 = i32 3
!md76 = ptr addrspace(0) @f3
!md77 = ptr addrspace(0) @f4
!md78 = ptr addrspace(0) @f7
!md79 = ptr addrspace(0) @f5
!md80 = ptr addrspace(0) @f6
!md81 = i64 0
!md82 = !{!md64, !md0, !md65}
!md83 = !{!md66, !md1, !md67}
!md84 = !{!md68, !md2, !md64}
!md85 = !{!md68, !md3, !md69}
!md86 = !{!md68, !md4, !md69}
!md87 = !{!md68, !md5, !md69}
!md88 = !{!md68, !md6, !md70}
!md89 = !{!md68, !md7, !md71}
!md90 = !{!md68, !md8, !md72}
!md91 = !{!md9, !md10, !md11, !md12, !md13}
!md92 = !{!md14, !md15, !md10, !md11, !md12, !md16}
!md93 = !{!md14, !md17, !md18, !md10, !md19, !md12, !md20}
!md94 = !{!md21, !md18, !md10, !md22, !md12, !md23}
!md95 = !{!md91, !md92, !md93, !md94}
!md96 = !{!md74, !md24, !md10, !md22, !md12, !md25}
!md97 = !{!md66, !md26, !md10, !md22, !md12, !md27}
!md98 = !{!md64, !md28, !md10, !md29, !md12, !md30}
!md99 = !{!md75, !md31, !md10, !md29, !md12, !md32}
!md100 = !{!md67, !md33, !md34, !md74, !md66, !md35, !md36, !md64, !md37, !md72, !md38, !md72, !md10, !md11, !md12, !md39}
!md101 = !{!md96, !md97, !md98, !md99, !md100}
!md102 = !{!md73, !md95, !md101}
!md103 = !{!md9, !md18, !md10, !md11}
!md104 = !{!md103}
!md105 = !{!md66, !md28, !md10, !md22, !md12, !md30}
!md106 = !{!md64, !md31, !md10, !md22, !md12, !md32}
!md107 = !{!md75, !md33, !md34, !md74, !md66, !md40, !md36, !md66, !md37, !md67, !md38, !md67, !md10, !md22, !md12, !md41}
!md108 = !{!md96, !md105, !md106, !md107}
!md109 = !{!md76, !md104, !md108}
!md110 = !{!md42, !md18, !md10, !md22, !md12, !md43}
!md111 = !{!md91, !md110}
!md112 = !{!md75, !md33, !md34, !md74, !md66, !md35, !md36, !md64, !md37, !md67, !md38, !md67, !md10, !md22, !md12, !md44}
!md113 = !{!md96, !md97, !md98, !md112}
!md114 = !{!md77, !md111, !md113}
!md115 = !{!md9, !md10, !md11}
!md116 = !{!md115}
!md117 = !{!md74, !md45, !md10, !md46, !md12, !md47}
!md118 = !{!md66, !md28, !md10, !md29, !md12, !md30}
!md119 = !{!md64, !md31, !md10, !md29, !md12, !md32}
!md120 = !{!md117, !md118, !md119}
!md121 = !{!md48, !md49, !md50, !md75}
!md122 = !{!md78, !md116, !md120, !md121}
!md123 = !{!md51, !md74, !md74, !md10, !md11}
!md124 = !{!md123}
!md125 = !{!md74, !md52, !md15, !md53, !md54, !md10, !md11, !md12, !md16}
!md126 = !{!md66, !md21, !md10, !md22, !md12, !md23}
!md127 = !{!md125, !md126, !md98, !md99}
!md128 = !{!md79, !md124, !md127}
!md129 = !{!md74, !md42, !md10, !md22, !md12, !md43}
!md130 = !{!md129, !md118}
!md131 = !{!md80, !md124, !md130}
!md132 = !{!md55}
!md133 = !{!md56}
!md134 = !{!md57}
!md135 = !{!md58}
!md136 = !{!md64, !md71, !md74}
!md137 = !{!md59, !md67, !md74, !md74}
!md138 = !{!md61}
!md139 = !{!md60, !md138, !md81}
!md140 = !{!md62, !md139, !md81}
!md141 = !{!md140, !md140, !md81}
!"llvm.module.flags" = !{!md82, !md83, !md84, !md85, !md86, !md87, !md88, !md89, !md90}
!"air.vertex" = !{!md102, !md109, !md114, !md122}
!"air.fragment" = !{!md128, !md131}
!"air.compile_options" = !{!md132, !md133, !md134}
!"llvm.ident" = !{!md135}
!"air.version" = !{!md136}
!"air.language_version" = !{!md137}
