	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fn_trie_lookup
_fn_trie_lookup:                        ## @fn_trie_lookup
	.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
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_ntohl
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_KEYLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_LEAF
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_check_leaf
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_3:
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %esi
	movl	8(%r14), %edi
	callq	_mask_pfx
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_mask_pfx
	xorl	%edx, %edx
	xorl	%ebx, %eax
	jne	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movl	%edx, %r12d
	movl	(%r14), %ebx
	movl	4(%r14), %r13d
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mask_pfx
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_tkey_extract_bits
	movl	%eax, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_tnode_get_child_rcu
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_LEAF
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%ebx, %r13d
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	movl	8(%r14), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%esi, %edx
	callq	_tkey_extract_bits
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_check_leaf
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_19
	jmp	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_KEYLENGTH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	decb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	movzbl	%cl, %ecx
	xorl	%ebx, %ebx
	btl	%ecx, %eax
	jb	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	addl	%eax, %eax
	testl	%eax, %edx
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	movl	8(%r14), %edi
	subl	%ebx, %edx
	movl	%ebx, %esi
	callq	_tkey_extract_bits
	testl	%eax, %eax
	je	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_19:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movl	4(%r14), %r13d
	cmpl	%r13d, %r12d
	movl	%r13d, %ebx
	cmovgl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_19 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r12d, %ebx
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	leal	1(%r12), %edx
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	btl	%r12d, %r15d
	movl	%edx, %r12d
	jae	LBB0_20
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_node_parent_rcu
	testq	%rax, %rax
	je	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%r14, %rcx
	movq	%rax, %r14
	notl	%ebx
	addl	%ebx, %r13d
	addl	%r15d, %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%r13d, %eax
	cmovgel	%r13d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rcx), %edi
	movl	(%r14), %esi
	movl	4(%r14), %edx
	callq	_tkey_extract_bits
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	(%r14), %r13d
	subl	%edx, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r13d, %ecx
	cmovgel	%r13d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_4
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%r14), %eax
	cmovgel	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_24:
	movl	$1, %ebx
LBB0_25:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYLENGTH,4,2                  ## @KEYLENGTH
	.no_dead_strip	_fn_trie_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fn_trie_lookup
_fn_trie_lookup:                        ; @fn_trie_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	x1, x2, [sp]                    ; 16-byte Folded Spill
	ldr	x21, [x0]
	ldr	w0, [x1]
	bl	_ntohl
	mov	x22, x0
Lloh0:
	adrp	x8, _KEYLENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEYLENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_rcu_read_lock
	ldr	w0, [x21, #12]
	bl	_rcu_dereference
	cbz	x0, LBB0_26
; %bb.1:
	mov	x24, x0
	bl	_IS_LEAF
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	ldp	x3, x4, [sp]                    ; 16-byte Folded Reload
	bl	_check_leaf
	mov	x26, x0
	b	LBB0_27
LBB0_3:
	mov	w8, #0
	mov	w25, #0
	mov	w19, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x24]
	add	w10, w10, w27
	sub	w10, w10, w8
	cmp	w23, w10
	csel	w23, w23, w10, lt
	bic	w25, w25, w9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
	mov	x26, x24
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x26, #8]
	ldr	w1, [x26]
	bl	_mask_pfx
	mov	x27, x0
	ldr	w1, [x26]
	mov	x0, x22
	bl	_mask_pfx
	mov	w8, #0
	eor	w9, w0, w27
	cbnz	w9, LBB0_15
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	mov	x24, x26
	ldp	w27, w28, [x26]
	cbnz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x22
	mov	x1, x23
	bl	_mask_pfx
	mov	x1, x27
	mov	x2, x28
	bl	_tkey_extract_bits
	mov	x25, x0
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	mov	x1, x25
	bl	_tnode_get_child_rcu
	cbz	x0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x26, x0
	bl	_IS_LEAF
	cbnz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w28, w27
	cmp	w23, w8
	b.ge	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x26, #8]
	ldr	w8, [x26]
	sub	w2, w8, w23
	mov	x1, x23
	bl	_tkey_extract_bits
	cbnz	w0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x26, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_6
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x22
	ldp	x3, x4, [sp]                    ; 16-byte Folded Reload
	bl	_check_leaf
	cmp	w0, #0
	b.gt	LBB0_20
	b	LBB0_28
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh3:
	adrp	x8, _KEYLENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEYLENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #1
	lsl	w8, w19, w8
	tst	w8, w9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #0
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #0
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w27, w27, #1
	lsl	w9, w9, #1
	tst	w8, w9
	b.eq	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26, #8]
	ldr	w8, [x26]
	sub	w2, w8, w27
	mov	x1, x27
	bl	_tkey_extract_bits
	cbz	w0, LBB0_25
LBB0_20:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	ldr	w27, [x24, #4]
	cmp	w20, w27
	csel	w28, w20, w27, gt
LBB0_21:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_20 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w28, w20
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=3
	add	w8, w20, #1
	lsl	w9, w19, w20
	mov	x20, x8
	tst	w9, w25
	b.eq	LBB0_21
	b	LBB0_4
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	w20, [x24]
	mov	x0, x24
	bl	_node_parent_rcu
	cbz	x0, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=2
	mov	x26, x0
	mvn	w8, w28
	add	w8, w27, w8
	add	w8, w8, w20
	cmp	w23, w8
	csel	w23, w23, w8, lt
	ldr	w0, [x24, #8]
	ldp	w1, w2, [x26]
	bl	_tkey_extract_bits
	mov	x25, x0
	mov	w20, #0
	mov	x24, x26
	b	LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	ldr	w9, [x26]
	cmp	w23, w9
	csel	w23, w23, w27, lt
	mov	x24, x26
	b	LBB0_5
LBB0_26:
	mov	w26, #1
LBB0_27:
	bl	_rcu_read_unlock
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
	mov	x26, x0
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYLENGTH,4,2                  ; @KEYLENGTH
	.no_dead_strip	_fn_trie_lookup
.subsections_via_symbols
