	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_l2tp_seq_reset
_ng_l2tp_seq_reset:                     ## @ng_l2tp_seq_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_L2TP_SEQ_CHECK
	leaq	84(%r12), %rdi
	movl	(%r12), %esi
	callq	_ng_uncallout
	leaq	80(%r12), %rdi
	movl	(%r12), %esi
	callq	_ng_uncallout
	movq	_L2TP_MAX_XWIN@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_m_freem
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	movl	(%r12), %edi
	movq	_ng_l2tp_reset_session@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_NG_NODE_FOREACH_HOOK
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movups	%xmm0, 64(%r12)
	movl	(%r15), %eax
	movl	%eax, 8(%r12)
	movl	$1, 12(%r12)
	movl	%eax, 16(%r12)
	movups	%xmm0, 32(%r12)
	movq	24(%r12), %rdi
	movl	$8, %esi
	callq	_bzero
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_L2TP_SEQ_CHECK                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2TP_MAX_XWIN,4,2              ## @L2TP_MAX_XWIN
	.comm	_ng_l2tp_reset_session,4,2      ## @ng_l2tp_reset_session
	.no_dead_strip	_ng_l2tp_seq_reset
.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_reset
_ng_l2tp_seq_reset:                     ; @ng_l2tp_seq_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_L2TP_SEQ_CHECK
	mov	x0, x20
	ldr	w1, [x0], #84
	bl	_ng_uncallout
	mov	x0, x20
	ldr	w1, [x0], #80
	bl	_ng_uncallout
Lloh0:
	adrp	x21, _L2TP_MAX_XWIN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _L2TP_MAX_XWIN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_m_freem
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _ng_l2tp_reset_session@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ng_l2tp_reset_session@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_NG_NODE_FOREACH_HOOK
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20, #48]
	ldr	w8, [x21]
	mov	w9, #1
	stp	w8, w9, [x20, #8]
	str	w8, [x20, #16]
	stp	xzr, xzr, [x20, #32]
	ldr	x0, [x20, #24]
	mov	w1, #8
	bl	_bzero
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_L2TP_SEQ_CHECK
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_L2TP_MAX_XWIN,4,2              ; @L2TP_MAX_XWIN
	.comm	_ng_l2tp_reset_session,4,2      ; @ng_l2tp_reset_session
	.no_dead_strip	_ng_l2tp_seq_reset
.subsections_via_symbols
