	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fib6_add_rt2node
_fib6_add_rt2node:                      ## @fib6_add_rt2node
	.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, %r13
	movq	8(%rdx), %rcx
	movb	$1, %al
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	(%rcx), %ecx
	movq	_NLM_F_REPLACE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	setne	%r8b
	movq	_NLM_F_CREATE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	jmp	LBB0_3
LBB0_1:
	xorl	%r8d, %r8d
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
LBB0_3:
	leaq	16(%rdi), %r14
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	leaq	56(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	_NLM_F_EXCL@GOTPCREL(%rip), %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	%r15, %rdi
	movl	%r12d, %r8d
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rax, %rcx
	jg	LBB0_18
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%rbx), %rcx
	addq	$32, %rbx
	testq	%rcx, %rcx
	je	LBB0_23
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	%rcx, %rbx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rdi), %edx
	testl	%edx, (%rcx)
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%r8b, %r8b
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rcx
	cmpq	8(%rsi), %rcx
	jne	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rcx
	cmpq	16(%rsi), %rcx
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r14
	movl	%r8d, %r12d
	movq	%rdi, %r15
	leaq	56(%rbx), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipv6_addr_equal
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:
	movl	24(%rbx), %eax
	movq	_RTF_EXPIRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.20:
	movq	48(%r14), %rdx
	movq	%rdx, 48(%rbx)
	testl	%ecx, 24(%r14)
	jne	LBB0_9
## %bb.21:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 24(%rbx)
	movq	$0, 48(%rbx)
LBB0_9:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r14, %r12
	jmp	LBB0_25
LBB0_23:
	movb	$1, %al
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_26
	jmp	LBB0_25
LBB0_18:
	movb	$1, %al
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_25
LBB0_26:
	testb	%r8b, %r8b
	je	LBB0_27
LBB0_31:
	testb	%al, %al
	je	LBB0_34
## %bb.32:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_29
## %bb.33:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_36
LBB0_34:
	movq	%rsi, (%r12)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 40(%rsi)
	movq	32(%rbx), %rax
	movq	%rax, 32(%rsi)
	leaq	28(%rsi), %rdi
	movq	%rsi, %r12
	callq	_atomic_inc
	movq	_RTM_NEWROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_inet6_rt_notify
	movq	%rbx, %rdi
	callq	_rt6_release
	movl	(%r14), %ecx
	movq	_RTN_RTINFO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_36
## %bb.35:
	movq	(%r13), %rsi
	movq	(%rsi), %rsi
	incl	(%rsi)
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_36
LBB0_12:
	movb	$1, %r8b
	xorl	%eax, %eax
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_26
LBB0_25:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, 8(%rcx)
	testb	%r8b, %r8b
	jne	LBB0_31
LBB0_27:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_29
## %bb.28:
	leaq	L_.str(%rip), %rdi
	movq	%rsi, %r14
	callq	_pr_warn
	movq	%r14, %rsi
