	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv84_fence_suspend
_nv84_fence_suspend:                    ## @nv84_fence_suspend
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_nouveau_fifo
	movq	%rax, %r14
	movq	(%rbx), %r15
	movl	(%rax), %eax
	leal	4(,%rax,4), %edi
	callq	_vmalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%r14)
	js	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movl	%r12d, %esi
	callq	_nouveau_bo_rd32
	movl	%eax, %ecx
	movq	(%r15), %rax
	movl	%ecx, 4(%rax,%rbx,4)
	movslq	(%r14), %rcx
	addl	$4, %r12d
	incq	%rbx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv84_fence_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv84_fence_suspend
_nv84_fence_suspend:                    ; @nv84_fence_suspend
	.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	x20, x0
	ldr	w0, [x0, #8]
	bl	_nouveau_fifo
	mov	x19, x0
	ldr	x21, [x20]
	ldr	w8, [x0]
	lsl	w8, w8, #2
	add	w0, w8, #4
	bl	_vmalloc
	str	x0, [x21]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x22, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_nouveau_bo_rd32
	mov	x8, x0
	ldr	x0, [x21]
	str	w8, [x0, x20]
	ldrsw	x8, [x19]
	add	x20, x20, #4
	add	x22, x22, #1
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	cmp	x0, #0
	cset	w0, ne
	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	_nv84_fence_suspend
.subsections_via_symbols
