	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_store_uav
_shader_glsl_store_uav:                 ## @shader_glsl_store_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), %r12
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	jae	LBB0_1
## %bb.3:
	movq	(%r12), %rax
	leaq	(%r14,%r14,2), %r13
	movl	(%rax,%r13,4), %r15d
	movq	_resource_type_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jae	LBB0_4
## %bb.5:
	movq	_resource_type_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%r15,2), %rcx
	movb	8(%rax,%rcx,4), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	movq	(%r12), %rax
	movl	4(%rax,%r13,4), %r15d
	notl	%edx
	movq	8(%rbx), %rsi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_shader_glsl_add_src_param
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	_WINED3DSP_WRITEMASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %r8d
	callq	_shader_glsl_add_src_param_ext
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	8(%r12), %edi
	callq	_shader_glsl_get_prefix
	movl	-56(%rbp), %r8d
	movl	-48(%rbp), %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_shader_addline
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
LBB0_2:
	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	_WINED3DSP_WRITEMASK_ALL,4,2    ## @WINED3DSP_WRITEMASK_ALL
L_.str.2:                               ## @.str.2
	.asciz	"imageStore(%s_image%u, %s, %s);\n"

	.no_dead_strip	_shader_glsl_store_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_store_uav
_shader_glsl_store_uav:                 ; @shader_glsl_store_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
	ldr	x8, [x0]
	ldr	x23, [x8, #8]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w19, [x8]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.hs	LBB0_3
; %bb.1:
	ldr	x8, [x23]
	mov	w9, #12
	mul	x9, x19, x9
	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.hs	LBB0_4
; %bb.2:
	ldr	x8, [x23]
	mov	w9, #12
	madd	x8, x19, x9, x8
	ldr	w22, [x8, #4]
	ldr	x8, [x24]
	madd	x8, x21, x9, x8
	ldr	w8, [x8, #8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w2, w8
	ldr	x1, [x20, #8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_shader_glsl_add_src_param
	ldr	x8, [x20, #8]
	add	x1, x8, #4
Lloh2:
	adrp	x8, _WINED3DSP_WRITEMASK_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x4, x22
	bl	_shader_glsl_add_src_param_ext
	ldr	x8, [x20]
	ldr	w20, [x8]
	ldr	w0, [x23, #8]
	bl	_shader_glsl_get_prefix
	mov	x2, x0
	ldr	w4, [sp, #8]
	ldr	w5, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	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_3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
LBB0_5:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.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	_WINED3DSP_WRITEMASK_ALL,4,2    ; @WINED3DSP_WRITEMASK_ALL
l_.str.2:                               ; @.str.2
	.asciz	"imageStore(%s_image%u, %s, %s);\n"

	.no_dead_strip	_shader_glsl_store_uav
.subsections_via_symbols
