	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stree_insert
_stree_insert:                          ## @stree_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
	movl	%esi, %r14d
	movq	%rdi, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cmpl	%edx, (%rdi)
	jle	LBB0_8
## %bb.3:
	leaq	-32(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	16(%rbx), %rax
	leaq	8(%rbx), %r15
	xorl	%ecx, %ecx
	cmpl	%r14d, 4(%rbx)
	setg	%cl
	cmovgq	%rax, %r15
	movq	8(%rbx,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%edx, (%rbx)
	jle	LBB0_8
LBB0_4:
	movl	%r14d, %edi
	movl	%edx, %esi
	callq	_new_stree_node
	movq	%rax, (%r15)
	leaq	16(%rax), %rcx
	addq	$8, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, (%rcx)
	addq	$8, %rbx
	movq	%rbx, %rcx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, 4(%rbx)
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, (%rax)
	addq	$16, %rbx
	movq	%rbx, %rax
	jmp	LBB0_11
LBB0_1:
	leaq	-32(%rbp), %r15
LBB0_9:
	movl	%r14d, %edi
	movl	%edx, %esi
	callq	_new_stree_node
	movq	%rax, (%r15)
	leaq	16(%rax), %rcx
	addq	$8, %rax
LBB0_12:
	movq	$0, (%rax)
	movq	$0, (%rcx)
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stree_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stree_insert
_stree_insert:                          ; @stree_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w2
	b.le	LBB0_5
; %bb.2:
	add	x21, sp, #8
	b	LBB0_8
LBB0_3:
	add	x21, sp, #8
LBB0_4:
	mov	x0, x19
	mov	x1, x2
	bl	_new_stree_node
	str	x0, [x21]
	add	x8, x0, #16
	add	x9, x0, #8
	b	LBB0_12
LBB0_5:
	mov	w8, #8
	mov	w9, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20, #4]
	add	x11, x20, #16
	add	x12, x20, #8
	cmp	w10, w19
	csel	x10, x9, x8, gt
	csel	x21, x11, x12, gt
	ldr	x20, [x20, x10]
	cbz	x20, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x20]
	cmp	w10, w2
	b.le	LBB0_6
LBB0_8:
	mov	x0, x19
	mov	x1, x2
	bl	_new_stree_node
	str	x0, [x21]
	add	x8, x0, #16
	add	x9, x0, #8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x20, [x8]
	add	x10, x20, #8
	mov	x8, x10
	ldr	x20, [x10]
	cbz	x20, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20, #4]
	cmp	w10, w19
	b.le	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x20, [x9]
	add	x10, x20, #16
	mov	x9, x10
	ldr	x20, [x10]
	cbnz	x20, LBB0_10
LBB0_12:
	str	xzr, [x9]
	str	xzr, [x8]
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stree_insert
.subsections_via_symbols
