	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_count
_tree_count:                            ## @tree_count
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.1:
	movq	%rdi, %r15
	movb	$1, %bl
	movb	$1, %r13b
	movq	%rdi, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	setne	%r13b
	testq	%rdx, %rdx
	setne	%bl
	movq	%r14, %rcx
	orq	%rdx, %rcx
	movq	%r14, %r15
	movq	%rdx, %r12
	je	LBB0_29
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, %r14d
	testb	$1, %r13b
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r15), %esi
	movl	44(%r15), %edi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_key_cmp
	movl	%eax, %r14d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	testb	$1, %bl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r12), %esi
	movl	44(%r12), %edi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_key_cmp
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, %r15
	je	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r13b
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ecx
	movq	8(%r15), %r14
	testl	%ecx, %ecx
	js	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	testq	%r14, %r14
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r14), %eax
	addl	%eax, (%rsi)
	movl	24(%r14), %eax
	addl	%eax, 4(%rsi)
	movl	16(%r14), %eax
	addl	%eax, 8(%rsi)
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_tree_count_one
	movq	(%r15), %r14
	movl	%r13d, %eax
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %bl
	je	LBB0_23
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_tree_count_one
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdx
	movq	%rdx, %r14
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	testb	$1, %bl
	je	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdx
	testl	%eax, %eax
	jg	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdx, %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%rdx), %ecx
	addl	%ecx, (%rsi)
	movl	24(%rdx), %ecx
	addl	%ecx, 4(%rsi)
	movl	16(%rdx), %eax
	addl	%eax, 8(%rsi)
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_tree_count_one
	movq	8(%r12), %rdx
	jmp	LBB0_28
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_tree_count_one
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdx
	movq	%rdx, %r14
	jmp	LBB0_28
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_tree_count_one
	movq	(%r15), %r14
	movq	8(%r15), %rdx
	jmp	LBB0_28
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_count
_tree_count:                            ; @tree_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	str	w3, [sp, #4]                    ; 4-byte Folded Spill
	cbz	x0, LBB0_29
; %bb.1:
	mov	x19, x5
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	w28, #1
	mov	w21, #1
	mov	x25, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, #0
	cset	w21, ne
	cmp	x8, #0
	cset	w28, ne
	mov	x24, x20
	mov	x25, x8
	orr	x8, x20, x8
	cbz	x8, LBB0_29
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w21, #0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x24, #40]
	mov	x2, x23
	mov	x3, x22
	bl	_key_cmp
	mov	x27, x0
	tbnz	w28, #0, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	cmp	x24, x25
	b.eq	LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbz	w21, #0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x24, #8]
	tbnz	w27, #31, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	q0, [x20, #24]
	ldr	d1, [x19]
	xtn.2s	v0, v0
	rev64.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x19]
	ldr	w8, [x20, #16]
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_tree_count_one
	ldr	x20, [x24]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w28, #0, LBB0_2
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #0
	tbz	w28, #0, LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x25, #40]
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	bl	_key_cmp
	mov	x26, x0
	cmp	x24, x25
	b.ne	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #0
	b.le	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w26, #31, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w26, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_tree_count_one
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	mov	x20, x8
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	tbz	w28, #0, LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cmp	w26, #0
	b.gt	LBB0_3
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	q0, [x8, #24]
	ldr	d1, [x19]
	xtn.2s	v0, v0
	rev64.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x19]
	ldr	w8, [x8, #16]
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x19
	bl	_tree_count_one
	ldr	x8, [x25, #8]
	b	LBB0_3
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w27, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_tree_count_one
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #8]
	mov	x20, x8
	b	LBB0_3
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_tree_count_one
	ldp	x20, x8, [x24]
	b	LBB0_3
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tree_count
.subsections_via_symbols
