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), <3 x i32>)
%t7 = type float (i32)
%t10 = type void (ptr addrspace(1), <2 x i32>, i32, <4 x float>, i32, i32)
%t11 = type void (ptr addrspace(1), <2 x i32>, i32, i32, <4 x float>, i32, i32)
%t12 = type i32 (ptr addrspace(1), i32)
%t13 = type i32 (ptr addrspace(1))
%t15 = type [2 x i32]
c9 = %t15 [27, 2]
c24 = <4 x float> [poison, poison, poison, 0x3F800000]
c26 = <2 x i32> [0, 1]

define %t5 @f0 "cube_face_writes" "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( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = extractelement %a3, i64 0
  %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 = extractelement %a3, i64 1
  %i3 = 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 })](%i2)
  %i4 = extractelement %a3, i64 2
  %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 <4 x float> c24, %i1, i64 0
  %i7 = insertelement %i6, %i3, i64 1
  %i8 = insertelement %i7, %i5, i64 2
  %i9 = shufflevector <2 x i32> %a3, <3 x i32> poison, <0, 1>
  tail call void @f2 [air Texture(Texture { op: Write, image: ImageShape { dim: Cube, 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(Write), states_access: true })](%a0, %i9, %i4, %i8, i32 0, i32 2) arg0( nocapture )
  tail call void @f3 [air Texture(Texture { op: Write, image: ImageShape { dim: Cube, array: true, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Write), states_access: true })](%a1, %i9, %i4, i32 1, %i8, i32 0, i32 2) arg0( nocapture )
  %i12 = or i32 %i0, %i2
  %i13 = or i32 %i12, %i4
  %i14 = icmp eq %i13, i32 0
  br %i14, bb1, bb2
bb1:
  %i16 = tail call i32 @f4 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Cube, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, i32 0) arg0( Ref nocapture )
  store %i16, %a2, align 4
  %i18 = tail call i32 @f5 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: Cube, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, i32 0) arg0( Ref nocapture )
  %i19 = getelementptr inbounds i32, %a2, i64 1
  store %i18, %i19, align 4
  %i21 = tail call i32 @f6 [air Texture(Texture { op: Query(ArraySize), image: ImageShape { dim: Cube, array: true, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a1) arg0( Ref nocapture )
  %i22 = getelementptr inbounds i32, %a2, i64 2
  store %i21, %i22, align 4
  br bb2
bb2:
  ret void
}

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

declare %t10 @f2 "air.write_texture_cube.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t11 @f3 "air.write_texture_cube_array.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t12 @f4 "air.get_width_texture_cube" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t12 @f5 "air.get_height_texture_cube" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t13 @f6 "air.get_array_size_texture_cube_array" memory(Ref, NoModRef, NoModRef) %a0( 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.write"
!md12 = !"air.arg_type_name"
!md13 = !"texturecube<float, write>"
!md14 = !"air.arg_name"
!md15 = !"c"
!md16 = !"texturecube_array<float, write>"
!md17 = !"a"
!md18 = !"air.buffer"
!md19 = !"air.read_write"
!md20 = !"air.address_space"
!md21 = !"air.arg_type_size"
!md22 = !"air.arg_type_align_size"
!md23 = !"uint"
!md24 = !"out"
!md25 = !"air.thread_position_in_grid"
!md26 = !"uint3"
!md27 = !"gid"
!md28 = !"air.compile.denorms_disable"
!md29 = !"air.compile.fast_math_enable"
!md30 = !"air.compile.framebuffer_fetch_enable"
!md31 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md32 = !"Metal"
!md33 = i32 2
!md34 = %t15 c9
!md35 = i32 1
!md36 = i32 4
!md37 = i32 7
!md38 = i32 31
!md39 = i32 128
!md40 = i32 8
!md41 = i32 16
!md42 = ptr addrspace(0) @f0
!md43 = i32 0
!md44 = i32 3
!md45 = !{!md33, !md0, !md34}
!md46 = !{!md35, !md1, !md36}
!md47 = !{!md37, !md2, !md33}
!md48 = !{!md37, !md3, !md38}
!md49 = !{!md37, !md4, !md38}
!md50 = !{!md37, !md5, !md38}
!md51 = !{!md37, !md6, !md39}
!md52 = !{!md37, !md7, !md40}
!md53 = !{!md37, !md8, !md41}
!md54 = !{}
!md55 = !{!md43, !md9, !md10, !md43, !md35, !md11, !md12, !md13, !md14, !md15}
!md56 = !{!md35, !md9, !md10, !md35, !md35, !md11, !md12, !md16, !md14, !md17}
!md57 = !{!md33, !md18, !md10, !md43, !md35, !md19, !md20, !md35, !md21, !md36, !md22, !md36, !md12, !md23, !md14, !md24}
!md58 = !{!md44, !md25, !md12, !md26, !md14, !md27}
!md59 = !{!md55, !md56, !md57, !md58}
!md60 = !{!md42, !md54, !md59}
!md61 = !{!md28}
!md62 = !{!md29}
!md63 = !{!md30}
!md64 = !{!md31}
!md65 = !{!md33, !md40, !md43}
!md66 = !{!md32, !md36, !md43, !md43}
!"llvm.module.flags" = !{!md45, !md46, !md47, !md48, !md49, !md50, !md51, !md52, !md53}
!"air.kernel" = !{!md60}
!"air.compile_options" = !{!md61, !md62, !md63}
!"llvm.ident" = !{!md64}
!"air.version" = !{!md65}
!"air.language_version" = !{!md66}
