	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree23_insert
_tree23_insert:                         ## @tree23_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$840, %rsp                      ## imm = 0x348
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movl	(%rbx), %eax
	xorl	%r14d, %r14d
	testb	$1, %al
	jne	LBB0_9
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %rbx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rbx
	movl	(%rbx), %eax
	incq	%r14
	testb	$1, %al
	jne	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -848(%rbp,%r14,8)
	cmpl	%r15d, %eax
	jg	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, 4(%rbx)
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rbx
	jmp	LBB0_4
LBB0_9:
	movl	4(%rbx), %edi
	testb	$1, %dil
	jne	LBB0_13
## %bb.10:
	cmpl	%r15d, %eax
	jle	LBB0_15
## %bb.11:
	movl	%r15d, %edi
	callq	_new_leaf
	movq	%rax, %rsi
	movl	(%rbx), %r15d
	movl	4(%rbx), %eax
	andl	$-2, %r15d
	orl	$1, %eax
	movl	%eax, 4(%rbx)
	movl	%eax, (%rbx)
	jmp	LBB0_20
LBB0_12:
	movl	%r15d, %edi
	callq	_new_leaf
	jmp	LBB0_32
LBB0_13:
	cmpl	%r15d, %eax
	jle	LBB0_17
## %bb.14:
	andl	$-2, %eax
	movl	%eax, 4(%rbx)
	orl	$1, %r15d
	movl	%r15d, (%rbx)
	jmp	LBB0_33
LBB0_15:
	cmpl	%r15d, %edi
	jge	LBB0_18
## %bb.16:
	movl	%r15d, %edi
	callq	_new_leaf
	movl	(%rbx), %ecx
	movl	4(%rbx), %r15d
	jmp	LBB0_19
LBB0_17:
	movl	%r15d, 4(%rbx)
	jmp	LBB0_33
LBB0_18:
	callq	_new_leaf
	movl	(%rbx), %ecx
LBB0_19:
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rsi
	movq	%rax, %rbx
LBB0_20:
	movq	%r12, -856(%rbp)                ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_30
