	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_fence_is_signaled
_radeon_fence_is_signaled:              ## @radeon_fence_is_signaled
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_radeon_fence
	movq	16(%rax), %rbx
	movl	(%rax), %r12d
	movq	8(%rax), %r13
	leaq	(,%r12,4), %r15
	movq	(%rbx), %rdi
	addq	%r15, %rdi
	callq	_atomic64_read
	movl	$1, %r14d
	cmpq	%r13, %rax
	jge	LBB0_4
## %bb.1:
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_down_read_trylock
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_radeon_fence_process
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_up_read
	addq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic64_read
	cmpq	%r13, %rax
	jge	LBB0_4
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_radeon_fence_is_signaled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_fence_is_signaled
_radeon_fence_is_signaled:              ; @radeon_fence_is_signaled
	.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
	bl	_to_radeon_fence
	ldr	w19, [x0]
	ldp	x22, x20, [x0, #8]
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	bl	_atomic64_read
	cmp	x0, x22
	b.ge	LBB0_4
; %bb.1:
	add	x21, x20, #8
	mov	x0, x21
	bl	_down_read_trylock
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_radeon_fence_process
	mov	x0, x21
	bl	_up_read
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	bl	_atomic64_read
	cmp	x0, x22
	b.ge	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_radeon_fence_is_signaled
.subsections_via_symbols
