	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseAndExtractMsChapV2InfoFromPassword ## -- Begin function ParseAndExtractMsChapV2InfoFromPassword
	.p2align	4, 0x90
_ParseAndExtractMsChapV2InfoFromPassword: ## @ParseAndExtractMsChapV2InfoFromPassword
	.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
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	movq	%rdi, %r12
	movl	$40, %esi
	callq	_Zero
	movq	_IPC_PASSWORD_MSCHAPV2_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_StartWith
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ParseTokenWithNullStr
	movq	%rax, %r14
	xorl	%r13d, %r13d
	cmpl	$6, (%rax)
	jne	LBB0_11
## %bb.4:
	movq	8(%r14), %rax
	movl	8(%rax), %edi
	callq	_StrToBin
	movq	%rax, %r15
	movq	8(%r14), %rax
	movl	12(%rax), %edi
	callq	_StrToBin
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movl	16(%rax), %edi
	callq	_StrToBin
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	20(%rax), %edi
	callq	_StrToBin
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_IsEmptyStr
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	cmpl	$16, (%r15)
	jne	LBB0_10
## %bb.6:
	cmpl	$16, (%rbx)
	jne	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$24, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$8, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	$0, -64(%rbp)
	movl	32(%r12), %edi
	movq	8(%r14), %rax
	movl	4(%rax), %edx
	movl	$4, %esi
	callq	_StrCpy
	movq	24(%r12), %rdi
	movl	4(%r15), %esi
	movl	$16, %edx
	callq	_Copy
	movq	16(%r12), %rdi
	movl	4(%rbx), %esi
	movl	$16, %edx
	callq	_Copy
	movq	8(%r12), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	$24, %edx
	callq	_Copy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	leaq	-64(%rbp), %rdi
	movl	$8, %edx
	callq	_Copy
	movq	-64(%rbp), %rax
	movq	%rax, (%r12)
	movl	$1, %r13d
LBB0_10:
	movq	%r15, %rdi
	callq	_FreeBuf
	movq	%rbx, %rdi
	callq	_FreeBuf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeBuf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeBuf
LBB0_11:
	movq	%r14, %rdi
	callq	_FreeToken
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPC_PASSWORD_MSCHAPV2_TAG,4,2  ## @IPC_PASSWORD_MSCHAPV2_TAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseAndExtractMsChapV2InfoFromPassword ; -- Begin function ParseAndExtractMsChapV2InfoFromPassword
	.p2align	2
_ParseAndExtractMsChapV2InfoFromPassword: ; @ParseAndExtractMsChapV2InfoFromPassword
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	w25, #0
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_15
; %bb.2:
	mov	x20, x0
	mov	w1, #40
	bl	_Zero
Lloh0:
	adrp	x8, _IPC_PASSWORD_MSCHAPV2_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPC_PASSWORD_MSCHAPV2_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_StartWith
	cbz	w0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ParseTokenWithNullStr
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #6
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	bl	_StrToBin
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #12]
	bl	_StrToBin
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #16]
	bl	_StrToBin
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #20]
	bl	_StrToBin
	mov	x24, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_IsEmptyStr
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #16
	b.ne	LBB0_12
; %bb.6:
	ldr	w8, [x22]
	cmp	w8, #16
	b.ne	LBB0_12
; %bb.7:
	ldr	w8, [x23]
	cmp	w8, #24
	b.ne	LBB0_12
; %bb.8:
	ldr	w8, [x24]
	cmp	w8, #8
	b.ne	LBB0_12
; %bb.9:
	str	xzr, [sp, #8]
	ldr	w0, [x20, #32]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #4]
	mov	w1, #4
	bl	_StrCpy
	ldr	x0, [x20, #24]
	ldr	w1, [x21, #4]
	mov	w2, #16
	bl	_Copy
	ldr	x0, [x20, #16]
	ldr	w1, [x22, #4]
	mov	w2, #16
	bl	_Copy
	ldr	x0, [x20, #8]
	ldr	w1, [x23, #4]
	mov	w2, #24
	bl	_Copy
	ldr	w1, [x24, #4]
	add	x0, sp, #8
	mov	w2, #8
	bl	_Copy
	ldr	x8, [sp, #8]
	str	x8, [x20]
	mov	w25, #1
	b	LBB0_13
LBB0_10:
	mov	w25, #0
	b	LBB0_15
LBB0_11:
	mov	w25, #0
	b	LBB0_14
LBB0_12:
	mov	w25, #0
LBB0_13:
	mov	x0, x21
	bl	_FreeBuf
	mov	x0, x22
	bl	_FreeBuf
	mov	x0, x23
	bl	_FreeBuf
	mov	x0, x24
	bl	_FreeBuf
LBB0_14:
	mov	x0, x19
	bl	_FreeToken
LBB0_15:
	mov	x0, x25
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IPC_PASSWORD_MSCHAPV2_TAG,4,2  ; @IPC_PASSWORD_MSCHAPV2_TAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":"

.subsections_via_symbols
