	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_bo_move_flips
_nouveau_bo_move_flips:                 ## @nouveau_bo_move_flips
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, %r13
	movq	_TTM_PL_FLAG_TT@GOTPCREL(%rip), %rax
	movq	_TTM_PL_MASK_CACHING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -96(%rbp)
	leaq	-52(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	%rax, -88(%rbp)
	movq	$0, -48(%rbp)
	leaq	-96(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_ttm_bo_mem_space
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_ttm_bo_move_ttm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movq	%r14, %r8
	callq	_nouveau_bo_move_m2mf
	movl	%eax, %ebx
LBB0_3:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ttm_bo_mem_put
LBB0_4:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_FLAG_TT,4,2             ## @TTM_PL_FLAG_TT
	.comm	_TTM_PL_MASK_CACHING,4,2        ## @TTM_PL_MASK_CACHING
	.no_dead_strip	_nouveau_bo_move_flips
.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_flips
_nouveau_bo_move_flips:                 ; @nouveau_bo_move_flips
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _TTM_PL_FLAG_TT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PL_FLAG_TT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TTM_PL_MASK_CACHING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TTM_PL_MASK_CACHING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stur	w8, [x29, #-52]
	stp	xzr, xzr, [sp, #40]
	movi.2s	v0, #1
	str	d0, [sp, #16]
	sub	x8, x29, #52
	stp	x8, x8, [sp, #24]
	str	xzr, [sp, #8]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, x22
	mov	x4, x21
	bl	_ttm_bo_mem_space
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_ttm_bo_move_ttm
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_nouveau_bo_move_m2mf
	mov	x23, x0
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ttm_bo_mem_put
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_FLAG_TT,4,2             ; @TTM_PL_FLAG_TT
	.comm	_TTM_PL_MASK_CACHING,4,2        ; @TTM_PL_MASK_CACHING
	.no_dead_strip	_nouveau_bo_move_flips
.subsections_via_symbols
