	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_split_beneath
_btree_split_beneath:                   ## @btree_split_beneath
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_shadow_current
	movq	%rax, %rdi
	callq	_dm_block_data
	movq	%rax, %r12
	movq	32(%rax), %rdi
	callq	_le32_to_cpu
	movq	_INTERNAL_NODE@GOTPCREL(%rip), %rcx
	movq	(%r14), %rdi
	movl	$4, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	4(%rdi), %ebx
LBB0_2:
	leaq	-56(%rbp), %rsi
	callq	_new_block
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rdi
	callq	_dm_block_data
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %rbx
	movq	24(%r12), %rdi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	shrl	%r15d
	movq	32(%r12), %rax
	movq	%rax, 32(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movups	8(%r12), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	(%rbx), %rdi
	movq	(%r12), %rsi
	leal	(,%r15,4), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_value_ptr
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_value_ptr
	movl	%r15d, %edx
	imull	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	movq	(%r14), %rdi
	leaq	-64(%rbp), %rsi
	callq	_new_block
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	movq	-64(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rdi
	callq	_le32_to_cpu
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	subl	%r15d, %r13d
	movq	32(%r12), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movups	8(%r12), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	(%rbx), %rdi
	shlq	$2, %r14
	addq	(%r12), %r14
	leal	(,%r13,4), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%rbx, %r14
	xorl	%esi, %esi
	callq	_value_ptr
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_value_ptr
	imull	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	xorl	%r13d, %r13d
	callq	_memcpy
	movq	_INTERNAL_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r12)
	movl	$2, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r12)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_dm_tm_get_bm
	movl	%eax, %edi
	callq	_dm_bm_block_size
	movl	$4, %edi
	movl	%eax, %esi
	callq	_calc_max_entries
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r12)
	movl	$4, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r12)
	movq	-56(%rbp), %rdi
	callq	_dm_block_location
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	___dm_bless_for_disk
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_value_ptr
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy_disk
	movq	-64(%rbp), %rdi
	callq	_dm_block_location
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)
	movq	%r15, %rdi
	callq	___dm_bless_for_disk
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_value_ptr
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy_disk
	movq	(%rbx), %rdi
	movq	-56(%rbp), %rsi
	callq	_unlock_block
	movq	(%rbx), %rdi
	movq	-64(%rbp), %rsi
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r13d
	movq	(%r14), %rdi
	movq	-56(%rbp), %rsi
LBB0_7:
	callq	_unlock_block
LBB0_8:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERNAL_NODE,4,2              ## @INTERNAL_NODE
	.no_dead_strip	_btree_split_beneath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_split_beneath
_btree_split_beneath:                   ; @btree_split_beneath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_shadow_current
	bl	_dm_block_data
	mov	x20, x0
	ldr	x0, [x0, #32]
	bl	_le32_to_cpu
	mov	x8, x0
Lloh0:
	adrp	x26, _INTERNAL_NODE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _INTERNAL_NODE@GOTPAGEOFF]
	ldr	w9, [x26]
	ldr	x0, [x19]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w27, #4
	b	LBB0_3
LBB0_2:
	ldr	w27, [x0, #4]
LBB0_3:
	add	x1, sp, #24
	bl	_new_block
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x0, [sp, #24]
	bl	_dm_block_data
	mov	x21, x0
	ldr	x0, [x20, #24]
	bl	_le32_to_cpu
	lsr	w23, w0, #1
	ldr	x8, [x20, #32]
	str	x8, [x21, #32]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x21, #24]
	ldr	x8, [x20, #16]
	str	x8, [x21, #16]
	ldr	x8, [x20, #8]
	str	x8, [x21, #8]
	ldr	x0, [x21]
	ldr	x1, [x20]
	lsl	w2, w23, #2
	bl	_memcpy
	mov	x0, x21
	mov	w1, #0
	bl	_value_ptr
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	bl	_value_ptr
	mov	x1, x0
	mul	w2, w23, w27
	mov	x0, x22
	bl	_memcpy
	ldr	x0, [x19]
	add	x1, sp, #16
	bl	_new_block
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x0, [sp, #16]
	bl	_dm_block_data
	mov	x22, x0
	ldr	x0, [x20, #24]
	bl	_le32_to_cpu
	sub	w24, w0, w23
	ldr	x8, [x20, #32]
	str	x8, [x22, #32]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x22, #24]
	ldr	x8, [x20, #16]
	str	x8, [x22, #16]
	ldr	x8, [x20, #8]
	str	x8, [x22, #8]
	ldr	x0, [x22]
	ldr	x8, [x20]
	add	x1, x8, w23, uxtw #2
	lsl	w2, w24, #2
	bl	_memcpy
	mov	x0, x22
	mov	w1, #0
	bl	_value_ptr
	mov	x25, x0
	mov	x0, x20
	mov	x1, x23
	bl	_value_ptr
	mov	x1, x0
	mul	w2, w24, w27
	mov	x0, x25
	bl	_memcpy
	ldr	w0, [x26]
	bl	_cpu_to_le32
	str	x0, [x20, #32]
	mov	w0, #2
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_dm_tm_get_bm
	bl	_dm_bm_block_size
	mov	x1, x0
	mov	w0, #4
	bl	_calc_max_entries
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	mov	w0, #4
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	ldr	x0, [sp, #24]
	bl	_dm_block_location
	bl	_cpu_to_le64
	str	w0, [sp, #12]
	add	x0, sp, #12
	bl	___dm_bless_for_disk
	ldr	x8, [x21]
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x20
	mov	w1, #0
	bl	_value_ptr
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy_disk
	ldr	x0, [sp, #16]
	bl	_dm_block_location
	bl	_cpu_to_le64
	str	w0, [sp, #12]
	add	x0, sp, #12
	bl	___dm_bless_for_disk
	ldr	x8, [x22]
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #4]
	mov	x0, x20
	mov	w1, #1
	bl	_value_ptr
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy_disk
	ldr	x0, [x19]
	ldr	x1, [sp, #24]
	bl	_unlock_block
	ldr	x0, [x19]
	ldr	x1, [sp, #16]
	bl	_unlock_block
	mov	w22, #0
	b	LBB0_8
LBB0_6:
	mov	x22, x0
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	ldr	x0, [x19]
	ldr	x1, [sp, #24]
	bl	_unlock_block
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERNAL_NODE,4,2              ; @INTERNAL_NODE
	.no_dead_strip	_btree_split_beneath
.subsections_via_symbols
