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: [] }
%t6 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(2), <2 x i32>)
%t7 = type ptr addrspace(2) ()
%t11 = type { <4 x float>, i8 }
%t12 = type %t11 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t15 = type { <4 x half>, i8 }
%t16 = type %t15 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t17 = 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]
c14 = %t20 [27, 0]

define %t6 @f0 "fpv_srgb_read_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" %a0( Ref nocapture ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f6 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t11 @f7 [air Texture(Texture { op: Read, 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(ReadWrite), states_access: true })](%a0, %i0, %a3, <2 x i32> zeroinitializer, i32 0, i32 3) arg0( Ref nocapture )
  %i2 = extractvalue <4 x float> %i1, 0
  %i3 = extractelement %a3, i64 1
  %i4 = load i32, %a2, align 4
  %i5 = mul i32 %i4, %i3
  %i6 = extractelement %a3, i64 0
  %i7 = add i32 %i5, %i6
  %i8 = zext %i7 to i64
  %i9 = getelementptr inbounds <4 x float>, %a1, %i8
  store %i2, %i9, align 16
  ret void
}

define %t6 @f1 "fpv_srgb_read_write_half" "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 ) %a1( Mod nocapture "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call ptr addrspace(2) @f6 [air Sampler(GetReadSampler)]()
  %i1 = tail call %t15 @f8 [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(ReadWrite), states_access: true })](%a0, %i0, %a3, <2 x i32> zeroinitializer, i32 0, i32 3) arg0( Ref nocapture )
  %i2 = extractvalue <4 x half> %i1, 0
  %i3 = extractelement %a3, i64 1
  %i4 = load i32, %a2, align 4
  %i5 = mul i32 %i4, %i3
  %i6 = extractelement %a3, i64 0
  %i7 = add i32 %i5, %i6
  %i8 = zext %i7 to i64
  %i9 = getelementptr inbounds <4 x half>, %a1, %i8
  store %i2, %i9, align 8
  ret void
}

define %t6 @f2 "fpv_srgb_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" %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = extractelement %a3, i64 1
  %i1 = load i32, %a2, align 4
  %i2 = mul i32 %i1, %i0
  %i3 = extractelement %a3, i64 0
  %i4 = add i32 %i2, %i3
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x float>, %a1, %i5
  %i7 = load <4 x float>, %i6, align 16
  tail call void @f9 [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 })](%a0, %a3, %i7, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t6 @f3 "fpv_srgb_write_half" "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 "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = extractelement %a3, i64 1
  %i1 = load i32, %a2, align 4
  %i2 = mul i32 %i1, %i0
  %i3 = extractelement %a3, i64 0
  %i4 = add i32 %i2, %i3
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x half>, %a1, %i5
  %i7 = load <4 x half>, %i6, align 8
  tail call void @f10 [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 })](%a0, %a3, %i7, i32 0, i32 2) arg0( nocapture )
  ret void
}

define %t6 @f4 "fpv_srgb_update" "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 "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = extractelement %a3, i64 1
  %i1 = load i32, %a2, align 4
  %i2 = mul i32 %i1, %i0
  %i3 = extractelement %a3, i64 0
  %i4 = add i32 %i2, %i3
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x float>, %a1, %i5
  %i7 = load <4 x float>, %i6, align 16
  tail call void @f9 [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(ReadWrite), states_access: true })](%a0, %a3, %i7, i32 0, i32 3) arg0( nocapture )
  ret void
}

define %t6 @f5 "fpv_srgb_update_half" "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 "air-buffer-no-alias"="" ) %a2( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = extractelement %a3, i64 1
  %i1 = load i32, %a2, align 4
  %i2 = mul i32 %i1, %i0
  %i3 = extractelement %a3, i64 0
  %i4 = add i32 %i2, %i3
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x half>, %a1, %i5
  %i7 = load <4 x half>, %i6, align 8
  tail call void @f10 [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(ReadWrite), states_access: true })](%a0, %a3, %i7, i32 0, i32 3) arg0( nocapture )
  ret void
}

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

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

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

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

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