	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sppp_chap_scr
_sppp_chap_scr:                         ## @sppp_chap_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	%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	8(%rdi), %rdi
	movl	$16, %esi
	callq	_arc4random_buf
	movq	_AUTHKEYLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movq	24(%rbx), %rcx
	movq	_IDX_CHAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	(%rcx,%rsi,8), %rdi
	incq	%rdi
	movq	%rdi, (%rcx,%rsi,8)
	movq	16(%rbx), %rcx
	movq	(%rdx), %rsi
	movq	%rdi, (%rcx,%rsi,8)
	movq	_CHAP_CHALLENGE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %r15
	movq	(%rax), %r12
	movq	8(%rbx), %r13
	movl	(%rbx), %edi
	movq	_AUTHNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sppp_strnlen
	movl	(%rbx), %r10d
	subq	$8, %rsp
	movq	_chap@GOTPCREL(%rip), %rdi
	leaq	-48(%rbp), %r9
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	movl	$8, %r8d
	pushq	$0
	pushq	%r10
	pushq	%rax
	pushq	%r13
	pushq	%r12
	callq	_sppp_auth_send
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTHKEYLEN,8,3                 ## @AUTHKEYLEN
	.comm	_IDX_CHAP,8,3                   ## @IDX_CHAP
	.comm	_chap,4,2                       ## @chap
	.comm	_CHAP_CHALLENGE,4,2             ## @CHAP_CHALLENGE
	.comm	_AUTHNAMELEN,4,2                ## @AUTHNAMELEN
	.no_dead_strip	_sppp_chap_scr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sppp_chap_scr
_sppp_chap_scr:                         ; @sppp_chap_scr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x0, [x0, #8]
	mov	w1, #16
	bl	_arc4random_buf
Lloh0:
	adrp	x8, _AUTHKEYLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTHKEYLEN@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [sp, #24]
Lloh2:
	adrp	x9, _IDX_CHAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IDX_CHAP@GOTPAGEOFF]
	ldr	x10, [x9]
	lsl	x10, x10, #3
	ldp	x12, x11, [x19, #16]
	ldr	x13, [x11, x10]
	add	x13, x13, #1
	str	x13, [x11, x10]
	ldr	x10, [x9]
	str	x13, [x12, x10, lsl #3]
Lloh4:
	adrp	x10, _CHAP_CHALLENGE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CHAP_CHALLENGE@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x10]
	ldr	x9, [x9]
	ldr	x21, [x12, x9, lsl #3]
	ldr	x22, [x8]
	ldr	x23, [x19, #8]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _AUTHNAMELEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AUTHNAMELEN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_sppp_strnlen
	ldr	w8, [x19]
	stp	w8, wzr, [sp, #8]
	str	x0, [sp]
Lloh10:
	adrp	x0, _chap@GOTPAGE
Lloh11:
	ldr	x0, [x0, _chap@GOTPAGEOFF]
	add	x5, sp, #24
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	w4, #8
	mov	x6, x22
	mov	x7, x23
	bl	_sppp_auth_send
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTHKEYLEN,8,3                 ; @AUTHKEYLEN
	.comm	_IDX_CHAP,8,3                   ; @IDX_CHAP
	.comm	_chap,4,2                       ; @chap
	.comm	_CHAP_CHALLENGE,4,2             ; @CHAP_CHALLENGE
	.comm	_AUTHNAMELEN,4,2                ; @AUTHNAMELEN
	.no_dead_strip	_sppp_chap_scr
.subsections_via_symbols
