	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_umem_unmap
_nvkm_umem_unmap:                       ## @nvkm_umem_unmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nvkm_umem
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 24(%rax)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %r14
	addq	$8, %r14
	movq	8(%rbx), %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	$0, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	callq	_vunmap
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	callq	_nvkm_bar_bar1_vmm
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_nvkm_vmm_put
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	_nvkm_umem_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_umem_unmap
_nvkm_umem_unmap:                       ; @nvkm_umem_unmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_nvkm_umem
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x20, x19
	ldr	x0, [x20, #8]!
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.3:
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	bl	_vunmap
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_nvkm_bar_bar1_vmm
	mov	x1, x20
	bl	_nvkm_vmm_put
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	_nvkm_umem_unmap
.subsections_via_symbols
