	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_mschapv2_challenge
_eap_mschapv2_challenge:                ## @eap_mschapv2_challenge
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rsi
	callq	_eap_get_config_identity
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_password
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$4, %r14
	ja	LBB0_6
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movslq	4(%r13), %rcx
	addq	$-5, %r14
	movq	%r14, -48(%rbp)
	movq	_MSCHAPV2_CHAL_LEN@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_9
## %bb.7:
	cmpq	%rcx, %r14
	jae	LBB0_13
## %bb.8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rcx, %rdx
LBB0_10:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	8(%r13), %rdx
	cmpq	$0, 8(%r15)
	movq	%rdx, %r8
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	je	LBB0_15
## %bb.14:
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	callq	_wpa_printf
	movq	%r14, %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%r15), %r8
	movq	-48(%rbp), %r14
LBB0_15:
	leaq	(%rdx,%rcx,4), %rdx
	subq	%rcx, %r14
	movq	%r14, -48(%rbp)
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rcx
	movq	%r8, %r14
	callq	_wpa_hexdump_ascii
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	_METHOD_MAY_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_eap_mschapv2_challenge_reply
	movq	%rax, %rbx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MSCHAPV2: Received challenge"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MSCHAPV2: Too short challenge data (len %lu)"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_MSCHAPV2_CHAL_LEN,8,3          ## @MSCHAPV2_CHAL_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EAP-MSCHAPV2: Invalid challenge length %lu"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-MSCHAPV2: Too short challenge packet: len=%lu challenge_len=%lu"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-MSCHAPV2: Using challenge from the failure message"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-MSCHAPV2: Authentication Servername"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_METHOD_MAY_CONT,4,2            ## @METHOD_MAY_CONT
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
	.no_dead_strip	_eap_mschapv2_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_mschapv2_challenge
_eap_mschapv2_challenge:                ; @eap_mschapv2_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	add	x1, sp, #24
	bl	_eap_get_config_identity
	cbz	x0, LBB0_9
; %bb.1:
	add	x1, sp, #24
	mov	x0, x23
	bl	_eap_get_config_password
	cbz	x0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	cmp	x24, #4
	b.hi	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldrsw	x26, [x22, #4]
	sub	x8, x24, #5
	str	x8, [sp, #24]
Lloh9:
	adrp	x9, _MSCHAPV2_CHAL_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSCHAPV2_CHAL_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x26
	b.ne	LBB0_7
; %bb.5:
	cmp	x8, x26
	b.hs	LBB0_10
; %bb.6:
Lloh12:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	stp	x8, x26, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	mov	x0, #0
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	add	x27, x22, #8
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	w0, [x25]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x24, [x21]
	ldr	x8, [sp, #24]
	b	LBB0_13
LBB0_12:
	mov	x24, x27
LBB0_13:
	add	x2, x27, x26, lsl #2
	sub	x3, x8, x26
	str	x3, [sp, #24]
	ldr	w0, [x25]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump_ascii
Lloh29:
	adrp	x8, _FALSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _METHOD_MAY_CONT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _METHOD_MAY_CONT@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh38:
	adrp	x8, _TRUE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w3, [x22]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x4, x24
	bl	_eap_mschapv2_challenge_reply
	b	LBB0_9
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MSCHAPV2: Received challenge"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MSCHAPV2: Too short challenge data (len %lu)"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_MSCHAPV2_CHAL_LEN,8,3          ; @MSCHAPV2_CHAL_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EAP-MSCHAPV2: Invalid challenge length %lu"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-MSCHAPV2: Too short challenge packet: len=%lu challenge_len=%lu"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-MSCHAPV2: Using challenge from the failure message"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-MSCHAPV2: Authentication Servername"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_METHOD_MAY_CONT,4,2            ; @METHOD_MAY_CONT
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
	.no_dead_strip	_eap_mschapv2_challenge
.subsections_via_symbols
