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: [] }
%t2 = type [2 x i64]
%t7 = type void (ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), i32)
%t8 = type void (ptr addrspace(1), ptr addrspace(2), ptr addrspace(1), ptr addrspace(1), i32)
%t12 = type { <4 x float>, i8 }
%t16 = type %t12 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t19 = type { <4 x half>, i8 }
%t20 = type %t19 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t22 = type [2 x i32]
c21 = %t2 [34901797601023049, 0]
c22 = %t2 [34901797601023122, 0]
c23 = %t2 [34901797601023195, 0]
c24 = %t2 [34901797601022976, 0]
c25 = %t2 [179016985676878848, 0]
c26 = %t2 [106959391638950912, 0]
c27 = %t2 [34901797601055817, 0]
c29 = %t22 [27, 0]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c21, align 8
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c22, align 8
@g2 "__air_sampler_state.2" = internal addrspace(2) constant %t2 c23, align 8
@g3 "__air_sampler_state.3" = internal addrspace(2) constant %t2 c24, align 8
@g4 "__air_sampler_state.4" = internal addrspace(2) constant %t2 c25, align 8
@g5 "__air_sampler_state.5" = internal addrspace(2) constant %t2 c26, align 8
@g6 "__air_sampler_state.6" = internal addrspace(2) constant %t2 c27, align 8

define %t7 @f0 "gsm2_cubic_samples" 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"="" ) %a4( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a5 to i64
  %i1 = getelementptr inbounds <2 x float>, %a2, %i0
  %i2 = load <2 x float>, %i1, align 8
  %i3 = load i32, %a4, align 4
  switch %i3, bb7 [ 0: bb1 1: bb2 2: bb3 3: bb4 4: bb5 5: bb6 ]
bb1:
  %i5 = tail call %t12 @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, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb2:
  %i7 = tail call %t12 @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, ptr addrspace(2) @g1, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb3:
  %i9 = tail call %t12 @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, ptr addrspace(2) @g2, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb4:
  %i11 = tail call %t12 @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, ptr addrspace(2) @g3, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb5:
  %i13 = tail call %t12 @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, ptr addrspace(2) @g4, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb6:
  %i15 = tail call %t12 @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, ptr addrspace(2) @g5, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb7:
  %i17 = tail call %t12 @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, ptr addrspace(2) @g6, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  br bb8
bb8:
  %i19 = phi %t12 [%i17, bb7], [%i15, bb6], [%i13, bb5], [%i11, bb4], [%i9, bb3], [%i7, bb2], [%i5, bb1]
  %i20 = extractvalue <4 x float> %i19, 0
  %i21 = tail call %t12 @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, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i22 = extractvalue <4 x float> %i21, 0
  %i23 = shl i32 %a5, i32 1
  %i24 = zext %i23 to i64
  %i25 = getelementptr inbounds <4 x float>, %a3, %i24
  store %i22, %i25, align 16
  %i27 = or i32 %i23, i32 1
  %i28 = zext %i27 to i64
  %i29 = getelementptr inbounds <4 x float>, %a3, %i28
  store %i20, %i29, align 16
  ret void
}

