	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_mesh_prep_len
_verify_mesh_prep_len:                  ## @verify_mesh_prep_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rcx
	movq	_IEEE80211_MESHPREP_FLAGS_AE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rdx), %esi
	testl	%eax, 8(%rdx)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_MESHPREP_BASE_SZ_AE@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmpl	(%rax), %esi
	je	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	_IEEE80211_MESHPREP_BASE_SZ@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmpl	(%rax), %esi
	jne	LBB0_5
LBB0_4:
	movl	$1, %eax
	testl	%esi, %esi
	js	LBB0_5
## %bb.6:
	popq	%rbp
	retq
LBB0_5:
	movq	_IEEE80211_MSG_ACTION@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_HWMP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %r8
	movq	%rcx, %rdx
	xorl	%ecx, %ecx
	callq	_IEEE80211_DISCARD
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MESHPREP_FLAGS_AE,4,2 ## @IEEE80211_MESHPREP_FLAGS_AE
	.comm	_IEEE80211_MESHPREP_BASE_SZ_AE,4,2 ## @IEEE80211_MESHPREP_BASE_SZ_AE
	.comm	_IEEE80211_MESHPREP_BASE_SZ,4,2 ## @IEEE80211_MESHPREP_BASE_SZ
	.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	"PREP (AE=%s) with wrong len"

L_.str.1:                               ## @.str.1
	.asciz	"1"

L_.str.2:                               ## @.str.2
	.asciz	"0"

	.no_dead_strip	_verify_mesh_prep_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_prep_len
_verify_mesh_prep_len:                  ; @verify_mesh_prep_len
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
Lloh0:
	adrp	x9, _IEEE80211_MESHPREP_FLAGS_AE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_MESHPREP_FLAGS_AE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	ldp	w9, w11, [x2, #4]
	tst	w10, w11
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x10, _IEEE80211_MESHPREP_BASE_SZ_AE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_MESHPREP_BASE_SZ_AE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x5, l_.str.1@PAGE
Lloh7:
	add	x5, x5, l_.str.1@PAGEOFF
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.2:
	tbz	w9, #31, LBB0_5
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x10, _IEEE80211_MESHPREP_BASE_SZ@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IEEE80211_MESHPREP_BASE_SZ@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x5, l_.str.2@PAGE
Lloh12:
	add	x5, x5, l_.str.2@PAGEOFF
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.4:
	tbnz	w9, #31, LBB0_6
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh13:
	adrp	x9, _IEEE80211_MSG_ACTION@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_MSG_ACTION@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _IEEE80211_MSG_HWMP@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IEEE80211_MSG_HWMP@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w1, w10, w9
Lloh19:
	adrp	x4, l_.str@PAGE
Lloh20:
	add	x4, x4, l_.str@PAGEOFF
	mov	x2, x8
	mov	x3, #0
	bl	_IEEE80211_DISCARD
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MESHPREP_FLAGS_AE,4,2 ; @IEEE80211_MESHPREP_FLAGS_AE
	.comm	_IEEE80211_MESHPREP_BASE_SZ_AE,4,2 ; @IEEE80211_MESHPREP_BASE_SZ_AE
	.comm	_IEEE80211_MESHPREP_BASE_SZ,4,2 ; @IEEE80211_MESHPREP_BASE_SZ
	.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	"PREP (AE=%s) with wrong len"

l_.str.1:                               ; @.str.1
	.asciz	"1"

l_.str.2:                               ; @.str.2
	.asciz	"0"

	.no_dead_strip	_verify_mesh_prep_len
.subsections_via_symbols
