	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_ext_global_insert
_tree_ext_global_insert:                ## @tree_ext_global_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	%edx, (%rdi)
	jle	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	cmpq	%r15, 8(%r14)
	setg	%r12b
	movq	16(%r14,%r12,8), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_tree_ext_global_insert
	movq	%rax, 16(%r14,%r12,8)
	movq	%r14, %rbx
	jmp	LBB0_5
LBB0_2:
	xorl	%edi, %edi
	cmpq	%r15, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpl	%edx, (%rbx)
	sete	%dil
LBB0_4:
	callq	_assert
	leaq	24(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_tree_ext_global_split
LBB0_5:
	movq	%rbx, %rdi
	callq	_tree_ext_global_relax
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree_ext_global_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_ext_global_insert
_tree_ext_global_insert:                ; @tree_ext_global_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, x3
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	mov	w9, #16
	mov	w10, #24
	cmp	x8, x21
	csel	x22, x10, x9, gt
	ldr	x0, [x20, x22]
	mov	x1, x21
	mov	x3, x19
	bl	_tree_ext_global_insert
	str	x0, [x20, x22]
	mov	x19, x20
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, w2
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_assert
	add	x0, x19, #24
	add	x1, x19, #16
	mov	x2, x20
	mov	x3, x21
	bl	_tree_ext_global_split
LBB0_6:
	mov	x0, x19
	bl	_tree_ext_global_relax
	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_ext_global_insert
.subsections_via_symbols
