	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp100_vmm_fault_cancel
_gp100_vmm_fault_cancel:                ## @gp100_vmm_fault_cancel
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)
	movl	%edx, -36(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	(%rsi), %rcx
	movq	8(%rsi), %r8
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_nvif_unpack
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	sarl	$12, %ecx
	shll	$20, %eax
	andl	$805306368, %eax                ## imm = 0x30000000
	orl	%ecx, %eax
	orl	$-2147483648, %eax              ## imm = 0x80000000
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_nvkm_gr_ctxsw_pause
	movl	%eax, %edi
	callq	_WARN_ON
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_nvkm_gr_ctxsw_inst
	cmpl	(%rbx), %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	shll	$20, %eax
	shll	$15, %ecx
	orl	%eax, %ecx
	movl	12(%rbx), %esi
	shll	$9, %esi
	orl	%ecx, %esi
	orl	$27, %esi
	movq	%r15, %rdi
	callq	_gf100_vmm_invalidate
LBB0_4:
	movq	%r14, %rdi
	callq	_nvkm_gr_ctxsw_resume
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_gp100_vmm_fault_cancel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp100_vmm_fault_cancel
_gp100_vmm_fault_cancel:                ; @gp100_vmm_fault_cancel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	str	x1, [sp, #8]
	str	w2, [sp, #4]
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x3, x4, [x1]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_nvif_unpack
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	lsl	w9, w8, #20
	and	w9, w9, #0x30000000
	orr	w8, w9, w8, asr #12
	orr	w8, w8, #0x80000000
	str	w8, [x21]
	mov	x0, x19
	bl	_nvkm_gr_ctxsw_pause
	bl	_WARN_ON
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_nvkm_gr_ctxsw_inst
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldp	w8, w9, [x21, #4]
	lsl	w8, w8, #20
	ldr	w10, [x21, #12]
	orr	w8, w8, w9, lsl #15
	orr	w8, w8, w10, lsl #9
	mov	w9, #27
	orr	w1, w8, w9
	mov	x0, x20
	bl	_gf100_vmm_invalidate
LBB0_4:
	mov	x0, x19
	bl	_nvkm_gr_ctxsw_resume
	bl	_WARN_ON
LBB0_5:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_gp100_vmm_fault_cancel
.subsections_via_symbols
