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: [] }
%t3 = type <{ <4 x float> }>
%t5 = type %t3 (i32)
%t6 = type float (i32)
%t9 = type <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(1), ptr addrspace(2))
%t12 = type <2 x i32> (<2 x float>)
%t14 = type void (i32, ptr addrspace(1), ptr addrspace(1), ptr addrspace(2))
%t15 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32, i32)
%t18 = type void (ptr addrspace(1), <2 x i32>, <4 x half>, i32, i32)
%t20 = type [2 x i32]
c10 = %t20 [27, 2]
c25 = <2 x float> [0xBF800000, 0xBF800000]
c28 = <4 x i32> [0, 1, poison, poison]
c32 = <4 x float> [poison, poison, 0x0, 0x3F800000]
c33 = <4 x i32> [0, 1, 6, 7]
c36 = <2 x i32> [0, 1]

define %t5 @f0 "fpv_srgb_cover" memory(NoModRef, NoModRef, NoModRef) "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" {
bb0:
  %i0 = shl i32 %a0, i32 2
  %i1 = and i32 %i0, i32 4
  %i2 = 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 })](%i1)
  %i3 = insertelement <2 x float> undef, %i2, i64 0
  %i4 = shl i32 %a0, i32 1
  %i5 = and i32 %i4, i32 4
  %i6 = 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 })](%i5)
  %i7 = insertelement %i3, %i6, i64 1
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c25
  %i9 = shufflevector <4 x float> %i8, <2 x float> poison, <0, 1, poison, poison>
  %i10 = shufflevector <4 x float> %i9, <4 x float> c32, <0, 1, 6, 7>
  %i11 = insertvalue %t3 undef %i10, 0
  ret %i11
}

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

define %t9 @f2 "fpv_srgb_fragment_write" "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( Ref nocapture "air-buffer-no-alias"="" ) %a3( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
  %i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
  %i2 = extractelement %i1, i64 1
  %i3 = load i32, %a3, align 4
  %i4 = mul i32 %i2, %i3
  %i5 = extractelement %i1, i64 0
  %i6 = add i32 %i4, %i5
  %i7 = zext %i6 to i64
  %i8 = getelementptr inbounds <4 x float>, %a2, %i7
  %i9 = load <4 x float>, %i8, align 16
  tail call void @f6 [air Texture(Texture { op: Write, 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(Write), states_access: true, device_coherent: false })](%a1, %i1, %i9, i32 0, i32 2) arg0( nocapture )
  ret <4 x float> zeroinitializer
}

declare %t12 @f3 "air.convert.u.v2i32.f.v2f32" memory(NoModRef, NoModRef, NoModRef)

define %t9 @f4 "fpv_srgb_fragment_write_half" "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( Ref nocapture "air-buffer-no-alias"="" ) %a3( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
  %i1 = tail call <2 x i32> @f3 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
  %i2 = extractelement %i1, i64 1
  %i3 = load i32, %a3, align 4
  %i4 = mul i32 %i2, %i3
  %i5 = extractelement %i1, i64 0
  %i6 = add i32 %i4, %i5
  %i7 = zext %i6 to i64
  %i8 = getelementptr inbounds <4 x half>, %a2, %i7
  %i9 = load <4 x half>, %i8, align 8
  tail call void @f7 [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, %i1, %i9, i32 0, i32 2) arg0( nocapture )
  ret <4 x float> zeroinitializer
}

define %t14 @f5 "fpv_srgb_vertex_write" "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( Ref nocapture "air-buffer-no-alias"="" ) %a3( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a0 to i64
  %i1 = getelementptr inbounds <4 x float>, %a2, %i0
  %i2 = load <4 x float>, %i1, align 16
  %i3 = load i32, %a3, align 4
  %i4 = urem i32 %a0, %i3
  %i5 = insertelement <2 x i32> undef, %i4, i64 0
  %i6 = udiv i32 %a0, %i3
  %i7 = insertelement %i5, %i6, i64 1
  tail call void @f6 [air Texture(Texture { op: Write, 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(Write), states_access: true, device_coherent: false })](%a1, %i7, %i2, i32 0, i32 2) arg0( nocapture )
  ret void
}

declare %t15 @f6 "air.write_texture_2d.v4f32" memory(ModRef, NoModRef, NoModRef) %a0( nocapture )

