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(1), ptr addrspace(1), i32)
%t9 = type { <4 x float>, i8 }
%t13 = type %t9 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i32, i32)
%t14 = type %t9 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t17 = type { <4 x half>, i8 }
%t18 = type %t17 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i32, i32)
%t19 = type %t17 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t21 = type [2 x i32]
c8 = %t21 [27, 2]

define %t5 @f0 "ycg_float" 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( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = udiv i32 %a4, i32 3
  %i1 = zext %i0 to i64
  %i2 = getelementptr inbounds <2 x float>, %a3, %i1
  %i3 = load <2 x float>, %i2, align 8
  %i4 = urem i32 %a4, i32 3
  switch %i4, bb3 [ 1: bb1 2: bb2 ]
bb1:
  %i6 = tail call %t9 @f2 [air Texture(Texture { op: Gather { component: Some(X), 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 })](%a0, %a1, %i3, i1 1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb4
bb2:
  %i8 = tail call %t9 @f2 [air Texture(Texture { op: Gather { component: Some(Z), 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 })](%a0, %a1, %i3, i1 1, <2 x i32> zeroinitializer, i32 2, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb4
bb3:
  %i10 = tail call %t9 @f3 [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, %i3, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb4
bb4:
  %i12 = phi %t9 [%i10, bb3], [%i8, bb2], [%i6, bb1]
  %i13 = extractvalue <4 x float> %i12, 0
  %i14 = zext %a4 to i64
  %i15 = getelementptr inbounds <4 x float>, %a2, %i14
  store %i13, %i15, align 16
  ret void
}

define %t5 @f1 "ycg_half" convergent "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" %a1( Ref nocapture ) %a2( Mod nocapture "air-buffer-no-alias"="" ) %a3( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = udiv i32 %a4, i32 3
  %i1 = zext %i0 to i64
  %i2 = getelementptr inbounds <2 x float>, %a3, %i1
  %i3 = load <2 x float>, %i2, align 8
  %i4 = urem i32 %a4, i32 3
  switch %i4, bb3 [ 1: bb1 2: bb2 ]
bb1:
  %i6 = tail call %t17 @f4 [air Texture(Texture { op: Gather { component: Some(X), compare: false, offset: true }, 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(Sample), states_access: true, device_coherent: false })](%a0, %a1, %i3, i1 1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb4
bb2:
  %i8 = tail call %t17 @f4 [air Texture(Texture { op: Gather { component: Some(Z), compare: false, offset: true }, 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(Sample), states_access: true, device_coherent: false })](%a0, %a1, %i3, i1 1, <2 x i32> zeroinitializer, i32 2, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb4
bb3:
  %i10 = tail call %t17 @f5 [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: F16, 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 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb4
bb4:
  %i12 = phi %t17 [%i10, bb3], [%i8, bb2], [%i6, bb1]
  %i13 = extractvalue <4 x half> %i12, 0
  %i14 = zext %a4 to i64
  %i15 = getelementptr inbounds <4 x half>, %a2, %i14
  store %i13, %i15, align 8
  ret void
}

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

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

declare %t18 @f4 "air.gather_texture_2d.v4f16" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t19 @f5 "air.sample_texture_2d.v4f16" 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 = !"s"
!md19 = !"air.buffer"
!md20 = !"air.read_write"
!md21 = !"air.address_space"
!md22 = !"air.arg_type_size"
!md23 = !"air.arg_type_align_size"
!md24 = !"float4"
!md25 = !"o"
!md26 = !"air.read"
!md27 = !"float2"
!md28 = !"p"
!md29 = !"air.thread_position_in_grid"
!md30 = !"uint"
!md31 = !"i"
!md32 = !"texture2d<half, sample>"
!md33 = !"half4"
!md34 = !"air.compile.denorms_disable"
!md35 = !"air.compile.fast_math_enable"
!md36 = !"air.compile.framebuffer_fetch_enable"
!md37 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md38 = !"Metal"
!md39 = !"omnipotent char"
!md40 = !"Simple C++ TBAA"
!md41 = !"air-alias-scope-arg(3)"
!md42 = !"air-alias-scope-arg(2)"
!md43 = !"air-alias-scope-samplers"
!md44 = !"air-alias-scope-textures"
!md45 = i32 2
!md46 = %t21 c8
!md47 = i32 1
!md48 = i32 4
!md49 = i32 7
!md50 = i32 31
!md51 = i32 128
!md52 = i32 8
!md53 = i32 16
!md54 = ptr addrspace(0) @f0
!md55 = i32 0
!md56 = i32 3
!md57 = ptr addrspace(0) @f1
!md58 = i64 0
!md59 = !{!md45, !md0, !md46}
!md60 = !{!md47, !md1, !md48}
!md61 = !{!md49, !md2, !md45}
!md62 = !{!md49, !md3, !md50}
!md63 = !{!md49, !md4, !md50}
!md64 = !{!md49, !md5, !md50}
!md65 = !{!md49, !md6, !md51}
!md66 = !{!md49, !md7, !md52}
!md67 = !{!md49, !md8, !md53}
!md68 = !{}
!md69 = !{!md55, !md9, !md10, !md55, !md47, !md11, !md12, !md13, !md14, !md15}
!md70 = !{!md47, !md16, !md10, !md55, !md47, !md12, !md17, !md14, !md18}
!md71 = !{!md45, !md19, !md10, !md55, !md47, !md20, !md21, !md47, !md22, !md53, !md23, !md53, !md12, !md24, !md14, !md25}
!md72 = !{!md56, !md19, !md10, !md47, !md47, !md26, !md21, !md47, !md22, !md52, !md23, !md52, !md12, !md27, !md14, !md28}
!md73 = !{!md48, !md29, !md12, !md30, !md14, !md31}
!md74 = !{!md69, !md70, !md71, !md72, !md73}
!md75 = !{!md54, !md68, !md74}
!md76 = !{!md55, !md9, !md10, !md55, !md47, !md11, !md12, !md32, !md14, !md15}
!md77 = !{!md45, !md19, !md10, !md55, !md47, !md20, !md21, !md47, !md22, !md52, !md23, !md52, !md12, !md33, !md14, !md25}
!md78 = !{!md76, !md70, !md77, !md72, !md73}
!md79 = !{!md57, !md68, !md78}
!md80 = !{!md34}
!md81 = !{!md35}
!md82 = !{!md36}
!md83 = !{!md37}
!md84 = !{!md45, !md52, !md55}
!md85 = !{!md38, !md48, !md55, !md55}
!md86 = !{!md40}
!md87 = !{!md39, !md86, !md58}
!md88 = !{!md87, !md87, !md58}
!"llvm.module.flags" = !{!md59, !md60, !md61, !md62, !md63, !md64, !md65, !md66, !md67}
!"air.kernel" = !{!md75, !md79}
!"air.compile_options" = !{!md80, !md81, !md82}
!"llvm.ident" = !{!md83}
!"air.version" = !{!md84}
!"air.language_version" = !{!md85}
