	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_findroute
_ip_findroute:                          ## @ip_findroute
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	$4, %esi
	callq	_bzero
	movq	%r14, %rdi
	callq	_M_GETFIB
	movl	%eax, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_fib4_lookup_nh_basic
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_ips_noroute@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPSTAT_INC
LBB0_2:
	movq	_ips_cantforward@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPSTAT_INC
	movq	_ICMP_UNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICMP_UNREACH_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_icmp_error
	jmp	LBB0_3
LBB0_4:
	movl	(%rbx), %eax
	movq	_NHF_BLACKHOLE@GOTPCREL(%rip), %rcx
	movq	_NHF_BROADCAST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movq	_ips_cantforward@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPSTAT_INC
	movq	%r14, %rdi
	callq	_m_freem
LBB0_3:
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_NHF_REJECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ips_noroute,4,2                ## @ips_noroute
	.comm	_ips_cantforward,4,2            ## @ips_cantforward
	.comm	_ICMP_UNREACH,4,2               ## @ICMP_UNREACH
	.comm	_ICMP_UNREACH_HOST,4,2          ## @ICMP_UNREACH_HOST
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_NHF_BLACKHOLE,4,2              ## @NHF_BLACKHOLE
	.comm	_NHF_BROADCAST,4,2              ## @NHF_BROADCAST
	.comm	_NHF_REJECT,4,2                 ## @NHF_REJECT
	.no_dead_strip	_ip_findroute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_findroute
_ip_findroute:                          ; @ip_findroute
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w1, #4
	bl	_bzero
	mov	x0, x19
	bl	_M_GETFIB
	and	x1, x21, #0xffffffff
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_fib4_lookup_nh_basic
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ips_noroute@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ips_noroute@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IPSTAT_INC
LBB0_2:
Lloh3:
	adrp	x8, _ips_cantforward@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ips_cantforward@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IPSTAT_INC
Lloh6:
	adrp	x8, _ICMP_UNREACH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICMP_UNREACH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ICMP_UNREACH_HOST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICMP_UNREACH_HOST@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_icmp_error
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _NHF_BLACKHOLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NHF_BLACKHOLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _NHF_BROADCAST@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NHF_BROADCAST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh18:
	adrp	x8, _ips_cantforward@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ips_cantforward@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_IPSTAT_INC
	mov	x0, x19
	bl	_m_freem
LBB0_5:
Lloh21:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_6:
	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_7:
Lloh24:
	adrp	x9, _NHF_REJECT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NHF_REJECT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.8:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ips_noroute,4,2                ; @ips_noroute
	.comm	_ips_cantforward,4,2            ; @ips_cantforward
	.comm	_ICMP_UNREACH,4,2               ; @ICMP_UNREACH
	.comm	_ICMP_UNREACH_HOST,4,2          ; @ICMP_UNREACH_HOST
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_NHF_BLACKHOLE,4,2              ; @NHF_BLACKHOLE
	.comm	_NHF_BROADCAST,4,2              ; @NHF_BROADCAST
	.comm	_NHF_REJECT,4,2                 ; @NHF_REJECT
	.no_dead_strip	_ip_findroute
.subsections_via_symbols
