	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_route_Add                      ## -- Begin function route_Add
	.p2align	4, 0x90
_route_Add:                             ## @route_Add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ROUTE_DSTANY@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	andl	%esi, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_ncprange_equal
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_free
	movq	(%rbx), %r13
	movq	16(%r13), %rdi
	movq	%rdi, (%rbx)
	testq	%rdi, %rdi
	jne	LBB0_2
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	andl	(%rdi), %eax
	cmpl	%eax, %r12d
	je	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_9:
	testq	%r13, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
LBB0_10:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movq	$0, 16(%r13)
	leaq	8(%r13), %rdi
	movq	%r15, %rsi
	callq	_ncprange_copy
	leaq	4(%r13), %rdi
	movq	%r14, %rsi
	callq	_ncpaddr_copy
	movq	%r13, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_Printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ROUTE_DSTANY,4,2               ## @ROUTE_DSTANY
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"route_Add: Out of memory!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_route_Add                      ; -- Begin function route_Add
	.p2align	2
_route_Add:                             ; @route_Add
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x23, #0
Lloh0:
	adrp	x24, _ROUTE_DSTANY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ROUTE_DSTANY@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w25, w9, w22
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x8, #8
	mov	x1, x20
	bl	_ncprange_equal
	cbz	x0, LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_free
	ldr	x23, [x21]
	ldr	x8, [x23, #16]
	str	x8, [x21]
	cbnz	x8, LBB0_5
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	b	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w25, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8]
	ldr	w10, [x24]
	and	w9, w10, w9
	cmp	w25, w9
	b.eq	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, #16]!
	mov	x21, x8
	mov	x8, x9
	cbnz	x8, LBB0_5
LBB0_8:
	cbnz	x23, LBB0_10
LBB0_9:
	mov	w0, #24
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_11
LBB0_10:
	str	w22, [x23]
	str	xzr, [x23, #16]
	add	x0, x23, #8
	mov	x1, x20
	bl	_ncprange_copy
	add	x0, x23, #4
	mov	x1, x19
	bl	_ncpaddr_copy
	str	x23, [x21]
	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
	ret
LBB0_11:
Lloh2:
	adrp	x8, _LogERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	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	_log_Printf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ROUTE_DSTANY,4,2               ; @ROUTE_DSTANY
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"route_Add: Out of memory!\n"

.subsections_via_symbols
