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: [] }
%t3 = type <{ <4 x float>, <4 x float> }>
%t7 = type %t3 (<2 x float>, i32, ptr addrspace(1))
%t8 = type float (i32)
%t10 = type %t3 (ptr addrspace(0), <4 x float>, <3 x float>, i32)
%t15 = type { <4 x float>, <2 x half>, <4 x i8> }
%t16 = type %t15 (i32, ptr addrspace(0))
%t18 = type %t3 (ptr addrspace(0), <4 x float>, <2 x float>, ptr addrspace(2))
%t19 = type <4 x float> (<4 x i8>)
%t20 = type %t3 (ptr addrspace(0), <4 x float>, <3 x float>, ptr addrspace(2))
%t22 = type %t3 (<2 x float>, i16, i16)
%t23 = type float (i16)
%t24 = type <{ <4 x float>, float }>
%t25 = type %t24 (<2 x float>)
%t26 = type <4 x float> (<4 x float>, <4 x float>, <4 x float>)
%t28 = type [2 x i32]
c14 = %t28 [26, 5]
c27 = <4 x i32> [1, 1, 1, 1]
c30 = <4 x i32> [0, 1, poison, poison]
c36 = <4 x i32> [2, 2, 2, 2]
c39 = <4 x float> [0x3B808081, 0x3B808081, 0x3B808081, 0x3B808081]
c44 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c45 = <4 x i32> [0, 1, 6, 7]

define %t7 @f0 "tess_quad_buffer" memory(Ref, 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" %a2( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shl i32 %a1, i32 2
  %i1 = zext %i0 to i64
  %i2 = getelementptr inbounds <4 x float>, %a2, %i1
  %i3 = load <4 x float>, %i2, align 16
  %i4 = or i32 %i0, i32 1
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x float>, %a2, %i5
  %i7 = load <4 x float>, %i6, align 16
  %i8 = shufflevector <4 x float> %a0, <2 x float> undef, <0, 0, 0, 0>
  %i9 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f10 [air Math(Math { f: Mix, precision: Precise, ty: NumTy { elem: F32, lanes: 4 } })](%i3, %i7, %i8)
  %i10 = or i32 %i0, i32 3
  %i11 = zext %i10 to i64
  %i12 = getelementptr inbounds <4 x float>, %a2, %i11
  %i13 = load <4 x float>, %i12, align 16
  %i14 = or i32 %i0, i32 2
  %i15 = zext %i14 to i64
  %i16 = getelementptr inbounds <4 x float>, %a2, %i15
  %i17 = load <4 x float>, %i16, align 16
  %i18 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f10 [air Math(Math { f: Mix, precision: Precise, ty: NumTy { elem: F32, lanes: 4 } })](%i13, %i17, %i8)
  %i19 = shufflevector <4 x float> %a0, <2 x float> undef, <1, 1, 1, 1>
  %i20 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f10 [air Math(Math { f: Mix, precision: Precise, ty: NumTy { elem: F32, lanes: 4 } })](%i9, %i18, %i19)
  %i21 = shufflevector <4 x float> %a0, <2 x float> poison, <0, 1, poison, poison>
  %i22 = 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)
  %i23 = insertelement %i21, float 0x3F800000, i64 3
  %i24 = insertelement %i23, %i22, i64 2
  %i25 = insertvalue %t3 undef %i20, 0
  %i26 = insertvalue %i25 %i24, 1
  ret %i26
}

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

define %t10 @f2 "tess_triangle_points" convergent memory(Ref, Ref, Ref) "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 %t15 @f3(i32 0, %a0) convergent
  %i1 = extractvalue <4 x float> %i0, 0
  %i2 = shufflevector <4 x float> %a2, <3 x float> undef, <0, 0, 0, 0>
  %i3 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i1, %i2
  %i4 = tail call %t15 @f3(i32 1, %a0) convergent
  %i5 = extractvalue <4 x float> %i4, 0
  %i6 = shufflevector <4 x float> %a2, <3 x float> undef, <1, 1, 1, 1>
  %i7 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i5, %i6
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i7, %i3
  %i9 = tail call %t15 @f3(i32 2, %a0) convergent
  %i10 = extractvalue <4 x float> %i9, 0
  %i11 = shufflevector <4 x float> %a2, <3 x float> undef, <2, 2, 2, 2>
  %i12 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i10, %i11
  %i13 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, %i12
  %i14 = extractvalue <2 x half> %i9, 1
  %i15 = extractelement %i14, i64 0
  %i16 = fpext %i15 to float
  %i17 = extractelement %i13, i64 0
  %i18 = fadd reassoc nnan ninf nsz arcp contract afn float %i17, %i16
  %i19 = insertelement %i13, %i18, i64 0
  %i20 = 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 })](%a3)
  %i21 = insertelement <4 x float> poison, %i20, i64 0
  %i22 = shufflevector <4 x float> %i21, <4 x float> poison, <0, 0, 0, 0>
  %i23 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i22, %a1
  %i24 = insertvalue %t3 undef %i19, 0
  %i25 = insertvalue %i24 %i23, 1
  ret %i25
}

