	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rebalance2
___rebalance2:                          ## @__rebalance2
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r13
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_merge_threshold
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	incl	%eax
	leal	(%r14,%r15), %r12d
	cmpl	%eax, %r12d
	jae	LBB0_1
## %bb.2:
	negl	%r14d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_node_copy
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_delete_at
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	4(%rbx), %edi
	callq	_dm_block_location
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_tm_dec                      ## TAILCALL
LBB0_1:
	shrl	%r12d
	subl	%r12d, %r15d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_shift
	movq	(%r13), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_key_ptr
	movl	%ebx, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___rebalance2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rebalance2
___rebalance2:                          ; @__rebalance2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2, #8]
	ldr	x23, [x3, #8]
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w0, [x23, #8]
	bl	_le32_to_cpu
	mov	x26, x0
	mov	x0, x22
	bl	_merge_threshold
	mov	w8, #1
	bfi	w8, w0, #1, #31
	add	w25, w26, w24
	cmp	w25, w8
	b.hs	LBB0_2
; %bb.1:
	neg	w2, w26
	mov	x0, x22
	mov	x1, x23
	bl	_node_copy
	mov	x0, x25
	bl	_cpu_to_le32
	str	w0, [x22, #8]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_delete_at
	ldr	w20, [x21]
	ldr	w0, [x19, #4]
	bl	_dm_block_location
	mov	x1, x0
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dm_tm_dec
LBB0_2:
	sub	w2, w24, w25, lsr #1
	mov	x0, x22
	mov	x1, x23
	bl	_shift
	ldr	x8, [x23]
	ldr	w21, [x8]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_key_ptr
	str	w21, [x0]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___rebalance2
.subsections_via_symbols
