	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_bo_move_prep
_nouveau_bo_move_prep:                  ## @nouveau_bo_move_prep
	.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
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_nouveau_mem
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_nouveau_mem
	movq	%rax, %r12
	movq	_LAZY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	12(%r13), %ecx
	movl	8(%r13), %r9d
	movq	(%r13), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_nvif_vmm_get
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %esi
	movl	8(%r12), %r9d
	movl	12(%r12), %ecx
	movq	(%r13), %rax
	addq	$4, %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_nvif_vmm_get
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%r13), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_nouveau_mem_map
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %rdx
	addq	$4, %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nouveau_mem_map
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	(%r13), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_nvif_vmm_put
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_nvif_vmm_put
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAZY,4,2                       ## @LAZY
	.no_dead_strip	_nouveau_bo_move_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_bo_move_prep
_nouveau_bo_move_prep:                  ; @nouveau_bo_move_prep
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_nouveau_mem
	mov	x20, x0
	mov	x0, x21
	bl	_nouveau_mem
	mov	x22, x0
Lloh0:
	adrp	x23, _LAZY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LAZY@GOTPAGEOFF]
	ldr	w1, [x23]
	ldp	w5, w3, [x20, #8]
	ldr	x6, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	bl	_nvif_vmm_get
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w1, [x23]
	ldp	w5, w3, [x22, #8]
	ldr	x8, [x20]
	add	x6, x8, #4
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	bl	_nvif_vmm_get
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x2, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_nouveau_mem_map
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	add	x2, x8, #4
	mov	x0, x22
	mov	x1, x19
	bl	_nouveau_mem_map
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x19
	bl	_nvif_vmm_put
	ldr	x1, [x20]
	mov	x0, x19
	bl	_nvif_vmm_put
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LAZY,4,2                       ; @LAZY
	.no_dead_strip	_nouveau_bo_move_prep
.subsections_via_symbols
