	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sppp_chap_open
_sppp_chap_open:                        ## @sppp_chap_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rax
	movq	_PPP_CHAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_LCP_OPT_AUTH_PROTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.3:
	movq	_chap@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	callq	*(%r14)
	movl	4(%rbx), %eax
	movq	8(%rbx), %rcx
	movq	_IDX_CHAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_STATE_REQ_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sppp_cp_change_state           ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPP_CHAP,8,3                   ## @PPP_CHAP
	.comm	_LCP_OPT_AUTH_PROTO,4,2         ## @LCP_OPT_AUTH_PROTO
	.comm	_chap,8,3                       ## @chap
	.comm	_IDX_CHAP,8,3                   ## @IDX_CHAP
	.comm	_STATE_REQ_SENT,4,2             ## @STATE_REQ_SENT
	.no_dead_strip	_sppp_chap_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sppp_chap_open
_sppp_chap_open:                        ; @sppp_chap_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _PPP_CHAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PPP_CHAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _LCP_OPT_AUTH_PROTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCP_OPT_AUTH_PROTO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x20, _chap@GOTPAGE
Lloh7:
	ldr	x20, [x20, _chap@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19, #4]
	ldr	x9, [x19, #8]
Lloh8:
	adrp	x10, _IDX_CHAP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IDX_CHAP@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh11:
	adrp	x8, _STATE_REQ_SENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATE_REQ_SENT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sppp_cp_change_state
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PPP_CHAP,8,3                   ; @PPP_CHAP
	.comm	_LCP_OPT_AUTH_PROTO,4,2         ; @LCP_OPT_AUTH_PROTO
	.comm	_chap,8,3                       ; @chap
	.comm	_IDX_CHAP,8,3                   ; @IDX_CHAP
	.comm	_STATE_REQ_SENT,4,2             ; @STATE_REQ_SENT
	.no_dead_strip	_sppp_chap_open
.subsections_via_symbols
