	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_vmm_unmap_region          ## -- Begin function nvkm_vmm_unmap_region
	.p2align	4, 0x90
_nvkm_vmm_unmap_region:                 ## @nvkm_vmm_unmap_region
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %r15
	movl	16(%rsi), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	20(%rbx), %rdx
	callq	_nvkm_memory_tags_put
	movq	%r15, %rdi
	callq	_nvkm_memory_unref
	movl	$0, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	cmpl	$0, (%rax)
	cmoveq	%rax, %r15
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%rbx, %rdi
	callq	_node
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	cmpl	$0, (%rax)
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movl	4(%rbx), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_vmm_node_merge            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_vmm_unmap_region          ; -- Begin function nvkm_vmm_unmap_region
	.p2align	2
_nvkm_vmm_unmap_region:                 ; @nvkm_vmm_unmap_region
	.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	x20, x0
	mov	x21, x1
	ldr	w0, [x21, #16]!
	ldr	x8, [x20]
	ldr	w1, [x8]
	add	x2, x19, #20
	bl	_nvkm_memory_tags_put
	mov	x0, x21
	bl	_nvkm_memory_unref
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_node
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0]
	cmp	w8, #0
	csel	x21, x0, xzr, eq
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x19
	bl	_node
	mov	x3, x0
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x3]
	cbz	w8, LBB0_8
LBB0_7:
	mov	x3, #0
LBB0_8:
	ldr	w4, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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	_nvkm_vmm_node_merge
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
