	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fib_insert_node
_fib_insert_node:                       ## @fib_insert_node
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_NODE_TYPE
	movq	_T_TNODE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r13
	movq	%r12, %rdi
	callq	_check_tnode
	movl	(%r12), %edx
	movl	8(%r12), %edi
	subl	%ebx, %edx
	movl	%ebx, %esi
	movl	%r15d, %ecx
	callq	_tkey_sub_equals
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %r14d
	movl	4(%r12), %ebx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_tkey_extract_bits
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_tnode_get_child
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	addl	%r14d, %ebx
	movq	%rax, %rdi
	callq	_node_parent
	xorl	%edi, %edi
	cmpq	%r13, %rax
	setne	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_NODE_TYPE
	movq	%r13, %r14
	movq	_T_TNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_BUG_ON
	movb	$1, %cl
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testq	%r13, %r13
	je	LBB0_12
LBB0_10:
	movq	%r13, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_11:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movl	%r15d, %r12d
	testq	%r13, %r13
	jne	LBB0_10
LBB0_12:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_BUG_ON
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_13:
	movq	%r13, %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_BUG_ON
	movb	$1, %bl
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_14:
	movq	%r14, %rdi
	callq	_IS_LEAF
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_BUG_ON
	movb	$1, %cl
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testb	%bl, %bl
	jne	LBB0_21
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IS_LEAF
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	callq	_tkey_equals
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_leaf_info_new
	testq	%rax, %rax
	je	LBB0_33
## %bb.18:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_insert_leaf_info
	jmp	LBB0_41
LBB0_20:
	xorl	%ecx, %ecx
LBB0_21:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_leaf_new
	testq	%rax, %rax
	je	LBB0_41
## %bb.22:
	movq	%rax, %r15
	movl	%r12d, 4(%rax)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_leaf_info_new
	testq	%rax, %rax
	je	LBB0_35
## %bb.23:
	movq	%r15, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_insert_leaf_info
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	sete	%al
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	xorb	$1, %cl
	orb	%al, %cl
	jne	LBB0_25
## %bb.24:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_node_set_parent
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movl	%r12d, %edi
	callq	_tkey_extract_bits
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_put_child
	jmp	LBB0_38
LBB0_25:
	xorl	%esi, %esi
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_27
## %bb.26:
	movq	%r14, %rax
	movl	4(%r14), %esi
	addl	(%r14), %esi
LBB0_27:
	testb	%dl, %dl
	je	LBB0_29
## %bb.28:
	xorl	%r13d, %r13d
	movl	%r12d, %edi
	xorl	%esi, %esi
	jmp	LBB0_30
LBB0_29:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edx
	movl	%r12d, %edi
	callq	_tkey_mismatch
	movl	8(%rbx), %edi
	movl	%eax, %r13d
	movl	%eax, %esi
LBB0_30:
	movl	$1, %edx
	callq	_tnode_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_34
## %bb.31:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_node_set_parent
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_tkey_extract_bits
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_put_child
	movl	$1, %edx
	subl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_put_child
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_36
## %bb.32:
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	movq	%rbx, %r14
	jmp	LBB0_37
LBB0_33:
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_34:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_leaf_info
LBB0_35:
	movq	%r15, %rdi
	callq	_free_leaf
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_36:
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movl	%r12d, %edi
	callq	_tkey_extract_bits
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_put_child
LBB0_37:
	movq	%r13, %rbx
LBB0_38:
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	leal	(%rcx,%rdx), %eax
	cmpl	$33, %eax
	jl	LBB0_40
## %bb.39:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r12d, %r8d
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	callq	_pr_warning
LBB0_40:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_trie_rebalance
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_41:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T_TNODE,8,3                    ## @T_TNODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fib_trie tp=%p pos=%d, bits=%d, key=%0x plen=%d\n"

	.no_dead_strip	_fib_insert_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fib_insert_node
_fib_insert_node:                       ; @fib_insert_node
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_8
; %bb.1:
	mov	x0, x23
	bl	_NODE_TYPE