declare %t16 @f3 "_Z12ControlPoint.MTL_CONTROL_POINT_FN" convergent memory(Ref, Ref, Ref), section "air.externally_defined"

define %t18 @f4 "tess_dynamic_point" convergent memory(Ref, Ref, Ref) "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( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = load i32, %a3, align 4
  %i1 = tail call %t15 @f3(%i0, %a0) convergent
  %i2 = extractvalue <4 x float> %i1, 0
  %i3 = shufflevector <4 x float> %a2, <2 x float> undef, <0, 0, 0, 0>
  %i4 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i2, %i3
  %i5 = and i32 %i0, i32 3
  %i6 = tail call %t15 @f3(%i5, %a0) convergent
  %i7 = extractvalue <4 x i8> %i6, 2
  %i8 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f5 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: I8, lanes: 4 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i7)
  %i9 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, <4 x float> c39
  %i10 = insertvalue %t3 undef %i4, 0
  %i11 = insertvalue %i10 %i9, 1
  ret %i11
}

declare %t19 @f5 "air.convert.f.v4f32.u.v4i8" memory(NoModRef, NoModRef, NoModRef)

define %t20 @f6 "tess_whole_point" convergent memory(Ref, Ref, Ref) "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( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = load i32, %a3, align 4
  %i1 = icmp eq %i0, i32 7
  br %i1, bb1, bb2
bb1:
  %i3 = tail call %t15 @f3(i32 1, %a0) convergent
  br bb3
bb2:
  %i5 = tail call %t15 @f3(i32 2, %a0) convergent
  br bb3
bb3:
  %i7 = phi %t15 [%i3, bb1], [%i5, bb2]
  %i8 = extractvalue <4 x float> %i7, 0
  %i9 = extractvalue <2 x half> %i7, 1
  %i10 = shufflevector <4 x float> %a2, <3 x float> undef, <0, 0, 0, 0>
  %i11 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, %i10
  %i12 = extractelement %i9, i64 1
  %i13 = fpext %i12 to float
  %i14 = insertelement <4 x float> poison, %i13, i64 0
  %i15 = shufflevector <4 x float> %i14, <4 x float> poison, <0, 0, 0, 0>
  %i16 = insertvalue %t3 undef %i11, 0
  %i17 = insertvalue %i16 %i15, 1
  ret %i17
}

define %t22 @f7 "tess_short_ids" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = shufflevector <4 x float> %a0, <2 x float> poison, <0, 1, poison, poison>
  %i1 = shufflevector <4 x float> %i0, <4 x float> c44, <0, 1, 6, 7>
  %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: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a1)
  %i3 = 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: I16, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i4 = insertelement <4 x float> c44, %i2, i64 0
  %i5 = insertelement %i4, %i3, i64 1
  %i6 = insertvalue %t3 undef %i1, 0
  %i7 = insertvalue %i6 %i5, 1
  ret %i7
}

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

define %t25 @f9 "tess_point_size" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = shufflevector <4 x float> %a0, <2 x float> poison, <0, 1, poison, poison>
  %i1 = shufflevector <4 x float> %i0, <4 x float> c44, <0, 1, 6, 7>
  %i2 = insertvalue %t24 undef %i1, 0
  %i3 = insertvalue %i2 float 0x40000000, 1
  ret %i3
}

