	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sppp_lcp_scr
_sppp_lcp_scr:                          ## @sppp_lcp_scr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	20(%rdi), %ecx
	movq	_LCP_OPT_MAGIC@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	btl	%edx, %ecx
	jae	LBB0_1
## %bb.2:
	movl	24(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_random
	movl	%eax, 24(%r15)
	movl	(%r14), %edx
	movl	20(%r15), %ecx
LBB0_4:
	movb	%dl, -47(%rbp)
	movb	$6, -46(%rbp)
	movl	%eax, %edx
	shrl	$24, %edx
	movb	%dl, -45(%rbp)
	movl	%eax, %edx
	shrl	$16, %edx
	movb	%dl, -44(%rbp)
	movb	%ah, -43(%rbp)
	movb	%al, -42(%rbp)
	movl	$6, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	movq	_LCP_OPT_MRU@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	btl	%edx, %ecx
	jae	LBB0_7
## %bb.6:
	movl	%eax, %esi
	movq	%rsi, %rdi
	orq	$1, %rdi
	movb	%dl, -47(%rbp,%rsi)
	movb	$4, -47(%rbp,%rdi)
	movzwl	28(%r15), %edx
	addl	$4, %eax
	rolw	$8, %dx
	movw	%dx, -45(%rbp,%rsi)
LBB0_7:
	movq	_LCP_OPT_AUTH_PROTO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	btl	%esi, %ecx
	jae	LBB0_10
## %bb.8:
	movl	16(%r15), %ecx
	movl	%eax, %edx
	movq	_PPP_CHAP@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %ecx
	sete	%bl
	orb	$4, %bl
	leaq	4(%rdx), %r8
	movb	%sil, -47(%rbp,%rdx)
	movb	%bl, -46(%rbp,%rdx)
	movb	%ch, -45(%rbp,%rdx)
	movb	%cl, -44(%rbp,%rdx)
	cmpl	%edi, %ecx
	jne	LBB0_11
## %bb.9:
	movq	_CHAP_MD5@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addl	$5, %eax
	movb	%cl, -47(%rbp,%r8)
LBB0_10:
	movl	%eax, %r8d
LBB0_11:
	movq	8(%r15), %rax
	movq	_IDX_LCP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rax,%rdx,8), %rsi
	incq	%rsi
	movq	%rsi, (%rax,%rdx,8)
	movq	(%r15), %rax
	movq	(%rcx), %rdx
	movq	%rsi, (%rax,%rdx,8)
	movq	_PPP_LCP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_CONF_REQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	-47(%rbp), %r9
	movq	%r15, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_sppp_cp_send
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LCP_OPT_MAGIC,4,2              ## @LCP_OPT_MAGIC
	.comm	_LCP_OPT_MRU,4,2                ## @LCP_OPT_MRU
	.comm	_LCP_OPT_AUTH_PROTO,4,2         ## @LCP_OPT_AUTH_PROTO
	.comm	_PPP_CHAP,4,2                   ## @PPP_CHAP
	.comm	_CHAP_MD5,1,0                   ## @CHAP_MD5
	.comm	_IDX_LCP,8,3                    ## @IDX_LCP
	.comm	_PPP_LCP,4,2                    ## @PPP_LCP
	.comm	_CONF_REQ,4,2                   ## @CONF_REQ
	.no_dead_strip	_sppp_lcp_scr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sppp_lcp_scr
_sppp_lcp_scr:                          ; @sppp_lcp_scr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w9, [x0, #20]
Lloh3:
	adrp	x20, _LCP_OPT_MAGIC@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LCP_OPT_MAGIC@GOTPAGEOFF]
	ldr	w8, [x20]
	lsr	w10, w9, w8
	tbz	w10, #0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #24]
	cbnz	w0, LBB0_3
; %bb.2:
	bl	_random
	str	w0, [x19, #24]
	ldr	w8, [x20]
	ldr	w9, [x19, #20]
LBB0_3:
	strb	w8, [sp, #9]
	mov	w8, #6
	strb	w8, [sp, #10]
	lsr	w10, w0, #24
	strb	w10, [sp, #11]
	lsr	w10, w0, #16
	strb	w10, [sp, #12]
	lsr	w10, w0, #8
	strb	w10, [sp, #13]
	strb	w0, [sp, #14]
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh5:
	adrp	x10, _LCP_OPT_MRU@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LCP_OPT_MRU@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	lsr	w11, w9, w10
	tbz	w11, #0, LBB0_7
; %bb.6:
	mov	w11, w8
	orr	x12, x11, #0x1
	add	x13, sp, #9
	add	x11, x13, x11
	mov	w14, #4
	strb	w14, [x13, x12]
	strb	w10, [x11]
	ldrh	w10, [x19, #28]
	add	w8, w8, #4
	rev	w10, w10
	lsr	w10, w10, #16
	strh	w10, [x11, #2]
LBB0_7:
Lloh8:
	adrp	x10, _LCP_OPT_AUTH_PROTO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _LCP_OPT_AUTH_PROTO@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsr	w9, w9, w10
	tbz	w9, #0, LBB0_10
; %bb.8:
	ldr	w11, [x19, #16]
	mov	w12, w8
	add	x9, sp, #9
	add	x13, x9, x12
	strb	w10, [x13]
Lloh11:
	adrp	x10, _PPP_CHAP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PPP_CHAP@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsr	w14, w11, #8
	strb	w14, [x13, #2]
	mov	w14, #4
	add	x4, x12, #4
	strb	w11, [x13, #3]
	cmp	w11, w10
	cinc	w10, w14, eq
	strb	w10, [x13, #1]
	b.ne	LBB0_11
; %bb.9:
Lloh14:
	adrp	x10, _CHAP_MD5@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CHAP_MD5@GOTPAGEOFF]
	ldrb	w10, [x10]
	strb	w10, [x9, x4]
	add	w8, w8, #5
LBB0_10:
	mov	x4, x8
LBB0_11:
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _IDX_LCP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IDX_LCP@GOTPAGEOFF]
	ldr	x10, [x9]
	lsl	x10, x10, #3
	ldr	x11, [x8, x10]
	add	x11, x11, #1
	str	x11, [x8, x10]
	ldr	x8, [x19]
	ldr	x10, [x9]
	str	x11, [x8, x10, lsl #3]
Lloh18:
	adrp	x10, _PPP_LCP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PPP_LCP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x10]
Lloh21:
	adrp	x10, _CONF_REQ@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CONF_REQ@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x10]
	ldr	x9, [x9]
	ldr	x3, [x8, x9, lsl #3]
	add	x5, sp, #9
	mov	x0, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_sppp_cp_send
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LCP_OPT_MAGIC,4,2              ; @LCP_OPT_MAGIC
	.comm	_LCP_OPT_MRU,4,2                ; @LCP_OPT_MRU
	.comm	_LCP_OPT_AUTH_PROTO,4,2         ; @LCP_OPT_AUTH_PROTO
	.comm	_PPP_CHAP,4,2                   ; @PPP_CHAP
	.comm	_CHAP_MD5,1,0                   ; @CHAP_MD5
	.comm	_IDX_LCP,8,3                    ; @IDX_LCP
	.comm	_PPP_LCP,4,2                    ; @PPP_LCP
	.comm	_CONF_REQ,4,2                   ; @CONF_REQ
	.no_dead_strip	_sppp_lcp_scr
.subsections_via_symbols
