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: [] }
%t4 = type { i32, ptr addrspace(0), ptr addrspace(0) }
%t5 = type [1 x %t4]
%t6 = type [1 x ptr addrspace(0)]
%t9 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), i32)
%t10 = type i8 (i8)
%t12 = type float (i32)
%t13 = type void (ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), ptr addrspace(2), i32)
%t14 = type i32 (ptr addrspace(1), i32)
%t15 = type ptr addrspace(2) ()
%t17 = type { <4 x float>, i8 }
%t19 = type %t17 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t22 = type %t17 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t23 = type void ()
%t25 = type [2 x i32]
c20 = %t4 [65535, @f9, zeroinitializer]
c21 = %t5 [c20]
c22 = ptr addrspace(0) addrspacecast (@g1)
c23 = %t6 [c22]
c25 = %t25 [27, 0]
c40 = <4 x float> [poison, 0x3F000000, 0x3E800000, 0x3F800000]
c42 = <2 x i32> [poison, 0]
c44 = <2 x float> [0x3F000000, 0x3F000000]
@g0 "_Z10has_source.MTL_FC_INIT_0_b" = linkonce_odr externally_initialized addrspace(2) constant i8 undef, align 1, section air.fc_initializer
@g1 "__metal_implicit_fc_pred_0" = internal addrspace(2) global i8 0, align 1
@g2 "llvm.global_ctors" = appending addrspace(0) global %t5 c21
@g3 "llvm.compiler.used" = appending addrspace(0) global %t6 c23, section "llvm.metadata"

define %t9 @f0 "rfs_absent_query" "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( Mod nocapture "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = add i32 %a3, i32 7
  %i1 = load i32, %a2, align 4
  %i2 = icmp eq %i1, i32 0
  br %i2, bb2, bb1
bb1:
  %i4 = tail call i32 @f5 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0, i32 0) arg0( Ref nocapture )
  br bb2
bb2:
  %i6 = phi i32 [%i4, bb1], [%i0, bb0]
  %i7 = zext %a3 to i64
  %i8 = getelementptr inbounds i32, %a1, %i7
  store %i6, %i8, align 4
  ret void
}

declare %t10 @f1 "air.normalize_function_constant_predicate.i8" memory(NoModRef, NoModRef, NoModRef)

define %t9 @f2 "rfs_absent_read" "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" %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = 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 })](%a3)
  %i1 = insertelement <4 x float> c40, %i0, i64 0
  %i2 = load i32, %a2, align 4
  %i3 = icmp eq %i2, i32 0
  br %i3, bb2, bb1
bb1:
  %i5 = insertelement <2 x i32> c42, %a3, i64 0
  %i6 = tail call ptr addrspace(2) @f6 [air Sampler(GetReadSampler)]()
  %i7 = tail call %t17 @f7 [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: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a0, %i6, %i5, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i8 = extractvalue <4 x float> %i7, 0
  br bb2
bb2:
  %i10 = phi <4 x float> [%i8, bb1], [%i1, bb0]
  %i11 = zext %a3 to i64
  %i12 = getelementptr inbounds <4 x float>, %a1, %i11
  store %i10, %i12, align 16
  ret void
}

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

define %t13 @f4 "rfs_absent_sampler" convergent "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" %a1( Ref nocapture ) %a2( Mod nocapture "air-buffer-no-alias"="" ) %a3( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = insertelement <2 x i32> c42, %a4, i64 0
  %i1 = tail call ptr addrspace(2) @f6 [air Sampler(GetReadSampler)]()
  %i2 = tail call %t17 @f7 [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: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a0, %i1, %i0, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i3 = load i32, %a3, align 4
  %i4 = icmp eq %i3, i32 0
  br %i4, bb2, bb1
bb1:
  %i6 = tail call %t17 @f8 [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 })](%a0, %a1, <2 x float> c44, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb2
bb2:
  %i8 = phi %t17 [%i6, bb1], [%i2, bb0]
  %i9 = extractvalue <4 x float> %i8, 0
  %i10 = zext %a4 to i64
  %i11 = getelementptr inbounds <4 x float>, %a2, %i10
  store %i9, %i11, align 16
  ret void
}

declare %t14 @f5 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t15 @f6 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

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

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