define %t8 @f1 "gsm2_cubic_half_samples" 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( Ref nocapture "air-buffer-no-alias"="" ) %a3( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a4 to i64
  %i1 = getelementptr inbounds <2 x float>, %a2, %i0
  %i2 = load <2 x float>, %i1, align 8
  %i3 = tail call %t19 @f3 [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: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a0, %a1, %i2, i1 1, <2 x i32> zeroinitializer, i1 1, float 0x40200000, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i4 = extractvalue <4 x half> %i3, 0
  %i5 = shl i32 %a4, i32 1
  %i6 = zext %i5 to i64
  %i7 = getelementptr inbounds <4 x half>, %a3, %i6
  store %i4, %i7, align 8
  %i9 = tail call %t19 @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: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i10 = extractvalue <4 x half> %i9, 0
  %i11 = or i32 %i5, i32 1
  %i12 = zext %i11 to i64
  %i13 = getelementptr inbounds <4 x half>, %a3, %i12
  store %i10, %i13, align 8
  ret void
}

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

declare %t20 @f3 "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"
!md21 = !"air.address_space"
!md22 = !"air.arg_type_size"
!md23 = !"air.arg_type_align_size"
!md24 = !"float2"
!md25 = !"uv"
!md26 = !"air.read_write"
!md27 = !"float4"
!md28 = !"out"
!md29 = !"air.buffer_size"
!md30 = !"uint"
!md31 = !"which"
!md32 = !"air.thread_position_in_grid"
!md33 = !"i"
!md34 = !"texture2d<half, sample>"
!md35 = !"half4"
!md36 = !"air.compile.denorms_disable"
!md37 = !"air.compile.fast_math_enable"
!md38 = !"air.compile.framebuffer_fetch_enable"
!md39 = !"air.sampler_state"
!md40 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md41 = !"Metal"
!md42 = !"omnipotent char"
!md43 = !"Simple C++ TBAA"
!md44 = !"air-alias-scope-arg(2)"
!md45 = !"air-alias-scope-arg(3)"
!md46 = !"air-alias-scope-samplers"
!md47 = !"air-alias-scope-textures"
!md48 = i32 2
!md49 = %t22 c29
!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 = i32 3
!md60 = i32 5
!md61 = ptr addrspace(0) @f1
!md62 = ptr addrspace(2) @g0
!md63 = ptr addrspace(2) @g1
!md64 = ptr addrspace(2) @g2
!md65 = ptr addrspace(2) @g3
!md66 = ptr addrspace(2) @g4
!md67 = ptr addrspace(2) @g5
!md68 = ptr addrspace(2) @g6
!md69 = i64 0
!md70 = !{!md48, !md0, !md49}
!md71 = !{!md50, !md1, !md51}
!md72 = !{!md52, !md2, !md48}
!md73 = !{!md52, !md3, !md53}
!md74 = !{!md52, !md4, !md53}
!md75 = !{!md52, !md5, !md53}
!md76 = !{!md52, !md6, !md54}
!md77 = !{!md52, !md7, !md55}
!md78 = !{!md52, !md8, !md56}
!md79 = !{}
!md80 = !{!md58, !md9, !md10, !md58, !md50, !md11, !md12, !md13, !md14, !md15}
!md81 = !{!md50, !md16, !md10, !md58, !md50, !md12, !md17, !md14, !md18}
!md82 = !{!md48, !md19, !md10, !md58, !md50, !md20, !md21, !md50, !md22, !md55, !md23, !md55, !md12, !md24, !md14, !md25}
!md83 = !{!md59, !md19, !md10, !md50, !md50, !md26, !md21, !md50, !md22, !md56, !md23, !md56, !md12, !md27, !md14, !md28}
!md84 = !{!md51, !md19, !md29, !md51, !md10, !md48, !md50, !md20, !md21, !md48, !md22, !md51, !md23, !md51, !md12, !md30, !md14, !md31}
!md85 = !{!md60, !md32, !md12, !md30, !md14, !md33}
!md86 = !{!md80, !md81, !md82, !md83, !md84, !md85}
!md87 = !{!md57, !md79, !md86}
!md88 = !{!md58, !md9, !md10, !md58, !md50, !md11, !md12, !md34, !md14, !md15}
!md89 = !{!md59, !md19, !md10, !md50, !md50, !md26, !md21, !md50, !md22, !md55, !md23, !md55, !md12, !md35, !md14, !md28}
!md90 = !{!md51, !md32, !md12, !md30, !md14, !md33}
!md91 = !{!md88, !md81, !md82, !md89, !md90}
!md92 = !{!md61, !md79, !md91}
!md93 = !{!md36}
!md94 = !{!md37}
!md95 = !{!md38}
!md96 = !{!md39, !md62}
!md97 = !{!md39, !md63}
!md98 = !{!md39, !md64}
!md99 = !{!md39, !md65}
!md100 = !{!md39, !md66}
!md101 = !{!md39, !md67}
!md102 = !{!md39, !md68}
!md103 = !{!md40}
!md104 = !{!md48, !md55, !md58}
!md105 = !{!md41, !md51, !md58, !md58}
!md106 = !{!md43}
!md107 = !{!md42, !md106, !md69}
!md108 = !{!md107, !md107, !md69}
!"llvm.module.flags" = !{!md70, !md71, !md72, !md73, !md74, !md75, !md76, !md77, !md78}
!"air.kernel" = !{!md87, !md92}
!"air.compile_options" = !{!md93, !md94, !md95}
!"air.sampler_states" = !{!md96, !md97, !md98, !md99, !md100, !md101, !md102}
!"llvm.ident" = !{!md103}
!"air.version" = !{!md104}
!"air.language_version" = !{!md105}
