	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_mesh_perr_len
_verify_mesh_perr_len:                  ## @verify_mesh_perr_len
	.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	%rsi, %r10
	movq	_IEEE80211_MESHPERR_NDEST_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rdx,%rcx,4), %eax
	movq	_IEEE80211_MESHPERR_MAXDEST@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jle	LBB0_2
## %bb.1:
	movq	_IEEE80211_MSG_ACTION@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_MSG_HWMP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %r8
	movq	%r10, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_IEEE80211_DISCARD
	jmp	LBB0_20
LBB0_2:
	leaq	(%rdx,%rcx,4), %rsi
	addq	$4, %rsi
	testl	%eax, %eax
	jle	LBB0_18
## %bb.3:
	movq	_IEEE80211_MESHPERR_FLAGS_AE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_IEEE80211_MESHPERR_DEST_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_IEEE80211_MESHPERR_DEST_SZ_AE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leal	-1(%rax), %ecx
	movl	%eax, %r14d
	andl	$3, %r14d
	cmpl	$3, %ecx
	jae	LBB0_4
LBB0_14:
	testl	%r14d, %r14d
	jne	LBB0_15
LBB0_18:
	subq	%rdx, %rsi
	shrq	$2, %rsi
	addl	$-2, %esi
	cmpl	4(%rdx), %esi
	je	LBB0_21
## %bb.19:
	movq	_IEEE80211_MSG_ACTION@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_HWMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.1(%rip), %r8
	leaq	L_.str.2(%rip), %r9
	movq	%r10, %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_IEEE80211_DISCARD
LBB0_20:
	movl	$-1, %eax
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	%ecx, %rcx
	leaq	(%rsi,%rcx,4), %rsi
	decl	%r14d
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %ecx
	testl	%r8d, (%rsi)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r9d, %ecx
	jmp	LBB0_17
LBB0_4:
	movl	%eax, %r15d
	andl	$-4, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%rcx,4), %rcx
	movslq	%ebx, %rsi
	leaq	(%rcx,%rsi,4), %rsi
	addl	$-4, %r15d
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %ecx
	testl	%r8d, (%rsi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ecx, %rcx
	movl	%r11d, %ebx
	testl	%r8d, (%rsi,%rcx,4)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%rcx,4), %rsi
	movslq	%ebx, %rcx
	movl	%r11d, %ebx
	testl	%r8d, (%rsi,%rcx,4)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%rcx,4), %rsi
	movslq	%ebx, %rcx
	movl	%r11d, %ebx
	testl	%r8d, (%rsi,%rcx,4)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MESHPERR_NDEST_OFFSET,8,3 ## @IEEE80211_MESHPERR_NDEST_OFFSET
	.comm	_IEEE80211_MESHPERR_MAXDEST,4,2 ## @IEEE80211_MESHPERR_MAXDEST
	.comm	_IEEE80211_MSG_ACTION,4,2       ## @IEEE80211_MSG_ACTION
	.comm	_IEEE80211_MSG_HWMP,4,2         ## @IEEE80211_MSG_HWMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PERR with wrong number of destionat (>19), %u"

	.comm	_IEEE80211_MESHPERR_FLAGS_AE,4,2 ## @IEEE80211_MESHPERR_FLAGS_AE
	.comm	_IEEE80211_MESHPERR_DEST_SZ_AE,4,2 ## @IEEE80211_MESHPERR_DEST_SZ_AE
	.comm	_IEEE80211_MESHPERR_DEST_SZ,4,2 ## @IEEE80211_MESHPERR_DEST_SZ
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"PERR with wrong len"

	.no_dead_strip	_verify_mesh_perr_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_mesh_perr_len
_verify_mesh_perr_len:                  ; @verify_mesh_perr_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x9, x1
Lloh0:
	adrp	x8, _IEEE80211_MESHPERR_NDEST_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MESHPERR_NDEST_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x2, x10, lsl #2]
Lloh3:
	adrp	x11, _IEEE80211_MESHPERR_MAXDEST@GOTPAGE
Lloh4:
	ldr	x11, [x11, _IEEE80211_MESHPERR_MAXDEST@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w8, w11
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, _IEEE80211_MSG_ACTION@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_MSG_ACTION@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _IEEE80211_MSG_HWMP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IEEE80211_MSG_HWMP@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w1, w11, w10
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	add	x10, x2, x10, lsl #2
	add	x10, x10, #4
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
Lloh14:
	adrp	x11, _IEEE80211_MESHPERR_FLAGS_AE@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IEEE80211_MESHPERR_FLAGS_AE@GOTPAGEOFF]
Lloh16:
	adrp	x12, _IEEE80211_MESHPERR_DEST_SZ@GOTPAGE
Lloh17:
	ldr	x12, [x12, _IEEE80211_MESHPERR_DEST_SZ@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
Lloh19:
	ldr	w12, [x12]
Lloh20:
	adrp	x13, _IEEE80211_MESHPERR_DEST_SZ_AE@GOTPAGE
Lloh21:
	ldr	x13, [x13, _IEEE80211_MESHPERR_DEST_SZ_AE@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	mov	x14, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x10]
	tst	w11, w15
	csel	w15, w12, w13, eq
	add	x10, x10, w15, sxtw #2
	subs	w14, w14, #1
	b.ne	LBB0_4
LBB0_5:
	sub	x10, x10, x2
	lsr	x10, x10, #2
	sub	w10, w10, #2
	ldr	w11, [x2, #4]
	cmp	w10, w11
	b.eq	LBB0_8
; %bb.6:
Lloh23:
	adrp	x8, _IEEE80211_MSG_ACTION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IEEE80211_MSG_ACTION@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x10, _IEEE80211_MSG_HWMP@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IEEE80211_MSG_HWMP@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w1, w10, w8
Lloh29:
	adrp	x8, l_.str.2@PAGE
Lloh30:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh31:
	adrp	x4, l_.str.1@PAGE
Lloh32:
	add	x4, x4, l_.str.1@PAGEOFF
LBB0_7:
	str	x8, [sp]
	mov	x2, x9
	mov	x3, #0
	bl	_IEEE80211_DISCARD
	mov	w8, #-1
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MESHPERR_NDEST_OFFSET,8,3 ; @IEEE80211_MESHPERR_NDEST_OFFSET
	.comm	_IEEE80211_MESHPERR_MAXDEST,4,2 ; @IEEE80211_MESHPERR_MAXDEST
	.comm	_IEEE80211_MSG_ACTION,4,2       ; @IEEE80211_MSG_ACTION
	.comm	_IEEE80211_MSG_HWMP,4,2         ; @IEEE80211_MSG_HWMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PERR with wrong number of destionat (>19), %u"

	.comm	_IEEE80211_MESHPERR_FLAGS_AE,4,2 ; @IEEE80211_MESHPERR_FLAGS_AE
	.comm	_IEEE80211_MESHPERR_DEST_SZ_AE,4,2 ; @IEEE80211_MESHPERR_DEST_SZ_AE
	.comm	_IEEE80211_MESHPERR_DEST_SZ,4,2 ; @IEEE80211_MESHPERR_DEST_SZ
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"PERR with wrong len"

	.no_dead_strip	_verify_mesh_perr_len
.subsections_via_symbols
