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(2), ptr addrspace(2), ptr addrspace(1), ptr addrspace(1), i32)
%t6 = type void (ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), ptr addrspace(1), i32)
%t10 = type { <4 x float>, i8 }
%t14 = type %t10 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t16 = type [2 x i32]
%t19 = type { ptr addrspace(1) } ; "struct.metal::texture2d"
%t20 = type { ptr addrspace(2) } ; "struct.metal::sampler"
%t21 = type { %t19, %t20 } ; "struct.Material"
c6 = %t16 [27, 0]
c18 = <2 x float> [0x3F000000, 0x3F000000]
c24 = <4 x i32> [0, 4, poison, poison]
c25 = <4 x i32> [0, 1, 4, poison]
c26 = <4 x i32> [0, 1, 2, 4]
c28 = <2 x i32> [0, 1]

define %t5 @f0 "unv_rlvl2d" 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( align 8 dereferenceable(16) Ref nocapture "air-buffer-no-alias"="" ) %a3( Ref nocapture "air-buffer-no-alias"="" ) %a4( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a5 to i64
  %i1 = getelementptr inbounds float, %a3, %i0
  %i2 = load float, %i1, align 4
  %i3 = tail call %t10 @f2 [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 })](%a0, %a1, <2 x float> c18, i1 1, <2 x i32> zeroinitializer, i1 1, %i2, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i4 = extractvalue <4 x float> %i3, 0
  %i5 = tail call %t10 @f2 [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> c18, i1 1, <2 x i32> zeroinitializer, i1 0, %i2, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i6 = extractvalue <4 x float> %i5, 0
  %i7 = shufflevector <4 x float> %i4, %i6, <0, 4, poison, poison>
  %i8 = getelementptr inbounds %t21, %a2, i64 0, i32 1, i32 0
  %i9 = load ptr addrspace(2), %i8, align 8
  %i10 = getelementptr inbounds %t21, %a2, i64 0, i32 0, i32 0
  %i11 = load ptr addrspace(1), %i10, align 8
  %i12 = tail call %t10 @f2 [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 })](%i11, %i9, <2 x float> c18, i1 1, <2 x i32> zeroinitializer, i1 1, %i2, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i13 = extractvalue <4 x float> %i12, 0
  %i14 = shufflevector <4 x float> %i7, %i13, <0, 1, 4, poison>
  %i15 = tail call %t10 @f2 [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 })](%i11, %i9, <2 x float> c18, i1 1, <2 x i32> zeroinitializer, i1 0, %i2, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i16 = extractvalue <4 x float> %i15, 0
  %i17 = shufflevector <4 x float> %i14, %i16, <0, 1, 2, 4>
  %i18 = getelementptr inbounds <4 x float>, %a4, %i0
  store %i17, %i18, align 16
  ret void
}

define %t6 @f1 "unv_rpos2d" 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( Ref nocapture "air-buffer-no-alias"="" ) %a3( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a4 to i64
  %i1 = getelementptr inbounds <4 x float>, %a2, %i0
  %i2 = load <4 x float>, %i1, align 16
  %i3 = shufflevector <2 x float> %i2, <4 x float> poison, <0, 1>
  %i4 = extractelement %i2, i64 2
  %i5 = tail call %t10 @f2 [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 })](%a0, %a1, %i3, i1 1, <2 x i32> zeroinitializer, i1 1, %i4, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i6 = extractvalue <4 x float> %i5, 0
  %i7 = extractelement %i6, i64 0
  %i8 = getelementptr inbounds float, %a3, %i0
  store %i7, %i8, align 4
  ret void
}

