	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_process_phase2_mschapv2
_eap_ttls_process_phase2_mschapv2:      ## @eap_ttls_process_phase2_mschapv2
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	%r8, %r15
	testq	%r8, %r8
	je	LBB0_4
## %bb.2:
	movq	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_EAP_TTLS_MSCHAPV2_RESPONSE_LEN@GOTPCREL(%rip), %rax
	cmpq	%r9, (%rax)
	jne	LBB0_4
## %bb.7:
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpl	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movq	%rdx, %rbx
	movq	_EAP_TTLS_AUTH_MSCHAPV2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.12:
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.14:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	1(%rsi), %rdx
	leaq	-1(%rax), %r13
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$92, -1(%rdx)
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rdx
	addq	$-1, %r13
	jb	LBB0_17
## %bb.20:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	jmp	LBB0_21
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdx
	movq	%r9, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_5
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.6:
	movq	%r14, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_ttls_state                 ## TAILCALL
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_15:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_18:
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
LBB0_21:
	incq	%rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rcx, %rdx
	callq	_eap_ttls_implicit_challenge
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%rax, %rcx
	movq	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	callq	_os_memcmp_const
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:
	movb	(%r15), %al
	movq	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpb	(%rdx,%rcx), %al
	jne	LBB0_25
## %bb.27:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	leaq	2(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_wpa_hexdump_ascii
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_hexdump
	movq	16(%r12), %rax
	cmpq	$0, 16(%rax)
	movl	8(%rax), %r8d
	je	LBB0_29
## %bb.28:
	leaq	-80(%rbp), %r9
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_generate_nt_response_pwhash
	jmp	LBB0_30
LBB0_25:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	jmp	LBB0_5
LBB0_22:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_29:
	movl	4(%rax), %r9d
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_generate_nt_response
LBB0_30:
	movq	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rsi
	addq	$8, %rsi
	leaq	-80(%rbp), %rdi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	$24, %edx
	callq	_os_memcmp_const
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_31
## %bb.34:
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	$24, %ecx
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movl	$24, %ecx
	callq	_wpa_hexdump
	movl	$0, (%r14)
	jmp	LBB0_35
LBB0_31:
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, (%r14)
	movq	16(%r12), %rax
	cmpq	$0, 16(%rax)
	movl	8(%rax), %edi
	je	LBB0_33
## %bb.32:
	movl	8(%r14), %eax
	movl	%eax, (%rsp)
	leaq	-80(%rbp), %r9
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_generate_authenticator_response_pwhash
	jmp	LBB0_35
