	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_ld_uav
_shader_glsl_ld_uav:                    ## @shader_glsl_ld_uav
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r14d
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	jae	LBB0_4
## %bb.1:
	movq	(%r13), %rax
	leaq	(%r14,%r14,2), %r12
	movl	(%rax,%r12,4), %r15d
	movq	_resource_type_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jb	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_ERR
	movq	_WINED3D_SHADER_RESOURCE_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	(%r13), %rax
	movl	4(%rax,%r12,4), %eax
	movq	_resource_type_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, %edx
	leaq	(%rdx,%rdx,2), %rdx
	movb	8(%rcx,%rdx,4), %cl
	movl	$-1, %r15d
	shll	%cl, %r15d
	notl	%r15d
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	callq	_shader_glsl_append_dst_ext
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-54(%rbp), %r12
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_shader_glsl_get_swizzle
	movq	8(%rbx), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_shader_glsl_add_src_param
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	8(%r13), %edi
	callq	_shader_glsl_get_prefix
	movl	-48(%rbp), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movq	%r12, %r9
	callq	_shader_addline
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid UAV index %u.\n"

	.comm	_resource_type_info,8,3         ## @resource_type_info
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected resource type %#x.\n"

	.comm	_WINED3D_SHADER_RESOURCE_TEXTURE_2D,4,2 ## @WINED3D_SHADER_RESOURCE_TEXTURE_2D
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"imageLoad(%s_image%u, %s)%s);\n"

	.no_dead_strip	_shader_glsl_ld_uav
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_ld_uav
_shader_glsl_ld_uav:                    ; @shader_glsl_ld_uav
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	x22, [x8, #8]
	ldr	x8, [x9, #8]
	ldr	w19, [x8]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.hs	LBB0_4
; %bb.1:
	ldr	x8, [x22]
	mov	w23, #12
	mul	x9, x19, x23
	ldr	w21, [x8, x9]
Lloh0:
	adrp	x24, _resource_type_info@GOTPAGE
Lloh1:
	ldr	x24, [x24, _resource_type_info@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.lo	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_ERR
Lloh4:
	adrp	x8, _WINED3D_SHADER_RESOURCE_TEXTURE_2D@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WINED3D_SHADER_RESOURCE_TEXTURE_2D@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
LBB0_3:
	ldr	x8, [x22]
	madd	x8, x19, x23, x8
	ldr	w3, [x8, #4]
	ldr	x8, [x24]
	umaddl	x8, w21, w23, x8
	ldr	w8, [x8, #8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w21, w8
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x2, [x20, #16]
	mov	x1, x20
	bl	_shader_glsl_append_dst_ext
	mov	x2, x0
	ldr	x8, [x20, #8]
	add	x0, x8, #8
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x3, sp, #2
	bl	_shader_glsl_get_swizzle
	ldr	x1, [x20, #8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_shader_glsl_add_src_param
	ldr	x8, [x20]
	ldr	w20, [x8]
	ldr	w0, [x22, #8]
	bl	_shader_glsl_get_prefix
	mov	x2, x0
	ldr	w4, [sp, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x5, sp, #2
	mov	x0, x20
	mov	x3, x19
	bl	_shader_addline
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid UAV index %u.\n"

	.comm	_resource_type_info,8,3         ; @resource_type_info
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected resource type %#x.\n"

	.comm	_WINED3D_SHADER_RESOURCE_TEXTURE_2D,4,2 ; @WINED3D_SHADER_RESOURCE_TEXTURE_2D
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"imageLoad(%s_image%u, %s)%s);\n"

	.no_dead_strip	_shader_glsl_ld_uav
.subsections_via_symbols