Lloh0:
	adrp	x26, _T_TNODE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _T_TNODE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.2:
	mov	w24, #0
	mov	x25, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x23
	mov	x0, x23
	bl	_check_tnode
	ldr	w0, [x23, #8]
	ldr	w8, [x23]
	sub	w2, w8, w24
	mov	x1, x24
	mov	x3, x21
	bl	_tkey_sub_equals
	cbz	x0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w24, w25, [x23]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	bl	_tkey_extract_bits
	mov	x1, x0
	mov	x0, x22
	bl	_tnode_get_child
	mov	x23, x0
	cbz	x0, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w25, w24
	mov	x0, x23
	bl	_node_parent
	cmp	x0, x22
	cset	w0, ne
	bl	_BUG_ON
	mov	x0, x23
	bl	_NODE_TYPE
	ldr	x8, [x26]
	mov	x25, x22
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.6:
	cbz	x22, LBB0_13
LBB0_7:
	mov	w24, #0
	b	LBB0_22
LBB0_8:
	mov	w0, #0
	bl	_BUG_ON
	mov	x22, #0
	mov	w26, #1
	mov	w28, #1
	bl	_leaf_new
	cbz	x0, LBB0_29
LBB0_9:
	mov	x25, x0
	str	w21, [x0, #4]
	mov	x0, x20
	bl	_leaf_info_new
	mov	x24, x0
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x25
	mov	x1, x24
	bl	_insert_leaf_info
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w8, eq
	eor	w9, w26, #0x1
	orr	w8, w8, w9
	tbnz	w8, #0, LBB0_15
; %bb.11:
	mov	x0, x25
	mov	x1, x22
	bl	_node_set_parent
	ldp	w1, w2, [x22]
	mov	x0, x21
	bl	_tkey_extract_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x25
	b	LBB0_34
LBB0_12:
	mov	x22, #0
	cbnz	x22, LBB0_7
LBB0_13:
	mov	w0, #0
	bl	_BUG_ON
	mov	w28, #1
	b	LBB0_24
LBB0_14:
	mov	x0, x25
	bl	_free_leaf
	b	LBB0_38
LBB0_15:
	tbz	w28, #0, LBB0_30
; %bb.16:
	mov	w1, #0
	tbnz	w26, #0, LBB0_31
LBB0_17:
	ldr	w2, [x23, #8]
	mov	x0, x21
	bl	_tkey_mismatch
	mov	x27, x0
	ldr	w0, [x23, #8]
	mov	x1, x27
	mov	w2, #1
	bl	_tnode_new
	mov	x26, x0
	cbz	x26, LBB0_32
LBB0_18:
	mov	x0, x26
	mov	x1, x22
	bl	_node_set_parent
	mov	x0, x21
	mov	x1, x27
	mov	w2, #1
	bl	_tkey_extract_bits
	mov	x27, x0
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	mov	x3, x25
	bl	_put_child
	mov	w8, #1
	sub	w2, w8, w27
	mov	x0, x19
	mov	x1, x26
	mov	x3, x23
	bl	_put_child
	tbz	w28, #0, LBB0_33
; %bb.19:
	ldr	x0, [x19]
	mov	x1, x26
	bl	_rcu_assign_pointer
	mov	x22, x26
	b	LBB0_35
LBB0_20:
	mov	x22, x25
	cbnz	x22, LBB0_7
	b	LBB0_13
LBB0_21:
	bl	_BUG_ON
	mov	w24, #1
LBB0_22:
	mov	x0, x22
	bl	_IS_LEAF
	cmp	x0, #0
	cset	w0, ne
	bl	_BUG_ON
	mov	w28, #0
	tbz	w24, #0, LBB0_24
; %bb.23:
	mov	w26, #1
	bl	_leaf_new
	cbnz	x0, LBB0_9
	b	LBB0_29
LBB0_24:
	mov	x0, x23
	bl	_IS_LEAF
	cbz	x0, LBB0_28
; %bb.25:
	ldr	w1, [x23, #8]
	mov	x0, x21
	bl	_tkey_equals
	cbz	x0, LBB0_28
; %bb.26:
	mov	x0, x20
	bl	_leaf_info_new
	mov	x24, x0
	cbz	x0, LBB0_38
; %bb.27:
	mov	x0, x23
	mov	x1, x24
	bl	_insert_leaf_info
	b	LBB0_38
LBB0_28:
	mov	w26, #0
	bl	_leaf_new
	cbnz	x0, LBB0_9
LBB0_29:
	mov	x24, #0
	b	LBB0_38
LBB0_30:
	ldp	w8, w9, [x22]
	add	w1, w9, w8
	tbz	w26, #0, LBB0_17
LBB0_31:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_tnode_new
	mov	x26, x0
	mov	w27, #0
	cbnz	x26, LBB0_18
LBB0_32:
	mov	x0, x24
	bl	_free_leaf_info
	mov	x0, x25
	bl	_free_leaf
	mov	x24, #0
	b	LBB0_38
LBB0_33:
	ldp	w1, w2, [x22]
	mov	x0, x21
	bl	_tkey_extract_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x26
LBB0_34:
	bl	_put_child
LBB0_35:
	ldp	w2, w3, [x22]
	add	w8, w3, w2
	cmp	w8, #33
	b.lt	LBB0_37
; %bb.36:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x4, x21
	mov	x5, x20
	bl	_pr_warning
LBB0_37:
	mov	x0, x19
	mov	x1, x22
	bl	_trie_rebalance
LBB0_38:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_T_TNODE,8,3                    ; @T_TNODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fib_trie tp=%p pos=%d, bits=%d, key=%0x plen=%d\n"

	.no_dead_strip	_fib_insert_node
.subsections_via_symbols
