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 <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(1), ptr addrspace(1))
%t8 = type <2 x i32> (<2 x float>)
%t10 = type void (i32, ptr addrspace(1))
%t12 = type <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(2))
%t13 = type <4 x float> (<4 x float>, <4 x float>, ptr addrspace(1))
%t14 = type i32 (float)
%t15 = type i32 (ptr addrspace(1))
%t16 = type ptr addrspace(2) ()
%t18 = type { <4 x float>, i8 }
%t19 = type %t18 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t20 = type void (ptr addrspace(1), <2 x i32>, <4 x float>, i32, i32)
%t22 = type [2 x i32]
%t24 = type { ptr addrspace(1) } ; "struct.Targets"
c13 = %t22 [27, 0]
c25 = <2 x i32> [0, 1]
c28 = <4 x float> [0x3E800000, 0x3E800000, 0x3E800000, 0x3E800000]
c31 = <4 x float> [0x3F000000, 0x3F000000, 0x3F000000, 0x3F000000]

define %t4 @f0 "rog_texture_coherent" "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( nocapture "air-buffer-no-alias"="" ) %a3( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
  %i1 = tail call <2 x i32> @f1 [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 = shl i32 %i2, i32 3
  %i4 = extractelement %i1, i64 0
  %i5 = add i32 %i3, %i4
  %i6 = tail call ptr addrspace(2) @f7 [air Sampler(GetReadSampler)]()
  %i7 = tail call %t18 @f8 [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 })](%a1, %i6, %i1, <2 x i32> zeroinitializer, i32 0, i32 3) arg0( Ref nocapture )
  %i8 = extractvalue <4 x float> %i7, 0
  %i9 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, <4 x float> c28
  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 })](%a1, %i1, %i9, i32 0, i32 3) arg0( nocapture )
  %i11 = zext %i5 to i64
  %i12 = getelementptr inbounds float, %a2, %i11
  %i13 = load float, %i12, align 4
  %i14 = fadd reassoc nnan ninf nsz arcp contract afn float %i13, float 0x3F800000
  store %i14, %i12, align 4
  %i16 = getelementptr inbounds i32, %a3, %i11
  tail call void @f2 [air Coherent(Coherent { kind: Store, coherence: Device, volatile: false, ty: NumTy { elem: I32, lanes: 1 }, space: Device })](i32 1, %i16) arg1( align 4 dereferenceable(4) Mod nocapture )
  ret %i9
}

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

declare %t10 @f2 "air.store.device_coherent.i32.p1i32" memory(ModRef, NoModRef, NoModRef) %a1( Mod nocapture )

define %t12 @f3 "rog_texture_pointer" "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( align 8 dereferenceable(8) 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> @f1 [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 = shl i32 %i2, i32 3
  %i4 = extractelement %i1, i64 0
  %i5 = add i32 %i3, %i4
  %i6 = tail call ptr addrspace(2) @f7 [air Sampler(GetReadSampler)]()
  %i7 = tail call %t18 @f8 [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 })](%a1, %i6, %i1, <2 x i32> zeroinitializer, i32 0, i32 3) arg0( Ref nocapture )
  %i8 = extractvalue <4 x float> %i7, 0
  %i9 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i8, <4 x float> c28
  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 })](%a1, %i1, %i9, i32 0, i32 3) arg0( nocapture )
  %i11 = getelementptr inbounds %t24, %a2, i64 0, i32 0
  %i12 = load ptr addrspace(1), %i11, align 8
  %i13 = zext %i5 to i64
  %i14 = getelementptr inbounds i32, %i12, %i13
  %i15 = load i32, %i14, align 4
  %i16 = mul i32 %i15, i32 3
  %i17 = add i32 %i16, i32 1
  store %i17, %i14, align 4
  ret %i9
}

define %t13 @f4 "fetch_coherent" memory(ModRef, 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" %a2( nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = extractelement %a0, i64 1
  %i1 = tail call i32 @f5 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 1 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 1 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
  %i2 = shl i32 %i1, i32 3
  %i3 = extractelement %a0, i64 0
  %i4 = tail call i32 @f5 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 1 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 1 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i3)
  %i5 = add i32 %i2, %i4
  %i6 = zext %i5 to i64
  %i7 = getelementptr inbounds i32, %a2, %i6
  %i8 = tail call i32 @f6 [air Coherent(Coherent { kind: Load, coherence: Device, volatile: false, ty: NumTy { elem: I32, lanes: 1 }, space: Device })](%i7) arg0( align 4 dereferenceable(4) Ref nocapture )
  %i9 = add i32 %i8, i32 1
  tail call void @f2 [air Coherent(Coherent { kind: Store, coherence: Device, volatile: false, ty: NumTy { elem: I32, lanes: 1 }, space: Device })](%i9, %i7) arg1( align 4 dereferenceable(4) Mod nocapture )
  %i11 = fmul reassoc nnan ninf nsz arcp contract afn <4 x float> %a1, <4 x float> c31
  %i12 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i11, <4 x float> c28
  ret %i12
}

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

