	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_fence_wait_empty_locked ## -- Begin function radeon_fence_wait_empty_locked
	.p2align	4, 0x90
_radeon_fence_wait_empty_locked:        ## @radeon_fence_wait_empty_locked
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movslq	%esi, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	(%rax,%rdx,4), %esi
	xorl	%r14d, %r14d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_radeon_fence_wait_seq
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_EDEADLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error waiting for ring[%d] to become idle (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_fence_wait_empty_locked ; -- Begin function radeon_fence_wait_empty_locked
	.p2align	2
_radeon_fence_wait_empty_locked:        ; @radeon_fence_wait_empty_locked
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	w1, [x8, w1, sxtw #2]
	mov	x2, x19
	mov	w3, #0
	mov	w4, #0
	bl	_radeon_fence_wait_seq
	mov	x3, x0
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w3, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	w3, #0
LBB0_3:
	mov	x0, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error waiting for ring[%d] to become idle (%d)\n"

.subsections_via_symbols
