	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_vm_flush_engine           ## -- Begin function nv50_vm_flush_engine
	.p2align	4, 0x90
_nv50_vm_flush_engine:                  ## @nv50_vm_flush_engine
	.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, %r14d
	movq	%rdi, %rbx
	callq	_nouveau_vmmgr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %edx
	shll	$16, %edx
	orl	$1, %edx
	movq	%rbx, %rdi
	movl	$1051776, %esi                  ## imm = 0x100C80
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1051776, %esi                  ## imm = 0x100C80
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nv_wait
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_nv_error
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm flush timeout: engine %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_vm_flush_engine           ; -- Begin function nv50_vm_flush_engine
	.p2align	2
_nv50_vm_flush_engine:                  ; @nv50_vm_flush_engine
	.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	x19, x1
	mov	x21, x0
	bl	_nouveau_vmmgr
	mov	x20, x0
	bl	_spin_lock_irqsave
	mov	w2, #1
	bfi	w2, w19, #16, #16
	mov	x0, x21
	mov	w1, #3200
	movk	w1, #16, lsl #16
	bl	_nv_wr32
	mov	x0, x21
	mov	w1, #3200
	movk	w1, #16, lsl #16
	mov	w2, #1
	mov	w3, #0
	bl	_nv_wait
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_nv_error
LBB0_2:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm flush timeout: engine %d\n"

.subsections_via_symbols
