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: [] }
%t4 = type { i32, ptr addrspace(0), ptr addrspace(0) }
%t5 = type [1 x %t4]
%t9 = type <{ <4 x float>, <2 x float> }>
%t10 = type %t9 (<4 x float>, <2 x float>)
%t14 = type <4 x half> (<4 x float>, <2 x float>, ptr addrspace(1), ptr addrspace(2))
%t16 = type <3 x half> (<3 x half>)
%t17 = type float (<2 x float>, <2 x float>)
%t18 = type { <4 x half>, i8 }
%t21 = type %t18 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t23 = type void ()
%t25 = type [2 x i32]
c20 = %t4 [65535, @f5, zeroinitializer]
c21 = %t5 [c20]
c22 = %t25 [27, 2]
c43 = <3 x i32> [0, 1, 2]
c44 = <3 x half> [0x3C00, 0x3C00, 0x3C00]
c47 = <4 x i32> [0, 1, 2, poison]
c48 = <4 x i32> [0, 1, 2, 7]
c49 = <2 x float> [0xBF000000, 0xBF000000]
@g0 "_ZL8dic_tone" = internal addrspace(2) global i8 undef, align 1
@g1 "_Z8dic_tone.MTL_FC_INIT_0_b" = linkonce_odr externally_initialized addrspace(2) constant i8 undef, align 1, section air.fc_initializer
@g2 "_ZL9dic_gamma" = internal addrspace(2) global i8 undef, align 1
@g3 "_Z9dic_gamma.MTL_FC_INIT_1_b" = linkonce_odr externally_initialized addrspace(2) constant i8 undef, align 1, section air.fc_initializer
@g4 "_ZL10dic_invert" = internal addrspace(2) global i8 undef, align 1
@g5 "_Z10dic_invert.MTL_FC_INIT_3_b" = linkonce_odr externally_initialized addrspace(2) constant i8 undef, align 1, section air.fc_initializer
@g6 "_ZL12dic_vignette" = internal addrspace(2) global i8 undef, align 1
@g7 "_Z12dic_vignette.MTL_FC_INIT_4_b" = linkonce_odr externally_initialized addrspace(2) constant i8 undef, align 1, section air.fc_initializer
@g8 "llvm.global_ctors" = appending addrspace(0) global %t5 c21

define %t10 @f0 "dic_full_screen" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = insertvalue %t9 undef %a0, 0
  %i1 = insertvalue %i0 %a1, 1
  ret %i1
}

