	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_atomic
_shader_glsl_atomic:                    ## @shader_glsl_atomic
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	16(%rax), %r13
	movq	(%rax), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movq	8(%rax), %rax
	movl	(%rax), %ebx
	movq	_WINED3DSPR_GROUPSHAREDMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r15, %r12
	jne	LBB0_6
## %bb.1:
	cmpl	(%r13), %ebx
	jae	LBB0_2
## %bb.5:
	leaq	(,%rbx,4), %rax
	addq	16(%r13), %rax
	movq	_WINED3D_DATA_UINT@GOTPCREL(%rip), %rcx
	movl	$1, %r9d
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_11
LBB0_6:
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_7
## %bb.8:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rbx,4), %r12
	movl	(%rax,%r12,4), %ebx
	movq	_resource_type_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_9
## %bb.10:
	movq	8(%r13), %rax
	movq	(%r15), %rcx
	leaq	(%rbx,%rbx,4), %rdx
	movb	8(%rcx,%rdx,4), %cl
	movl	$-1, %r9d
	shll	%cl, %r9d
	leaq	(%rax,%r12,4), %rcx
	addq	$4, %rcx
	notl	%r9d
	leaq	12(%rax,%r12,4), %rax
	leaq	L_.str.4(%rip), %r8
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movl	(%r14), %esi
	leal	-128(%rsi), %edx
	cmpl	$18, %edx
	ja	LBB0_27
## %bb.12:
	movl	(%rcx), %edi
	movl	(%rax), %r10d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	jmpq	*%rcx
LBB0_25:
	cmpq	%r15, %r12
	leaq	L_.str.19(%rip), %rax
	leaq	L_.str.20(%rip), %rcx
	jmp	LBB0_29
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	movl	%ebx, %esi
LBB0_4:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_24:
	cmpq	%r15, %r12
	leaq	L_.str.14(%rip), %rax
	leaq	L_.str.15(%rip), %rcx
	jmp	LBB0_22
LBB0_21:
	cmpq	%r15, %r12
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.12(%rip), %rcx
LBB0_22:
	cmoveq	%rax, %rcx
	movq	_WINED3D_DATA_UINT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_30
## %bb.23:
	leaq	L_.str.18(%rip), %rdi
	jmp	LBB0_18
LBB0_20:
	cmpq	%r15, %r12
	leaq	L_.str.16(%rip), %rax
	leaq	L_.str.17(%rip), %rcx
	jmp	LBB0_29
LBB0_19:
	cmpq	%r15, %r12
	leaq	L_.str.14(%rip), %rax
	leaq	L_.str.15(%rip), %rcx
	jmp	LBB0_16
LBB0_15:
	cmpq	%r15, %r12
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.12(%rip), %rcx
LBB0_16:
	cmoveq	%rax, %rcx
	movq	_WINED3D_DATA_INT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_30
## %bb.17:
	leaq	L_.str.13(%rip), %rdi
LBB0_18:
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_14:
	cmpq	%r15, %r12
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.10(%rip), %rcx
	jmp	LBB0_29
