	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_hdr_len_valid              ## -- Begin function eap_hdr_len_valid
	.p2align	4, 0x90
_eap_hdr_len_valid:                     ## @eap_hdr_len_valid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_wpabuf_head
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_wpabuf_len
	cmpq	$4, %rax
	jae	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %edi
	callq	_be_to_host16
	addq	$4, %r14
	leaq	L_.str.1(%rip), %r15
	cmpq	%r14, %rax
	jb	LBB0_5
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rcx, %r12
	jbe	LBB0_6
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP: Too short EAP frame"

L_.str.1:                               ## @.str.1
	.asciz	"EAP: Invalid EAP length"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_hdr_len_valid              ; -- Begin function eap_hdr_len_valid
	.p2align	2
_eap_hdr_len_valid:                     ; @eap_hdr_len_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_wpabuf_head
	mov	x21, x0
	mov	x0, x19
	bl	_wpabuf_len
	cmp	x0, #4
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	w0, [x21]
	bl	_be_to_host16
	add	x8, x20, #4
	cmp	x0, x8
	b.lo	LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	bl	_wpabuf_len
	cmp	x21, x0
	b.ls	LBB0_8
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
Lloh4:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_wpa_printf
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #1
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP: Too short EAP frame"

l_.str.1:                               ; @.str.1
	.asciz	"EAP: Invalid EAP length"

.subsections_via_symbols
