	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_vmm_node_split            ## -- Begin function nvkm_vmm_node_split
	.p2align	4, 0x90
_nvkm_vmm_node_split:                   ## @nvkm_vmm_node_split
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	subq	%rdx, %rsi
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	addq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_nvkm_vma_tail
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movl	$1, 16(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_nvkm_vmm_node_insert
LBB0_4:
	movq	8(%rbx), %rsi
	subq	%r12, %rsi
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_nvkm_vma_tail
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	$1, 16(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_nvkm_vmm_node_insert
	jmp	LBB0_10
LBB0_8:
	movq	8(%rbx), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_nvkm_vmm_node_merge
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_node_split            ; -- Begin function nvkm_vmm_node_split
	.p2align	2
_nvkm_vmm_node_split:                   ; @nvkm_vmm_node_split
	.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	x22, x3
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
	subs	x8, x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x21
	mov	x21, #0
	b	LBB0_4
LBB0_2:
	ldr	x9, [x21, #8]
	add	x1, x8, x9
	mov	x0, x21
	bl	_nvkm_vma_tail
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_nvkm_vmm_node_insert
LBB0_4:
	ldr	x8, [x19, #8]
	subs	x1, x8, x22
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_nvkm_vma_tail
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x0
	mov	w8, #1
	str	w8, [x0, #16]
	mov	x0, x20
	bl	_nvkm_vmm_node_insert
	b	LBB0_8
LBB0_7:
	ldr	x4, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	bl	_nvkm_vmm_node_merge
	mov	x19, #0
LBB0_8:
	mov	x0, 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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
