	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_hdr_validate               ## -- Begin function eap_hdr_validate
	.p2align	4, 0x90
_eap_hdr_validate:                      ## @eap_hdr_validate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r13d
	movq	%rdx, %rdi
	movl	$1, %esi
	callq	_eap_hdr_len_valid
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_be_to_host16
	movq	%rax, %r12
	movq	4(%rbx), %rax
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	cmpq	$11, %r12
	ja	LBB0_8
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_5:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_11
## %bb.6:
	cmpq	%r15, %rax
	jne	LBB0_11
## %bb.7:
	addq	$-5, %r12
	movq	%r12, (%r14)
	addq	$12, %rbx
	jmp	LBB0_15
LBB0_8:
	leaq	12(%rbx), %rdi
	callq	_WPA_GET_BE24
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	36(%rbx), %rdi
	callq	_WPA_GET_BE32
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.9:
	cmpq	%r15, %rax
	jne	LBB0_12
## %bb.10:
	addq	$68, %rbx
	addq	$-12, %r12
	movq	%r12, (%r14)
	jmp	LBB0_15
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	callq	_wpa_printf
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_EXPANDED,8,3          ## @EAP_TYPE_EXPANDED
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP: Invalid expanded EAP length"

L_.str.1:                               ## @.str.1
	.asciz	"EAP: Invalid expanded frame type"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
L_.str.2:                               ## @.str.2
	.asciz	"EAP: Invalid frame type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_hdr_validate               ; -- Begin function eap_hdr_validate
	.p2align	2
_eap_hdr_validate:                      ; @eap_hdr_validate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x2
	mov	w1, #1
	bl	_eap_hdr_len_valid
	cbz	w0, LBB0_12
; %bb.1:
	mov	x0, x21
	bl	_wpabuf_head
	mov	x21, x0
	ldr	w0, [x0]
	bl	_be_to_host16
	mov	x23, x0
	ldur	x8, [x21, #4]
Lloh0:
	adrp	x9, _EAP_TYPE_EXPANDED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EAP_TYPE_EXPANDED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	cmp	x23, #11
	b.hi	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x9, _EAP_VENDOR_IETF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w22
	ccmp	x8, x20, #0, eq
	b.eq	LBB0_9
; %bb.5:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
	add	x0, x21, #12
	bl	_WPA_GET_BE24
	mov	x24, x0
	add	x0, x21, #36
	bl	_WPA_GET_BE32
	cmp	w24, w22
	b.ne	LBB0_10
; %bb.7:
	cmp	x0, x20
	b.ne	LBB0_10
; %bb.8:
	add	x0, x21, #68
	sub	x8, x23, #12
	str	x8, [x19]
	b	LBB0_13
LBB0_9:
	sub	x8, x23, #5
	str	x8, [x19]
	add	x0, x21, #12
	b	LBB0_13
LBB0_10:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_EXPANDED,8,3          ; @EAP_TYPE_EXPANDED
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP: Invalid expanded EAP length"

l_.str.1:                               ; @.str.1
	.asciz	"EAP: Invalid expanded frame type"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
l_.str.2:                               ; @.str.2
	.asciz	"EAP: Invalid frame type"

.subsections_via_symbols
