target triple = "air64_v22-apple-macosx10.15.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 { i32, ptr addrspace(0), ptr addrspace(0) }
%t6 = type [1 x %t5]
%t9 = type <{ <4 x float>, <2 x float> }>
%t10 = type %t9 (i32, ptr addrspace(2))
%t11 = type float (i32)
%t13 = type <4 x float> (<4 x float>, <2 x float>, ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), ptr addrspace(2), ptr addrspace(1))
%t15 = type <2 x i32> (<2 x float>)
%t17 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), <2 x i32>)
%t19 = type i1 (ptr addrspace(2))
%t20 = type { <4 x float>, i8 }
%t21 = type %t20 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t22 = type %t20 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i32, i32)
%t23 = type { float, i8 }
%t24 = type %t23 (ptr addrspace(1), ptr addrspace(2), i32, <2 x float>, float, i1, <2 x i32>, i1, float, float, i32)
%t25 = type %t20 (ptr addrspace(1), <2 x i32>, i32, i32)
%t26 = type void ()
%t28 = type [2 x i32]
%t31 = type { <4 x float> } ; "struct.a22_args"
c21 = %t5 [65535, @f10, zeroinitializer]
c22 = %t6 [c21]
c24 = %t28 [27, 0]
c38 = <2 x float> [0x40000000, 0x40000000]
c39 = <2 x float> [0xBF800000, 0xBF800000]
c42 = <4 x i32> [0, 1, poison, poison]
c46 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c47 = <4 x i32> [0, 1, 6, 7]
c55 = <2 x i32> [0, 1]
c56 = <4 x float> [0x3F800000, 0x3F800000, 0x3F800000, 0x3F800000]
@g0 "_ZL4tint" = internal addrspace(2) global float undef, align 4
@g1 "_Z4tint.MTL_FC_INIT_0_f" = linkonce_odr externally_initialized addrspace(2) constant float undef, align 4
@g2 "_ZL10tint_given" = internal addrspace(2) global i8 0, align 1
@g3 "llvm.global_ctors" = appending addrspace(0) global %t6 c22

define %t10 @f0 "a22_vs" memory(Ref, 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" %a1( align 16 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a0, i32 1
  %i1 = 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 })](%i0)
  %i2 = insertelement <2 x float> undef, %i1, i64 0
  %i3 = lshr i32 %a0, i32 1
  %i4 = and i32 %i3, i32 1
  %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 %i2, %i5, i64 1
  %i7 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i6, <2 x float> c38
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c39
  %i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
  %i10 = shufflevector <4 x float> %i9, <4 x float> c46, <0, 1, 6, 7>
  %i11 = getelementptr inbounds %t31, %a1, i64 0, i32 0
  %i12 = load <4 x float>, %i11, align 16
  %i13 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i10, %i12
  %i14 = insertvalue %t9 undef %i13, 0
  %i15 = insertvalue %i14 %i6, 1
  ret %i15
}

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

