	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_process_phase2_mschap
_eap_ttls_process_phase2_mschap:        ## @eap_ttls_process_phase2_mschap
	.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	$216, %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, %r12
	testq	%r8, %r8
	je	LBB0_4
## %bb.2:
	movq	_EAP_TTLS_MSCHAP_CHALLENGE_LEN@GOTPCREL(%rip), %r13
	cmpq	%rcx, (%r13)
	jne	LBB0_4
## %bb.3:
	movq	_EAP_TTLS_MSCHAP_RESPONSE_LEN@GOTPCREL(%rip), %rax
	cmpq	%r9, (%rax)
	jne	LBB0_4
## %bb.7:
	movq	%rdi, %r15
	movq	(%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_MSCHAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.12:
	incq	%rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rcx, %rdx
	callq	_eap_ttls_implicit_challenge
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	movq	%rax, %rsi
	callq	_os_memcmp_const
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movq	-248(%rbp), %rdx                ## 8-byte Reload
	cmpq	(%rdx,%rcx,8), %rax
	jne	LBB0_16
## %bb.18:
	movq	-248(%rbp), %rdi                ## 8-byte Reload
	callq	_os_free
	movq	(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_21
## %bb.19:
	movl	8(%rax), %esi
	leaq	-240(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_challenge_response
	testq	%rax, %rax
	jne	LBB0_25
## %bb.20:
	movq	(%r15), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_22
LBB0_21:
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	leaq	-240(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_nt_challenge_response
	testq	%rax, %rax
	jne	LBB0_25
LBB0_22:
	addq	$208, %r12
	leaq	-240(%rbp), %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_os_memcmp_const
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdx
	movl	$24, %ecx
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-240(%rbp), %rdx
	movl	$24, %ecx
	callq	_wpa_hexdump
LBB0_25:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_ttls_state
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.27:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
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_17
## %bb.6:
	movq	%r14, %rdi
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_ttls_state                 ## TAILCALL
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-248(%rbp), %rdi                ## 8-byte Reload
	callq	_os_free
	jmp	LBB0_5
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_ttls_state
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_eap_ttls_valid_session
	jmp	LBB0_26
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TTLS_MSCHAP_CHALLENGE_LEN,8,3 ## @EAP_TTLS_MSCHAP_CHALLENGE_LEN
	.comm	_EAP_TTLS_MSCHAP_RESPONSE_LEN,8,3 ## @EAP_TTLS_MSCHAP_RESPONSE_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS/MSCHAP: Invalid MS-CHAP attributes (challenge len %lu response len %lu)"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_EAP_TTLS_AUTH_MSCHAP,4,2       ## @EAP_TTLS_AUTH_MSCHAP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS/MSCHAP: No user password configured"

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

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TTLS/MSCHAP: Challenge mismatch"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS/MSCHAP: Correct response"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
L_.str.5:                               ## @.str.5
	.asciz	"EAP-TTLS/MSCHAP: Invalid NT-Response"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.6:                               ## @.str.6
	.asciz	"EAP-TTLS/MSCHAP: Received"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-TTLS/MSCHAP: Expected"

	.no_dead_strip	_eap_ttls_process_phase2_mschap
.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_mschap
_eap_ttls_process_phase2_mschap:        ; @eap_ttls_process_phase2_mschap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x21, x4
	cbz	x4, LBB0_3
; %bb.2:
Lloh3:
	adrp	x24, _EAP_TTLS_MSCHAP_CHALLENGE_LEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EAP_TTLS_MSCHAP_CHALLENGE_LEN@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh5:
	adrp	x9, _EAP_TTLS_MSCHAP_RESPONSE_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EAP_TTLS_MSCHAP_RESPONSE_LEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x3
	ccmp	x9, x5, #0, eq
	b.eq	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	stp	x3, x5, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_4:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.5:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_19
; %bb.6:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _EAP_TTLS_AUTH_MSCHAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EAP_TTLS_AUTH_MSCHAP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.7:
	mov	x22, x2
	add	x2, x3, #1
	mov	x0, x20
	mov	x1, x19
	bl	_eap_ttls_implicit_challenge
	cbz	x0, LBB0_24
; %bb.8:
	mov	x23, x0
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_os_memcmp_const
	cbnz	x0, LBB0_23
; %bb.9:
	ldr	x8, [x21]
	ldr	x9, [x24]
	ldr	x9, [x23, x9, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.10:
	mov	x0, x23
	bl	_os_free
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_13
; %bb.11:
	ldr	w1, [x8, #8]
	add	x2, sp, #24
	mov	x0, x22
	bl	_challenge_response
	cbnz	x0, LBB0_16
; %bb.12:
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_14
LBB0_13:
	ldp	w2, w1, [x8, #4]
	add	x3, sp, #24
	mov	x0, x22
	bl	_nt_challenge_response
	cbnz	x0, LBB0_16
LBB0_14:
	add	x21, x21, #208
	add	x0, sp, #24
	mov	x1, x21
	mov	w2, #24
	bl	_os_memcmp_const
	mov	x8, x0
Lloh16:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	cbz	x8, LBB0_25
; %bb.15:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh21:
	adrp	x20, _MSG_MSGDUMP@GOTPAGE
Lloh22:
	ldr	x20, [x20, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	mov	w3, #24
	bl	_wpa_hexdump
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #24
	mov	w3, #24
	bl	_wpa_hexdump
LBB0_16:
Lloh27:
	adrp	x8, _FAILURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ttls_state
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.18:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_19:
Lloh33:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	bl	_wpa_printf
LBB0_21:
Lloh38:
	adrp	x8, _FAILURE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldur	x8, [x29, #-72]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.22:
	mov	x0, x19
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #304
	b	_eap_ttls_state
LBB0_23:
Lloh44:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	bl	_os_free
	b	LBB0_21
LBB0_24:
Lloh49:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_25:
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh56:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ttls_state
	mov	x0, x20
	mov	x1, x19
	bl	_eap_ttls_valid_session
	b	LBB0_17
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TTLS_MSCHAP_CHALLENGE_LEN,8,3 ; @EAP_TTLS_MSCHAP_CHALLENGE_LEN
	.comm	_EAP_TTLS_MSCHAP_RESPONSE_LEN,8,3 ; @EAP_TTLS_MSCHAP_RESPONSE_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS/MSCHAP: Invalid MS-CHAP attributes (challenge len %lu response len %lu)"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_EAP_TTLS_AUTH_MSCHAP,4,2       ; @EAP_TTLS_AUTH_MSCHAP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS/MSCHAP: No user password configured"

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

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TTLS/MSCHAP: Challenge mismatch"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS/MSCHAP: Correct response"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"EAP-TTLS/MSCHAP: Invalid NT-Response"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.6:                               ; @.str.6
	.asciz	"EAP-TTLS/MSCHAP: Received"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-TTLS/MSCHAP: Expected"

	.no_dead_strip	_eap_ttls_process_phase2_mschap
.subsections_via_symbols