define internal %t23 @f9 "_GLOBAL__sub_I__" "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 i8, ptr addrspace(2) @g0, align 1, !range [(0, 2)]
  %i1 = tail call i8 @f1 [air FunctionConstant(NormalizePredicate(I8))](%i0)
  store %i1, ptr addrspace(2) @g1, align 1
  ret void
}
!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.function_constant"
!md10 = !"bool"
!md11 = !"has_source"
!md12 = !"air.texture"
!md13 = !"air.location_index"
!md14 = !"air.read"
!md15 = !"air.arg_type_name"
!md16 = !"texture2d<float, read>"
!md17 = !"air.arg_name"
!md18 = !"source"
!md19 = !"air.buffer"
!md20 = !"air.read_write"
!md21 = !"air.address_space"
!md22 = !"air.arg_type_size"
!md23 = !"air.arg_type_align_size"
!md24 = !"uint"
!md25 = !"out"
!md26 = !"air.buffer_size"
!md27 = !"flag"
!md28 = !"air.thread_position_in_grid"
!md29 = !"tid"
!md30 = !"float4"
!md31 = !"air.sample"
!md32 = !"texture2d<float, sample>"
!md33 = !"tex"
!md34 = !"air.sampler"
!md35 = !"sampler"
!md36 = !"smp"
!md37 = !"air.compile.denorms_disable"
!md38 = !"air.compile.fast_math_enable"
!md39 = !"air.compile.framebuffer_fetch_enable"
!md40 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md41 = !"Metal"
!md42 = !"int"
!md43 = !"omnipotent char"
!md44 = !"Simple C++ TBAA"
!md45 = !"air-alias-scope-arg(2)"
!md46 = !"air-alias-scope-arg(1)"
!md47 = !"air-alias-scope-textures"
!md48 = i32 2
!md49 = %t25 c25
!md50 = i32 1
!md51 = i32 4
!md52 = i32 7
!md53 = i32 31
!md54 = i32 128
!md55 = i32 8
!md56 = i32 16
!md57 = ptr addrspace(0) @f0
!md58 = i32 0
!md59 = ptr addrspace(2) @g1
!md60 = i32 3
!md61 = ptr addrspace(0) @f2
!md62 = ptr addrspace(0) @f4
!md63 = ptr addrspace(2) @g0
!md64 = i64 0
!md65 = !{!md48, !md0, !md49}
!md66 = !{!md50, !md1, !md51}
!md67 = !{!md52, !md2, !md48}
!md68 = !{!md52, !md3, !md53}
!md69 = !{!md52, !md4, !md53}
!md70 = !{!md52, !md5, !md53}
!md71 = !{!md52, !md6, !md54}
!md72 = !{!md52, !md7, !md55}
!md73 = !{!md52, !md8, !md56}
!md74 = !{}
!md75 = !{!md59, !md10, !md11}
!md76 = !{!md58, !md9, !md75, !md12, !md13, !md58, !md50, !md14, !md15, !md16, !md17, !md18}
!md77 = !{!md50, !md19, !md13, !md58, !md50, !md20, !md21, !md50, !md22, !md51, !md23, !md51, !md15, !md24, !md17, !md25}
!md78 = !{!md48, !md19, !md26, !md51, !md13, !md50, !md50, !md14, !md21, !md48, !md22, !md51, !md23, !md51, !md15, !md24, !md17, !md27}
!md79 = !{!md60, !md28, !md15, !md24, !md17, !md29}
!md80 = !{!md76, !md77, !md78, !md79}
!md81 = !{!md57, !md74, !md80}
!md82 = !{!md50, !md19, !md13, !md58, !md50, !md20, !md21, !md50, !md22, !md56, !md23, !md56, !md15, !md30, !md17, !md25}
!md83 = !{!md76, !md82, !md78, !md79}
!md84 = !{!md61, !md74, !md83}
!md85 = !{!md58, !md12, !md13, !md58, !md50, !md31, !md15, !md32, !md17, !md33}
!md86 = !{!md50, !md9, !md75, !md34, !md13, !md58, !md50, !md15, !md35, !md17, !md36}
!md87 = !{!md48, !md19, !md13, !md58, !md50, !md20, !md21, !md50, !md22, !md56, !md23, !md56, !md15, !md30, !md17, !md25}
!md88 = !{!md60, !md19, !md26, !md51, !md13, !md50, !md50, !md14, !md21, !md48, !md22, !md51, !md23, !md51, !md15, !md24, !md17, !md27}
!md89 = !{!md51, !md28, !md15, !md24, !md17, !md29}
!md90 = !{!md85, !md86, !md87, !md88, !md89}
!md91 = !{!md62, !md74, !md90}
!md92 = !{!md37}
!md93 = !{!md38}
!md94 = !{!md39}
!md95 = !{!md63, !md10, !md11, !md58}
!md96 = !{!md40}
!md97 = !{!md48, !md55, !md58}
!md98 = !{!md41, !md51, !md58, !md58}
!md99 = !{!md44}
!md100 = !{!md43, !md99, !md64}
!md101 = !{!md42, !md100, !md64}
!md102 = !{!md101, !md101, !md64}
!md103 = !{!md100, !md100, !md64}
!"llvm.module.flags" = !{!md65, !md66, !md67, !md68, !md69, !md70, !md71, !md72, !md73}
!"air.kernel" = !{!md81, !md84, !md91}
!"air.compile_options" = !{!md92, !md93, !md94}
!"air.function_constants" = !{!md95}
!"llvm.ident" = !{!md96}
!"air.version" = !{!md97}
!"air.language_version" = !{!md98}