LBB0_29:
	movq	%rbx, 32(%rsi)
	movq	%rsi, (%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 40(%rsi)
	leaq	28(%rsi), %rdi
	movq	%rsi, %r14
	callq	_atomic_inc
	movq	_RTM_NEWROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_inet6_rt_notify
	movq	(%r13), %rax
	movq	(%rax), %rdx
	incl	4(%rdx)
	movl	(%rbx), %ecx
	movq	_RTN_RTINFO@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	testl	%ecx, (%rsi)
	jne	LBB0_36
## %bb.30:
	incl	(%rdx)
	orl	(%rsi), %ecx
	movl	%ecx, (%rbx)
LBB0_36:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NLM_F_REPLACE,4,2              ## @NLM_F_REPLACE
	.comm	_NLM_F_CREATE,4,2               ## @NLM_F_CREATE
	.comm	_NLM_F_EXCL,4,2                 ## @NLM_F_EXCL
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_RTF_EXPIRES,4,2                ## @RTF_EXPIRES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NLM_F_CREATE should be set when creating new route\n"

	.comm	_RTM_NEWROUTE,4,2               ## @RTM_NEWROUTE
	.comm	_RTN_RTINFO,4,2                 ## @RTN_RTINFO
L_.str.1:                               ## @.str.1
	.asciz	"NLM_F_REPLACE set, but no existing node found!\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_fib6_add_rt2node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fib6_add_rt2node
_fib6_add_rt2node:                      ; @fib6_add_rt2node
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NLM_F_REPLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NLM_F_REPLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w25, ne
Lloh3:
	adrp	x9, _NLM_F_CREATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NLM_F_CREATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w24, ne
	b	LBB0_3
LBB0_2:
	mov	w25, #0
	mov	w24, #1
LBB0_3:
	mov	x27, x19
	ldr	x22, [x27, #16]!
	cbz	x22, LBB0_23
; %bb.4:
	mov	x23, x21
	ldr	x8, [x23], #56
Lloh6:
	adrp	x28, _NLM_F_EXCL@GOTPAGE
Lloh7:
	ldr	x28, [x28, _NLM_F_EXCL@GOTPAGEOFF]
	mov	x26, x27
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x22]
	ldr	x8, [x21]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	x9, x8
	b.gt	LBB0_19
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x22, #32]!
	mov	x26, x22
	mov	x22, x9
	cbz	x9, LBB0_19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x9]
	ldr	w10, [x28]
	tst	w10, w9
	b.ne	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	tbnz	w25, #0, LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x22, #8]
	ldr	x10, [x21, #8]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x22, #16]
	ldr	x10, [x21, #16]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x22, #56
	mov	x1, x23
	bl	_ipv6_addr_equal
	cbz	x0, LBB0_5
; %bb.15:
	ldr	w8, [x22, #24]
Lloh8:
	adrp	x9, _RTF_EXPIRES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTF_EXPIRES@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.16:
	ldr	x10, [x21, #48]
	str	x10, [x22, #48]
	ldr	w10, [x21, #24]
	tst	w10, w9
	b.ne	LBB0_18
; %bb.17:
	bic	w8, w8, w9
	str	w8, [x22, #24]
	str	xzr, [x22, #48]
LBB0_18:
Lloh11:
	adrp	x8, _EEXIST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_33
LBB0_19:
	mov	w8, #1
	cmp	x26, x27
	b.ne	LBB0_25
LBB0_20:
	str	xzr, [x19, #8]
	tbnz	w25, #0, LBB0_26
LBB0_21:
	tbnz	w24, #0, LBB0_28
; %bb.22:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_28
LBB0_23:
	mov	w8, #1
	mov	x26, x27
	str	xzr, [x19, #8]
	tbnz	w25, #0, LBB0_26
	b	LBB0_21
LBB0_24:
	mov	w8, #0
	mov	w25, #1
	cmp	x26, x27
	b.eq	LBB0_20
LBB0_25:
	tbz	w25, #0, LBB0_21
LBB0_26:
	cbz	w8, LBB0_30
; %bb.27:
	tbz	w24, #0, LBB0_32
LBB0_28:
	str	x22, [x21, #32]
	str	x21, [x26]
	add	x0, x21, #28
	str	x19, [x21, #40]
	bl	_atomic_inc
Lloh15:
	adrp	x8, _RTM_NEWROUTE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTM_NEWROUTE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_inet6_rt_notify
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	w9, [x19]
Lloh18:
	adrp	x10, _RTN_RTINFO@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RTN_RTINFO@GOTPAGEOFF]
	ldr	w11, [x10]
	tst	w11, w9
	b.ne	LBB0_31
; %bb.29:
	mov	w0, #0
	ldr	w11, [x8]
	add	w11, w11, #1
	str	w11, [x8]
	ldr	w8, [x10]
	orr	w8, w8, w9
	b	LBB0_35
LBB0_30:
	str	x21, [x26]
	ldr	x8, [x22, #32]
	stp	x8, x19, [x21, #32]
	add	x0, x21, #28
	bl	_atomic_inc
Lloh20:
	adrp	x8, _RTM_NEWROUTE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTM_NEWROUTE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_inet6_rt_notify
	mov	x0, x22
	bl	_rt6_release
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _RTN_RTINFO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RTN_RTINFO@GOTPAGEOFF]
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_34
LBB0_31:
	mov	w0, #0
	b	LBB0_36
LBB0_32:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
Lloh27:
	adrp	x8, _ENOENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_33:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_36
LBB0_34:
	mov	w0, #0
	ldr	x10, [x20]
	ldr	x10, [x10]
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_35:
	str	w8, [x19]
LBB0_36:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NLM_F_REPLACE,4,2              ; @NLM_F_REPLACE
	.comm	_NLM_F_CREATE,4,2               ; @NLM_F_CREATE
	.comm	_NLM_F_EXCL,4,2                 ; @NLM_F_EXCL
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_RTF_EXPIRES,4,2                ; @RTF_EXPIRES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NLM_F_CREATE should be set when creating new route\n"

	.comm	_RTM_NEWROUTE,4,2               ; @RTM_NEWROUTE
	.comm	_RTN_RTINFO,4,2                 ; @RTN_RTINFO
l_.str.1:                               ; @.str.1
	.asciz	"NLM_F_REPLACE set, but no existing node found!\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_fib6_add_rt2node
.subsections_via_symbols