declare %t14 @f2 "air.sample_texture_2d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref 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.texture"
!md10 = !"air.location_index"
!md11 = !"air.sample"
!md12 = !"air.arg_type_name"
!md13 = !"texture2d<float, sample>"
!md14 = !"air.arg_name"
!md15 = !"t"
!md16 = !"air.sampler"
!md17 = !"sampler"
!md18 = !"r"
!md19 = !"air.indirect_buffer"
!md20 = !"air.buffer_size"
!md21 = !"air.read"
!md22 = !"air.address_space"
!md23 = !"air.struct_type_info"
!md24 = !"air.indirect_argument"
!md25 = !"s"
!md26 = !"air.arg_type_size"
!md27 = !"air.arg_type_align_size"
!md28 = !"Material"
!md29 = !"m"
!md30 = !"air.buffer"
!md31 = !"float"
!md32 = !"x"
!md33 = !"air.read_write"
!md34 = !"float4"
!md35 = !"out"
!md36 = !"air.thread_position_in_grid"
!md37 = !"uint"
!md38 = !"i"
!md39 = !"p"
!md40 = !"air.compile.denorms_disable"
!md41 = !"air.compile.fast_math_enable"
!md42 = !"air.compile.framebuffer_fetch_enable"
!md43 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md44 = !"Metal"
!md45 = !"omnipotent char"
!md46 = !"Simple C++ TBAA"
!md47 = !"air-alias-scope-arg(3)"
!md48 = !"air-alias-scope-arg(2)"
!md49 = !"air-alias-scope-samplers"
!md50 = !"air-alias-scope-textures"
!md51 = i32 2
!md52 = %t16 c6
!md53 = i32 1
!md54 = i32 4
!md55 = i32 7
!md56 = i32 31
!md57 = i32 128
!md58 = i32 8
!md59 = i32 16
!md60 = ptr addrspace(0) @f0
!md61 = i32 0
!md62 = i32 3
!md63 = i32 5
!md64 = ptr addrspace(0) @f1
!md65 = i64 0
!md66 = !{!md51, !md0, !md52}
!md67 = !{!md53, !md1, !md54}
!md68 = !{!md55, !md2, !md51}
!md69 = !{!md55, !md3, !md56}
!md70 = !{!md55, !md4, !md56}
!md71 = !{!md55, !md5, !md56}
!md72 = !{!md55, !md6, !md57}
!md73 = !{!md55, !md7, !md58}
!md74 = !{!md55, !md8, !md59}
!md75 = !{}
!md76 = !{!md61, !md9, !md10, !md61, !md53, !md11, !md12, !md13, !md14, !md15}
!md77 = !{!md53, !md16, !md10, !md61, !md53, !md12, !md17, !md14, !md18}
!md78 = !{!md53, !md16, !md10, !md53, !md53, !md12, !md17, !md14, !md25}
!md79 = !{!md61, !md58, !md61, !md13, !md15, !md24, !md76, !md58, !md58, !md61, !md17, !md25, !md24, !md78}
!md80 = !{!md51, !md19, !md20, !md59, !md10, !md61, !md53, !md21, !md22, !md51, !md23, !md79, !md26, !md59, !md27, !md58, !md12, !md28, !md14, !md29}
!md81 = !{!md62, !md30, !md10, !md53, !md53, !md21, !md22, !md53, !md26, !md54, !md27, !md54, !md12, !md31, !md14, !md32}
!md82 = !{!md54, !md30, !md10, !md51, !md53, !md33, !md22, !md53, !md26, !md59, !md27, !md59, !md12, !md34, !md14, !md35}
!md83 = !{!md63, !md36, !md12, !md37, !md14, !md38}
!md84 = !{!md76, !md77, !md80, !md81, !md82, !md83}
!md85 = !{!md60, !md75, !md84}
!md86 = !{!md51, !md30, !md10, !md61, !md53, !md21, !md22, !md53, !md26, !md59, !md27, !md59, !md12, !md34, !md14, !md39}
!md87 = !{!md62, !md30, !md10, !md53, !md53, !md33, !md22, !md53, !md26, !md54, !md27, !md54, !md12, !md31, !md14, !md35}
!md88 = !{!md54, !md36, !md12, !md37, !md14, !md38}
!md89 = !{!md76, !md77, !md86, !md87, !md88}
!md90 = !{!md64, !md75, !md89}
!md91 = !{!md40}
!md92 = !{!md41}
!md93 = !{!md42}
!md94 = !{!md43}
!md95 = !{!md51, !md58, !md61}
!md96 = !{!md44, !md54, !md61, !md61}
!md97 = !{!md46}
!md98 = !{!md45, !md97, !md65}
!md99 = !{!md31, !md98, !md65}
!md100 = !{!md99, !md99, !md65}
!md101 = !{!md98, !md98, !md65}
!"llvm.module.flags" = !{!md66, !md67, !md68, !md69, !md70, !md71, !md72, !md73, !md74}
!"air.kernel" = !{!md85, !md90}
!"air.compile_options" = !{!md91, !md92, !md93}
!"llvm.ident" = !{!md94}
!"air.version" = !{!md95}
!"air.language_version" = !{!md96}