LBB0_13:
	cmpq	%r15, %r12
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_29
LBB0_28:
	cmpq	%r15, %r12
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_29
LBB0_27:
	leaq	L_.str.23(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_4
LBB0_26:
	cmpq	%r15, %r12
	leaq	L_.str.21(%rip), %rax
	leaq	L_.str.22(%rip), %rcx
LBB0_29:
	cmoveq	%rax, %rcx
LBB0_30:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, -100(%rbp)                ## 4-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r10d, %ebx
	callq	_string_buffer_get
	movq	%rax, %r13
	movq	8(%r14), %rsi
	testl	%ebx, %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_32
## %bb.31:
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rcx
	movq	%r14, %rdi
	callq	_shader_glsl_add_src_param
	movq	8(%r14), %rsi
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_shader_glsl_add_src_param
	movl	-96(%rbp), %edx
	movl	-48(%rbp), %r8d
	leaq	L_.str.24(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_string_buffer_sprintf
	movq	-112(%rbp), %r13                ## 8-byte Reload
	cmpq	%r15, %r12
	je	LBB0_36
	jmp	LBB0_37
LBB0_32:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_shader_glsl_add_src_param
	movl	-48(%rbp), %edx
	leaq	L_.str.25(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_string_buffer_sprintf
	cmpq	%r15, %r12
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_34
## %bb.33:
	movq	8(%r13), %rax
	leaq	(%rcx,%rcx,4), %rcx
	movq	_WINED3D_VIEW_BUFFER_RAW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 16(%rax,%rcx,4)
	je	LBB0_37
LBB0_34:
	leaq	L_.str.26(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_shader_addline
	cmpq	%r15, %r12
	jne	LBB0_37
LBB0_36:
	leaq	L_.str.27(%rip), %r12
	jmp	LBB0_38
LBB0_37:
	leaq	L_.str.28(%rip), %r12
LBB0_38:
	movl	24(%r13), %edi
	callq	_shader_glsl_get_prefix
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ecx
	movl	%ecx, (%rsp)
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, %ecx
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_shader_addline
	movq	8(%r14), %rsi
	addq	$4, %rsi
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-88(%rbp), %rcx
	movq	%r14, %rdi
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_shader_glsl_add_src_param_ext
	movl	-88(%rbp), %edx
	leaq	L_.str.25(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	cmpl	$3, 4(%r14)
	jl	LBB0_40
## %bb.39:
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movl	(%r15), %edx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %r8d
	callq	_shader_glsl_add_src_param_ext
	movl	-80(%rbp), %edx
	leaq	L_.str.29(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_40:
	leaq	L_.str.31(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_string_buffer_release
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_21
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_26
	.long	L0_0_set_13
	.long	L0_0_set_28
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_21
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_28
	.end_data_region
                                        ## -- 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	"g"

	.comm	_WINED3D_DATA_UINT,4,2          ## @WINED3D_DATA_UINT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid UAV index %u.\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"image"

L_.str.5:                               ## @.str.5
	.asciz	"atomicAnd"

L_.str.6:                               ## @.str.6
	.asciz	"imageAtomicAnd"

L_.str.7:                               ## @.str.7
	.asciz	"atomicCompSwap"

L_.str.8:                               ## @.str.8
	.asciz	"imageAtomicCompSwap"

L_.str.9:                               ## @.str.9
	.asciz	"atomicAdd"

L_.str.10:                              ## @.str.10
	.asciz	"imageAtomicAdd"

L_.str.11:                              ## @.str.11
	.asciz	"atomicMax"

L_.str.12:                              ## @.str.12
	.asciz	"imageAtomicMax"

	.comm	_WINED3D_DATA_INT,4,2           ## @WINED3D_DATA_INT
L_.str.13:                              ## @.str.13
	.asciz	"Unhandled opcode %#x for unsigned integers.\n"

L_.str.14:                              ## @.str.14
	.asciz	"atomicMin"

L_.str.15:                              ## @.str.15
	.asciz	"imageAtomicMin"

L_.str.16:                              ## @.str.16
	.asciz	"atomicOr"

L_.str.17:                              ## @.str.17
	.asciz	"imageAtomicOr"

L_.str.18:                              ## @.str.18
	.asciz	"Unhandled opcode %#x for signed integers.\n"

L_.str.19:                              ## @.str.19
	.asciz	"atomicXor"

L_.str.20:                              ## @.str.20
	.asciz	"imageAtomicXor"

L_.str.21:                              ## @.str.21
	.asciz	"atomicExchange"

L_.str.22:                              ## @.str.22
	.asciz	"imageAtomicExchange"

L_.str.23:                              ## @.str.23
	.asciz	"Unhandled opcode %#x.\n"

	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ## @WINED3DSP_WRITEMASK_1
L_.str.24:                              ## @.str.24
	.asciz	"%s * %u + %s / 4"

L_.str.25:                              ## @.str.25
	.asciz	"%s"

	.comm	_WINED3D_VIEW_BUFFER_RAW,4,2    ## @WINED3D_VIEW_BUFFER_RAW
L_.str.26:                              ## @.str.26
	.asciz	"/ 4"

L_.str.27:                              ## @.str.27
	.asciz	"%s(%s_%s%u[%s], "

L_.str.28:                              ## @.str.28
	.asciz	"%s(%s_%s%u, %s, "

L_.str.29:                              ## @.str.29
	.asciz	", %s"

L_.str.31:                              ## @.str.31
	.asciz	");\n"

	.no_dead_strip	_shader_glsl_atomic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_atomic
_shader_glsl_atomic:                    ; @shader_glsl_atomic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x0
	ldp	x9, x8, [x0, #16]
	ldp	x25, x26, [x8, #8]
	ldr	x19, [x8]
	ldp	x27, x8, [x9]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _WINED3DSPR_GROUPSHAREDMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DSPR_GROUPSHAREDMEM@GOTPAGEOFF]
Lloh2:
	ldr	x28, [x8]
	cmp	x27, x28
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x26]
	cmp	w21, w8
	b.hs	LBB0_9
; %bb.2:
	ldr	x8, [x26, #16]
	add	x9, x8, x21, lsl #2
Lloh3:
	adrp	x8, _WINED3D_DATA_UINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_DATA_UINT@GOTPAGEOFF]
	mov	w22, #1
Lloh5:
	adrp	x12, l_.str.1@PAGE
Lloh6:
	add	x12, x12, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	x0, [x26, #8]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.hs	LBB0_10
; %bb.4:
	ldr	x8, [x26, #8]
	mov	w9, #20
	mul	x9, x21, x9
	ldr	w22, [x8, x9]
Lloh7:
	adrp	x23, _resource_type_info@GOTPAGE
Lloh8:
	ldr	x23, [x23, _resource_type_info@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.hs	LBB0_12
; %bb.5:
	ldr	x8, [x26, #8]
	mov	w9, #20
	madd	x10, x21, x9, x8
	add	x8, x10, #4
	ldr	x11, [x23]
	madd	x9, x22, x9, x11
	ldr	w9, [x9, #8]
	mov	w11, #-1
	lsl	w9, w11, w9
	mvn	w22, w9
	add	x9, x10, #12
Lloh9:
	adrp	x12, l_.str.4@PAGE
Lloh10:
	add	x12, x12, l_.str.4@PAGEOFF
LBB0_6:
	ldr	w1, [x20]
	sub	w10, w1, #128
	cmp	w10, #18
	b.hi	LBB0_28
; %bb.7:
	ldr	w13, [x8]
	ldr	w24, [x9]
Lloh11:
	adrp	x8, lJTI0_0@PAGE
Lloh12:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_8
	ldrb	w11, [x8, x10]
	add	x9, x9, x11, lsl #2
	str	w13, [sp, #76]                  ; 4-byte Folded Spill
	br	x9
LBB0_8:
	str	x12, [sp, #56]                  ; 8-byte Folded Spill
Lloh13:
	adrp	x8, l_.str.20@PAGE
Lloh14:
	add	x8, x8, l_.str.20@PAGEOFF
Lloh15:
	adrp	x9, l_.str.19@PAGE
Lloh16:
	add	x9, x9, l_.str.19@PAGEOFF
	b	LBB0_30
LBB0_9:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	mov	x1, x21
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
LBB0_13:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_ERR
LBB0_14:
Lloh23:
	adrp	x8, l_.str.15@PAGE
Lloh24:
	add	x8, x8, l_.str.15@PAGEOFF
Lloh25:
	adrp	x9, l_.str.14@PAGE
Lloh26:
	add	x9, x9, l_.str.14@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh27:
	adrp	x8, l_.str.12@PAGE
Lloh28:
	add	x8, x8, l_.str.12@PAGEOFF
Lloh29:
	adrp	x9, l_.str.11@PAGE
Lloh30:
	add	x9, x9, l_.str.11@PAGEOFF
LBB0_16:
	cmp	x27, x28
	csel	x9, x9, x8, eq
Lloh31:
	adrp	x8, _WINED3D_DATA_UINT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WINED3D_DATA_UINT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w13, w8
	b.eq	LBB0_22
; %bb.17:
Lloh34:
	adrp	x0, l_.str.18@PAGE
Lloh35:
	add	x0, x0, l_.str.18@PAGEOFF
	b	LBB0_27
LBB0_18:
	str	x12, [sp, #56]                  ; 8-byte Folded Spill
Lloh36:
	adrp	x8, l_.str.17@PAGE
Lloh37:
	add	x8, x8, l_.str.17@PAGEOFF
Lloh38:
	adrp	x9, l_.str.16@PAGE
Lloh39:
	add	x9, x9, l_.str.16@PAGEOFF
	b	LBB0_30
LBB0_19:
Lloh40:
	adrp	x8, l_.str.15@PAGE
Lloh41:
	add	x8, x8, l_.str.15@PAGEOFF
Lloh42:
	adrp	x9, l_.str.14@PAGE
Lloh43:
	add	x9, x9, l_.str.14@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh44:
	adrp	x8, l_.str.12@PAGE
Lloh45:
	add	x8, x8, l_.str.12@PAGEOFF
Lloh46:
	adrp	x9, l_.str.11@PAGE
Lloh47:
	add	x9, x9, l_.str.11@PAGEOFF
LBB0_21:
	cmp	x27, x28
	csel	x9, x9, x8, eq
Lloh48:
	adrp	x8, _WINED3D_DATA_INT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _WINED3D_DATA_INT@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w13, w8
	b.ne	LBB0_26
LBB0_22:
	stp	x9, x12, [sp, #48]              ; 16-byte Folded Spill
	b	LBB0_31
LBB0_23:
	str	x12, [sp, #56]                  ; 8-byte Folded Spill
Lloh51:
	adrp	x8, l_.str.10@PAGE
Lloh52:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh53:
	adrp	x9, l_.str.9@PAGE
Lloh54:
	add	x9, x9, l_.str.9@PAGEOFF
	b	LBB0_30
LBB0_24:
	str	x12, [sp, #56]                  ; 8-byte Folded Spill
Lloh55:
	adrp	x8, l_.str.8@PAGE
Lloh56:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh57:
	adrp	x9, l_.str.7@PAGE
Lloh58:
	add	x9, x9, l_.str.7@PAGEOFF
	b	LBB0_30
LBB0_25:
	str	x12, [sp, #56]                  ; 8-byte Folded Spill
Lloh59:
	adrp	x8, l_.str.6@PAGE
Lloh60:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh61:
	adrp	x9, l_.str.5@PAGE
Lloh62:
	add	x9, x9, l_.str.5@PAGEOFF
	b	LBB0_30
LBB0_26:
Lloh63:
	adrp	x0, l_.str.13@PAGE
Lloh64:
	add	x0, x0, l_.str.13@PAGEOFF
LBB0_27:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	b	_FIXME
LBB0_28:
Lloh65:
	adrp	x0, l_.str.23@PAGE
Lloh66:
	add	x0, x0, l_.str.23@PAGEOFF
	b	LBB0_13
LBB0_29:
	str	x12, [sp, #56]                  ; 8-byte Folded Spill
Lloh67:
	adrp	x8, l_.str.22@PAGE
Lloh68:
	add	x8, x8, l_.str.22@PAGEOFF
Lloh69:
	adrp	x9, l_.str.21@PAGE
Lloh70:
	add	x9, x9, l_.str.21@PAGEOFF
LBB0_30:
	cmp	x27, x28
	csel	x8, x9, x8, eq
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
LBB0_31:
	str	x25, [sp, #64]                  ; 8-byte Folded Spill
	ldr	w0, [x25]
	bl	_string_buffer_get
	mov	x23, x0
	ldr	x1, [x20, #8]
Lloh71:
	adrp	x8, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh72:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
	cbz	w24, LBB0_33
; %bb.32:
	mov	x25, x8
	ldr	w2, [x8]
	sub	x3, x29, #88
	mov	x0, x20
	bl	_shader_glsl_add_src_param
	ldr	x1, [x20, #8]
Lloh73:
	adrp	x8, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh74:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	add	x3, sp, #96
	mov	x0, x20
	bl	_shader_glsl_add_src_param
	ldur	w2, [x29, #-88]
	ldr	w8, [sp, #96]
	stp	x24, x8, [sp]
Lloh76:
	adrp	x1, l_.str.24@PAGE
Lloh77:
	add	x1, x1, l_.str.24@PAGEOFF
	mov	x0, x23
	bl	_string_buffer_sprintf
	cmp	x27, x28
	b.eq	LBB0_36
	b	LBB0_37
LBB0_33:
	mov	x25, x8
	add	x3, sp, #96
	mov	x0, x20
	mov	x2, x22
	bl	_shader_glsl_add_src_param
	ldr	w2, [sp, #96]
Lloh78:
	adrp	x1, l_.str.25@PAGE
Lloh79:
	add	x1, x1, l_.str.25@PAGEOFF
	mov	x0, x23
	bl	_string_buffer_sprintf
	cmp	x27, x28
	b.eq	LBB0_35
; %bb.34:
	ldr	x8, [x26, #8]
	mov	w9, #20
	madd	x8, x21, x9, x8
	ldr	w8, [x8, #16]
Lloh80:
	adrp	x9, _WINED3D_VIEW_BUFFER_RAW@GOTPAGE
Lloh81:
	ldr	x9, [x9, _WINED3D_VIEW_BUFFER_RAW@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
LBB0_35:
Lloh83:
	adrp	x1, l_.str.26@PAGE
Lloh84:
	add	x1, x1, l_.str.26@PAGEOFF
	mov	x0, x23
	bl	_shader_addline
	cmp	x27, x28
	b.ne	LBB0_37
LBB0_36:
Lloh85:
	adrp	x24, l_.str.27@PAGE
Lloh86:
	add	x24, x24, l_.str.27@PAGEOFF
	b	LBB0_38
LBB0_37:
Lloh87:
	adrp	x24, l_.str.28@PAGE
Lloh88:
	add	x24, x24, l_.str.28@PAGEOFF
LBB0_38:
	ldr	w22, [sp, #76]                  ; 4-byte Folded Reload
	ldr	w0, [x26, #24]
	bl	_shader_glsl_get_prefix
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x23]
	stp	x21, x8, [sp, #24]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	stp	x0, x8, [sp, #8]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x24
	bl	_shader_addline
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	ldr	w2, [x25]
	add	x3, sp, #88
	mov	x0, x20
	mov	x4, x22
	bl	_shader_glsl_add_src_param_ext
	ldr	w8, [sp, #88]
	str	x8, [sp]
Lloh89:
	adrp	x1, l_.str.25@PAGE
Lloh90:
	add	x1, x1, l_.str.25@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	w8, [x20, #4]
	cmp	w8, #3
	b.lt	LBB0_40
; %bb.39:
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	ldr	w2, [x25]
	add	x3, sp, #80
	mov	x0, x20
	mov	x4, x22
	bl	_shader_glsl_add_src_param_ext
	ldr	w8, [sp, #80]
	str	x8, [sp]
Lloh91:
	adrp	x1, l_.str.29@PAGE
Lloh92:
	add	x1, x1, l_.str.29@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_40:
Lloh93:
	adrp	x1, l_.str.31@PAGE
Lloh94:
	add	x1, x1, l_.str.31@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x1, x23
	bl	_string_buffer_release
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_19-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_29-LBB0_8)>>2
	.byte	(LBB0_24-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_19-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_24-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
                                        ; -- 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	"g"

	.comm	_WINED3D_DATA_UINT,4,2          ; @WINED3D_DATA_UINT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid UAV index %u.\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"image"

l_.str.5:                               ; @.str.5
	.asciz	"atomicAnd"

l_.str.6:                               ; @.str.6
	.asciz	"imageAtomicAnd"

l_.str.7:                               ; @.str.7
	.asciz	"atomicCompSwap"

l_.str.8:                               ; @.str.8
	.asciz	"imageAtomicCompSwap"

l_.str.9:                               ; @.str.9
	.asciz	"atomicAdd"

l_.str.10:                              ; @.str.10
	.asciz	"imageAtomicAdd"

l_.str.11:                              ; @.str.11
	.asciz	"atomicMax"

l_.str.12:                              ; @.str.12
	.asciz	"imageAtomicMax"

	.comm	_WINED3D_DATA_INT,4,2           ; @WINED3D_DATA_INT
l_.str.13:                              ; @.str.13
	.asciz	"Unhandled opcode %#x for unsigned integers.\n"

l_.str.14:                              ; @.str.14
	.asciz	"atomicMin"

l_.str.15:                              ; @.str.15
	.asciz	"imageAtomicMin"

l_.str.16:                              ; @.str.16
	.asciz	"atomicOr"

l_.str.17:                              ; @.str.17
	.asciz	"imageAtomicOr"

l_.str.18:                              ; @.str.18
	.asciz	"Unhandled opcode %#x for signed integers.\n"

l_.str.19:                              ; @.str.19
	.asciz	"atomicXor"

l_.str.20:                              ; @.str.20
	.asciz	"imageAtomicXor"

l_.str.21:                              ; @.str.21
	.asciz	"atomicExchange"

l_.str.22:                              ; @.str.22
	.asciz	"imageAtomicExchange"

l_.str.23:                              ; @.str.23
	.asciz	"Unhandled opcode %#x.\n"

	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ; @WINED3DSP_WRITEMASK_1
l_.str.24:                              ; @.str.24
	.asciz	"%s * %u + %s / 4"

l_.str.25:                              ; @.str.25
	.asciz	"%s"

	.comm	_WINED3D_VIEW_BUFFER_RAW,4,2    ; @WINED3D_VIEW_BUFFER_RAW
l_.str.26:                              ; @.str.26
	.asciz	"/ 4"

l_.str.27:                              ; @.str.27
	.asciz	"%s(%s_%s%u[%s], "

l_.str.28:                              ; @.str.28
	.asciz	"%s(%s_%s%u, %s, "

l_.str.29:                              ; @.str.29
	.asciz	", %s"

l_.str.31:                              ; @.str.31
	.asciz	");\n"

	.no_dead_strip	_shader_glsl_atomic
.subsections_via_symbols
