	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_mschapv2_check
_eap_mschapv2_check:                    ## @eap_mschapv2_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_MSCHAPV2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, -16(%rbp)
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rcx
	movq	_CHALLENGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movq	(%rax), %rdx
	movq	_MSCHAPV2_OP_RESPONSE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
LBB0_6:
	movq	_SUCCESS_REQ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.7:
	movq	(%rax), %rdx
	movq	_MSCHAPV2_OP_SUCCESS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.8:
	movq	_MSCHAPV2_OP_FAILURE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_10:
	movq	_FAILURE_REQ@GOTPCREL(%rip), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rsi
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.11:
	movq	(%rax), %rdx
	movq	_MSCHAPV2_OP_FAILURE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_15
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movq	_TRUE@GOTPCREL(%rip), %rsi
LBB0_15:
	movl	(%rsi), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MSCHAPV2,4,2          ## @EAP_TYPE_MSCHAPV2
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-MSCHAPV2: Invalid frame"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CHALLENGE,8,3                  ## @CHALLENGE
	.comm	_MSCHAPV2_OP_RESPONSE,8,3       ## @MSCHAPV2_OP_RESPONSE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-MSCHAPV2: Expected Response - ignore op %d"

	.comm	_SUCCESS_REQ,8,3                ## @SUCCESS_REQ
	.comm	_MSCHAPV2_OP_SUCCESS,8,3        ## @MSCHAPV2_OP_SUCCESS
	.comm	_MSCHAPV2_OP_FAILURE,8,3        ## @MSCHAPV2_OP_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"EAP-MSCHAPV2: Expected Success or Failure - ignore op %d"

	.comm	_FAILURE_REQ,8,3                ## @FAILURE_REQ
L_.str.3:                               ## @.str.3
	.asciz	"EAP-MSCHAPV2: Expected Failure - ignore op %d"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_eap_mschapv2_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_mschapv2_check
_eap_mschapv2_check:                    ; @eap_mschapv2_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EAP_TYPE_MSCHAPV2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_MSCHAPV2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	bl	_eap_hdr_validate
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _CHALLENGE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHALLENGE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x0]
Lloh14:
	adrp	x10, _MSCHAPV2_OP_RESPONSE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MSCHAPV2_OP_RESPONSE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_4:
Lloh17:
	adrp	x9, _SUCCESS_REQ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SUCCESS_REQ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x9, [x0]
Lloh20:
	adrp	x10, _MSCHAPV2_OP_SUCCESS@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MSCHAPV2_OP_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
Lloh23:
	adrp	x11, _MSCHAPV2_OP_FAILURE@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MSCHAPV2_OP_FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_10
LBB0_6:
Lloh26:
	adrp	x9, _FAILURE_REQ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FAILURE_REQ@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x0]
Lloh29:
	adrp	x9, _MSCHAPV2_OP_FAILURE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MSCHAPV2_OP_FAILURE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_8:
Lloh32:
	adrp	x8, _FALSE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh34:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh39:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh44:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	bl	_wpa_printf
Lloh49:
	adrp	x8, _TRUE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_MSCHAPV2,4,2          ; @EAP_TYPE_MSCHAPV2
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-MSCHAPV2: Invalid frame"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CHALLENGE,8,3                  ; @CHALLENGE
	.comm	_MSCHAPV2_OP_RESPONSE,8,3       ; @MSCHAPV2_OP_RESPONSE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-MSCHAPV2: Expected Response - ignore op %d"

	.comm	_SUCCESS_REQ,8,3                ; @SUCCESS_REQ
	.comm	_MSCHAPV2_OP_SUCCESS,8,3        ; @MSCHAPV2_OP_SUCCESS
	.comm	_MSCHAPV2_OP_FAILURE,8,3        ; @MSCHAPV2_OP_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"EAP-MSCHAPV2: Expected Success or Failure - ignore op %d"

	.comm	_FAILURE_REQ,8,3                ; @FAILURE_REQ
l_.str.3:                               ; @.str.3
	.asciz	"EAP-MSCHAPV2: Expected Failure - ignore op %d"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_eap_mschapv2_check
.subsections_via_symbols
