	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebalance_children
_rebalance_children:                    ## @rebalance_children
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_shadow_current
	movq	%rax, %rdi
	callq	_dm_block_data
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	%rbx, %rdi
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%esi, %esi
	callq	_value64
	movl	(%r14), %edi
	movq	_btree_node_validator@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rcx
	movl	%eax, %esi
	callq	_dm_tm_read_lock
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_dm_tm_get_bm
	movl	%eax, %edi
	callq	_dm_bm_block_size
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi
	callq	_dm_tm_unlock
	movl	(%r14), %ebx
	movq	-48(%rbp), %rdi
	callq	_dm_block_location
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dm_tm_dec
	jmp	LBB0_5
LBB0_3:
	movl	%r13d, %esi
	callq	_lower_bound
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.8:
	decl	%eax
	leal	-1(%r13), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	cmpl	%eax, %r13d
	jge	LBB0_9
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rebalance3                     ## TAILCALL
LBB0_4:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rebalance2                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_btree_node_validator,4,2       ## @btree_node_validator
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_rebalance_children
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebalance_children
_rebalance_children:                    ; @rebalance_children
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_shadow_current
	bl	_dm_block_data
	mov	x20, x0
	ldr	w0, [x0]
	bl	_le32_to_cpu
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_value64
	mov	x1, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x2, _btree_node_validator@GOTPAGE
Lloh1:
	ldr	x2, [x2, _btree_node_validator@GOTPAGEOFF]
	add	x3, sp, #8
	bl	_dm_tm_read_lock
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x22, x0
	ldr	w0, [x19]
	bl	_dm_tm_get_bm
	bl	_dm_bm_block_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_memcpy
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_dm_tm_unlock
	ldr	w19, [x19]
	ldr	x0, [sp, #8]
	bl	_dm_block_location
	mov	x1, x0
	mov	x0, x19
	bl	_dm_tm_dec
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	mov	x1, x23
	bl	_lower_bound
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x23, x0
	ldr	w0, [x20]
	bl	_le32_to_cpu
	cbz	w23, LBB0_9
; %bb.5:
	sub	w8, w0, #1
	sub	w3, w23, #1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	cmp	w23, w8
	b.ge	LBB0_10
; %bb.6:
	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
	add	sp, sp, #80
	b	_rebalance3
LBB0_7:
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_9:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
LBB0_10:
	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
	add	sp, sp, #80
	b	_rebalance2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_btree_node_validator,4,2       ; @btree_node_validator
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_rebalance_children
.subsections_via_symbols
