	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chap_Success
_chap_Success:                          ## @chap_Success
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %r14
	movl	8(%rbx), %esi
	callq	_datalink_GotAuthname
	movq	(%rbx), %r15
	cmpl	$129, 8(%r15)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_auth2chap
	movq	(%rax), %r12
	movq	(%rbx), %r15
LBB0_4:
	movq	_MPPE_MasterKeyValid@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_8
LBB0_5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %r12
LBB0_8:
	movq	_CHAP_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	12(%rbx), %r14d
	movq	%r12, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_ChapOutput
	movq	(%rbx), %rax
	movq	$0, 24(%rax)
	movq	_OPT_UTMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_Enabled
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_physical_Login
LBB0_10:
	movq	(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_12
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_datalink_AuthOk                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MPPE_MasterKeyValid,4,2        ## @MPPE_MasterKeyValid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Welcome!!"

	.comm	_CHAP_SUCCESS,4,2               ## @CHAP_SUCCESS
	.comm	_OPT_UTMP,4,2                   ## @OPT_UTMP
	.no_dead_strip	_chap_Success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chap_Success
_chap_Success:                          ; @chap_Success
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	x20, [x0]
	ldr	w1, [x19, #8]
	bl	_datalink_GotAuthname
	ldr	x21, [x19]
	ldr	w9, [x21, #8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cmp	w9, #129
	b.ne	LBB0_5
; %bb.1:
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x22, [x20]
	cbnz	x22, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_auth2chap
	ldr	x22, [x0]
	ldr	x21, [x19]
LBB0_4:
Lloh0:
	adrp	x8, _MPPE_MasterKeyValid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPPE_MasterKeyValid@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
	b	LBB0_8
LBB0_5:
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x22, [x20, #8]
	cbnz	x22, LBB0_8
LBB0_7:
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
LBB0_8:
Lloh5:
	adrp	x8, _CHAP_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHAP_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w24, [x19, #12]
	mov	x0, x22
	bl	_strlen
	mov	x4, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x5, #0
	bl	_ChapOutput
	ldr	x8, [x19]
	str	xzr, [x8, #24]
Lloh8:
	adrp	x8, _OPT_UTMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPT_UTMP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_Enabled
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_physical_Login
LBB0_10:
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_datalink_AuthOk
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MPPE_MasterKeyValid,4,2        ; @MPPE_MasterKeyValid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Welcome!!"

	.comm	_CHAP_SUCCESS,4,2               ; @CHAP_SUCCESS
	.comm	_OPT_UTMP,4,2                   ; @OPT_UTMP
	.no_dead_strip	_chap_Success
.subsections_via_symbols
