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 void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), ptr addrspace(2), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), i32)
%t9 = type <{ <4 x float>, <4 x i32> }>
%t11 = type %t9 (ptr addrspace(0), i32, i32, i32, <2 x float>, ptr addrspace(2), ptr addrspace(2))
%t12 = type { <2 x float> }
%t13 = type %t12 (i32, ptr addrspace(0))
%t14 = type float (i32)
%t15 = type <4 x i32> (<4 x float>, <4 x i32>)
%t16 = type <2 x float> (<2 x float>, <2 x float>, <2 x float>)
%t18 = type void (ptr addrspace(1), i32, ptr addrspace(2), i64, i32)
%t19 = type void (ptr addrspace(1), i32, ptr addrspace(1), i64, i32)
%t20 = type void (ptr addrspace(1), i32, i32, i32, i32, ptr addrspace(1), ptr addrspace(1), i32, i32, ptr addrspace(1), i32, float)
%t22 = type [2 x i32]
%t23 = type { ptr addrspace(1) } ; "struct.metal::command_buffer"
%t24 = type { %t23 } ; "struct.MergedCommands"
%t25 = type { i32, i32, i32, i32 } ; "struct.MergedDraw"
c11 = %t22 [27, 2]
c34 = <2 x i32> [1, 1]
c38 = <2 x float> [0x0, poison]
c42 = <4 x float> [poison, poison, 0x0, 0x3F800000]

define %t5 @f0 "icb_merged_ipatches" "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" %a0( align 8 dereferenceable(8) Ref nocapture "air-buffer-no-alias"="" ) %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( "air-buffer-no-alias"="" ) %a3( "air-buffer-no-alias"="" ) %a4( "air-buffer-no-alias"="" ) %a5( "air-buffer-no-alias"="" ) %a6( "air-buffer-no-alias"="" ) {
bb0:
  %i0 = getelementptr inbounds %t24, %a0, i64 0, i32 0, i32 0
  %i1 = load ptr addrspace(1), %i0, align 8
  %i2 = zext %a7 to i64
  %i3 = getelementptr inbounds i32, %a2, %i2
  %i4 = bitcast %i3 to ptr addrspace(2)
  tail call void @f6 [air IndirectCommand(SetBuffer { stage: Vertex, space: Constant, strided: true })](%i1, %a7, %i4, i64 18446744073709551615, i32 0) arg0( nocapture )
  %i6 = bitcast %a3 to ptr addrspace(2)
  tail call void @f6 [air IndirectCommand(SetBuffer { stage: Vertex, space: Constant, strided: true })](%i1, %a7, %i6, i64 18446744073709551615, i32 1) arg0( nocapture )
  %i8 = bitcast %a4 to ptr addrspace(1)
  tail call void @f7 [air IndirectCommand(SetBuffer { stage: Vertex, space: Device, strided: true })](%i1, %a7, %i8, i64 18446744073709551615, i32 2) arg0( nocapture )
  %i10 = getelementptr inbounds %t25, %a1, %i2, i32 0
  %i11 = load i32, %i10, align 4
  %i12 = getelementptr inbounds %t25, %a1, %i2, i32 1
  %i13 = load i32, %i12, align 4
  %i14 = getelementptr inbounds %t25, %a1, %i2, i32 2
  %i15 = load i32, %i14, align 4
  %i16 = getelementptr inbounds %t25, %a1, %i2, i32 3
  %i17 = load i32, %i16, align 4
  %i18 = bitcast %a5 to ptr addrspace(1)
  %i19 = bitcast %a6 to ptr addrspace(1)
  tail call void @f8 [air IndirectCommand(DrawIndexedPatches { patch_indices: Device, control_point_indices: Device, factors: Device })](%i1, %a7, i32 4, %i11, %i13, ptr addrspace(1) zeroinitializer, %i18, %i15, %i17, %i19, i32 0, float 0x3F800000) arg0( nocapture )
  ret void
}