define %t14 @f1 "dic_post_process" convergent memory(Ref, Ref, Ref) "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 ) %a3( Ref nocapture ) {
bb0:
  %i0 = tail call %t18 @f4 [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 })](%a2, %a3, %a1, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i1 = extractvalue <4 x half> %i0, 0
  %i2 = load i8, ptr addrspace(2) @g0, align 1, !range [(0, 2)]
  %i3 = icmp eq %i2, i8 0
  %i4 = shufflevector <3 x half> %i1, <4 x half> poison, <0, 1, 2>
  %i5 = fadd reassoc nnan ninf nsz arcp contract afn <3 x half> %i4, <3 x half> c44
  %i6 = fdiv reassoc nnan ninf nsz arcp contract afn <3 x half> %i4, %i5
  %i7 = shufflevector <4 x half> %i6, <3 x half> poison, <0, 1, 2, poison>
  %i8 = select <4 x half> %i3, %i1, %i7
  %i9 = shufflevector <4 x half> %i8, %i1, <0, 1, 2, 7>
  %i10 = load i8, ptr addrspace(2) @g2, align 1, !range [(0, 2)]
  %i11 = icmp eq %i10, i8 0
  br %i11, bb2, bb1
bb1:
  %i13 = shufflevector <3 x half> %i8, <4 x half> poison, <0, 1, 2>
  %i14 = tail call reassoc nnan ninf nsz arcp contract afn <3 x half> @f2 [air Math(Math { f: Sqrt, precision: Precise, ty: NumTy { elem: F16, lanes: 3 } })](%i13)
  %i15 = shufflevector <4 x half> %i14, <3 x half> poison, <0, 1, 2, poison>
  %i16 = shufflevector <4 x half> %i15, %i9, <0, 1, 2, 7>
  br bb2
bb2:
  %i18 = phi <4 x half> [%i16, bb1], [%i9, bb0]
  %i19 = load i8, ptr addrspace(2) @g4, align 1, !range [(0, 2)]
  %i20 = icmp eq %i19, i8 0
  %i21 = shufflevector <3 x half> %i18, <4 x half> poison, <0, 1, 2>
  %i22 = fsub reassoc nnan ninf nsz arcp contract afn <3 x half> <3 x half> c44, %i21
  %i23 = shufflevector <4 x half> %i22, <3 x half> poison, <0, 1, 2, poison>
  %i24 = select <4 x half> %i20, %i18, %i23
  %i25 = shufflevector <4 x half> %i24, %i18, <0, 1, 2, 7>
  %i26 = load i8, ptr addrspace(2) @g6, align 1, !range [(0, 2)]
  %i27 = icmp eq %i26, i8 0
  br %i27, bb4, bb3
bb3:
  %i29 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %a1, <2 x float> c49
  %i30 = tail call reassoc nnan ninf nsz arcp contract afn float @f3 [air Math(Math { f: Dot, precision: Precise, ty: NumTy { elem: F32, lanes: 2 } })](%i29, %i29)
  %i31 = fsub reassoc nnan ninf nsz arcp contract afn float float 0x3F800000, %i30
  %i32 = fptrunc %i31 to half
  %i33 = insertelement <3 x half> poison, %i32, i64 0
  %i34 = shufflevector <3 x half> %i33, <3 x half> poison, <0, 0, 0>
  %i35 = shufflevector <3 x half> %i24, <4 x half> poison, <0, 1, 2>
  %i36 = fmul reassoc nnan ninf nsz arcp contract afn <3 x half> %i34, %i35
  %i37 = shufflevector <4 x half> %i36, <3 x half> poison, <0, 1, 2, poison>
  %i38 = shufflevector <4 x half> %i37, %i25, <0, 1, 2, 7>
  br bb4
bb4:
  %i40 = phi <4 x half> [%i38, bb3], [%i25, bb2]
  ret %i40
}

declare %t16 @f2 "air.sqrt.v3f16" memory(NoModRef, NoModRef, NoModRef)

declare %t17 @f3 "air.dot.v2f32" memory(NoModRef, NoModRef, NoModRef)

declare %t21 @f4 "air.sample_texture_2d.v4f16" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