## %bb.21:
	movslq	%r14d, %rax
	negl	%r14d
	leaq	-856(,%rax,8), %rax
	addq	%rbp, %rax
	movq	%rax, -872(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_new_node2
	movq	%rax, %rsi
	movl	(%r13), %r15d
	movl	4(%r13), %eax
	movl	%eax, (%r13)
	orl	$1, %eax
	movl	%eax, 4(%r13)
	movq	16(%r13), %rax
	movq	%rax, 24(%r13)
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	decq	%r12
	movq	%r13, %rbx
	cmpl	%r12d, %r14d
	je	LBB0_31
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-872(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r12,8), %r13
	movl	(%r13), %eax
	movl	4(%r13), %edi
	testb	$1, %dil
	jne	LBB0_35
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	%eax, %r15d
	jl	LBB0_22
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	%edi, %r15d
	jle	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_new_node2
	movl	(%r13), %ecx
	movl	4(%r13), %r15d
	movq	16(%r13), %rdx
	movq	%rdx, 8(%r13)
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r13), %rdx
	movq	%rsi, -864(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_new_node2
	movq	-864(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, 8(%r13)
	movl	(%r13), %ecx
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	orl	$1, %ecx
	movl	%ecx, 4(%r13)
	movq	%r13, %rsi
	movq	%rax, %r13
	jmp	LBB0_23
LBB0_30:
	movq	%rbx, %r13
LBB0_31:
	movl	%r15d, %edi
	movq	%r13, %rdx
	callq	_new_node2
	movq	-856(%rbp), %r12                ## 8-byte Reload
LBB0_32:
	movq	%rax, (%r12)
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.34:
	addq	$840, %rsp                      ## imm = 0x348
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	cmpl	%eax, %r15d
	jge	LBB0_37
## %bb.36:
	movq	%rsi, 24(%r13)
	movq	%rbx, 16(%r13)
	andl	$-2, %edi
	movl	%edi, 4(%r13)
	movl	%r15d, (%r13)
	jmp	LBB0_33
LBB0_37:
	movq	%rsi, 16(%r13)
	movq	%rbx, 8(%r13)
	movl	%r15d, 4(%r13)
	jmp	LBB0_33
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tree23_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree23_insert
_tree23_insert:                         ; @tree23_insert
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #816
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x21, [x0]
	cbz	x21, LBB0_7
; %bb.1:
	ldr	w8, [x21]
	tbnz	w8, #0, LBB0_8
; %bb.2:
	mov	x24, #0
	add	x9, sp, #8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21, #4]
	cmp	w8, w20
	add	x8, x21, #16
	add	x10, x21, #8
	csel	x8, x8, x10, ge
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x8]
	ldr	w8, [x21]
	add	x24, x24, #1
	tbnz	w8, #0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	x21, [x9, x24, lsl #3]
	cmp	w8, w20
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x21, #24
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_new_leaf
	b	LBB0_32
LBB0_8:
	mov	w24, #0
LBB0_9:
	ldr	w0, [x21, #4]
	tbnz	w0, #0, LBB0_21
; %bb.10:
	cmp	w8, w20
	b.le	LBB0_23
; %bb.11:
	mov	x0, x20
	bl	_new_leaf
	mov	x22, x0
	ldp	w8, w9, [x21]
	and	w20, w8, #0xfffffffe
	orr	w8, w9, #0x1
	stp	w8, w8, [x21]
	cbz	w24, LBB0_30
LBB0_12:
	add	x8, sp, #8
	add	x8, x8, w24, sxtw #3
	sub	x25, x8, #8
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_new_node2
	mov	x22, x0
	ldp	w20, w8, [x23]
	orr	w9, w8, #0x1
	stp	w8, w9, [x23]
	ldr	x8, [x23, #16]
	str	x8, [x23, #24]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	x25, x25, #8
	mov	x21, x23
	sub	w24, w24, #1
	cbz	w24, LBB0_31
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x25]
	ldp	w8, w0, [x23]
	cmp	w20, w8
	tbnz	w0, #0, LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	b.lt	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w20, w0
	b.le	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_new_node2
	ldr	x8, [x23, #16]
	str	x8, [x23, #8]
	ldr	w20, [x23, #4]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x2, [x23, #8]
	mov	x1, x21
	bl	_new_node2
	str	x22, [x23, #8]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x23]
	orr	w8, w8, #0x1
	str	w8, [x23, #4]
	mov	x22, x23
	mov	x23, x0
	b	LBB0_14
LBB0_21:
	cmp	w8, w20
	b.le	LBB0_25
; %bb.22:
	and	w8, w8, #0xfffffffe
	orr	w9, w20, #0x1
	stp	w9, w8, [x21]
	b	LBB0_33
LBB0_23:
	cmp	w0, w20
	b.ge	LBB0_28
; %bb.24:
	mov	x0, x20
	bl	_new_leaf
	ldr	w20, [x21, #4]
	b	LBB0_29
LBB0_25:
	str	w20, [x21, #4]
	b	LBB0_33
LBB0_26:
	b.ge	LBB0_35
; %bb.27:
	stp	x21, x22, [x23, #16]
	and	w8, w0, #0xfffffffe
	stp	w20, w8, [x23]
	b	LBB0_33
LBB0_28:
	bl	_new_leaf
LBB0_29:
	ldr	w8, [x21]
	str	w8, [x21, #4]
	mov	x22, x21
	mov	x21, x0
	cbnz	w24, LBB0_12
LBB0_30:
	mov	x23, x21
LBB0_31:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_new_node2
LBB0_32:
	str	x0, [x19]
LBB0_33:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.34:
	add	sp, sp, #816
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_35:
	stp	x21, x22, [x23, #8]
	str	w20, [x23, #4]
	b	LBB0_33
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tree23_insert
.subsections_via_symbols
