	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StorePacketToHubPa             ## -- Begin function StorePacketToHubPa
	.p2align	4, 0x90
_StorePacketToHubPa:                    ## @StorePacketToHubPa
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	16(%rbp), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -48(%rbp)
	movq	%rbx, -64(%rbp)
	movl	%ecx, -52(%rbp)
	testq	%rdi, %rdi
	je	LBB0_65
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_65
## %bb.2:
	cmpl	$13, %ecx
	jg	LBB0_5
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_67
## %bb.4:
	movq	%rbx, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Free                           ## TAILCALL
LBB0_5:
	movl	%r9d, %r15d
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	40(%r14), %rdi
	movq	16(%r12), %rdx
	movq	%r14, %rsi
	movq	%r13, %rcx
	callq	_ApplyAccessListToForwardPacket
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	testq	%r14, %r14
	je	LBB0_29
## %bb.9:
	testq	%r13, %r13
	je	LBB0_13
## %bb.10:
	movq	16(%r12), %rdi
	movq	72(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	%r13, %rsi
	callq	_IsMostHighestPriorityPacket
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	leaq	24(%r12), %rdi
	movq	%r13, %rsi
	callq	_IntoTrafficLimiter
	imull	$1000, 24(%r12), %eax           ## imm = 0x3E8
	movq	_LIMITER_SAMPLING_SPAN@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	16(%r12), %rcx
	movq	72(%rcx), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_3
LBB0_13:
	testq	%r13, %r13
	je	LBB0_29
## %bb.14:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.15:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.16:
	cmpq	$0, 8(%rax)
	je	LBB0_29
## %bb.17:
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
LBB0_29:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_37
## %bb.30:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_37
## %bb.31:
	xorl	%ecx, %ecx
	testq	%r14, %r14
	je	LBB0_35
## %bb.32:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movl	(%rax), %ecx
LBB0_35:
	leaq	-64(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_VLanRemoveTag
	testl	%eax, %eax
	je	LBB0_36
LBB0_37:
	testq	%r14, %r14
	je	LBB0_57
## %bb.38:
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_57
## %bb.39:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_57
## %bb.40:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_57
## %bb.41:
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_42
## %bb.48:
	cmpl	$0, 4(%rax)
	jne	LBB0_57
## %bb.49:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MIN
	movq	16(%r12), %rcx
	movq	56(%rcx), %rdx
	jmp	LBB0_50
LBB0_36:
	movq	-64(%rbp), %rdi
	callq	_Free
	jmp	LBB0_65
LBB0_42:
	movq	56(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_44
## %bb.43:
	cmpq	$0, 16(%rcx)
	jne	LBB0_46
LBB0_44:
	cmpq	$0, 48(%rcx)
	je	LBB0_57
## %bb.45:
	cmpq	$0, 24(%rcx)
	je	LBB0_57
LBB0_46:
	cmpl	$0, 4(%rax)
	jne	LBB0_57
## %bb.47:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_50:
	testq	%rdx, %rdx
	je	LBB0_52
## %bb.51:
	movq	16(%rcx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_54
LBB0_52:
	cmpq	$0, 48(%rcx)
	je	LBB0_55
## %bb.53:
	movq	24(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_55
LBB0_54:
	movl	%eax, %edi
	callq	_MIN
LBB0_55:
	movq	_INFINITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_57
## %bb.56:
	movq	-64(%rbp), %rdi
	movl	-52(%rbp), %esi
	movq	40(%r14), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_AdjustTcpMssL2
LBB0_57:
	movq	-64(%rbp), %rdi
	movl	-52(%rbp), %esi
	xorl	%edx, %edx
	callq	_NewBlock
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	callq	_LockQueue
	movq	8(%r12), %rdi
	movq	(%rdi), %rax
	movq	_MAX_STORED_QUEUE_NUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_61
## %bb.58:
	movq	%rbx, %rsi
	callq	_InsertQueue
	testq	%r14, %r14
	je	LBB0_62
## %bb.59:
	testl	%r15d, %r15d
	je	LBB0_62
## %bb.60:
	movl	$1, (%rbx)
	movl	36(%r14), %edi
	movl	4(%rbx), %esi
	callq	_CedarAddCurrentTcpQueueSize
	jmp	LBB0_62
LBB0_61:
	movq	%rbx, %rdi
	callq	_FreeBlock
LBB0_62:
	movq	8(%r12), %rdi
	callq	_UnlockQueue
	testq	%r14, %r14
	je	LBB0_64
## %bb.63:
	movl	32(%r14), %edi
	movl	(%r12), %esi
	callq	_AddCancelList
	jmp	LBB0_65
LBB0_64:
	movl	(%r12), %edi
	callq	_Cancel
LBB0_65:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_67
## %bb.66:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	4(%rax), %ecx
	cmpl	$13, %ecx
	je	LBB0_21
## %bb.19:
	cmpl	$128, %ecx
	jne	LBB0_29
## %bb.20:
	cmpl	$200, 8(%rax)
	jne	LBB0_29
	jmp	LBB0_22
LBB0_21:
	cmpl	$136, 8(%rax)
	jne	LBB0_29
LBB0_22:
	cmpl	$0, 12(%rax)
	jne	LBB0_29
## %bb.23:
	cmpl	$0, 16(%rax)
	jne	LBB0_29
## %bb.24:
	cmpl	$0, 20(%rax)
	jne	LBB0_29
## %bb.25:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.26:
	movq	72(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	cmpq	$0, 8(%rax)
	je	LBB0_29
## %bb.28:
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MD5_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	movq	%rdi, %r13
	callq	_Md5
	movl	68(%rbx), %edi
	movq	_MD5_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_Copy
	xorl	%eax, %eax
	callq	_Tick64
	movl	%eax, 64(%rbx)
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_67:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMITER_SAMPLING_SPAN,8,3      ## @LIMITER_SAMPLING_SPAN
	.comm	_MD5_SIZE,4,2                   ## @MD5_SIZE
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_MAX_STORED_QUEUE_NUM,8,3       ## @MAX_STORED_QUEUE_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StorePacketToHubPa             ; -- Begin function StorePacketToHubPa
	.p2align	2
_StorePacketToHubPa:                    ; @StorePacketToHubPa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	x2, [x29, #-80]
	stur	w3, [x29, #-84]
	cbz	x0, LBB0_55
; %bb.1:
	mov	x23, x2
	cbz	x2, LBB0_55
; %bb.2:
	cmp	w3, #13
	b.gt	LBB0_5
LBB0_3:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_68
; %bb.4:
	mov	x0, x23
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_Free
LBB0_5:
	mov	x21, x5
	mov	x22, x4
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_8
; %bb.6:
	cbnz	w6, LBB0_8
; %bb.7:
	ldr	x0, [x20, #40]
	ldr	x2, [x19, #16]
	mov	x1, x20
	mov	x3, x22
	bl	_ApplyAccessListToForwardPacket
	cbz	w0, LBB0_3
LBB0_8:
	cbz	x20, LBB0_18
; %bb.9:
	cbz	x22, LBB0_13
; %bb.10:
	ldr	x0, [x19, #16]
	ldr	x8, [x0, #72]
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x1, x22
	bl	_IsMostHighestPriorityPacket
	cbnz	w0, LBB0_13
; %bb.12:
	add	x0, x19, #24
	mov	x1, x22
	bl	_IntoTrafficLimiter
	ldr	w8, [x19, #24]
	mov	w9, #1000
	mul	w8, w8, w9
Lloh6:
	adrp	x9, _LIMITER_SAMPLING_SPAN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LIMITER_SAMPLING_SPAN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #72]
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_3
LBB0_13:
	cbz	x22, LBB0_18
; %bb.14:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_18
; %bb.15:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x22]
	ldr	w9, [x8]
	cbz	w9, LBB0_57
LBB0_18:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_26
; %bb.19:
	ldr	x2, [x8]
	cbz	x2, LBB0_26
; %bb.20:
	cbz	x20, LBB0_24
; %bb.21:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_24
; %bb.22:
	ldr	x8, [x8]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	w3, [x8]
	b	LBB0_25
LBB0_24:
	mov	w3, #0
LBB0_25:
	sub	x0, x29, #80
	sub	x1, x29, #84
	bl	_VLanRemoveTag
	cbz	w0, LBB0_33
LBB0_26:
	cbz	x20, LBB0_47
; %bb.27:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_47
; %bb.28:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_47
; %bb.29:
	ldr	x10, [x9]
	cbz	x10, LBB0_47
; %bb.30:
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_34
; %bb.31:
	ldr	w8, [x10, #4]
	cbnz	w8, LBB0_47
; %bb.32:
Lloh9:
	adrp	x8, _INFINITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_MIN
	mov	x2, x0
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #56]
	b	LBB0_40
LBB0_33:
	ldur	x0, [x29, #-80]
	bl	_Free
	b	LBB0_55
LBB0_34:
	ldr	x9, [x8, #56]
	cbz	x9, LBB0_36
; %bb.35:
	ldr	x11, [x8, #16]
	cbnz	x11, LBB0_38
LBB0_36:
	ldr	x11, [x8, #48]
	cbz	x11, LBB0_47
; %bb.37:
	ldr	x11, [x8, #24]
	cbz	x11, LBB0_47
LBB0_38:
	ldr	w10, [x10, #4]
	cbnz	w10, LBB0_47
; %bb.39:
Lloh12:
	adrp	x10, _INFINITE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _INFINITE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x10]
LBB0_40:
	cbz	x9, LBB0_42
; %bb.41:
	ldr	x1, [x8, #16]
	cbnz	x1, LBB0_44
LBB0_42:
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_45
; %bb.43:
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_45
LBB0_44:
	mov	x0, x2
	bl	_MIN
	mov	x2, x0
LBB0_45:
Lloh15:
	adrp	x8, _INFINITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w2, w8
	b.eq	LBB0_47
; %bb.46:
	ldur	x0, [x29, #-80]
	ldur	w1, [x29, #-84]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	w3, [x8]
	bl	_AdjustTcpMssL2
LBB0_47:
	ldur	x0, [x29, #-80]
	ldur	w1, [x29, #-84]
	mov	w2, #0
	bl	_NewBlock
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_LockQueue
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _MAX_STORED_QUEUE_NUM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAX_STORED_QUEUE_NUM@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_51
; %bb.48:
	mov	x1, x22
	bl	_InsertQueue
	cbz	x20, LBB0_52
; %bb.49:
	cbz	w21, LBB0_52
; %bb.50:
	mov	w8, #1
	str	w8, [x22]
	ldr	w0, [x20, #36]
	ldr	w1, [x22, #4]
	bl	_CedarAddCurrentTcpQueueSize
	b	LBB0_52
LBB0_51:
	mov	x0, x22
	bl	_FreeBlock
LBB0_52:
	ldr	x0, [x19, #8]
	bl	_UnlockQueue
	cbz	x20, LBB0_54
; %bb.53:
	ldr	w0, [x20, #32]
	ldr	w1, [x19]
	bl	_AddCancelList
	b	LBB0_55
LBB0_54:
	ldr	w0, [x19]
	bl	_Cancel
LBB0_55:
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_68
; %bb.56:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_57:
	ldr	w9, [x8, #4]
	cmp	w9, #13
	b.eq	LBB0_60
; %bb.58:
	cmp	w9, #128
	b.ne	LBB0_18
; %bb.59:
	ldr	w9, [x8, #8]
	cmp	w9, #200
	b.ne	LBB0_18
	b	LBB0_61
LBB0_60:
	ldr	w9, [x8, #8]
	cmp	w9, #136
	b.ne	LBB0_18
LBB0_61:
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_18
; %bb.62:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_18
; %bb.63:
	ldr	w8, [x8, #20]
	cbnz	w8, LBB0_18
; %bb.64:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_18
; %bb.65:
	ldr	x9, [x8, #72]
	cbz	x9, LBB0_18
; %bb.66:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_18
; %bb.67:
	mov	x24, sp
Lloh24:
	adrp	x25, _MD5_SIZE@GOTPAGE
Lloh25:
	ldr	x25, [x25, _MD5_SIZE@GOTPAGEOFF]
	ldr	w9, [x25]
	mov	x26, x8
	lsl	x8, x9, #2
	mov	x9, x8
Lloh26:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh27:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldp	w2, w1, [x22, #8]
	mov	x0, x23
	bl	_Md5
	ldr	w0, [x26, #68]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_Copy
	bl	_Tick64
	str	w0, [x26, #64]
	mov	sp, x24
	b	LBB0_18
LBB0_68:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMITER_SAMPLING_SPAN,8,3      ; @LIMITER_SAMPLING_SPAN
	.comm	_MD5_SIZE,4,2                   ; @MD5_SIZE
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_MAX_STORED_QUEUE_NUM,8,3       ; @MAX_STORED_QUEUE_NUM
.subsections_via_symbols