declare %t18 @f7 "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.position"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.arg_name"
!md13 = !"position"
!md14 = !"air.vertex_id"
!md15 = !"uint"
!md16 = !"vid"
!md17 = !"air.texture"
!md18 = !"air.location_index"
!md19 = !"air.write"
!md20 = !"texture2d<float, write>"
!md21 = !"t"
!md22 = !"air.buffer"
!md23 = !"air.read"
!md24 = !"air.address_space"
!md25 = !"air.arg_type_size"
!md26 = !"air.arg_type_align_size"
!md27 = !"values"
!md28 = !"air.buffer_size"
!md29 = !"width"
!md30 = !"air.render_target"
!md31 = !"air.center"
!md32 = !"air.no_perspective"
!md33 = !"texture2d<half, write>"
!md34 = !"half4"
!md35 = !"air.compile.denorms_disable"
!md36 = !"air.compile.fast_math_enable"
!md37 = !"air.compile.framebuffer_fetch_enable"
!md38 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md39 = !"Metal"
!md40 = !"int"
!md41 = !"omnipotent char"
!md42 = !"Simple C++ TBAA"
!md43 = !"air-alias-scope-arg(3)"
!md44 = !"air-alias-scope-arg(2)"
!md45 = !"air-alias-scope-textures"
!md46 = i32 2
!md47 = %t20 c10
!md48 = i32 1
!md49 = i32 4
!md50 = i32 7
!md51 = i32 31
!md52 = i32 128
!md53 = i32 8
!md54 = i32 16
!md55 = ptr addrspace(0) @f0
!md56 = i32 0
!md57 = ptr addrspace(0) @f5
!md58 = i32 3
!md59 = ptr addrspace(0) @f2
!md60 = ptr addrspace(0) @f4
!md61 = i64 0
!md62 = !{!md46, !md0, !md47}
!md63 = !{!md48, !md1, !md49}
!md64 = !{!md50, !md2, !md46}
!md65 = !{!md50, !md3, !md51}
!md66 = !{!md50, !md4, !md51}
!md67 = !{!md50, !md5, !md51}
!md68 = !{!md50, !md6, !md52}
!md69 = !{!md50, !md7, !md53}
!md70 = !{!md50, !md8, !md54}
!md71 = !{!md9, !md10, !md11, !md12, !md13}
!md72 = !{!md71}
!md73 = !{!md56, !md14, !md10, !md15, !md12, !md16}
!md74 = !{!md73}
!md75 = !{!md55, !md72, !md74}
!md76 = !{}
!md77 = !{!md48, !md17, !md18, !md56, !md48, !md19, !md10, !md20, !md12, !md21}
!md78 = !{!md46, !md22, !md18, !md56, !md48, !md23, !md24, !md48, !md25, !md54, !md26, !md54, !md10, !md11, !md12, !md27}
!md79 = !{!md58, !md22, !md28, !md49, !md18, !md48, !md48, !md23, !md24, !md46, !md25, !md49, !md26, !md49, !md10, !md15, !md12, !md29}
!md80 = !{!md73, !md77, !md78, !md79}
!md81 = !{!md57, !md76, !md80}
!md82 = !{!md30, !md56, !md56, !md10, !md11}
!md83 = !{!md82}
!md84 = !{!md56, !md9, !md31, !md32, !md10, !md11, !md12, !md13}
!md85 = !{!md84, !md77, !md78, !md79}
!md86 = !{!md59, !md83, !md85}
!md87 = !{!md48, !md17, !md18, !md56, !md48, !md19, !md10, !md33, !md12, !md21}
!md88 = !{!md46, !md22, !md18, !md56, !md48, !md23, !md24, !md48, !md25, !md53, !md26, !md53, !md10, !md34, !md12, !md27}
!md89 = !{!md84, !md87, !md88, !md79}
!md90 = !{!md60, !md83, !md89}
!md91 = !{!md35}
!md92 = !{!md36}
!md93 = !{!md37}
!md94 = !{!md38}
!md95 = !{!md46, !md53, !md56}
!md96 = !{!md39, !md49, !md56, !md56}
!md97 = !{!md42}
!md98 = !{!md41, !md97, !md61}
!md99 = !{!md40, !md98, !md61}
!md100 = !{!md99, !md99, !md61}
!md101 = !{!md98, !md98, !md61}
!"llvm.module.flags" = !{!md62, !md63, !md64, !md65, !md66, !md67, !md68, !md69, !md70}
!"air.vertex" = !{!md75, !md81}
!"air.fragment" = !{!md86, !md90}
!"air.compile_options" = !{!md91, !md92, !md93}
!"llvm.ident" = !{!md94}
!"air.version" = !{!md95}
!"air.language_version" = !{!md96}
