	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mschap_LANMan                  ## -- Begin function mschap_LANMan
	.p2align	4, 0x90
_mschap_LANMan:                         ## @mschap_LANMan
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %r12
	movb	(%rdx), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	leaq	-62(%rbp), %rbx
	incq	%r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_toupper
	movb	%al, (%rbx)
	incq	%rbx
	movzbl	(%r13), %eax
	testb	%al, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r12, %rbx
	jb	LBB0_3
LBB0_5:
	cmpq	%r12, %rbx
	jb	LBB0_6
	jmp	LBB0_7
LBB0_1:
	leaq	-62(%rbp), %rbx
LBB0_6:
	subl	%ebx, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
LBB0_7:
	leaq	_mschap_LANMan.salt(%rip), %rbx
	leaq	-62(%rbp), %rsi
	leaq	-80(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_DesEncrypt
	leaq	-55(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_DesEncrypt
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ChallengeResponse
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_mschap_LANMan.salt:                    ## @mschap_LANMan.salt
	.asciz	"KGS!@#$%"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mschap_LANMan                  ; -- Begin function mschap_LANMan
	.p2align	2
_mschap_LANMan:                         ; @mschap_LANMan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x21, sp, #26
	add	x22, x21, #14
	ldrb	w8, [x2]
	cbz	w8, LBB0_4
; %bb.1:
	add	x21, sp, #26
	add	x23, x2, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_toupper
	strb	w0, [x21], #1
	ldrb	w8, [x23], #1
	cmp	w8, #0
	ccmp	x21, x22, #2, ne
	b.lo	LBB0_2
; %bb.3:
	cmp	x21, x22
	b.hs	LBB0_5
LBB0_4:
	sub	w2, w22, w21
	mov	x0, x21
	mov	w1, #0
	bl	_memset
LBB0_5:
Lloh3:
	adrp	x21, _mschap_LANMan.salt@PAGE
Lloh4:
	add	x21, x21, _mschap_LANMan.salt@PAGEOFF
	add	x22, sp, #26
	add	x23, sp, #10
	add	x1, sp, #26
	add	x2, sp, #10
	mov	x0, x21
	bl	_DesEncrypt
	add	x1, x22, #7
	add	x2, x23, #8
	mov	x0, x21
	bl	_DesEncrypt
	add	x1, sp, #10
	mov	x0, x19
	mov	x2, x20
	bl	_ChallengeResponse
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_mschap_LANMan.salt:                    ; @mschap_LANMan.salt
	.asciz	"KGS!@#$%"

.subsections_via_symbols
