	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_md5_check
_eap_md5_check:                         ## @eap_md5_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-8(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movslq	(%rax), %rdx
	movq	_CHAP_MD5_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_6
## %bb.4:
	leaq	1(%rdx), %rax
	cmpq	%rax, %rcx
	jae	LBB0_5
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MD5,4,2               ## @EAP_TYPE_MD5
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MD5: Invalid frame"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CHAP_MD5_LEN,4,2               ## @CHAP_MD5_LEN
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MD5: Invalid response (response_len=%d payload_len=%lu"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_eap_md5_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_md5_check
_eap_md5_check:                         ; @eap_md5_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EAP_TYPE_MD5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_MD5@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x3, x29, #8
	bl	_eap_hdr_validate
	ldur	x8, [x29, #-8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldrsw	x9, [x0]
Lloh11:
	adrp	x10, _CHAP_MD5_LEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CHAP_MD5_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	add	x10, x9, #1
	ccmp	x8, x10, #0, eq
	b.hs	LBB0_6
; %bb.3:
Lloh14:
	adrp	x10, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x10]
	stp	x9, x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_wpa_printf
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh21:
	adrp	x8, _FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MD5,4,2               ; @EAP_TYPE_MD5
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MD5: Invalid frame"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CHAP_MD5_LEN,4,2               ; @CHAP_MD5_LEN
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MD5: Invalid response (response_len=%d payload_len=%lu"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_eap_md5_check
.subsections_via_symbols