LBB0_33:
	movl	4(%rax), %esi
	movl	8(%r14), %eax
	movl	%eax, 8(%rsp)
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	callq	_generate_authenticator_response
LBB0_35:
	movq	_PHASE2_MSCHAPV2_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_ttls_state
	movb	(%r15), %al
	movb	%al, 4(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.36:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN,8,3 ## @EAP_TTLS_MSCHAPV2_CHALLENGE_LEN
	.comm	_EAP_TTLS_MSCHAPV2_RESPONSE_LEN,8,3 ## @EAP_TTLS_MSCHAPV2_RESPONSE_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS/MSCHAPV2: Invalid MS-CHAP2 attributes (challenge len %lu response len %lu)"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_EAP_TTLS_AUTH_MSCHAPV2,4,2     ## @EAP_TTLS_AUTH_MSCHAPV2
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS/MSCHAPV2: No user password configured"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS/MSCHAPV2: No user identity known"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TTLS/MSCHAPV2: Failed to generate challenge from TLS data"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS/MSCHAPV2: Challenge mismatch"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.5:                               ## @.str.5
	.asciz	"EAP-TTLS/MSCHAPV2: User"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-TTLS/MSCHAPV2: auth_challenge"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-TTLS/MSCHAPV2: peer_challenge"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-TTLS/MSCHAPV2: Correct NT-Response"

L_.str.9:                               ## @.str.9
	.asciz	"EAP-TTLS/MSCHAPV2: Invalid NT-Response"

L_.str.10:                              ## @.str.10
	.asciz	"EAP-TTLS/MSCHAPV2: Received"

L_.str.11:                              ## @.str.11
	.asciz	"EAP-TTLS/MSCHAPV2: Expected"

	.comm	_PHASE2_MSCHAPV2_RESP,4,2       ## @PHASE2_MSCHAPV2_RESP
	.no_dead_strip	_eap_ttls_process_phase2_mschapv2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_process_phase2_mschapv2
_eap_ttls_process_phase2_mschapv2:      ; @eap_ttls_process_phase2_mschapv2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x2, LBB0_11
; %bb.1:
	mov	x20, x4
	cbz	x4, LBB0_11
; %bb.2:
Lloh3:
	adrp	x26, _EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _EAP_TTLS_MSCHAPV2_CHALLENGE_LEN@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh5:
	adrp	x9, _EAP_TTLS_MSCHAPV2_RESPONSE_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EAP_TTLS_MSCHAPV2_RESPONSE_LEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x3
	ccmp	x9, x5, #0, eq
	b.ne	LBB0_11
; %bb.3:
	mov	x22, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_12
; %bb.4:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_12
; %bb.5:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EAP_TTLS_AUTH_MSCHAPV2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_TTLS_AUTH_MSCHAPV2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
	ldr	x23, [x22]
	cbz	x23, LBB0_16
; %bb.7:
	mov	x21, x2
	ldr	x24, [x22, #8]
	cbz	x24, LBB0_18
; %bb.8:
	mov	x8, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x23, x8]
	cmp	w9, #92
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x24, x8
	b.ne	LBB0_9
	b	LBB0_18
LBB0_11:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	stp	x3, x5, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_wpa_printf
LBB0_14:
Lloh21:
	adrp	x8, _FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.15:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_eap_ttls_state
LBB0_16:
Lloh27:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_17:
	mvn	x9, x8
	add	x24, x9, x24
	add	x8, x23, x8
	add	x23, x8, #1
LBB0_18:
	add	x2, x3, #1
	mov	x0, x22
	mov	x1, x19
	bl	_eap_ttls_implicit_challenge
	cbz	x0, LBB0_24
; %bb.19:
	mov	x25, x0
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x25
	bl	_os_memcmp_const
	cbnz	x0, LBB0_23
; %bb.20:
	ldrb	w8, [x20]
	ldr	x9, [x26]
	ldrb	w9, [x25, x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.21:
	mov	x0, x25
	bl	_os_free
	add	x25, x20, #2
Lloh32:
	adrp	x27, _MSG_MSGDUMP@GOTPAGE
Lloh33:
	ldr	x27, [x27, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_wpa_hexdump_ascii
	ldr	w0, [x27]
	ldr	w3, [x26]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	ldr	w0, [x27]
	ldr	w3, [x26]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x25
	bl	_wpa_hexdump
	ldr	x8, [x22, #16]
	ldr	x9, [x8, #16]
	ldr	w4, [x8, #8]
	cbz	x9, LBB0_25
; %bb.22:
	add	x5, sp, #16
	mov	x0, x21
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_generate_nt_response_pwhash
	b	LBB0_26
LBB0_23:
Lloh40:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, x25
	bl	_os_free
	b	LBB0_14
LBB0_24:
Lloh45:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_25:
	ldr	w5, [x8, #4]
	add	x6, sp, #16
	mov	x0, x21
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_generate_nt_response
LBB0_26:
	ldr	x8, [x26]
	add	x8, x25, x8
	add	x26, x8, #8
	add	x0, sp, #16
	mov	x1, x26
	mov	w2, #24
	bl	_os_memcmp_const
	mov	x8, x0
Lloh50:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh51:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x9]
	cbz	x8, LBB0_28
; %bb.27:
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x27]
Lloh55:
	adrp	x1, l_.str.10@PAGE
Lloh56:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x2, x26
	mov	w3, #24
	bl	_wpa_hexdump
	ldr	w0, [x27]
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x2, sp, #16
	mov	w3, #24
	bl	_wpa_hexdump
	str	wzr, [x19]
	b	LBB0_31
LBB0_28:
Lloh59:
	adrp	x1, l_.str.8@PAGE
Lloh60:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x22, #16]
	ldr	x9, [x8, #16]
	ldr	w0, [x8, #8]
	cbz	x9, LBB0_30
; %bb.29:
	ldr	w6, [x19, #8]
	add	x5, sp, #16
	mov	x1, x25
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_generate_authenticator_response_pwhash
	b	LBB0_31
LBB0_30:
	ldr	w1, [x8, #4]
	ldr	w7, [x19, #8]
	add	x6, sp, #16
	mov	x2, x25
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	bl	_generate_authenticator_response
LBB0_31:
Lloh61:
	adrp	x8, _PHASE2_MSCHAPV2_RESP@GOTPAGE
Lloh62:
	ldr	x8, [x8, _PHASE2_MSCHAPV2_RESP@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ttls_state
	ldrb	w8, [x20]
	strb	w8, [x19, #4]
	ldr	x8, [sp, #40]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TTLS_MSCHAPV2_CHALLENGE_LEN,8,3 ; @EAP_TTLS_MSCHAPV2_CHALLENGE_LEN
	.comm	_EAP_TTLS_MSCHAPV2_RESPONSE_LEN,8,3 ; @EAP_TTLS_MSCHAPV2_RESPONSE_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS/MSCHAPV2: Invalid MS-CHAP2 attributes (challenge len %lu response len %lu)"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_EAP_TTLS_AUTH_MSCHAPV2,4,2     ; @EAP_TTLS_AUTH_MSCHAPV2
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS/MSCHAPV2: No user password configured"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS/MSCHAPV2: No user identity known"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TTLS/MSCHAPV2: Failed to generate challenge from TLS data"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS/MSCHAPV2: Challenge mismatch"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.5:                               ; @.str.5
	.asciz	"EAP-TTLS/MSCHAPV2: User"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-TTLS/MSCHAPV2: auth_challenge"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-TTLS/MSCHAPV2: peer_challenge"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-TTLS/MSCHAPV2: Correct NT-Response"

l_.str.9:                               ; @.str.9
	.asciz	"EAP-TTLS/MSCHAPV2: Invalid NT-Response"

l_.str.10:                              ; @.str.10
	.asciz	"EAP-TTLS/MSCHAPV2: Received"

l_.str.11:                              ; @.str.11
	.asciz	"EAP-TTLS/MSCHAPV2: Expected"

	.comm	_PHASE2_MSCHAPV2_RESP,4,2       ; @PHASE2_MSCHAPV2_RESP
	.no_dead_strip	_eap_ttls_process_phase2_mschapv2
.subsections_via_symbols
