	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_pptpgre_reset
_ng_pptpgre_reset:                      ## @ng_pptpgre_reset
	.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, %r14
	movq	_PPTP_MAX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rdi)
	movq	_PPTP_TIME_SCALE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, (%rdi)
	movl	60(%rdi), %ecx
	cmpl	$2, %ecx
	jl	LBB0_2
## %bb.1:
	imull	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_2:
	movq	$0, 72(%r14)
	movl	64(%r14), %edx
	leal	1(%rdx), %eax
	shrl	$31, %eax
	addl	%edx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, 4(%r14)
	movl	$2, %ecx
	cmpl	$3, %edx
	jl	LBB0_4
## %bb.3:
	movq	_PPTP_XMIT_WIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_5
LBB0_4:
	movl	%ecx, 4(%r14)
	movl	%ecx, %eax
LBB0_5:
	movl	%eax, 8(%r14)
	leaq	40(%r14), %rdi
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, 44(%r14)
	movl	28(%r14), %esi
	callq	_ng_uncallout
	leaq	36(%r14), %rdi
	movl	28(%r14), %esi
	callq	_ng_uncallout
	leaq	32(%r14), %rdi
	movl	28(%r14), %esi
	callq	_ng_uncallout
	leaq	24(%r14), %r15
	movq	%r15, %rdi
	callq	_SLIST_EMPTY
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_next@GOTPCREL(%rip), %r12
	movq	_M_NETGRAPH@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_SLIST_FIRST
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_SLIST_REMOVE_HEAD
	movl	(%rbx), %edi
	callq	_NG_FREE_ITEM
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_SLIST_EMPTY
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	$0, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPTP_MAX_TIMEOUT,4,2           ## @PPTP_MAX_TIMEOUT
	.comm	_PPTP_TIME_SCALE,4,2            ## @PPTP_TIME_SCALE
	.comm	_PPTP_XMIT_WIN,4,2              ## @PPTP_XMIT_WIN
	.comm	_next,4,2                       ## @next
	.comm	_M_NETGRAPH,4,2                 ## @M_NETGRAPH
	.no_dead_strip	_ng_pptpgre_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_pptpgre_reset
_ng_pptpgre_reset:                      ; @ng_pptpgre_reset
	.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
Lloh0:
	adrp	x8, _PPTP_MAX_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPTP_MAX_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #80]
Lloh3:
	adrp	x8, _PPTP_TIME_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPTP_TIME_SCALE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x0]
	ldr	w9, [x0, #60]
	cmp	w9, #2
	b.lt	LBB0_2
; %bb.1:
	mul	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	str	xzr, [x19, #72]
	ldr	w9, [x19, #64]
	add	w8, w9, #1
	add	w10, w9, #2
	cmp	w8, #0
	csinc	w8, w10, w9, lt
	asr	w8, w8, #1
	str	w8, [x19, #4]
	cmp	w9, #2
	b.gt	LBB0_4
; %bb.3:
	mov	w9, #2
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x9, _PPTP_XMIT_WIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PPTP_XMIT_WIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_6
LBB0_5:
	str	w9, [x19, #4]
	mov	x8, x9
LBB0_6:
	str	w8, [x19, #8]
	add	x0, x19, #40
	mov	x8, #-1
	stur	x8, [x19, #44]
	stur	x8, [x19, #52]
	ldr	w1, [x19, #28]
	bl	_ng_uncallout
	add	x0, x19, #36
	ldr	w1, [x19, #28]
	bl	_ng_uncallout
	add	x0, x19, #32
	ldr	w1, [x19, #28]
	bl	_ng_uncallout
	add	x20, x19, #24
	mov	x0, x20
	bl	_SLIST_EMPTY
	cbnz	w0, LBB0_9
; %bb.7:
Lloh9:
	adrp	x22, _next@GOTPAGE
Lloh10:
	ldr	x22, [x22, _next@GOTPAGEOFF]
Lloh11:
	adrp	x23, _M_NETGRAPH@GOTPAGE
Lloh12:
	ldr	x23, [x23, _M_NETGRAPH@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SLIST_FIRST
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_SLIST_REMOVE_HEAD
	ldr	w0, [x21]
	bl	_NG_FREE_ITEM
	ldr	w1, [x23]
	mov	x0, x21
	bl	_free
	mov	x0, x20
	bl	_SLIST_EMPTY
	cbz	w0, LBB0_8
LBB0_9:
	str	xzr, [x19, #16]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PPTP_MAX_TIMEOUT,4,2           ; @PPTP_MAX_TIMEOUT
	.comm	_PPTP_TIME_SCALE,4,2            ; @PPTP_TIME_SCALE
	.comm	_PPTP_XMIT_WIN,4,2              ; @PPTP_XMIT_WIN
	.comm	_next,4,2                       ; @next
	.comm	_M_NETGRAPH,4,2                 ; @M_NETGRAPH
	.no_dead_strip	_ng_pptpgre_reset
.subsections_via_symbols
