	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_mschapv2_success
_eap_mschapv2_success:                  ## @eap_mschapv2_success
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	cmpl	$0, 20(%r13)
	je	LBB0_2
## %bb.1:
	leaq	-4(%r12), %rbx
	leaq	4(%r15), %r14
	movl	16(%r13), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_mschapv2_verify_auth_response
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MSCHAPV2_AUTH_RESPONSE_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax), %rcx
	addq	$2, %rcx
	leaq	(%r14,%rax,2), %rdx
	addq	$2, %rdx
	subq	%rcx, %rbx
	je	LBB0_10
## %bb.6:
	addq	%r12, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, (%rdx)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	decq	%rbx
	jne	LBB0_7
## %bb.9:
	movq	%r15, %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
LBB0_11:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	callq	_wpa_hexdump_ascii
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_MSCHAPV2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movsbl	%r15b, %r8d
	movl	$1, %edx
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	movq	_MSCHAPV2_OP_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	_DECISION_UNCOND_SUCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movl	$1, (%r13)
	movq	8(%r13), %rax
	movq	_ERROR_PASSWD_EXPIRED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_eap_mschapv2_password_changed
	jmp	LBB0_4
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MSCHAPV2: Received success"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MSCHAPV2: Invalid authenticator response in success request"

	.comm	_METHOD_DONE,8,3                ## @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
	.comm	_MSCHAPV2_AUTH_RESPONSE_LEN,4,2 ## @MSCHAPV2_AUTH_RESPONSE_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EAP-MSCHAPV2: Success message"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"EAP-MSCHAPV2: Authentication succeeded"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MSCHAPV2,4,2          ## @EAP_TYPE_MSCHAPV2
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
L_.str.4:                               ## @.str.4
	.asciz	"EAP-MSCHAPV2: Failed to allocate buffer for success response"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MSCHAPV2_OP_SUCCESS,4,2        ## @MSCHAPV2_OP_SUCCESS
	.comm	_DECISION_UNCOND_SUCC,4,2       ## @DECISION_UNCOND_SUCC
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERROR_PASSWD_EXPIRED,8,3       ## @ERROR_PASSWD_EXPIRED
	.no_dead_strip	_eap_mschapv2_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_mschapv2_success
_eap_mschapv2_success:                  ; @eap_mschapv2_success
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x27, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_2
; %bb.1:
	sub	x25, x23, #4
	add	x26, x24, #4
	ldr	w0, [x20, #16]
	mov	x1, x26
	mov	x2, x25
	bl	_mschapv2_verify_auth_response
	cbz	x0, LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x22, #0
Lloh9:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh12:
	adrp	x8, _DECISION_FAIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DECISION_FAIL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh15:
	adrp	x8, _MSCHAPV2_AUTH_RESPONSE_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSCHAPV2_AUTH_RESPONSE_LEN@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	lsl	x8, x8, #1
	add	x8, x8, #2
	add	x2, x26, x8
	subs	x3, x25, x8
	b.eq	LBB0_9
; %bb.5:
	add	x8, x24, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x2]
	cmp	w9, #32
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, x2, #1
	subs	x3, x3, #1
	b.ne	LBB0_6
; %bb.8:
	mov	x2, x8
LBB0_9:
	ldr	w0, [x27]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_ascii
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh25:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _EAP_TYPE_MSCHAPV2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_TYPE_MSCHAPV2@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	w23, #1
	mov	w2, #1
	mov	x4, x22
	bl	_eap_msg_alloc
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.10:
Lloh34:
	adrp	x8, _MSCHAPV2_OP_SUCCESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSCHAPV2_OP_SUCCESS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_u8
Lloh37:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh40:
	adrp	x8, _DECISION_UNCOND_SUCC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DECISION_UNCOND_SUCC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _FALSE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	str	w23, [x20]
	ldr	x8, [x20, #8]
Lloh46:
	adrp	x9, _ERROR_PASSWD_EXPIRED@GOTPAGE
Lloh47:
	ldr	x9, [x9, _ERROR_PASSWD_EXPIRED@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	bl	_eap_mschapv2_password_changed
	b	LBB0_3
LBB0_12:
	ldr	w0, [x27]
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh51:
	adrp	x8, _TRUE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MSCHAPV2: Received success"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MSCHAPV2: Invalid authenticator response in success request"

	.comm	_METHOD_DONE,8,3                ; @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
	.comm	_MSCHAPV2_AUTH_RESPONSE_LEN,4,2 ; @MSCHAPV2_AUTH_RESPONSE_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EAP-MSCHAPV2: Success message"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"EAP-MSCHAPV2: Authentication succeeded"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MSCHAPV2,4,2          ; @EAP_TYPE_MSCHAPV2
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
l_.str.4:                               ; @.str.4
	.asciz	"EAP-MSCHAPV2: Failed to allocate buffer for success response"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MSCHAPV2_OP_SUCCESS,4,2        ; @MSCHAPV2_OP_SUCCESS
	.comm	_DECISION_UNCOND_SUCC,4,2       ; @DECISION_UNCOND_SUCC
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERROR_PASSWD_EXPIRED,8,3       ; @ERROR_PASSWD_EXPIRED
	.no_dead_strip	_eap_mschapv2_success
.subsections_via_symbols
