	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_vmm_node_merge
_nvkm_vmm_node_merge:                   ## @nvkm_vmm_node_merge
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	%rcx, %rbx
	cmpq	%r13, (%r12)
	jne	LBB0_8
## %bb.2:
	addq	(%rbx), %r13
	movq	%r13, (%r12)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_vmm_node_delete
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	(%r12), %rax
	addq	%rax, (%r14)
	jmp	LBB0_7
LBB0_4:
	testq	%r14, %r14
	je	LBB0_10
## %bb.5:
	cmpq	%r13, (%r12)
	jne	LBB0_11
## %bb.6:
	addq	%r13, (%r14)
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvkm_vmm_node_delete
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_BUG_ON
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_vmm_node_remove
	subq	%r13, (%r12)
	subl	%r13d, 8(%rbx)
	addq	%r13, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_vmm_node_insert
	movq	%rbx, %r14
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %r14
	jmp	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvkm_vmm_node_remove
	addq	%r13, (%r14)
	addl	%r13d, 8(%r12)
	subq	%r13, (%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvkm_vmm_node_insert
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_vmm_node_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_vmm_node_merge
_nvkm_vmm_node_merge:                   ; @nvkm_vmm_node_merge
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x3, LBB0_4
; %bb.1:
	mov	x23, x3
	ldr	x8, [x21]
	cmp	x8, x22
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x23]
	add	x8, x8, x22
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_vmm_node_delete
	cbz	x19, LBB0_9
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x8, x9, x8
	b	LBB0_7
LBB0_4:
	cbz	x19, LBB0_9
; %bb.5:
	ldr	x8, [x21]
	cmp	x8, x22
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19]
	add	x8, x8, x22
LBB0_7:
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_nvkm_vmm_node_delete
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_BUG_ON
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_vmm_node_remove
	ldr	x8, [x21]
	sub	x8, x8, x22
	str	x8, [x21]
	ldr	w8, [x23, #8]
	sub	w8, w8, w22
	str	w8, [x23, #8]
	ldr	x8, [x23]
	add	x8, x8, x22
	str	x8, [x23]
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_vmm_node_insert
	mov	x19, x23
	b	LBB0_11
LBB0_9:
	mov	x19, x21
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	bl	_nvkm_vmm_node_remove
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x8, [x19]
	ldr	w8, [x21, #8]
	add	w8, w8, w22
	str	w8, [x21, #8]
	ldr	x8, [x21]
	sub	x8, x8, x22
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_nvkm_vmm_node_insert
LBB0_11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_vmm_node_merge
.subsections_via_symbols