define internal %t23 @f5 "_GLOBAL__sub_I__" memory(Mod, Mod, Mod) "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", section air.static_init {
bb0:
  %i0 = load i8, ptr addrspace(2) @g1, align 1, !range [(0, 2)]
  store %i0, ptr addrspace(2) @g0, align 1
  %i2 = load i8, ptr addrspace(2) @g3, align 1, !range [(0, 2)]
  store %i2, ptr addrspace(2) @g2, align 1
  %i4 = load i8, ptr addrspace(2) @g5, align 1, !range [(0, 2)]
  store %i4, ptr addrspace(2) @g4, align 1
  %i6 = load i8, ptr addrspace(2) @g7, align 1, !range [(0, 2)]
  store %i6, ptr addrspace(2) @g6, align 1
  ret void
}
!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_output"
!md15 = !"generated(2uvDv2_f)"
!md16 = !"float2"
!md17 = !"uv"
!md18 = !"air.vertex_input"
!md19 = !"air.location_index"
!md20 = !"air.render_target"
!md21 = !"half4"
!md22 = !"air.center"
!md23 = !"air.no_perspective"
!md24 = !"air.arg_unused"
!md25 = !"air.fragment_input"
!md26 = !"air.perspective"
!md27 = !"air.texture"
!md28 = !"air.sample"
!md29 = !"texture2d<half, sample>"
!md30 = !"scene"
!md31 = !"air.sampler"
!md32 = !"sampler"
!md33 = !"linear"
!md34 = !"air.compile.denorms_disable"
!md35 = !"air.compile.fast_math_enable"
!md36 = !"air.compile.framebuffer_fetch_enable"
!md37 = !"bool"
!md38 = !"dic_tone"
!md39 = !"dic_gamma"
!md40 = !"dic_invert"
!md41 = !"dic_vignette"
!md42 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md43 = !"Metal"
!md44 = !"omnipotent char"
!md45 = !"Simple C++ TBAA"
!md46 = i32 2
!md47 = %t25 c22
!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) @f1
!md58 = i32 3
!md59 = ptr addrspace(2) @g1
!md60 = ptr addrspace(2) @g3
!md61 = ptr addrspace(2) @g5
!md62 = ptr addrspace(2) @g7
!md63 = i64 0
!md64 = i8 0
!md65 = i8 2
!md66 = !{!md46, !md0, !md47}
!md67 = !{!md48, !md1, !md49}
!md68 = !{!md50, !md2, !md46}
!md69 = !{!md50, !md3, !md51}
!md70 = !{!md50, !md4, !md51}
!md71 = !{!md50, !md5, !md51}
!md72 = !{!md50, !md6, !md52}
!md73 = !{!md50, !md7, !md53}
!md74 = !{!md50, !md8, !md54}
!md75 = !{!md9, !md10, !md11, !md12, !md13}
!md76 = !{!md14, !md15, !md10, !md16, !md12, !md17}
!md77 = !{!md75, !md76}
!md78 = !{!md56, !md18, !md19, !md56, !md48, !md10, !md11, !md12, !md13}
!md79 = !{!md48, !md18, !md19, !md48, !md48, !md10, !md16, !md12, !md17}
!md80 = !{!md78, !md79}
!md81 = !{!md55, !md77, !md80}
!md82 = !{!md20, !md56, !md56, !md10, !md21}
!md83 = !{!md82}
!md84 = !{!md56, !md9, !md22, !md23, !md10, !md11, !md12, !md13, !md24}
!md85 = !{!md48, !md25, !md15, !md22, !md26, !md10, !md16, !md12, !md17}
!md86 = !{!md46, !md27, !md19, !md56, !md48, !md28, !md10, !md29, !md12, !md30}
!md87 = !{!md58, !md31, !md19, !md56, !md48, !md10, !md32, !md12, !md33}
!md88 = !{!md84, !md85, !md86, !md87}
!md89 = !{!md57, !md83, !md88}
!md90 = !{!md34}
!md91 = !{!md35}
!md92 = !{!md36}
!md93 = !{!md59, !md37, !md38, !md56}
!md94 = !{!md60, !md37, !md39, !md48}
!md95 = !{!md61, !md37, !md40, !md58}
!md96 = !{!md62, !md37, !md41, !md49}
!md97 = !{!md42}
!md98 = !{!md46, !md53, !md56}
!md99 = !{!md43, !md49, !md56, !md56}
!md100 = !{!md45}
!md101 = !{!md44, !md100, !md63}
!md102 = !{!md37, !md101, !md63}
!md103 = !{!md102, !md102, !md63}
!md104 = !{!md64, !md65}
!"llvm.module.flags" = !{!md66, !md67, !md68, !md69, !md70, !md71, !md72, !md73, !md74}
!"air.vertex" = !{!md81}
!"air.fragment" = !{!md89}
!"air.compile_options" = !{!md90, !md91, !md92}
!"air.function_constants" = !{!md93, !md94, !md95, !md96}
!"llvm.ident" = !{!md97}
!"air.version" = !{!md98}
!"air.language_version" = !{!md99}
