	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_split
_tree_split:                            ## @tree_split
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_1
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rdx, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, (%rsi)
	movq	%rax, %rsi
	movq	16(%rax), %rdx
	addq	$16, %rsi
	movq	%rdx, %rax
	testq	%rdx, %rdx
	je	LBB0_1
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, (%rax)
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r8), %r9
	movq	24(%rax), %rdx
	cmpq	(%rdx), %r9
	jl	LBB0_8
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, (%rdi)
	movq	8(%rax), %rdx
	addq	$8, %rax
	movq	%rax, %rdi
	testq	%rdx, %rdx
	jne	LBB0_4
	jmp	LBB0_2
LBB0_1:
	movq	%rdi, %rax
LBB0_2:
	movq	$0, (%rsi)
	movq	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_split
_tree_split:                            ; @tree_split
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_7
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x8, x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=2
	str	x8, [x1]
	ldr	x9, [x8, #16]!
	mov	x1, x8
	mov	x8, x9
	cbz	x9, LBB0_7
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8]
	cmp	x9, x3
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x9, [x4]
	ldr	x10, [x8, #24]
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	x8, [x0]
	ldr	x2, [x8, #8]!
	mov	x0, x8
	cbnz	x2, LBB0_1
	b	LBB0_8
LBB0_7:
	mov	x8, x0
LBB0_8:
	str	xzr, [x1]
	str	xzr, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tree_split
.subsections_via_symbols
