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(1), <2 x i32>)
%t7 = type ptr addrspace(2) ()
%t11 = type { <4 x half>, i8 }
%t12 = type %t11 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t13 = type void (ptr addrspace(1), <2 x i32>, <4 x half>, i32, i32)
%t15 = type [2 x i32]
c8 = %t15 [27, 0]
c18 = <4 x i32> [0, 1, 2, 4]
c22 = <4 x i32> [3, 3, 3, 3]

define %t5 @f0 "xr_planes_join" "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" %a0( Ref nocapture ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f2 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t11 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a0, %i0, %a3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i2 = extractvalue <4 x half> %i1, 0
  %i3 = tail call %t11 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a1, %i0, %a3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i4 = extractvalue <4 x half> %i3, 0
  %i5 = shufflevector <4 x half> %i2, %i4, <0, 1, 2, 4>
  tail call void @f4 [air Texture(Texture { op: Write, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Write), states_access: true, device_coherent: false })](%a2, %a3, %i5, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t5 @f1 "xr_planes_split" "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" %a0( Ref nocapture ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f2 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t11 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a0, %i0, %a3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i2 = extractvalue <4 x half> %i1, 0
  %i3 = insertelement %i2, half 0x3C00, i64 3
  tail call void @f4 [air Texture(Texture { op: Write, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Write), states_access: true, device_coherent: false })](%a1, %a3, %i3, i32 0, i32 2) arg0( nocapture )
  %i5 = shufflevector <4 x half> %i2, <4 x half> undef, <3, 3, 3, 3>
  tail call void @f4 [air Texture(Texture { op: Write, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Write), states_access: true, device_coherent: false })](%a2, %a3, %i5, i32 0, i32 2) arg0( nocapture )
  ret void
}

declare %t7 @f2 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t12 @f3 "air.read_texture_2d.v4f16" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t13 @f4 "air.write_texture_2d.v4f16" memory(ModRef, NoModRef, NoModRef) %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.texture"
!md10 = !"air.location_index"
!md11 = !"air.read"
!md12 = !"air.arg_type_name"
!md13 = !"texture2d<half, read>"
!md14 = !"air.arg_name"
!md15 = !"color"
!md16 = !"alpha"
!md17 = !"air.write"
!md18 = !"texture2d<half, write>"
!md19 = !"joined"
!md20 = !"air.thread_position_in_grid"
!md21 = !"uint2"
!md22 = !"gid"
!md23 = !"air.compile.denorms_disable"
!md24 = !"air.compile.fast_math_enable"
!md25 = !"air.compile.framebuffer_fetch_enable"
!md26 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md27 = !"Metal"
!md28 = !"air-alias-scope-textures"
!md29 = i32 2
!md30 = %t15 c8
!md31 = i32 1
!md32 = i32 4
!md33 = i32 7
!md34 = i32 31
!md35 = i32 128
!md36 = i32 8
!md37 = i32 16
!md38 = ptr addrspace(0) @f0
!md39 = i32 0
!md40 = i32 3
!md41 = ptr addrspace(0) @f1
!md42 = !{!md29, !md0, !md30}
!md43 = !{!md31, !md1, !md32}
!md44 = !{!md33, !md2, !md29}
!md45 = !{!md33, !md3, !md34}
!md46 = !{!md33, !md4, !md34}
!md47 = !{!md33, !md5, !md34}
!md48 = !{!md33, !md6, !md35}
!md49 = !{!md33, !md7, !md36}
!md50 = !{!md33, !md8, !md37}
!md51 = !{}
!md52 = !{!md39, !md9, !md10, !md39, !md31, !md11, !md12, !md13, !md14, !md15}
!md53 = !{!md31, !md9, !md10, !md31, !md31, !md11, !md12, !md13, !md14, !md16}
!md54 = !{!md29, !md9, !md10, !md29, !md31, !md17, !md12, !md18, !md14, !md19}
!md55 = !{!md40, !md20, !md12, !md21, !md14, !md22}
!md56 = !{!md52, !md53, !md54, !md55}
!md57 = !{!md38, !md51, !md56}
!md58 = !{!md39, !md9, !md10, !md39, !md31, !md11, !md12, !md13, !md14, !md19}
!md59 = !{!md31, !md9, !md10, !md31, !md31, !md17, !md12, !md18, !md14, !md15}
!md60 = !{!md29, !md9, !md10, !md29, !md31, !md17, !md12, !md18, !md14, !md16}
!md61 = !{!md58, !md59, !md60, !md55}
!md62 = !{!md41, !md51, !md61}
!md63 = !{!md23}
!md64 = !{!md24}
!md65 = !{!md25}
!md66 = !{!md26}
!md67 = !{!md29, !md36, !md39}
!md68 = !{!md27, !md32, !md39, !md39}
!"llvm.module.flags" = !{!md42, !md43, !md44, !md45, !md46, !md47, !md48, !md49, !md50}
!"air.kernel" = !{!md57, !md62}
!"air.compile_options" = !{!md63, !md64, !md65}
!"llvm.ident" = !{!md66}
!"air.version" = !{!md67}
!"air.language_version" = !{!md68}
