	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_pptpgre_recv_ack_timeout
_ng_pptpgre_recv_ack_timeout:           ## @ng_pptpgre_recv_ack_timeout
	.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	%rdx, %rbx
	callq	_NG_NODE_PRIVATE
	incl	(%rax)
	movq	(%rbx), %rdi
	callq	_PPTP_ACK_DELTA
	movq	%rax, %r14
	incq	%rax
	movq	%rax, (%rbx)
	movl	48(%rbx), %edi
	callq	_PPTP_ACK_CHI
	leaq	(%rax,%r14), %rcx
	incq	%rcx
	movq	%rcx, 8(%rbx)
	movq	_PPTP_MAX_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_2
## %bb.1:
	movq	_PPTP_MIN_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_3
LBB0_2:
	movq	%rax, 8(%rbx)
LBB0_3:
	movq	40(%rbx), %rax
	movq	%rax, 24(%rbx)
	movl	16(%rbx), %ecx
	movl	%ecx, %edx
	incl	%edx
	shrl	$31, %edx
	addl	%edx, %ecx
	incl	%ecx
	sarl	%ecx
	movl	%ecx, 16(%rbx)
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	%rcx, 32(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPTP_MAX_TIMEOUT,8,3           ## @PPTP_MAX_TIMEOUT
	.comm	_PPTP_MIN_TIMEOUT,8,3           ## @PPTP_MIN_TIMEOUT
	.no_dead_strip	_ng_pptpgre_recv_ack_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_pptpgre_recv_ack_timeout
_ng_pptpgre_recv_ack_timeout:           ; @ng_pptpgre_recv_ack_timeout
	.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
	mov	x19, x2
	bl	_NG_NODE_PRIVATE
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	ldr	x0, [x19]
	bl	_PPTP_ACK_DELTA
	add	x20, x0, #1
	str	x20, [x19]
	ldr	w0, [x19, #48]
	bl	_PPTP_ACK_CHI
Lloh0:
	adrp	x8, _PPTP_MAX_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPTP_MAX_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x0, x20
	cmp	x9, x8
	str	x9, [x19, #8]
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PPTP_MIN_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPTP_MIN_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_3
LBB0_2:
	str	x8, [x19, #8]
LBB0_3:
	ldr	x8, [x19, #40]
	ldr	w9, [x19, #16]
	add	w10, w9, #1
	add	w11, w9, #2
	cmp	w10, #0
	csinc	w9, w11, w9, lt
	asr	w9, w9, #1
	str	w9, [x19, #16]
	add	x9, x8, w9, sxtw
	stp	x8, x9, [x19, #24]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PPTP_MAX_TIMEOUT,8,3           ; @PPTP_MAX_TIMEOUT
	.comm	_PPTP_MIN_TIMEOUT,8,3           ; @PPTP_MIN_TIMEOUT
	.no_dead_strip	_ng_pptpgre_recv_ack_timeout
.subsections_via_symbols