declare %t26 @f10 "air.mix.v4f32" 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 = !"air.position_in_patch"
!md18 = !"float2"
!md19 = !"uv"
!md20 = !"air.patch_id"
!md21 = !"uint"
!md22 = !"patch"
!md23 = !"air.buffer"
!md24 = !"air.location_index"
!md25 = !"air.read"
!md26 = !"air.address_space"
!md27 = !"air.arg_type_size"
!md28 = !"air.arg_type_align_size"
!md29 = !"cps"
!md30 = !"air.patch"
!md31 = !"quad"
!md32 = !"air.patch_control_point"
!md33 = !"air.patch_control_point_input"
!md34 = !"air.patch_control_point_function"
!md35 = !"half2"
!md36 = !"uchar4"
!md37 = !"air.arg_unused"
!md38 = !"air.patch_input"
!md39 = !"tint"
!md40 = !"float3"
!md41 = !"bc"
!md42 = !"air.instance_id"
!md43 = !"instance"
!md44 = !"triangle"
!md45 = !"air.buffer_size"
!md46 = !"k"
!md47 = !"ushort"
!md48 = !"air.point_size"
!md49 = !"float"
!md50 = !"size"
!md51 = !"air.compile.denorms_disable"
!md52 = !"air.compile.fast_math_enable"
!md53 = !"air.compile.framebuffer_fetch_enable"
!md54 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md55 = !"Metal"
!md56 = !"omnipotent char"
!md57 = !"Simple C++ TBAA"
!md58 = !"int"
!md59 = !"air-alias-scope-arg(3)"
!md60 = i32 2
!md61 = %t28 c14
!md62 = i32 1
!md63 = i32 4
!md64 = i32 7
!md65 = i32 31
!md66 = i32 128
!md67 = i32 8
!md68 = i32 16
!md69 = ptr addrspace(0) @f0
!md70 = i32 0
!md71 = ptr addrspace(0) @f2
!md72 = ptr addrspace(0) @f3
!md73 = i32 5
!md74 = i32 3
!md75 = ptr addrspace(0) @f4
!md76 = ptr addrspace(0) @f6
!md77 = ptr addrspace(0) @f7
!md78 = ptr addrspace(0) @f9
!md79 = i64 0
!md80 = !{!md60, !md0, !md61}
!md81 = !{!md62, !md1, !md63}
!md82 = !{!md64, !md2, !md60}
!md83 = !{!md64, !md3, !md65}
!md84 = !{!md64, !md4, !md65}
!md85 = !{!md64, !md5, !md65}
!md86 = !{!md64, !md6, !md66}
!md87 = !{!md64, !md7, !md67}
!md88 = !{!md64, !md8, !md68}
!md89 = !{!md9, !md10, !md11, !md12, !md13}
!md90 = !{!md14, !md15, !md10, !md11, !md12, !md16}
!md91 = !{!md89, !md90}
!md92 = !{!md70, !md17, !md10, !md18, !md12, !md19}
!md93 = !{!md62, !md20, !md10, !md21, !md12, !md22}
!md94 = !{!md60, !md23, !md24, !md70, !md62, !md25, !md26, !md62, !md27, !md68, !md28, !md68, !md10, !md11, !md12, !md29}
!md95 = !{!md92, !md93, !md94}
!md96 = !{!md30, !md31, !md32, !md63}
!md97 = !{!md69, !md91, !md95, !md96}
!md98 = !{!md34, !md72}
!md99 = !{!md24, !md70, !md62, !md10, !md11, !md12, !md13}
!md100 = !{!md24, !md62, !md62, !md10, !md35, !md12, !md19}
!md101 = !{!md24, !md60, !md62, !md10, !md36, !md12, !md16, !md37}
!md102 = !{!md70, !md33, !md98, !md99, !md100, !md101}
!md103 = !{!md62, !md38, !md24, !md73, !md62, !md10, !md11, !md12, !md39}
!md104 = !{!md60, !md17, !md10, !md40, !md12, !md41}
!md105 = !{!md74, !md42, !md10, !md21, !md12, !md43}
!md106 = !{!md102, !md103, !md104, !md105}
!md107 = !{!md30, !md44, !md32, !md74}
!md108 = !{!md71, !md91, !md106, !md107}
!md109 = !{!md24, !md62, !md62, !md10, !md35, !md12, !md19, !md37}
!md110 = !{!md24, !md60, !md62, !md10, !md36, !md12, !md16}
!md111 = !{!md70, !md33, !md98, !md99, !md109, !md110}
!md112 = !{!md62, !md38, !md24, !md73, !md62, !md10, !md11, !md12, !md39, !md37}
!md113 = !{!md60, !md17, !md10, !md18, !md12, !md19}
!md114 = !{!md74, !md23, !md45, !md63, !md24, !md62, !md62, !md25, !md26, !md60, !md27, !md63, !md28, !md63, !md10, !md21, !md12, !md46}
!md115 = !{!md111, !md112, !md113, !md114}
!md116 = !{!md75, !md91, !md115, !md96}
!md117 = !{!md70, !md33, !md98, !md99, !md100, !md110}
!md118 = !{!md117, !md112, !md104, !md114}
!md119 = !{!md76, !md91, !md118, !md107}
!md120 = !{!md62, !md20, !md10, !md47, !md12, !md22}
!md121 = !{!md60, !md42, !md10, !md47, !md12, !md43}
!md122 = !{!md92, !md120, !md121}
!md123 = !{!md77, !md91, !md122, !md96}
!md124 = !{!md48, !md10, !md49, !md12, !md50}
!md125 = !{!md89, !md124}
!md126 = !{!md92}
!md127 = !{!md78, !md125, !md126, !md96}
!md128 = !{!md51}
!md129 = !{!md52}
!md130 = !{!md53}
!md131 = !{!md54}
!md132 = !{!md60, !md67, !md70}
!md133 = !{!md55, !md63, !md70, !md70}
!md134 = !{!md57}
!md135 = !{!md56, !md134, !md79}
!md136 = !{!md58, !md135, !md79}
!md137 = !{!md136, !md136, !md79}
!"llvm.module.flags" = !{!md80, !md81, !md82, !md83, !md84, !md85, !md86, !md87, !md88}
!"air.vertex" = !{!md97, !md108, !md116, !md119, !md123, !md127}
!"air.compile_options" = !{!md128, !md129, !md130}
!"llvm.ident" = !{!md131}
!"air.version" = !{!md132}
!"air.language_version" = !{!md133}