define %t13 @f2 "a22_fs" 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( Ref nocapture ) %a5( Ref nocapture ) {
bb0:
  %i0 = tail call %t20 @f6 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a2, %a3, %a1, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i1 = extractvalue <4 x float> %i0, 0
  %i2 = tail call %t20 @f6 [air Texture(Texture { op: Sample { compare: false, lod: Level, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a2, %a3, %a1, i1 1, <2 x i32> zeroinitializer, i1 1, float 0x3F800000, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i3 = extractvalue <4 x float> %i2, 0
  %i4 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i3, %i1
  %i5 = tail call %t20 @f7 [air Texture(Texture { op: Gather { component: Some(Y), compare: false, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a2, %a3, %a1, i1 1, <2 x i32> zeroinitializer, i32 1, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  %i6 = extractvalue <4 x float> %i5, 0
  %i7 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i4, %i6
  %i8 = tail call %t23 @f8 [air Texture(Texture { op: Sample { compare: true, lod: Bias, offset: true }, image: ImageShape { dim: D2, array: false, ms: false, depth: true }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 1 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a4, %a5, i32 1, %a1, float 0x3F000000, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i9 = extractvalue float %i8, 0
  %i10 = insertelement <4 x float> poison, %i9, i64 0
  %i11 = shufflevector <4 x float> %i10, <4 x float> poison, <0, 0, 0, 0>
  %i12 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i7, %i11
  %i13 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
  %i14 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i13)
  %i15 = tail call %t20 @f9 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Legacy, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a6, %i14, i32 0, i32 1) arg0( Ref nocapture )
  %i16 = extractvalue <4 x float> %i15, 0
  %i17 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i12, %i16
  %i18 = load i8, ptr addrspace(2) @g2, align 1, !range [(0, 2)]
  %i19 = icmp eq %i18, i8 0
  %i20 = load float, ptr addrspace(2) @g0, align 4
  %i21 = insertelement <4 x float> poison, %i20, i64 0
  %i22 = shufflevector <4 x float> %i21, <4 x float> poison, <0, 0, 0, 0>
  %i23 = select reassoc nnan ninf nsz arcp contract afn <4 x float> %i19, <4 x float> c56, %i22
  %i24 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %i23, %i17
  ret %i24
}

declare %t15 @f3 "air.convert.u.v2i32.f.v2f32" memory(NoModRef, NoModRef, NoModRef)

define %t17 @f4 "a22_reduce" "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" %a0( Ref nocapture ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( align 16 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call %t20 @f9 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Legacy, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a0, %a3, i32 0, i32 1) arg0( Ref nocapture )
  %i1 = extractvalue <4 x float> %i0, 0
  %i2 = getelementptr inbounds %t31, %a2, i64 0, i32 0
  %i3 = load <4 x float>, %i2, align 16
  %i4 = load i8, ptr addrspace(2) @g2, align 1, !range [(0, 2)]
  %i5 = icmp eq %i4, i8 0
  %i6 = extractelement %i1, i64 0
  %i7 = extractelement %i3, i64 0
  %i8 = fmul reassoc nnan ninf nsz arcp contract afn float %i6, %i7
  %i9 = load float, ptr addrspace(2) @g0, align 4
  %i10 = select reassoc nnan ninf nsz arcp contract afn float %i5, float 0x3F800000, %i9
  %i11 = fmul reassoc nnan ninf nsz arcp contract afn float %i8, %i10
  %i12 = extractelement %a3, i64 0
  %i13 = zext %i12 to i64
  %i14 = getelementptr inbounds float, %a1, %i13
  store %i11, %i14, align 4
  ret void
}

declare %t19 @f5 "air.is_function_constant_defined" memory(NoModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t21 @f6 "air.sample_texture_2d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t22 @f7 "air.gather_texture_2d.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t24 @f8 "air.sample_compare_depth_2d.f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t25 @f9 "air.read_texture_2d.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

define internal %t26 @f10 "_GLOBAL__sub_I__" memory(Mod, Mod, Mod) "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", section air.static_init {
bb0:
  %i0 = load float, ptr addrspace(2) @g1, align 4
  store %i0, ptr addrspace(2) @g0, align 4
  %i2 = tail call i1 @f5 [air FunctionConstant(IsDefined)](ptr addrspace(2) @g1) arg0( nocapture )
  %i3 = zext %i2 to i8
  store %i3, ptr addrspace(2) @g2, align 1
  ret void
}
!md0 = !"SDK Version"
!md1 = !"wchar_size"
!md2 = !"frame-pointer"
!md3 = !"air.position"
!md4 = !"air.arg_type_name"
!md5 = !"float4"
!md6 = !"air.arg_name"
!md7 = !"pos"
!md8 = !"air.vertex_output"
!md9 = !"generated(2uvDv2_f)"
!md10 = !"float2"
!md11 = !"uv"
!md12 = !"air.vertex_id"
!md13 = !"uint"
!md14 = !"vid"
!md15 = !"air.buffer"
!md16 = !"air.buffer_size"
!md17 = !"air.location_index"
!md18 = !"air.read"
!md19 = !"air.struct_type_info"
!md20 = !"scale"
!md21 = !"air.arg_type_size"
!md22 = !"air.arg_type_align_size"
!md23 = !"a22_args"
!md24 = !"args"
!md25 = !"air.render_target"
!md26 = !"air.center"
!md27 = !"air.no_perspective"
!md28 = !"air.fragment_input"
!md29 = !"air.centroid"
!md30 = !"air.perspective"
!md31 = !"air.texture"
!md32 = !"air.sample"
!md33 = !"texture2d<float, sample>"
!md34 = !"src"
!md35 = !"air.sampler"
!md36 = !"sampler"
!md37 = !"s"
!md38 = !"depth2d<float, sample>"
!md39 = !"shadow"
!md40 = !"cmp"
!md41 = !"texture2d<float, read>"
!md42 = !"raw"
!md43 = !"air.read_write"
!md44 = !"float"
!md45 = !"out"
!md46 = !"air.thread_position_in_grid"
!md47 = !"uint2"
!md48 = !"gid"
!md49 = !"air.compile.denorms_disable"
!md50 = !"air.compile.fast_math_enable"
!md51 = !"air.compile.framebuffer_fetch_disable"
!md52 = !"tint"
!md53 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md54 = !"Metal"
!md55 = !"omnipotent char"
!md56 = !"Simple C++ TBAA"
!md57 = !"air-alias-scope-arg(1)"
!md58 = !"air-alias-scope-textures"
!md59 = !"bool"
!md60 = i32 2
!md61 = %t28 c24
!md62 = i32 1
!md63 = i32 4
!md64 = i32 7
!md65 = ptr addrspace(0) @f0
!md66 = i32 0
!md67 = i32 16
!md68 = ptr addrspace(0) @f2
!md69 = i32 3
!md70 = i32 5
!md71 = i32 6
!md72 = ptr addrspace(0) @f4
!md73 = ptr addrspace(2) @g1
!md74 = i64 0
!md75 = i8 0
!md76 = i8 2
!md77 = !{!md60, !md0, !md61}
!md78 = !{!md62, !md1, !md63}
!md79 = !{!md64, !md2, !md60}
!md80 = !{!md3, !md4, !md5, !md6, !md7}
!md81 = !{!md8, !md9, !md4, !md10, !md6, !md11}
!md82 = !{!md80, !md81}
!md83 = !{!md66, !md12, !md4, !md13, !md6, !md14}
!md84 = !{!md66, !md67, !md66, !md5, !md20}
!md85 = !{!md62, !md15, !md16, !md67, !md17, !md66, !md62, !md18, !md19, !md84, !md21, !md67, !md22, !md67, !md4, !md23, !md6, !md24}
!md86 = !{!md83, !md85}
!md87 = !{!md65, !md82, !md86}
!md88 = !{!md25, !md66, !md66, !md4, !md5}
!md89 = !{!md88}
!md90 = !{!md66, !md3, !md26, !md27, !md4, !md5, !md6, !md7}
!md91 = !{!md62, !md28, !md9, !md29, !md30, !md4, !md10, !md6, !md11}
!md92 = !{!md60, !md31, !md17, !md66, !md62, !md32, !md4, !md33, !md6, !md34}
!md93 = !{!md69, !md35, !md17, !md66, !md62, !md4, !md36, !md6, !md37}
!md94 = !{!md63, !md31, !md17, !md62, !md62, !md32, !md4, !md38, !md6, !md39}
!md95 = !{!md70, !md35, !md17, !md62, !md62, !md4, !md36, !md6, !md40}
!md96 = !{!md71, !md31, !md17, !md60, !md62, !md18, !md4, !md41, !md6, !md42}
!md97 = !{!md90, !md91, !md92, !md93, !md94, !md95, !md96}
!md98 = !{!md68, !md89, !md97}
!md99 = !{}
!md100 = !{!md66, !md31, !md17, !md66, !md62, !md18, !md4, !md41, !md6, !md34}
!md101 = !{!md62, !md15, !md17, !md66, !md62, !md43, !md21, !md63, !md22, !md63, !md4, !md44, !md6, !md45}
!md102 = !{!md60, !md15, !md16, !md67, !md17, !md62, !md62, !md18, !md19, !md84, !md21, !md67, !md22, !md67, !md4, !md23, !md6, !md24}
!md103 = !{!md69, !md46, !md4, !md47, !md6, !md48}
!md104 = !{!md100, !md101, !md102, !md103}
!md105 = !{!md72, !md99, !md104}
!md106 = !{!md49}
!md107 = !{!md50}
!md108 = !{!md51}
!md109 = !{!md73, !md44, !md52, !md66}
!md110 = !{!md53}
!md111 = !{!md60, !md60, !md66}
!md112 = !{!md54, !md60, !md60, !md66}
!md113 = !{!md56}
!md114 = !{!md55, !md113, !md74}
!md115 = !{!md114, !md114, !md74}
!md116 = !{!md59, !md114, !md74}
!md117 = !{!md116, !md116, !md74}
!md118 = !{!md75, !md76}
!md119 = !{!md44, !md114, !md74}
!md120 = !{!md119, !md119, !md74}
!"llvm.module.flags" = !{!md77, !md78, !md79}
!"air.vertex" = !{!md87}
!"air.fragment" = !{!md98}
!"air.kernel" = !{!md105}
!"air.compile_options" = !{!md106, !md107, !md108}
!"air.function_constants" = !{!md109}
!"llvm.ident" = !{!md110}
!"air.version" = !{!md111}
!"air.language_version" = !{!md112}
