	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_insert_raw
_btree_insert_raw:                      ## @btree_insert_raw
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	(%r8), %r14d
	callq	_shadow_step
	testl	%eax, %eax
	js	LBB0_18
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_value64
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_shadow_step
	movb	$1, %r13b
	testl	%eax, %eax
	js	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_data
	movq	%rbx, %rdi
	callq	_shadow_has_parent
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_location
	movq	%rax, %rdi
	callq	_cpu_to_le64
	movq	%rax, -64(%rbp)
	movq	%r15, %r12
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	___dm_bless_for_disk
	movq	%rbx, %rdi
	callq	_shadow_parent
	movl	%eax, %edi
	callq	_dm_block_data
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_value_ptr
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy_disk
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_data
	movq	8(%rax), %rcx
	cmpq	16(%rax), %rcx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	testb	$1, %r13b
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_btree_split_sibling
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rsi
	callq	_btree_split_beneath
	testl	%eax, %eax
	js	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_data
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_lower_bound
	movl	%eax, %r14d
	movl	24(%r13), %edi
	callq	_le32_to_cpu
	movq	_LEAF_NODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_cpu_to_le64
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_14:
	testl	%r14d, %r14d
	js	LBB0_16
## %bb.15:
	movq	(%r13), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rdi
	callq	_le64_to_cpu
	cmpq	%r12, %rax
	je	LBB0_17
LBB0_16:
	incl	%r14d
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEAF_NODE,4,2                  ## @LEAF_NODE
	.no_dead_strip	_btree_insert_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_insert_raw
_btree_insert_raw:                      ; @btree_insert_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	ldr	w23, [x4]
	bl	_shadow_step
	tbnz	w0, #31, LBB0_17
; %bb.1:
	mov	w24, #0
Lloh0:
	adrp	x25, _LEAF_NODE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LEAF_NODE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_value64
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_shadow_step
	mov	w24, #1
	tbnz	w0, #31, LBB0_17
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_shadow_current
	bl	_dm_block_data
	mov	x0, x22
	bl	_shadow_has_parent
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w23, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_shadow_current
	bl	_dm_block_location
	bl	_cpu_to_le64
	str	x0, [sp, #8]
	add	x0, sp, #8
	bl	___dm_bless_for_disk
	mov	x0, x22
	bl	_shadow_parent
	bl	_dm_block_data
	mov	x1, x23
	bl	_value_ptr
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy_disk
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_shadow_current
	bl	_dm_block_data
	ldp	x8, x9, [x0, #8]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	tbz	w24, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x23
	mov	x2, x20
	bl	_btree_split_sibling
	tbz	w0, #31, LBB0_10
	b	LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_btree_split_beneath
	tbnz	w0, #31, LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_shadow_current
	bl	_dm_block_data
	mov	x24, x0
	mov	x1, x20
	bl	_lower_bound
	mov	x23, x0
	ldr	w0, [x24, #24]
	bl	_le32_to_cpu
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	tbz	w23, #31, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_cpu_to_le64
	mov	w23, #0
	ldr	x8, [x24]
	str	x0, [x8]
	b	LBB0_2
LBB0_13:
	tbnz	w23, #31, LBB0_15
; %bb.14:
	ldr	x8, [x24]
	ldr	x0, [x8, w23, uxtw #3]
	bl	_le64_to_cpu
	cmp	x0, x20
	b.eq	LBB0_16
LBB0_15:
	add	w23, w23, #1
LBB0_16:
	mov	w0, #0
	str	w23, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LEAF_NODE,4,2                  ; @LEAF_NODE
	.no_dead_strip	_btree_insert_raw
.subsections_via_symbols
