	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwmp_perr_frame_process
_hwmp_perr_frame_process:               ## @hwmp_perr_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	(%rsi), %r14
	movq	%rdx, %rdi
	callq	_PERR_IE_TTL
	cmpl	$1, %eax
	jg	LBB0_1
## %bb.11:
	incl	4(%r13)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_PERR_IE_TARGET_ADDR
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_PERR_IE_TARGET_SN
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_PERR_IE_TARGET_RCODE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mesh_path_lookup
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%r13, %rcx
	movq	%rax, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ebx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	callq	_next_hop_deref_protected
	movq	_MESH_PATH_ACTIVE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, (%r13)
	je	LBB0_9
## %bb.3:
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	(%r13), %eax
	movq	_MESH_PATH_SN_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movl	8(%r13), %esi
	movl	%ebx, %edi
	callq	_SN_GT
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	(%r13), %eax
LBB0_7:
	movl	(%r14), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r13)
	movl	%ebx, 8(%r13)
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpl	$0, (%r13)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	decl	%r15d
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	_broadcast_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_mesh_path_error_tx
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
LBB0_10:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MESH_PATH_ACTIVE,4,2           ## @MESH_PATH_ACTIVE
	.comm	_MESH_PATH_SN_VALID,4,2         ## @MESH_PATH_SN_VALID
	.comm	_broadcast_addr,4,2             ## @broadcast_addr
	.no_dead_strip	_hwmp_perr_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_perr_frame_process
_hwmp_perr_frame_process:               ; @hwmp_perr_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
	mov	x23, x2
	mov	x19, x0
	ldr	x26, [x1]
	mov	x0, x2
	bl	_PERR_IE_TTL
	subs	w20, w0, #1
	b.gt	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	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_2:
	mov	x0, x23
	bl	_PERR_IE_TARGET_ADDR
	mov	x21, x0
	mov	x0, x23
	bl	_PERR_IE_TARGET_SN
	mov	x22, x0
	mov	x0, x23
	bl	_PERR_IE_TARGET_RCODE
	mov	x23, x0
	bl	_rcu_read_lock
	mov	x0, x19
	mov	x1, x21
	bl	_mesh_path_lookup
	cbz	x0, LBB0_11
; %bb.3:
	mov	x24, x0
	add	x25, x0, #4
	mov	x0, x25
	bl	_spin_lock_bh
	mov	x0, x24
	bl	_next_hop_deref_protected
	ldr	w8, [x24]
Lloh0:
	adrp	x27, _MESH_PATH_ACTIVE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MESH_PATH_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.4:
	ldr	w1, [x0]
	mov	x0, x26
	bl	_ether_addr_equal
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _MESH_PATH_SN_VALID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MESH_PATH_SN_VALID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w1, [x24, #8]
	mov	x0, x22
	bl	_SN_GT
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w8, [x24]
LBB0_8:
	ldr	w9, [x27]
	bic	w8, w8, w9
	str	w8, [x24]
	str	w22, [x24, #8]
	mov	x0, x25
	bl	_spin_unlock_bh
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.9:
	mov	x0, x22
	bl	_cpu_to_le32
	mov	x22, x0
	mov	x0, x23
	bl	_cpu_to_le16
	mov	x4, x0
Lloh5:
	adrp	x8, _broadcast_addr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _broadcast_addr@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_mesh_path_error_tx
	b	LBB0_11
LBB0_10:
	mov	x0, x25
	bl	_spin_unlock_bh
LBB0_11:
	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	_rcu_read_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MESH_PATH_ACTIVE,4,2           ; @MESH_PATH_ACTIVE
	.comm	_MESH_PATH_SN_VALID,4,2         ; @MESH_PATH_SN_VALID
	.comm	_broadcast_addr,4,2             ; @broadcast_addr
	.no_dead_strip	_hwmp_perr_frame_process
.subsections_via_symbols
