	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_uav_counter
_shader_glsl_uav_counter:               ## @shader_glsl_uav_counter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_shader_glsl_get_prefix
	movq	%rax, %r14
	movq	_WINED3DSIH_IMM_ATOMIC_ALLOC@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	cmpq	(%rax), %rcx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	movl	(%rdx), %edi
	movq	%rbx, %rsi
	callq	_shader_glsl_append_dst
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_shader_addline                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSIH_IMM_ATOMIC_ALLOC,8,3 ## @WINED3DSIH_IMM_ATOMIC_ALLOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atomicCounterIncrement"

L_.str.1:                               ## @.str.1
	.asciz	"atomicCounterDecrement"

L_.str.2:                               ## @.str.2
	.asciz	"%s(%s_counter%u));\n"

	.no_dead_strip	_shader_glsl_uav_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_uav_counter
_shader_glsl_uav_counter:               ; @shader_glsl_uav_counter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_shader_glsl_get_prefix
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WINED3DSIH_IMM_ATOMIC_ALLOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DSIH_IMM_ATOMIC_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, l_.str.1@PAGE
Lloh4:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh5:
	adrp	x11, l_.str@PAGE
Lloh6:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x21, x11, x10, eq
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_shader_glsl_append_dst
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x8, [x9]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	w4, [x8]
	mov	x2, x21
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_shader_addline
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSIH_IMM_ATOMIC_ALLOC,8,3 ; @WINED3DSIH_IMM_ATOMIC_ALLOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atomicCounterIncrement"

l_.str.1:                               ; @.str.1
	.asciz	"atomicCounterDecrement"

l_.str.2:                               ; @.str.2
	.asciz	"%s(%s_counter%u));\n"

	.no_dead_strip	_shader_glsl_uav_counter
.subsections_via_symbols