declare %t15 @f6 "air.load.device_coherent.i32.p1i32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t16 @f7 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

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

declare %t20 @f9 "air.write_texture_2d.v4f32" 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.render_target"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.position"
!md13 = !"air.center"
!md14 = !"air.no_perspective"
!md15 = !"air.arg_name"
!md16 = !"pos"
!md17 = !"air.texture"
!md18 = !"air.location_index"
!md19 = !"air.read_write"
!md20 = !"air.raster_order_group"
!md21 = !"texture2d<float, read_write>"
!md22 = !"t"
!md23 = !"air.buffer"
!md24 = !"air.address_space"
!md25 = !"air.arg_type_size"
!md26 = !"air.arg_type_align_size"
!md27 = !"float"
!md28 = !"acc"
!md29 = !"uint"
!md30 = !"log"
!md31 = !"air.indirect_buffer"
!md32 = !"air.buffer_size"
!md33 = !"air.read"
!md34 = !"air.struct_type_info"
!md35 = !"air.indirect_argument"
!md36 = !"Targets"
!md37 = !"targets"
!md38 = !"dst"
!md39 = !"air.compile.denorms_disable"
!md40 = !"air.compile.fast_math_enable"
!md41 = !"air.compile.framebuffer_fetch_enable"
!md42 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md43 = !"Metal"
!md44 = !"air-alias-scope-textures"
!md45 = !"air-alias-scope-arg(2)"
!md46 = !"omnipotent char"
!md47 = !"Simple C++ TBAA"
!md48 = i32 2
!md49 = %t22 c13
!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 = ptr addrspace(0) @f3
!md61 = ptr addrspace(0) @f4
!md62 = i64 0
!md63 = !{!md48, !md0, !md49}
!md64 = !{!md50, !md1, !md51}
!md65 = !{!md52, !md2, !md48}
!md66 = !{!md52, !md3, !md53}
!md67 = !{!md52, !md4, !md53}
!md68 = !{!md52, !md5, !md53}
!md69 = !{!md52, !md6, !md54}
!md70 = !{!md52, !md7, !md55}
!md71 = !{!md52, !md8, !md56}
!md72 = !{!md9, !md58, !md58, !md10, !md11}
!md73 = !{!md72}
!md74 = !{!md58, !md12, !md13, !md14, !md10, !md11, !md15, !md16}
!md75 = !{!md50, !md17, !md18, !md58, !md50, !md19, !md20, !md58, !md10, !md21, !md15, !md22}
!md76 = !{!md48, !md23, !md18, !md58, !md50, !md19, !md24, !md50, !md20, !md58, !md25, !md51, !md26, !md51, !md10, !md27, !md15, !md28}
!md77 = !{!md59, !md23, !md18, !md50, !md50, !md19, !md24, !md50, !md25, !md51, !md26, !md51, !md10, !md29, !md15, !md30}
!md78 = !{!md74, !md75, !md76, !md77}
!md79 = !{!md57, !md73, !md78}
!md80 = !{!md58, !md23, !md18, !md58, !md50, !md19, !md24, !md50, !md20, !md58, !md25, !md51, !md26, !md51, !md10, !md29, !md15, !md28}
!md81 = !{!md58, !md55, !md58, !md29, !md28, !md35, !md80}
!md82 = !{!md48, !md31, !md32, !md55, !md18, !md58, !md50, !md33, !md24, !md48, !md34, !md81, !md25, !md55, !md26, !md55, !md10, !md36, !md15, !md37}
!md83 = !{!md74, !md75, !md82}
!md84 = !{!md60, !md73, !md83}
!md85 = !{!md50, !md9, !md58, !md10, !md11, !md15, !md38}
!md86 = !{!md48, !md23, !md18, !md58, !md50, !md19, !md24, !md50, !md25, !md51, !md26, !md51, !md10, !md29, !md15, !md30}
!md87 = !{!md74, !md85, !md86}
!md88 = !{!md61, !md73, !md87}
!md89 = !{!md39}
!md90 = !{!md40}
!md91 = !{!md41}
!md92 = !{!md42}
!md93 = !{!md48, !md55, !md58}
!md94 = !{!md43, !md51, !md58, !md58}
!md95 = !{!md47}
!md96 = !{!md46, !md95, !md62}
!"llvm.module.flags" = !{!md63, !md64, !md65, !md66, !md67, !md68, !md69, !md70, !md71}
!"air.fragment" = !{!md79, !md84, !md88}
!"air.compile_options" = !{!md89, !md90, !md91}
!"llvm.ident" = !{!md92}
!"air.version" = !{!md93}
!"air.language_version" = !{!md94}
