	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_mschapv2_process
_eap_mschapv2_process:                  ## @eap_mschapv2_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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_eap_get_config
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_eap_mschapv2_check_config
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.4:
	movq	(%r13), %rax
	movq	_ERROR_AUTHENTICATION_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r13), %r12
	movq	$0, (%rbx)
LBB0_6:
	movq	%r13, %rbx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_MSCHAPV2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	-56(%rbp), %rsi
	cmpq	$8, %rsi
	jbe	LBB0_1
## %bb.8:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_eap_mschapv2_check_mslen
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	movq	%r12, %rdi
	callq	_eap_get_id
	movl	%eax, %edx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r13), %edx
	cmpl	$128, %edx
	je	LBB0_15
## %bb.10:
	cmpl	$129, %edx
	je	LBB0_16
## %bb.11:
	cmpl	$130, %edx
	jne	LBB0_17
## %bb.12:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_eap_mschapv2_copy_challenge
LBB0_14:
	movq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_eap_mschapv2_challenge
	movq	%rax, %rbx
	jmp	LBB0_18
LBB0_15:
	movq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_eap_mschapv2_success
	movq	%rax, %rbx
	jmp	LBB0_18
LBB0_16:
	movq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_eap_mschapv2_failure
	movq	%rax, %rbx
	jmp	LBB0_18
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_ERROR_AUTHENTICATION_FAILURE,8,3 ## @ERROR_AUTHENTICATION_FAILURE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MSCHAPV2: Replacing pending packet with the previous challenge"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MSCHAPV2,4,2          ## @EAP_TYPE_MSCHAPV2
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MSCHAPV2: RX identifier %d mschapv2_id %d"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"EAP-MSCHAPV2: Unknown op %d - ignored"

	.no_dead_strip	_eap_mschapv2_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_mschapv2_process
_eap_mschapv2_process:                  ; @eap_mschapv2_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_eap_get_config
	mov	x23, x0
	mov	x0, x21
	bl	_eap_mschapv2_check_config
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ERROR_AUTHENTICATION_FAILURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ERROR_AUTHENTICATION_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w25, #0
	ldr	x22, [x20, #8]
	str	xzr, [x23]
	b	LBB0_6
LBB0_5:
	mov	w25, #1
LBB0_6:
Lloh8:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _EAP_TYPE_MSCHAPV2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_TYPE_MSCHAPV2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x2, x22
	bl	_eap_hdr_validate
	ldr	x1, [sp, #24]
	cmp	x0, #0
	ccmp	x1, #8, #0, ne
	b.ls	LBB0_8
; %bb.7:
	mov	x23, x0
	mov	x0, x21
	mov	x2, x23
	bl	_eap_mschapv2_check_mslen
	cbz	x0, LBB0_10
LBB0_8:
	mov	x0, #0
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x0, x22
	bl	_eap_get_id
	mov	x24, x0
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w8, [x23, #4]
	stp	x24, x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.11:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.12:
	cmp	w8, #130
	b.ne	LBB0_18
; %bb.13:
	cbz	w25, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x22
	bl	_eap_mschapv2_copy_challenge
LBB0_15:
	ldr	x4, [sp, #24]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x5, x24
	bl	_eap_mschapv2_challenge
	b	LBB0_9
LBB0_16:
	ldr	x4, [sp, #24]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x5, x24
	bl	_eap_mschapv2_success
	b	LBB0_9
LBB0_17:
	ldr	x4, [sp, #24]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x5, x24
	bl	_eap_mschapv2_failure
	b	LBB0_9
LBB0_18:
Lloh22:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_ERROR_AUTHENTICATION_FAILURE,8,3 ; @ERROR_AUTHENTICATION_FAILURE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MSCHAPV2: Replacing pending packet with the previous challenge"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MSCHAPV2,4,2          ; @EAP_TYPE_MSCHAPV2
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MSCHAPV2: RX identifier %d mschapv2_id %d"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"EAP-MSCHAPV2: Unknown op %d - ignored"

	.no_dead_strip	_eap_mschapv2_process
.subsections_via_symbols
