	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dn_rt_set_next_hop
_dn_rt_set_next_hop:                    ## @dn_rt_set_next_hop
	.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, %rbx
	movq	%rdi, %r15
	movq	8(%rsi), %r12
	movq	8(%rdi), %r14
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_DN_FIB_RES_GW
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movq	8(%rbx), %rsi
	callq	_DN_FIB_RES_NH
	movq	_RT_SCOPE_LINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	8(%rbx), %rsi
	callq	_DN_FIB_RES_GW
	movq	%rax, 24(%r15)
LBB0_4:
	movq	(%r15), %rdi
	movl	(%r12), %esi
	movl	$8, %edx
	callq	_memcpy
LBB0_5:
	movl	(%rbx), %eax
	movl	%eax, 32(%r15)
	testq	%r14, %r14
	je	LBB0_9
## %bb.6:
	cmpq	$0, 16(%r15)
	je	LBB0_7
LBB0_9:
	movq	_RTAX_MTU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_dst_metric
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_dst_metric
	movq	8(%r15), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	ja	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movq	8(%r15), %rax
	movl	(%rax), %ecx
LBB0_12:
	movq	(%r15), %rax
	movslq	(%rbx), %rdx
	movl	%ecx, -4(%rax,%rdx,4)
LBB0_13:
	movq	%r15, %rdi
	callq	_dst_mtu
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dn_mss_from_pmtu
	movl	%eax, %ebx
	movq	_RTAX_ADVMSS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_dst_metric
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_dst_metric
	cmpl	%ebx, %eax
	jbe	LBB0_16
LBB0_15:
	movq	(%r15), %rax
	movslq	(%r14), %rcx
	movl	%ebx, -4(%rax,%rcx,4)
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	24(%r15), %rsi
	movq	_dn_neigh_table@GOTPCREL(%rip), %rdi
	movq	%r14, %rdx
	callq	___neigh_lookup_errno
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.17:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	%rbx, 16(%r15)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_SCOPE_LINK,8,3              ## @RT_SCOPE_LINK
	.comm	_dn_neigh_table,4,2             ## @dn_neigh_table
	.comm	_RTAX_MTU,4,2                   ## @RTAX_MTU
	.comm	_RTAX_ADVMSS,4,2                ## @RTAX_ADVMSS
	.no_dead_strip	_dn_rt_set_next_hop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dn_rt_set_next_hop
_dn_rt_set_next_hop:                    ; @dn_rt_set_next_hop
	.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	x21, x1
	mov	x19, x0
	ldr	x22, [x1, #8]
	ldr	x20, [x0, #8]
	cbz	x22, LBB0_5
; %bb.1:
	ldr	x0, [x21]
	mov	x1, x22
	bl	_DN_FIB_RES_GW
	cbz	x0, LBB0_4
; %bb.2:
	ldp	x0, x1, [x21]
	bl	_DN_FIB_RES_NH
Lloh0:
	adrp	x8, _RT_SCOPE_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_SCOPE_LINK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x0, x1, [x21]
	bl	_DN_FIB_RES_GW
	str	x0, [x19, #24]
LBB0_4:
	ldr	x0, [x19]
	ldr	w1, [x22]
	mov	w2, #8
	bl	_memcpy
LBB0_5:
	ldr	w8, [x21]
	str	w8, [x19, #32]
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
LBB0_7:
Lloh3:
	adrp	x21, _RTAX_MTU@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RTAX_MTU@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_10
	b	LBB0_11
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
LBB0_10:
	ldr	x9, [x19]
	ldrsw	x10, [x21]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
LBB0_11:
	mov	x0, x19
	bl	_dst_mtu
	mov	x1, x0
	mov	x0, x20
	bl	_dn_mss_from_pmtu
	mov	x20, x0
Lloh5:
	adrp	x21, _RTAX_ADVMSS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RTAX_ADVMSS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cmp	w0, w20
	b.ls	LBB0_14
LBB0_13:
	ldr	x8, [x19]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #2
	stur	w20, [x8, #-4]
LBB0_14:
	mov	w0, #0
	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_15:
	add	x1, x19, #24
Lloh7:
	adrp	x0, _dn_neigh_table@GOTPAGE
Lloh8:
	ldr	x0, [x0, _dn_neigh_table@GOTPAGEOFF]
	mov	x2, x20
	bl	___neigh_lookup_errno
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x21
	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	_PTR_ERR
LBB0_17:
	str	x21, [x19, #16]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_SCOPE_LINK,8,3              ; @RT_SCOPE_LINK
	.comm	_dn_neigh_table,4,2             ; @dn_neigh_table
	.comm	_RTAX_MTU,4,2                   ; @RTAX_MTU
	.comm	_RTAX_ADVMSS,4,2                ; @RTAX_ADVMSS
	.no_dead_strip	_dn_rt_set_next_hop
.subsections_via_symbols
