	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dn_fib_check_nh
_dn_fib_check_nh:                       ## @dn_fib_check_nh
	.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, %r14
	movq	%rdi, %rbx
	movq	32(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	_RTNH_F_ONLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.2:
	movq	(%rbx), %rax
	movq	_RT_SCOPE_LINK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_8
## %bb.3:
	callq	_dnet_addr_type
	movq	_RTN_UNICAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	24(%r14), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_25
## %bb.6:
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_dev_hold
	movq	(%rbx), %rax
	jmp	LBB0_21
LBB0_7:
	movq	_RTNH_F_PERVASIVE@GOTPCREL(%rip), %rax
	movq	_RTNH_F_ONLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	je	LBB0_17
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	-72(%rbp), %r15
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	32(%r14), %rax
	movq	%rax, -56(%rbp)
	movl	24(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	(%rbx), %rax
	incq	%rax
	movq	_RT_SCOPE_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovleq	%rcx, %rax
	movq	%rax, -72(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dn_fib_lookup
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	-48(%rbp), %rdi
	movq	_RTN_UNICAST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_14
## %bb.13:
	movq	_RTN_LOCAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_16
LBB0_14:
	movq	-40(%rbp), %rsi
	movq	%rsi, 8(%r14)
	callq	_DN_FIB_RES_OIF
	movl	%eax, 24(%r14)
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_DN_FIB_RES_DEV
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %rdi
	callq	_dev_hold
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	xorl	%eax, %eax
	movq	16(%r14), %rcx
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	cmovnel	%eax, %r12d
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_dn_fib_res_put
	movl	%r12d, %eax
	jmp	LBB0_10
LBB0_17:
	movl	24(%r14), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	cmpq	$0, 8(%rax)
	je	LBB0_23
## %bb.19:
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_25
## %bb.20:
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_dev_hold
	movq	_RT_SCOPE_HOST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_21:
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_25:
	movq	_ENETDOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_RTNH_F_ONLINK,4,2              ## @RTNH_F_ONLINK
	.comm	_RT_SCOPE_LINK,8,3              ## @RT_SCOPE_LINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTN_UNICAST,8,3                ## @RTN_UNICAST
	.comm	_init_net,4,2                   ## @init_net
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_RTN_LOCAL,8,3                  ## @RTN_LOCAL
	.comm	_RTNH_F_PERVASIVE,4,2           ## @RTNH_F_PERVASIVE
	.comm	_RT_SCOPE_HOST,8,3              ## @RT_SCOPE_HOST
	.no_dead_strip	_dn_fib_check_nh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dn_fib_check_nh
_dn_fib_check_nh:                       ; @dn_fib_check_nh
	.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, x0
	ldr	x0, [x2, #32]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _RTNH_F_ONLINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTNH_F_ONLINK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x21, _RT_SCOPE_LINK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RT_SCOPE_LINK@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.3:
	bl	_dnet_addr_type
Lloh5:
	adrp	x8, _RTN_UNICAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTN_UNICAST@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	w1, [x19, #24]
Lloh8:
	adrp	x0, _init_net@GOTPAGE
Lloh9:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	___dev_get_by_index
	cbz	x0, LBB0_21
; %bb.5:
	ldr	w8, [x0]
Lloh10:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.6:
	str	x0, [x19, #16]
	bl	_dev_hold
	mov	w20, #0
	ldr	x8, [x21]
	b	LBB0_20
LBB0_7:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _RTNH_F_PERVASIVE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RTNH_F_PERVASIVE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _RTNH_F_ONLINK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RTNH_F_ONLINK@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_16
LBB0_8:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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_11:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19, #32]
	str	x8, [sp, #40]
	ldr	w8, [x19, #24]
	str	w8, [sp, #32]
	ldr	x8, [x20]
	add	x9, x8, #1
Lloh21:
	adrp	x10, _RT_SCOPE_LINK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RT_SCOPE_LINK@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, x10, x8, le
	str	x8, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_dn_fib_lookup
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.12:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [sp, #8]
Lloh27:
	adrp	x8, _RTN_UNICAST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTN_UNICAST@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _RTN_LOCAL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RTN_LOCAL@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_15
; %bb.13:
	ldr	x1, [sp, #16]
	str	x1, [x19, #8]
	bl	_DN_FIB_RES_OIF
	str	w0, [x19, #24]
	ldp	x0, x1, [sp, #8]
	bl	_DN_FIB_RES_DEV
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_dev_hold
Lloh33:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _IFF_UP@GOTPAGE
Lloh37:
	ldr	x10, [x10, _IFF_UP@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	tst	w10, w9
	csneg	w20, wzr, w8, ne
LBB0_15:
	add	x0, sp, #8
	bl	_dn_fib_res_put
	b	LBB0_10
LBB0_16:
	ldr	w1, [x19, #24]
Lloh39:
	adrp	x0, _init_net@GOTPAGE
Lloh40:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	___dev_get_by_index
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_21
; %bb.18:
	ldr	w8, [x0]
Lloh41:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.19:
	str	x0, [x19, #16]
	bl	_dev_hold
	mov	w20, #0
Lloh44:
	adrp	x8, _RT_SCOPE_HOST@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RT_SCOPE_HOST@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
LBB0_20:
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_21:
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_22:
Lloh49:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_RTNH_F_ONLINK,4,2              ; @RTNH_F_ONLINK
	.comm	_RT_SCOPE_LINK,8,3              ; @RT_SCOPE_LINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTN_UNICAST,8,3                ; @RTN_UNICAST
	.comm	_init_net,4,2                   ; @init_net
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_RTN_LOCAL,8,3                  ; @RTN_LOCAL
	.comm	_RTNH_F_PERVASIVE,4,2           ; @RTNH_F_PERVASIVE
	.comm	_RT_SCOPE_HOST,8,3              ; @RT_SCOPE_HOST
	.no_dead_strip	_dn_fib_check_nh
.subsections_via_symbols
