	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dn_send_router_hello
_dn_send_router_hello:                  ## @dn_send_router_hello
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_mtu2blksize
	cmpl	$33, %eax
	jl	LBB0_9
## %bb.1:
	movq	%r13, %rdi
	callq	_mtu2blksize
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$-26, %ecx
	movslq	%ecx, %rcx
	imulq	$-1840700269, %rcx, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%ecx, %eax
	addl	$-26, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$2, %eax
	addl	%ecx, %eax
	cmpl	$32, %eax
	movl	$32, %r15d
	cmovll	%eax, %r15d
	leal	(,%r15,8), %eax
	subl	%r15d, %eax
	addl	$28, %eax
	movslq	%eax, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_dn_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r12
	movq	%r13, 8(%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movq	%r14, %rdx
	movq	%rax, %r14
	movq	_DN_RT_PKT_CNTL@GOTPCREL(%rip), %rax
	movq	_DN_RT_PKT_ERTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movb	%cl, (%r14)
	movw	$2, 1(%r14)
	leaq	4(%r14), %rdi
	movb	$0, 3(%r14)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dn_dn2eth
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$1, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_DN_RT_INFO_L1RT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_DN_RT_INFO_L2RT@GOTPCREL(%rip), %rax
LBB0_5:
	movb	(%rax), %al
	movb	%al, 4(%r14,%rbx)
	movq	%r13, %rdi
	callq	_mtu2blksize
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 5(%r14,%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	16(%rcx), %al
	movb	%al, 7(%r14,%rbx)
	movb	$0, 8(%r14,%rbx)
	movzwl	8(%rcx), %edi
	callq	_cpu_to_le16
	movl	%eax, 9(%r14,%rbx)
	movb	$0, 11(%r14,%rbx)
	leaq	(%r14,%rbx), %rdi
	addq	$13, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_memset
	leaq	(%r14,%rbx), %rsi
	addq	$21, %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_dn_neigh_elist
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	movb	%cl, 20(%r14,%rbx)
	leal	8(%rcx), %eax
	movb	%al, 12(%r14,%rbx)
	movzbl	%cl, %esi
	addl	$27, %esi
	movq	%r12, %rdi
	callq	_skb_trim
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_skb_push
	movq	%rax, %rbx
	movl	(%r12), %edi
	addl	$-2, %edi
	callq	_cpu_to_le16
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_skb_reset_network_header
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_dn_am_i_a_router
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_copy
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_dn_rt_all_end_mcast@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_dn_rt_finish_output
LBB0_8:
	movq	_dn_rt_all_rt_mcast@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dn_rt_finish_output            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_DN_RT_PKT_CNTL,4,2             ## @DN_RT_PKT_CNTL
	.comm	_DN_RT_PKT_ERTH,4,2             ## @DN_RT_PKT_ERTH
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_DN_RT_INFO_L1RT,4,2            ## @DN_RT_INFO_L1RT
	.comm	_DN_RT_INFO_L2RT,4,2            ## @DN_RT_INFO_L2RT
	.comm	_dn_rt_all_end_mcast,4,2        ## @dn_rt_all_end_mcast
	.comm	_dn_rt_all_rt_mcast,4,2         ## @dn_rt_all_rt_mcast
	.no_dead_strip	_dn_send_router_hello
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dn_send_router_hello
_dn_send_router_hello:                  ; @dn_send_router_hello
	.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	x19, x1
	mov	x24, x0
	ldr	x20, [x0]
	ldr	x21, [x20, #24]
	bl	_mtu2blksize
	cmp	w0, #33
	b.lt	LBB0_6
; %bb.1:
	mov	x0, x24
	bl	_mtu2blksize
	sub	w8, w0, #26
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #2
	add	w8, w9, w8, lsr #31
	mov	w9, #32
	cmp	w8, #32
	csel	w25, w8, w9, lt
	lsl	w8, w25, #3
	sub	w8, w8, w25
	add	w8, w8, #28
	sxtw	x23, w8
Lloh0:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, #0
	mov	x1, x23
	bl	_dn_alloc_skb
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	str	x24, [x0, #8]
	mov	x1, x23
	bl	_skb_put
Lloh2:
	adrp	x8, _DN_RT_PKT_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DN_RT_PKT_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DN_RT_PKT_ERTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DN_RT_PKT_ERTH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	strb	w8, [x0]
	mov	w8, #2
	sturh	w8, [x0, #1]
	add	x23, x0, #4
	strb	wzr, [x0, #3]
	ldr	w1, [x19]
	mov	x0, x23
	bl	_dn_dn2eth
Lloh8:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x27, x23, x8
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _DN_RT_INFO_L1RT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DN_RT_INFO_L1RT@GOTPAGEOFF]
Lloh13:
	adrp	x10, _DN_RT_INFO_L2RT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DN_RT_INFO_L2RT@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	strb	w8, [x27]
	mov	x0, x24
	bl	_mtu2blksize
	bl	_cpu_to_le16
	stur	w0, [x27, #1]
	ldr	w8, [x20, #16]
	strb	w8, [x27, #3]
	strb	wzr, [x27, #4]
	ldrh	w0, [x20, #8]
	bl	_cpu_to_le16
	stur	w0, [x27, #5]
	strb	wzr, [x27, #7]
	add	x0, x27, #9
	mov	w1, #0
	mov	w2, #7
	bl	_memset
	add	x1, x27, #17
	mov	x0, x24
	mov	x2, x25
	bl	_dn_neigh_elist
	lsl	w8, w0, #3
	sub	w8, w8, w0
	strb	w8, [x27, #16]
	add	w9, w8, #8
	strb	w9, [x27, #8]
	and	w8, w8, #0xff
	add	w1, w8, #27
	mov	x0, x22
	bl	_skb_trim
	mov	x0, x22
	mov	w1, #2
	bl	_skb_push
	mov	x24, x0
	ldr	w8, [x22]
	sub	w0, w8, #2
	bl	_cpu_to_le16
	str	w0, [x24]
	mov	x0, x22
	bl	_skb_reset_network_header
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_dn_am_i_a_router
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x26]
	mov	x0, x22
	bl	_skb_copy
	cbz	x0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _dn_rt_all_end_mcast@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dn_rt_all_end_mcast@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_dn_rt_finish_output
LBB0_5:
Lloh18:
	adrp	x8, _dn_rt_all_rt_mcast@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dn_rt_all_rt_mcast@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	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
	b	_dn_rt_finish_output
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_DN_RT_PKT_CNTL,4,2             ; @DN_RT_PKT_CNTL
	.comm	_DN_RT_PKT_ERTH,4,2             ; @DN_RT_PKT_ERTH
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_DN_RT_INFO_L1RT,4,2            ; @DN_RT_INFO_L1RT
	.comm	_DN_RT_INFO_L2RT,4,2            ; @DN_RT_INFO_L2RT
	.comm	_dn_rt_all_end_mcast,4,2        ; @dn_rt_all_end_mcast
	.comm	_dn_rt_all_rt_mcast,4,2         ; @dn_rt_all_rt_mcast
	.no_dead_strip	_dn_send_router_hello
.subsections_via_symbols