define %t11 @f1 "icb_merged_ipatch_vertex" convergent memory(Ref, Ref, Ref) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "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" %a5( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) %a6( align 16 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call %t12 @f2(i32 0, %a0) convergent
  %i1 = extractvalue <2 x float> %i0, 0
  %i2 = tail call %t12 @f2(i32 1, %a0) convergent
  %i3 = extractvalue <2 x float> %i2, 0
  %i4 = shufflevector <2 x float> %a4, <2 x float> poison, <0, 0>
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f5 [air Math(Math { f: Mix, precision: Precise, ty: NumTy { elem: F32, lanes: 2 } })](%i1, %i3, %i4)
  %i6 = tail call %t12 @f2(i32 2, %a0) convergent
  %i7 = extractvalue <2 x float> %i6, 0
  %i8 = tail call %t12 @f2(i32 3, %a0) convergent
  %i9 = extractvalue <2 x float> %i8, 0
  %i10 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f5 [air Math(Math { f: Mix, precision: Precise, ty: NumTy { elem: F32, lanes: 2 } })](%i7, %i9, %i4)
  %i11 = shufflevector <2 x float> %a4, <2 x float> undef, <1, 1>
  %i12 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f5 [air Math(Math { f: Mix, precision: Precise, ty: NumTy { elem: F32, lanes: 2 } })](%i5, %i10, %i11)
  %i13 = tail call reassoc nnan ninf nsz arcp contract afn float @f3 [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 })](%a2)
  %i14 = load <4 x float>, %a6, align 16
  %i15 = extractelement %i14, i64 2
  %i16 = fmul reassoc nnan ninf nsz arcp contract afn float %i15, %i13
  %i17 = insertelement <2 x float> c38, %i16, i64 1
  %i18 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i17, %i12
  %i19 = extractelement %i18, i64 0
  %i20 = fmul reassoc nnan ninf nsz arcp contract afn float %i19, float 0x40000000
  %i21 = extractelement %i14, i64 0
  %i22 = fdiv reassoc nnan ninf nsz arcp contract afn float %i20, %i21
  %i23 = fadd reassoc nnan ninf nsz arcp contract afn float %i22, float 0xBF800000
  %i24 = extractelement %i18, i64 1
  %i25 = fmul reassoc nnan ninf nsz arcp contract afn float %i24, float 0x40000000
  %i26 = extractelement %i14, i64 1
  %i27 = fdiv reassoc nnan ninf nsz arcp contract afn float %i25, %i26
  %i28 = fsub reassoc nnan ninf nsz arcp contract afn float float 0x3F800000, %i27
  %i29 = insertelement <4 x float> c42, %i23, i64 0
  %i30 = insertelement %i29, %i28, i64 1
  %i31 = load i32, %a5, align 4
  %i32 = insertelement <4 x i32> undef, %i31, i64 0
  %i33 = insertelement %i32, %a1, i64 1
  %i34 = insertelement %i33, %a2, i64 2
  %i35 = insertelement %i34, %a3, i64 3
  %i36 = insertvalue %t9 undef %i30, 0
  %i37 = insertvalue %i36 %i35, 1
  ret %i37
}

declare %t13 @f2 "_Z12MergedCorner.MTL_CONTROL_POINT_FN" convergent memory(Ref, Ref, Ref), section "air.externally_defined"

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

define %t15 @f4 "icb_merged_ipatch_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:
  ret %a1
}

declare %t16 @f5 "air.mix.v2f32" memory(NoModRef, NoModRef, NoModRef)

declare %t18 @f6 "air.set_vertex_buffer_render_command.p2i8" %a0( nocapture )

declare %t19 @f7 "air.set_vertex_buffer_render_command.p1i8" %a0( nocapture )

