	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_pptpgre_reorder_timeout
_ng_pptpgre_reorder_timeout:            ## @ng_pptpgre_reorder_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	%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	%rdx, %r14
	callq	_NG_NODE_PRIVATE
	movq	%rax, %rbx
	callq	_SLIST_HEAD_INITIALIZER
	movl	%eax, -44(%rbp)
	incl	(%rbx)
	movq	%r14, %rdi
	callq	_mtx_lock
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_SLIST_EMPTY
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	callq	_SLIST_FIRST
	decl	12(%r14)
	movq	%rax, %r12
	movq	_next@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_SLIST_REMOVE_HEAD
	movl	(%r13), %edx
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	callq	_SLIST_INSERT_HEAD
	movq	%r15, %rdi
	callq	_SLIST_EMPTY
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	12(%r14)
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_SLIST_REMOVE_HEAD
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_SLIST_INSERT_AFTER
	movq	%r15, %rdi
	callq	_SLIST_EMPTY
	movq	%rbx, %r12
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_SLIST_FIRST
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_PPTP_SEQ_DIFF
	cmpl	$1, %eax
	jle	LBB0_4
LBB0_6:
	movq	%r12, %rbx
LBB0_7:
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_SLIST_EMPTY
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_ng_pptpgre_start_reorder_timer
LBB0_9:
	movq	%r14, %rdi
	callq	_ng_pptpgre_ack
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ng_pptpgre_sendq
	movq	_MA_NOTOWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mtx_assert
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_next,4,2                       ## @next
	.comm	_MA_NOTOWNED,4,2                ## @MA_NOTOWNED
	.comm	_sendq,4,2                      ## @sendq
	.no_dead_strip	_ng_pptpgre_reorder_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_reorder_timeout
_ng_pptpgre_reorder_timeout:            ; @ng_pptpgre_reorder_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
	bl	_SLIST_HEAD_INITIALIZER
	str	w0, [sp, #12]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_mtx_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_SLIST_EMPTY
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_mtx_unlock
LBB0_2:
	mov	x0, x20
	bl	_SLIST_FIRST
	mov	x21, x0
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
Lloh0:
	adrp	x23, _next@GOTPAGE
Lloh1:
	ldr	x23, [x23, _next@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SLIST_REMOVE_HEAD
	ldr	w2, [x23]
	add	x0, sp, #12
	mov	x1, x21
	bl	_SLIST_INSERT_HEAD
	mov	x0, x20
	bl	_SLIST_EMPTY
	cbnz	x0, LBB0_5
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SLIST_REMOVE_HEAD
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_SLIST_INSERT_AFTER
	mov	x0, x20
	bl	_SLIST_EMPTY
	mov	x21, x22
	cbnz	x0, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SLIST_FIRST
	mov	x22, x0
	ldr	w0, [x0]
	ldr	w1, [x21]
	bl	_PPTP_SEQ_DIFF
	cmp	w0, #1
	b.le	LBB0_3
LBB0_5:
	mov	x22, x21
LBB0_6:
	ldr	w8, [x22]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_SLIST_EMPTY
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ng_pptpgre_start_reorder_timer
LBB0_8:
	mov	x0, x19
	bl	_ng_pptpgre_ack
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, #0
	bl	_ng_pptpgre_sendq
Lloh2:
	adrp	x8, _MA_NOTOWNED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MA_NOTOWNED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtx_assert
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_next,4,2                       ; @next
	.comm	_MA_NOTOWNED,4,2                ; @MA_NOTOWNED
	.comm	_sendq,4,2                      ; @sendq
	.no_dead_strip	_ng_pptpgre_reorder_timeout
.subsections_via_symbols
