	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwmp_prep_frame_process
_hwmp_prep_frame_process:               ## @hwmp_prep_frame_process
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rdi
	callq	_PREP_IE_TARGET_ADDR
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_mhwmp_dbg
	movq	%rbx, %rdi
	callq	_PREP_IE_ORIG_ADDR
	movq	%rax, %r13
	movl	20(%r12), %esi
	movq	%rax, %rdi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	cmpl	$0, 16(%r12)
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_PREP_IE_TTL
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$1, %eax
	jg	LBB0_4
## %bb.3:
	addq	$12, %r12
	jmp	LBB0_8
LBB0_4:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mesh_path_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	_MESH_PATH_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.11:
	movq	%r15, %rdi
	callq	_next_hop_deref_protected
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	decl	%r15d
	movq	%rbx, %rdi
	callq	_PREP_IE_FLAGS
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_PREP_IE_LIFETIME
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_PREP_IE_HOPCOUNT
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_PREP_IE_TARGET_ADDR
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_PREP_IE_TARGET_SN
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_PREP_IE_ORIG_SN
	movq	_MPATH_PREP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_cpu_to_le32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, %r14d
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
                                        ## kill: def $eax killed $eax def $rax
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	pushq	%r12
	pushq	$0
	pushq	%rax
	pushq	%r14
	pushq	%r15
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_mesh_path_sel_frame_tx
	addq	$64, %rsp
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	incl	8(%r12)
	addq	$4, %r12
	jmp	LBB0_8
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_8:
	incl	(%r12)
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received PREP from %pM\n"

	.comm	_MESH_PATH_ACTIVE,4,2           ## @MESH_PATH_ACTIVE
	.comm	_MPATH_PREP,4,2                 ## @MPATH_PREP
	.no_dead_strip	_hwmp_prep_frame_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwmp_prep_frame_process
_hwmp_prep_frame_process:               ; @hwmp_prep_frame_process
	.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
	sub	sp, sp, #32
	mov	x21, x3
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x2
	bl	_PREP_IE_TARGET_ADDR
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mhwmp_dbg
	mov	x0, x23
	bl	_PREP_IE_ORIG_ADDR
	mov	x22, x0
	ldr	w1, [x19, #20]
	bl	_ether_addr_equal
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
; %bb.2:
	mov	x0, x23
	bl	_PREP_IE_TTL
	subs	w26, w0, #1
	b.gt	LBB0_4
; %bb.3:
	add	x19, x19, #12
	b	LBB0_9
LBB0_4:
	bl	_rcu_read_lock
	mov	x0, x19
	mov	x1, x22
	bl	_mesh_path_lookup
	cbz	x0, LBB0_8
; %bb.5:
	mov	x25, x0
	add	x24, x0, #4
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	w8, [x25]
Lloh9:
	adrp	x9, _MESH_PATH_ACTIVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MESH_PATH_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x25
	bl	_next_hop_deref_protected
	ldr	w1, [x0]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_memcpy
	mov	x0, x24
	bl	_spin_unlock_bh
	mov	x0, x23
	bl	_PREP_IE_FLAGS
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x0, x23
	bl	_PREP_IE_LIFETIME
	mov	x25, x0
	mov	x0, x23
	bl	_PREP_IE_HOPCOUNT
	add	w24, w0, #1
	mov	x0, x23
	bl	_PREP_IE_TARGET_ADDR
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_PREP_IE_TARGET_SN
	mov	x27, x0
	mov	x0, x23
	bl	_PREP_IE_ORIG_SN
Lloh12:
	adrp	x8, _MPATH_PREP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPATH_PREP@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	bl	_cpu_to_le32
	mov	x28, x0
	mov	x0, x27
	bl	_cpu_to_le32
	mov	x27, x0
	mov	x0, x25
	bl	_cpu_to_le32
	mov	x25, x0
	mov	x0, x21
	bl	_cpu_to_le32
	sub	sp, sp, #32
	str	x19, [sp, #24]
	stp	w0, wzr, [sp, #12]
	stp	w26, w25, [sp, #4]
	str	w24, [sp]
	mov	x0, x23
	ldur	w1, [x29, #-92]                 ; 4-byte Folded Reload
	mov	x2, x22
	mov	x3, x28
	mov	w4, #0
	ldur	x5, [x29, #-104]                ; 8-byte Folded Reload
	mov	x6, x27
	mov	x7, x20
	bl	_mesh_path_sel_frame_tx
	add	sp, sp, #32
	bl	_rcu_read_unlock
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	x19, x19, #4
	b	LBB0_9
LBB0_7:
	mov	x0, x24
	bl	_spin_unlock_bh
LBB0_8:
	bl	_rcu_read_unlock
LBB0_9:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received PREP from %pM\n"

	.comm	_MESH_PATH_ACTIVE,4,2           ; @MESH_PATH_ACTIVE
	.comm	_MPATH_PREP,4,2                 ; @MPATH_PREP
	.no_dead_strip	_hwmp_prep_frame_process
.subsections_via_symbols