declare %t20 @f8 "air.draw_indexed_patches_render_command.p1i32.p1i8.p1i8" %a0( nocapture )
!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.indirect_buffer"
!md10 = !"air.buffer_size"
!md11 = !"air.location_index"
!md12 = !"air.read"
!md13 = !"air.address_space"
!md14 = !"air.struct_type_info"
!md15 = !"command_buffer"
!md16 = !"commands"
!md17 = !"air.indirect_argument"
!md18 = !"air.command_buffer"
!md19 = !"air.arg_type_name"
!md20 = !"air.arg_name"
!md21 = !"air.arg_type_size"
!md22 = !"air.arg_type_align_size"
!md23 = !"MergedCommands"
!md24 = !"encoder"
!md25 = !"air.buffer"
!md26 = !"uint"
!md27 = !"start"
!md28 = !"count"
!md29 = !"instances"
!md30 = !"base"
!md31 = !"MergedDraw"
!md32 = !"draws"
!md33 = !"marks"
!md34 = !"float4"
!md35 = !"frame"
!md36 = !"float2"
!md37 = !"corners"
!md38 = !"ushort"
!md39 = !"points"
!md40 = !"half"
!md41 = !"edgeTessellationFactor"
!md42 = !"insideTessellationFactor"
!md43 = !"metal::MTLQuadTessellationFactorsHalf"
!md44 = !"factors"
!md45 = !"air.thread_position_in_grid"
!md46 = !"tid"
!md47 = !"air.position"
!md48 = !"position"
!md49 = !"air.vertex_output"
!md50 = !"generated(3idsDv4_j)"
!md51 = !"uint4"
!md52 = !"ids"
!md53 = !"air.patch_control_point_input"
!md54 = !"air.patch_control_point_function"
!md55 = !"xy"
!md56 = !"air.patch_id"
!md57 = !"patch"
!md58 = !"air.instance_id"
!md59 = !"iid"
!md60 = !"air.base_instance"
!md61 = !"air.position_in_patch"
!md62 = !"uv"
!md63 = !"mark"
!md64 = !"air.patch"
!md65 = !"quad"
!md66 = !"air.patch_control_point"
!md67 = !"air.render_target"
!md68 = !"air.center"
!md69 = !"air.no_perspective"
!md70 = !"air.arg_unused"
!md71 = !"air.fragment_input"
!md72 = !"air.flat"
!md73 = !"air.compile.denorms_disable"
!md74 = !"air.compile.fast_math_enable"
!md75 = !"air.compile.framebuffer_fetch_enable"
!md76 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md77 = !"Metal"
!md78 = !"omnipotent char"
!md79 = !"Simple C++ TBAA"
!md80 = !"air-alias-scope-arg(6)"
!md81 = !"air-alias-scope-arg(5)"
!md82 = !"int"
!md83 = i32 2
!md84 = %t22 c11
!md85 = i32 1
!md86 = i32 4
!md87 = i32 7
!md88 = i32 31
!md89 = i32 128
!md90 = i32 8
!md91 = i32 16
!md92 = ptr addrspace(0) @f0
!md93 = i32 0
!md94 = i32 12
!md95 = i32 3
!md96 = i32 5
!md97 = i32 6
!md98 = ptr addrspace(0) @f1
!md99 = ptr addrspace(0) @f2
!md100 = ptr addrspace(0) @f4
!md101 = i64 0
!md102 = !{!md83, !md0, !md84}
!md103 = !{!md85, !md1, !md86}
!md104 = !{!md87, !md2, !md83}
!md105 = !{!md87, !md3, !md88}
!md106 = !{!md87, !md4, !md88}
!md107 = !{!md87, !md5, !md88}
!md108 = !{!md87, !md6, !md89}
!md109 = !{!md87, !md7, !md90}
!md110 = !{!md87, !md8, !md91}
!md111 = !{}
!md112 = !{!md93, !md18, !md11, !md93, !md85, !md19, !md15, !md20, !md16}
!md113 = !{!md93, !md90, !md93, !md15, !md16, !md17, !md112}
!md114 = !{!md93, !md9, !md10, !md90, !md11, !md93, !md85, !md12, !md13, !md85, !md14, !md113, !md21, !md90, !md22, !md90, !md19, !md23, !md20, !md24}
!md115 = !{!md93, !md86, !md93, !md26, !md27, !md86, !md86, !md93, !md26, !md28, !md90, !md86, !md93, !md26, !md29, !md94, !md86, !md93, !md26, !md30}
!md116 = !{!md85, !md25, !md11, !md85, !md85, !md12, !md13, !md85, !md14, !md115, !md21, !md91, !md22, !md86, !md19, !md31, !md20, !md32}
!md117 = !{!md83, !md25, !md11, !md83, !md85, !md12, !md13, !md83, !md21, !md86, !md22, !md86, !md19, !md26, !md20, !md33}
!md118 = !{!md95, !md25, !md11, !md95, !md85, !md12, !md13, !md83, !md21, !md91, !md22, !md91, !md19, !md34, !md20, !md35}
!md119 = !{!md86, !md25, !md11, !md86, !md85, !md12, !md13, !md85, !md21, !md90, !md22, !md90, !md19, !md36, !md20, !md37}
!md120 = !{!md96, !md25, !md11, !md96, !md85, !md12, !md13, !md85, !md21, !md83, !md22, !md83, !md19, !md38, !md20, !md39}
!md121 = !{!md93, !md83, !md86, !md40, !md41, !md90, !md83, !md83, !md40, !md42}
!md122 = !{!md97, !md25, !md11, !md97, !md85, !md12, !md13, !md85, !md14, !md121, !md21, !md94, !md22, !md83, !md19, !md43, !md20, !md44}
!md123 = !{!md87, !md45, !md19, !md26, !md20, !md46}
!md124 = !{!md114, !md116, !md117, !md118, !md119, !md120, !md122, !md123}
!md125 = !{!md92, !md111, !md124}
!md126 = !{!md47, !md19, !md34, !md20, !md48}
!md127 = !{!md49, !md50, !md19, !md51, !md20, !md52}
!md128 = !{!md126, !md127}
!md129 = !{!md54, !md99}
!md130 = !{!md11, !md93, !md85, !md19, !md36, !md20, !md55}
!md131 = !{!md93, !md53, !md129, !md130}
!md132 = !{!md85, !md56, !md19, !md26, !md20, !md57}
!md133 = !{!md83, !md58, !md19, !md26, !md20, !md59}
!md134 = !{!md95, !md60, !md19, !md26, !md20, !md30}
!md135 = !{!md86, !md61, !md19, !md36, !md20, !md62}
!md136 = !{!md96, !md25, !md10, !md86, !md11, !md93, !md85, !md12, !md13, !md83, !md21, !md86, !md22, !md86, !md19, !md26, !md20, !md63}
!md137 = !{!md97, !md25, !md10, !md91, !md11, !md85, !md85, !md12, !md13, !md83, !md21, !md91, !md22, !md91, !md19, !md34, !md20, !md35}
!md138 = !{!md131, !md132, !md133, !md134, !md135, !md136, !md137}
!md139 = !{!md64, !md65, !md66, !md86}
!md140 = !{!md98, !md128, !md138, !md139}
!md141 = !{!md67, !md93, !md93, !md19, !md51}
!md142 = !{!md141}
!md143 = !{!md93, !md47, !md68, !md69, !md19, !md34, !md20, !md48, !md70}
!md144 = !{!md85, !md71, !md50, !md72, !md19, !md51, !md20, !md52}
!md145 = !{!md143, !md144}
!md146 = !{!md100, !md142, !md145}
!md147 = !{!md73}
!md148 = !{!md74}
!md149 = !{!md75}
!md150 = !{!md76}
!md151 = !{!md83, !md90, !md93}
!md152 = !{!md77, !md86, !md93, !md93}
!md153 = !{!md79}
!md154 = !{!md78, !md153, !md101}
!md155 = !{!md82, !md154, !md101}
!md156 = !{!md155, !md155, !md101}
!"llvm.module.flags" = !{!md102, !md103, !md104, !md105, !md106, !md107, !md108, !md109, !md110}
!"air.kernel" = !{!md125}
!"air.vertex" = !{!md140}
!"air.fragment" = !{!md146}
!"air.compile_options" = !{!md147, !md148, !md149}
!"llvm.ident" = !{!md150}
!"air.version" = !{!md151}
!"air.language_version" = !{!md152}
