	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_l2tp_rcvdata_ctrl
_ng_l2tp_rcvdata_ctrl:                  ## @ng_l2tp_rcvdata_ctrl
	.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	%esi, %ebx
	callq	_NG_HOOK_NODE
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r13
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_L2TP_SEQ_CHECK
	cmpl	$0, 40(%r13)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_NG_FREE_ITEM
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_2:
	movl	%ebx, %edi
	callq	_NGI_GET_M
	movl	%ebx, %edi
	callq	_NG_FREE_ITEM
	incl	32(%r15)
	callq	_m_freem
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	_L2TP_MAX_XWIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:
	movq	16(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.8:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	cmpl	%eax, %ebx
	jne	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_mtx_unlock
	incl	28(%r15)
	callq	_m_freem
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_10:
	cmpl	(%r15), %ebx
	jl	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_mtx_unlock
	xorl	%edi, %edi
	callq	_ERROUT
LBB0_12:
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_callout_active
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ng_l2tp_seq_rack_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_ng_callout
LBB0_14:
	movslq	8(%r15), %r14
	leal	1(%r14), %eax
	movl	%eax, 8(%r15)
	movq	%r12, %rdi
	callq	_mtx_unlock
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_L2TP_COPY_MBUF
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	incl	24(%r15)
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_16:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ng_l2tp_xmit_ctrl
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_L2TP_SEQ_CHECK
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_L2TP_MAX_XWIN,4,2              ## @L2TP_MAX_XWIN
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_hz,4,2                         ## @hz
	.comm	_ng_l2tp_seq_rack_timeout,4,2   ## @ng_l2tp_seq_rack_timeout
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.no_dead_strip	_ng_l2tp_rcvdata_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_l2tp_rcvdata_ctrl
_ng_l2tp_rcvdata_ctrl:                  ; @ng_l2tp_rcvdata_ctrl
	.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, x1
	bl	_NG_HOOK_NODE
	mov	x20, x0
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
	bl	_L2TP_SEQ_CHECK
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_NG_FREE_ITEM
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_2:
	mov	x0, x21
	bl	_NGI_GET_M
	mov	x0, x21
	bl	_NG_FREE_ITEM
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	bl	_m_freem
Lloh3:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ERROUT
	add	x21, x19, #4
	mov	x0, x21
	bl	_mtx_lock
Lloh6:
	adrp	x8, _L2TP_MAX_XWIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _L2TP_MAX_XWIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x23, _ENOBUFS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ENOBUFS@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	ldr	x9, [x19, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x22, lsl #3]
	cbz	x10, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.6:
	mov	x22, x8
	b	LBB0_9
LBB0_7:
	mov	w22, #0
LBB0_8:
	cmp	w22, w8
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_mtx_unlock
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	bl	_m_freem
	ldr	w0, [x23]
	bl	_ERROUT
LBB0_10:
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_mtx_unlock
	mov	w0, #0
	bl	_ERROUT
LBB0_12:
	add	x22, x19, #12
	mov	x0, x22
	bl	_callout_active
	cbnz	w0, LBB0_14
; %bb.13:
Lloh11:
	adrp	x8, _hz@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _ng_l2tp_seq_rack_timeout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ng_l2tp_seq_rack_timeout@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	mov	x5, #0
	mov	w6, #0
	bl	_ng_callout
LBB0_14:
	ldrsw	x20, [x19, #8]
	add	w8, w20, #1
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_mtx_unlock
Lloh17:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_L2TP_COPY_MBUF
	mov	x21, x0
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w0, [x23]
	bl	_ERROUT
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ng_l2tp_xmit_ctrl
	mov	x20, x0
	mov	x0, x19
	bl	_L2TP_SEQ_CHECK
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_L2TP_MAX_XWIN,4,2              ; @L2TP_MAX_XWIN
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_hz,4,2                         ; @hz
	.comm	_ng_l2tp_seq_rack_timeout,4,2   ; @ng_l2tp_seq_rack_timeout
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.no_dead_strip	_ng_l2tp_rcvdata_ctrl
.subsections_via_symbols
