	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mschapv2_verify_auth_response  ## -- Begin function mschapv2_verify_auth_response
	.p2align	4, 0x90
_mschapv2_verify_auth_response:         ## @mschapv2_verify_auth_response
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSCHAPV2_AUTH_RESPONSE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movslq	%r12d, %rbx
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	leaq	(%rbx,%rbx), %rax
	addq	$2, %rax
	movl	$-1, %r15d
	cmpq	%r14, %rax
	ja	LBB0_5
## %bb.1:
	cmpb	$83, (%r13)
	jne	LBB0_5
## %bb.2:
	cmpb	$61, 1(%r13)
	jne	LBB0_5
## %bb.3:
	addq	$2, %r13
	movq	%r13, %rdi
	movq	%rcx, %rbx
	movq	%rcx, %rsi
	movl	%r12d, %edx
	callq	_hexstr2bin
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_MSCHAPV2_AUTH_RESPONSE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_os_memcmp_const
	xorl	%r15d, %r15d
	negq	%rax
	sbbl	%r15d, %r15d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSCHAPV2_AUTH_RESPONSE_LEN,4,2 ## @MSCHAPV2_AUTH_RESPONSE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mschapv2_verify_auth_response  ; -- Begin function mschapv2_verify_auth_response
	.p2align	2
_mschapv2_verify_auth_response:         ; @mschapv2_verify_auth_response
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _MSCHAPV2_AUTH_RESPONSE_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MSCHAPV2_AUTH_RESPONSE_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	sxtw	x12, w8
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	lsl	x9, x12, #1
	add	x9, x9, #2
	cmp	x9, x2
	b.hi	LBB0_4
; %bb.1:
	ldrb	w9, [x1]
	cmp	w9, #83
	b.ne	LBB0_4
; %bb.2:
	ldrb	w9, [x1, #1]
	cmp	w9, #61
	b.ne	LBB0_4
; %bb.3:
	add	x0, x1, #2
	mov	x1, x20
	mov	x2, x8
	bl	_hexstr2bin
	cbz	x0, LBB0_7
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_os_memcmp_const
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSCHAPV2_AUTH_RESPONSE_LEN,4,2 ; @MSCHAPV2_AUTH_RESPONSE_LEN
.subsections_via_symbols
