	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_store_raw_structured
_shader_glsl_store_raw_structured:      ## @shader_glsl_store_raw_structured
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	16(%rax), %rax
	movl	24(%rax), %edi
	callq	_shader_glsl_get_prefix
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	movq	16(%rax), %rbx
	movq	(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r14
	movq	16(%r13), %rax
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movl	(%rax), %r12d
	movq	_WINED3DSPR_GROUPSHAREDMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.1:
	cmpl	(%rbx), %r12d
	jae	LBB0_2
## %bb.4:
	leaq	(,%r12,4), %rax
	addq	16(%rbx), %rax
	jmp	LBB0_8
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jae	LBB0_6
## %bb.7:
	leaq	(,%r12,4), %rax
	addq	8(%rbx), %rax
LBB0_8:
	movl	(%rax), %r15d
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	(%r14), %edi
	callq	_string_buffer_get
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	_WINED3DSIH_STORE_STRUCTURED@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	8(%r13), %rsi
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rcx
	movq	%r13, %rdi
	callq	_shader_glsl_add_src_param
	movslq	-96(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_shader_addline
	movl	$1, %r14d
LBB0_10:
	movl	%r14d, %esi
	incl	%r14d
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-88(%rbp), %rcx
	movq	%r13, %rdi
	callq	_shader_glsl_add_src_param
	movslq	-88(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	16(%r13), %rax
	movl	(%r15), %edx
	andl	(%rax), %edx
	je	LBB0_12
## %bb.11:
	leaq	(,%r14,4), %rsi
	addq	8(%r13), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_shader_glsl_add_src_param
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	movl	(%rbx), %r8d
	movl	-48(%rbp), %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rcx, %rsi
	movl	%eax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_12:
	movq	16(%r13), %rax
	movl	(%r15), %edx
	addl	%edx, %edx
	andl	(%rax), %edx
	je	LBB0_14
## %bb.13:
	leaq	(,%r14,4), %rsi
	addq	8(%r13), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_shader_glsl_add_src_param
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	movl	(%rbx), %r8d
	movl	-48(%rbp), %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rcx, %rsi
	movl	%eax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	$1, %r9d
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_14:
	movq	16(%r13), %rax
	movl	(%r15), %edx
	shll	$2, %edx
	andl	(%rax), %edx
	je	LBB0_16
## %bb.15:
	leaq	(,%r14,4), %rsi
	addq	8(%r13), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_shader_glsl_add_src_param
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	movl	(%rbx), %r8d
	movl	-48(%rbp), %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rcx, %rsi
	movl	%eax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	$2, %r9d
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_16:
	movq	16(%r13), %rax
	movl	(%r15), %edx
	shll	$3, %edx
	andl	(%rax), %edx
	je	LBB0_18
## %bb.17:
	shlq	$2, %r14
	addq	8(%r13), %r14
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_shader_glsl_add_src_param
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	movl	(%rbx), %r8d
	movl	-48(%rbp), %eax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rcx, %rsi
	movl	%eax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_18:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_string_buffer_release
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movl	%r12d, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSPR_GROUPSHAREDMEM,8,3  ## @WINED3DSPR_GROUPSHAREDMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid TGSM index %u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid UAV index %u.\n"

	.comm	_WINED3DSIH_STORE_STRUCTURED,8,3 ## @WINED3DSIH_STORE_STRUCTURED
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
L_.str.2:                               ## @.str.2
	.asciz	"%s * %u + "

L_.str.3:                               ## @.str.3
	.asciz	"%s / 4"

L_.str.4:                               ## @.str.4
	.asciz	"%s_g%u[%s + %u] = %s;\n"

L_.str.5:                               ## @.str.5
	.asciz	"imageStore(%s_image%u, %s + %u, uvec4(%s, 0, 0, 0));\n"

	.no_dead_strip	_shader_glsl_store_raw_structured
.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_raw_structured
_shader_glsl_store_raw_structured:      ; @shader_glsl_store_raw_structured
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, #24]
	bl	_shader_glsl_get_prefix
	mov	x21, x0
	ldp	x9, x8, [x22, #16]
	ldp	x24, x23, [x8, #8]
	ldr	x27, [x8]
	ldp	x25, x8, [x9, #8]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _WINED3DSPR_GROUPSHAREDMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DSPR_GROUPSHAREDMEM@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	cmp	x25, x26
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x23]
	cmp	w20, w8
	b.hs	LBB0_7
; %bb.2:
	ldr	x8, [x23, #16]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x23, #8]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.hs	LBB0_8
; %bb.4:
	ldr	x8, [x23, #8]
LBB0_5:
	add	x8, x8, x20, lsl #2
	ldr	w28, [x8]
	ldr	w0, [x24]
	bl	_string_buffer_get
	mov	x23, x0
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _WINED3DSIH_STORE_STRUCTURED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DSIH_STORE_STRUCTURED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x19, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh7:
	ldr	x19, [x19, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
	cmp	x8, x9
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	b.ne	LBB0_10
; %bb.6:
	ldr	x1, [x22, #8]
	ldr	w2, [x19]
	add	x3, sp, #56
	mov	x0, x22
	bl	_shader_glsl_add_src_param
	ldrsw	x2, [sp, #56]
	str	x28, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_shader_addline
	mov	w8, #1
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_ERR
LBB0_10:
	mov	w8, #0
LBB0_11:
	ldr	x9, [x22, #8]
	add	w28, w8, #1
	add	x1, x9, w8, uxtw #2
	ldr	w2, [x19]
	add	x3, sp, #48
	mov	x0, x22
	bl	_shader_glsl_add_src_param
	ldrsw	x2, [sp, #48]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_shader_addline
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	ldr	w9, [x19]
Lloh16:
	adrp	x24, l_.str.5@PAGE
Lloh17:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh18:
	adrp	x19, l_.str.4@PAGE
Lloh19:
	add	x19, x19, l_.str.4@PAGEOFF
	ands	w2, w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x22, #8]
	add	x1, x8, x28, lsl #2
	add	x3, sp, #40
	mov	x0, x22
	bl	_shader_glsl_add_src_param
	cmp	x25, x26
	csel	x1, x19, x24, eq
	ldr	w8, [x23]
	ldr	w9, [sp, #40]
	stp	xzr, x9, [sp, #16]
	stp	x20, x8, [sp]
	mov	x0, x27
	mov	x2, x21
	bl	_shader_addline
LBB0_13:
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ands	w2, w8, w9, lsl #1
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x22, #8]
	add	x1, x8, x28, lsl #2
	add	x3, sp, #40
	mov	x0, x22
	bl	_shader_glsl_add_src_param
	cmp	x25, x26
Lloh23:
	adrp	x8, l_.str.5@PAGE
Lloh24:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh25:
	adrp	x9, l_.str.4@PAGE
Lloh26:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x1, x9, x8, eq
	ldr	w8, [x23]
	ldr	w9, [sp, #40]
	mov	w10, #1
	stp	x10, x9, [sp, #16]
	stp	x20, x8, [sp]
	mov	x0, x27
	mov	x2, x21
	bl	_shader_addline
LBB0_15:
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh28:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ands	w2, w8, w9, lsl #2
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x22, #8]
	add	x1, x8, x28, lsl #2
	add	x3, sp, #40
	mov	x0, x22
	bl	_shader_glsl_add_src_param
	cmp	x25, x26
Lloh30:
	adrp	x8, l_.str.5@PAGE
Lloh31:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh32:
	adrp	x9, l_.str.4@PAGE
Lloh33:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x1, x9, x8, eq
	ldr	w8, [x23]
	ldr	w9, [sp, #40]
	mov	w10, #2
	stp	x10, x9, [sp, #16]
	stp	x20, x8, [sp]
	mov	x0, x27
	mov	x2, x21
	bl	_shader_addline
LBB0_17:
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	ands	w2, w8, w9, lsl #3
	b.eq	LBB0_19
; %bb.18:
	ldr	x8, [x22, #8]
	add	x1, x8, x28, lsl #2
	add	x3, sp, #40
	mov	x0, x22
	bl	_shader_glsl_add_src_param
	cmp	x25, x26
Lloh37:
	adrp	x8, l_.str.5@PAGE
Lloh38:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh39:
	adrp	x9, l_.str.4@PAGE
Lloh40:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x1, x9, x8, eq
	ldr	w8, [x23]
	ldr	w9, [sp, #40]
	mov	w10, #3
	stp	x10, x9, [sp, #16]
	stp	x20, x8, [sp]
	mov	x0, x27
	mov	x2, x21
	bl	_shader_addline
LBB0_19:
	ldr	w0, [x24]
	mov	x1, x23
	bl	_string_buffer_release
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSPR_GROUPSHAREDMEM,8,3  ; @WINED3DSPR_GROUPSHAREDMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid TGSM index %u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid UAV index %u.\n"

	.comm	_WINED3DSIH_STORE_STRUCTURED,8,3 ; @WINED3DSIH_STORE_STRUCTURED
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
l_.str.2:                               ; @.str.2
	.asciz	"%s * %u + "

l_.str.3:                               ; @.str.3
	.asciz	"%s / 4"

l_.str.4:                               ; @.str.4
	.asciz	"%s_g%u[%s + %u] = %s;\n"

l_.str.5:                               ; @.str.5
	.asciz	"imageStore(%s_image%u, %s + %u, uvec4(%s, 0, 0, 0));\n"

	.no_dead_strip	_shader_glsl_store_raw_structured
.subsections_via_symbols
