	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trie_rebalance
_trie_rebalance:                        ## @trie_rebalance
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	8(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_node_parent
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_tkey_extract_bits
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tnode_get_child
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tnode_full
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_resize
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_tnode_put_child_reorg
	movq	%r13, %rdi
	callq	_node_parent
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_tnode_free_flush
	movq	%r12, %rdi
	callq	_node_parent
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	%r15, %r13
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_rcu_assign_pointer
	xorl	%eax, %eax
	callq	_tnode_free_flush
	movq	%r13, %r12
	movq	%r15, %r13
LBB0_5:
	movq	%r12, %rdi
	callq	_IS_TNODE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_resize
	movq	%rax, %r12
LBB0_7:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_rcu_assign_pointer
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tnode_free_flush               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trie_rebalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trie_rebalance
_trie_rebalance:                        ; @trie_rebalance
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x1, #8]
	mov	x0, x1
	bl	_node_parent
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x22]
	mov	x0, x21
	bl	_tkey_extract_bits
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	bl	_tnode_get_child
	mov	x1, x0
	mov	x0, x22
	bl	_tnode_full
	mov	x25, x0
	mov	x0, x19
	mov	x1, x20
	bl	_resize
	mov	x23, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	bl	_tnode_put_child_reorg
	mov	x0, x23
	bl	_node_parent
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	bl	_tnode_free_flush
	mov	x0, x20
	bl	_node_parent
	mov	x22, x0
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	mov	x1, x23
	bl	_rcu_assign_pointer
	bl	_tnode_free_flush
	mov	x20, x23
LBB0_5:
	mov	x0, x20
	bl	_IS_TNODE
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_resize
	mov	x20, x0
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_rcu_assign_pointer
	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	_tnode_free_flush
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_trie_rebalance
.subsections_via_symbols
