	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addr_tree_lookup               ## -- Begin function addr_tree_lookup
	.p2align	4, 0x90
_addr_tree_lookup:                      ## @addr_tree_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	leaq	-80(%rbp), %r12
	movq	%r12, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_memcpy
	movq	%r15, -80(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_addr_is_ip6
	testq	%rax, %rax
	movl	$32, %eax
	movl	$128, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -72(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_rbtree_find_less_equal
	movq	-40(%rbp), %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	%r15, (%rbx)
	jne	LBB0_6
## %bb.3:
	leaq	24(%rbx), %rdi
	movl	8(%rbx), %esi
	movl	-72(%rbp), %ecx
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_addr_in_common
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, 8(%rbx)
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addr_tree_lookup               ; -- Begin function addr_tree_lookup
	.p2align	2
_addr_tree_lookup:                      ; @addr_tree_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x8, sp
	stp	x8, xzr, [sp, #32]
	add	x0, x8, #24
	bl	_memcpy
	str	x19, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_addr_is_ip6
	cmp	x0, #0
	mov	w8, #128
	mov	w9, #32
	csel	w8, w9, w8, eq
	str	w8, [sp, #8]
	mov	x1, sp
	add	x2, sp, #40
	mov	x0, x21
	bl	_rbtree_find_less_equal
	ldr	x21, [sp, #40]
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_2:
	cbz	x21, LBB0_1
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.4:
	add	x0, x21, #24
	ldr	w1, [x21, #8]
	ldr	w3, [sp, #8]
	mov	x2, x20
	mov	x4, x19
	bl	_addr_in_common
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, w0
	b.le	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_5
	b	LBB0_1
LBB0_7:
	mov	x21, #0
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
