	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addrtree_insert                ## -- Begin function addrtree_insert
	.p2align	4, 0x90
_addrtree_insert:                       ## @addrtree_insert
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %r15
	movq	24(%rdi), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_log_assert
	movq	(%r14), %rax
	cmpq	%r12, %rax
	cmovlq	%rax, %r12
	cmpq	%rbx, %r12
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cmovlq	%r12, %rbx
	movq	%rbx, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_log_assert
	testq	%rbx, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.1:
	xorl	%edx, %edx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_getbit
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r12
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movq	(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	32(%rbx), %rsi
	cmpq	$0, 16(%rsi)
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpq	%r15, (%rsi)
	jge	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_purge_node
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	movq	24(%rbx), %rdi
	movq	%r14, %rdx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	_bits_common
	movq	%rax, %r15
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movq	32(%rbx), %r13
	xorl	%edi, %edi
	cmpq	%r14, %r15
	setle	%dil
	callq	_log_assert
	cmpq	%r14, %r15
	movq	%r14, %rbx
	movq	%r15, %rdx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_2
LBB0_13:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_clean_node
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 16(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	callq	*16(%r14)
	addl	%eax, 8(%r14)
	jmp	LBB0_14
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_node_create
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_edge_create
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_node_size
	addl	%eax, 8(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lru_push
	movq	%r14, %rdi
LBB0_27:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lru_cleanup                    ## TAILCALL
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_clean_node
	decl	12(%r14)
LBB0_23:
	movq	%r15, %rdi
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_15:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_node_create
	testq	%rax, %rax
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_14
## %bb.16:
	movq	%rax, %rdi
	movq	24(%r13), %rax
	movq	$0, (%rax,%r12,8)
	movq	%rdi, %r14
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	%r12d, %r8d
	callq	_edge_create
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_lru_push
	movq	(%rbx), %rsi
	movq	24(%rbx), %rdi
	movq	%r15, %rdx
	callq	_getbit
	movq	24(%r14), %rdx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rcx
	movq	%rbx, (%rdx,%rcx,8)
	movq	%r14, 16(%rbx)
	movl	%ecx, 8(%rbx)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %r15
	jne	LBB0_20
## %bb.19:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
LBB0_20:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_node_size
	addl	%eax, 8(%r12)
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_26
## %bb.21:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_node_create
	movq	%rax, %r15
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	$1, %r8d
	movq	%rax, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_edge_create
	movq	%r12, %rdi
	movq	%r15, %rsi
	testl	%eax, %eax
	je	LBB0_22
## %bb.25:
	callq	_node_size
	addl	%eax, 8(%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_lru_push
LBB0_26:
	movq	%r12, %rdi
	jmp	LBB0_27
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	24(%r13), %rax
	movq	%rbx, (%rax,%r12,8)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_clean_node
	decl	12(%r15)
	movq	%r14, %rdi
	jmp	LBB0_24
LBB0_22:
	callq	_clean_node
	decl	12(%r12)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addrtree_insert                ; -- Begin function addrtree_insert
	.p2align	2
_addrtree_insert:                       ; @addrtree_insert
	.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
	mov	x27, x6
	mov	x22, x5
	mov	x21, x4
	mov	x23, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x25, [x0, #24]
	cmp	x25, #0
	cset	w0, ne
	bl	_log_assert
	ldr	x8, [x19]
	cmp	x8, x23
	csel	x24, x8, x23, lt
	cmp	x24, x26
	csel	x23, x24, x26, lt
	lsr	x8, x23, #63
	eor	w0, w8, #0x1
	bl	_log_assert
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x23, LBB0_8
; %bb.1:
	mov	x26, #0
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x26
	bl	_getbit
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x28, w0
	ldr	x8, [x25, #24]
	ldr	x21, [x8, w0, sxtw #3]
	cbz	x21, LBB0_9
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x21, #32]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [x1]
	cmp	x8, x27
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x19
	bl	_purge_node
	ldr	x8, [x25, #24]
	ldr	x21, [x8, x28, lsl #3]
	cbnz	x21, LBB0_3
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21, #24]
	ldr	x1, [x21]
	mov	x2, x20
	mov	x3, x23
	mov	x4, x26
	bl	_bits_common
	mov	x26, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x24, [x25, #8]
	ldr	x25, [x21, #32]
	cmp	x26, x23
	cset	w0, le
	bl	_log_assert
	cmp	x26, x23
	b.ne	LBB0_2
LBB0_8:
	mov	x0, x19
	mov	x1, x25
	bl	_clean_node
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	stp	x24, x0, [x25, #8]
	str	x22, [x25]
	ldr	x8, [x19, #16]
	blr	x8
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	b	LBB0_21
LBB0_9:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x24
	mov	x3, x22
	bl	_node_create
	cbz	x0, LBB0_21
; %bb.10:
	mov	x21, x0
	mov	x1, x20
	mov	x2, x23
	mov	x3, x25
	mov	x4, x28
	bl	_edge_create
	cbz	w0, LBB0_19
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_node_size
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_lru_push
LBB0_12:
	mov	x0, x19
	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
	b	_lru_cleanup
LBB0_13:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_node_create
	cbz	x0, LBB0_21
; %bb.14:
	mov	x27, x0
	ldr	x8, [x25, #24]
	str	xzr, [x8, x28, lsl #3]
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	mov	x4, x28
	bl	_edge_create
	cbz	w0, LBB0_22
; %bb.15:
	mov	x0, x19
	mov	x1, x27
	bl	_lru_push
	ldr	x0, [x21, #24]
	ldr	x1, [x21]
	mov	x2, x26
	bl	_getbit
	mov	x25, x0
	ldr	x8, [x27, #24]
	str	x21, [x8, w0, sxtw #3]
	str	x27, [x21, #16]
	str	w0, [x21, #8]
	cmp	x26, x23
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_17
; %bb.16:
	stp	x24, x21, [x27, #8]
	str	x22, [x27]
LBB0_17:
	mov	x0, x19
	mov	x1, x27
	bl	_node_size
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	cmp	x26, x23
	b.eq	LBB0_12
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	mov	x3, x22
	bl	_node_create
	mov	x21, x0
	eor	w4, w25, #0x1
	mov	x1, x20
	mov	x2, x23
	mov	x3, x27
	bl	_edge_create
	cbnz	w0, LBB0_11
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_clean_node
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x21
LBB0_20:
	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
	b	_free
LBB0_21:
	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_22:
	ldr	x8, [x25, #24]
	str	x21, [x8, x28, lsl #3]
	mov	x0, x19
	mov	x1, x27
	bl	_clean_node
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x27
	b	LBB0_20
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
