	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_insert_sk                 ## -- Begin function tree_insert_sk
	.p2align	4, 0x90
_tree_insert_sk:                        ## @tree_insert_sk
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_lrand48
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rcx)
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%rcx), %rdx
	leaq	8(%rcx), %rbx
	xorl	%esi, %esi
	cmpl	%r14d, 4(%rcx)
	setg	%sil
	cmovgq	%rdx, %rbx
	movq	8(%rcx,%rsi,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_4:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_new_tree_node
	movq	%rax, %r12
	movq	%r15, 24(%rax)
	leaq	16(%rax), %rdi
	leaq	8(%rax), %rsi
	movq	(%rbx), %rdx
	movl	%r14d, %ecx
	callq	_tree_split_sk
	movq	%r12, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_insert_sk                 ; -- Begin function tree_insert_sk
	.p2align	2
_tree_insert_sk:                        ; @tree_insert_sk
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_lrand48
	mov	x1, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, w1
	b.lt	LBB0_5
; %bb.2:
	mov	w9, #8
	mov	w10, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, #4]
	add	x12, x8, #16
	add	x13, x8, #8
	cmp	w11, w19
	csel	x11, x10, x9, gt
	csel	x21, x12, x13, gt
	ldr	x8, [x8, x11]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x8]
	cmp	w11, w1
	b.ge	LBB0_3
LBB0_5:
	mov	x0, x19
	bl	_new_tree_node
	mov	x22, x0
	str	x20, [x0, #24]
	add	x0, x0, #16
	add	x1, x22, #8
	ldr	x2, [x21]
	mov	x3, x19
	bl	_tree_split_sk
	str	x22, [x21]
	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
.subsections_via_symbols
