	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfxrtr_add
_pfxrtr_add:                            ## @pfxrtr_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ND6_UNLOCK_ASSERT
	xorl	%eax, %eax
	callq	_ND6_RLOCK
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pfxrtr_lookup
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_ND6_RUNLOCK
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_M_IP6NDP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_defrouter_ref
	movq	%r12, (%r15)
	xorl	%eax, %eax
	callq	_ND6_WLOCK
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pfxrtr_lookup
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%r12, %rdi
	callq	_defrouter_rele
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ND6_WUNLOCK                    ## TAILCALL
LBB0_3:
	movq	_pfr_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_LIST_INSERT_HEAD
	xorl	%eax, %eax
	callq	_ND6_WUNLOCK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfxlist_onlink_check           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_IP6NDP,4,2                   ## @M_IP6NDP
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_pfr_entry,4,2                  ## @pfr_entry
	.no_dead_strip	_pfxrtr_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfxrtr_add
_pfxrtr_add:                            ; @pfxrtr_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_ND6_UNLOCK_ASSERT
	bl	_ND6_RLOCK
	mov	x0, x19
	mov	x1, x20
	bl	_pfxrtr_lookup
	mov	x21, x0
	bl	_ND6_RUNLOCK
	cbz	x21, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x22, _M_IP6NDP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_IP6NDP@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_1
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_defrouter_ref
	str	x20, [x21]
	bl	_ND6_WLOCK
	mov	x0, x19
	mov	x1, x20
	bl	_pfxrtr_lookup
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_defrouter_rele
	ldr	w1, [x22]
	mov	x0, x21
	bl	_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ND6_WUNLOCK
LBB0_5:
Lloh8:
	adrp	x8, _pfr_entry@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pfr_entry@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_LIST_INSERT_HEAD
	bl	_ND6_WUNLOCK
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pfxlist_onlink_check
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_M_IP6NDP,4,2                   ; @M_IP6NDP
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_pfr_entry,4,2                  ; @pfr_entry
	.no_dead_strip	_pfxrtr_add
.subsections_via_symbols
