	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_md5_process
_eap_md5_process:                       ## @eap_md5_process
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CHAP_MD5_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rax)
	je	LBB0_4
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_12:
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_14:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rdx
	movslq	(%rax), %rcx
	movq	_CHAP_MD5_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_14
## %bb.6:
	leaq	1(%rcx), %rax
	cmpq	%rax, -64(%rbp)
	jb	LBB0_14
## %bb.7:
	addq	$4, %rdx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	%r12, %rdi
	callq	_eap_get_id
	movq	(%rbx), %rcx
	movq	8(%rcx), %rsi
	movl	(%rcx), %edx
	movl	8(%r15), %ecx
	movq	_CHALLENGE_LEN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movl	%eax, %edi
	movq	%r14, %r9
	callq	_chap_md5
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	movq	_CHAP_MD5_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcmp_const
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAP_MD5_LEN,4,2               ## @CHAP_MD5_LEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MD5: Plaintext password not configured"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MD5,4,2               ## @EAP_TYPE_MD5
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MD5: Response"

	.comm	_CHALLENGE_LEN,4,2              ## @CHALLENGE_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EAP-MD5: CHAP MD5 operation failed"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"EAP-MD5: Done - Success"

	.comm	_SUCCESS,8,3                    ## @SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"EAP-MD5: Done - Failure"

	.no_dead_strip	_eap_md5_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_md5_process
_eap_md5_process:                       ; @eap_md5_process
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _CHAP_MD5_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CHAP_MD5_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_8
LBB0_3:
Lloh7:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_wpa_printf
Lloh12:
	adrp	x8, _FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_6:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.7:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh17:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _EAP_TYPE_MD5@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAP_TYPE_MD5@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	sub	x3, x29, #80
	mov	x2, x22
	bl	_eap_hdr_validate
	cbz	x0, LBB0_6
; %bb.9:
	ldrsw	x3, [x0]
	ldr	w8, [x25]
	cmp	w3, w8
	b.ne	LBB0_6
; %bb.10:
	ldur	x8, [x29, #-80]
	add	x9, x3, #1
	cmp	x8, x9
	b.lo	LBB0_6
; %bb.11:
	add	x23, x0, #4
Lloh23:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	mov	x0, x22
	bl	_eap_get_id
	ldr	x8, [x21]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
Lloh28:
	adrp	x8, _CHALLENGE_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CHALLENGE_LEN@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	mov	x5, x20
	bl	_chap_md5
	cbz	x0, LBB0_13
; %bb.12:
Lloh31:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_13:
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x23
	bl	_os_memcmp_const
	mov	x8, x0
Lloh36:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x9]
	cbz	x8, LBB0_15
; %bb.14:
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_15:
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh43:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAP_MD5_LEN,4,2               ; @CHAP_MD5_LEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MD5: Plaintext password not configured"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MD5,4,2               ; @EAP_TYPE_MD5
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MD5: Response"

	.comm	_CHALLENGE_LEN,4,2              ; @CHALLENGE_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EAP-MD5: CHAP MD5 operation failed"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"EAP-MD5: Done - Success"

	.comm	_SUCCESS,8,3                    ; @SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"EAP-MD5: Done - Failure"

	.no_dead_strip	_eap_md5_process
.subsections_via_symbols
