	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_l2tp_seq_rack_timeout
_ng_l2tp_seq_rack_timeout:              ## @ng_l2tp_seq_rack_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
	movl	%edi, %r12d
	callq	_NG_NODE_PRIVATE
	movq	%rax, %rbx
	leaq	68(%rax), %r13
	movq	%r13, %rdi
	callq	_callout_pending
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %rdi
	callq	_callout_active
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_L2TP_SEQ_CHECK
	movq	%rbx, %r15
	addq	$40, %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	incl	4(%rbx)
	movslq	24(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%rbx)
	cmpq	%rax, 8(%rbx)
	jg	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ng_l2tp_seq_failure
	movl	24(%rbx), %ecx
LBB0_4:
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	$13, %ecx
	movl	$4096, %ecx                     ## imm = 0x1000
	cmovll	%eax, %ecx
	movl	16(%rbx), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movq	_hz@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movl	$0, (%rsp)
	leaq	_ng_l2tp_seq_rack_timeout(%rip), %r8
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_ng_callout
	movl	64(%rbx), %eax
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %eax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, 28(%rbx)
	movl	$1, 32(%rbx)
	movq	$0, 56(%rbx)
	movq	48(%rbx), %rax
	movl	(%rax), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_L2TP_COPY_MBUF
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_mtx_unlock
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:
	movl	36(%rbx), %edx
	leal	1(%rdx), %eax
	movl	%eax, 36(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ng_l2tp_xmit_ctrl
	jmp	LBB0_7
LBB0_5:
	incl	(%rbx)
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_L2TP_SEQ_CHECK                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hz,4,2                         ## @hz
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.no_dead_strip	_ng_l2tp_seq_rack_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_l2tp_seq_rack_timeout
_ng_l2tp_seq_rack_timeout:              ; @ng_l2tp_seq_rack_timeout
	.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	x21, x0
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
	add	x23, x0, #68
	mov	x0, x23
	bl	_callout_pending
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x0, x23
	bl	_callout_active
	cbz	w0, LBB0_1
; %bb.3:
	add	x20, x19, #24
	mov	x0, x20
	bl	_L2TP_SEQ_CHECK
	add	x22, x19, #40
	mov	x0, x22
	bl	_mtx_lock
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldrsw	x9, [x19, #24]
	add	w8, w9, #1
	str	w8, [x19, #24]
	ldr	x10, [x19, #8]
	cmp	x10, x9
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ng_l2tp_seq_failure
	ldr	w8, [x19, #24]
LBB0_5:
	mov	w24, #1
	lsl	w9, w24, w8
	mov	w10, #4096
	cmp	w8, #12
	csel	w8, w10, w9, gt
	ldr	w9, [x19, #16]
	cmp	w8, w9
	csel	w8, w8, w9, lt
Lloh0:
	adrp	x9, _hz@GOTPAGE
Lloh1:
	ldr	x9, [x9, _hz@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w3, w8, w9
Lloh3:
	adrp	x4, _ng_l2tp_seq_rack_timeout@PAGE
Lloh4:
	add	x4, x4, _ng_l2tp_seq_rack_timeout@PAGEOFF
	mov	x0, x23
	mov	x1, x21
	mov	x2, #0
	mov	x5, #0
	mov	w6, #0
	bl	_ng_callout
	ldr	w11, [x19, #64]
	ldr	w8, [x19, #32]
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #1
	str	w8, [x19, #28]
	stp	w24, w11, [x19, #32]
	str	xzr, [x19, #56]
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_L2TP_COPY_MBUF
	mov	x21, x0
	mov	x0, x22
	bl	_mtx_unlock
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w2, [x19, #36]
	add	w8, w2, #1
	str	w8, [x19, #36]
	mov	x0, x19
	mov	x1, x21
	bl	_ng_l2tp_xmit_ctrl
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	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
	b	_L2TP_SEQ_CHECK
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hz,4,2                         ; @hz
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.no_dead_strip	_ng_l2tp_seq_rack_timeout
.subsections_via_symbols
