	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_insert
_tree_insert:                           ## @tree_insert
	.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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	callq	_key_cmp
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_assert
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_2
## %bb.3:
	leaq	24(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%r14, %rdx
	callq	_tree_split
LBB0_4:
	movq	%rbx, %rdi
	callq	_update_counters
	jmp	LBB0_5
LBB0_2:
	shrl	$31, %r15d
	movq	16(%r14,%r15,8), %rdi
	movq	%rbx, %rsi
	callq	_tree_insert
	movq	%rax, 16(%r14,%r15,8)
	movq	%r14, %rdi
	callq	_update_counters
	movq	%r14, %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_insert
_tree_insert:                           ; @tree_insert
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x20, #8]
	bl	_key_cmp
	mov	x21, x0
	bl	_assert
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	add	x0, x19, #24
	add	x1, x19, #16
	ldp	w4, w3, [x19, #8]
	mov	x2, x20
	bl	_tree_split
LBB0_3:
	mov	x0, x19
	bl	_update_counters
	b	LBB0_5
LBB0_4:
	cmp	w21, #0
	mov	w8, #16
	mov	w9, #24
	csel	x21, x9, x8, lt
	ldr	x0, [x20, x21]
	mov	x1, x19
	bl	_tree_insert
	str	x0, [x20, x21]
	mov	x0, x20
	bl	_update_counters
	mov	x19, x20
LBB0_5:
	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
	.no_dead_strip	_tree_insert
.subsections_via_symbols
