// File: /workspace/github_c_makefile_star2_O3/fmadio[P]pcap_flow/main.c
// Function: PrintFlowTCP
static void PrintFlowTCP(FILE* Out, FlowHash_t* F, u32 FlowID, u32 FlowCnt)
{
	TCPHash_t* TCP = (TCPHash_t*)F->Data;
	fprintf(Out, "%5i FlowID: %8i | TCP  ", FlowCnt, FlowID); 	
	PrintMAC(Out, TCP->MACSrc);
	fprintf(Out, " -> ");
	PrintMAC(Out, TCP->MACDst);

	fprintf(Out, " | ");
	PrintIP4(Out, TCP->IPSrc);
	fprintf(Out, " -> ");
	PrintIP4(Out, TCP->IPDst);

	fprintf(Out, " | %6i -> %6i ", TCP->PortSrc, TCP->PortDst);

	fprintf(Out, " | ");
	fprintf(Out, " %'16lld Pkts ", F->PktCnt);
	fprintf(Out, " %'16lli Bytes ", F->Bytes);

	fprintf(Out, " | ");
	fprintf(Out, " %s -> %s", FormatTS(F->TSFirst), FormatTS(F->TSLast) ); 
	fprintf(Out, " : %s", FormatTS(F->TSLast - F->TSFirst));

	fprintf(Out, " | ");
	fprintf(Out, " Seq:%08x", F->TCPSeqNo);

	// generate TCP specific stats
	struct TCPStream_t* Stream = s_ExtractTCP[FlowID];
	fTCPStream_FlowStats(Stream, Out);

	fprintf(Out, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %eax
movl %edx, 0x4(%rsp)
movq %rsi, %r12
movq %rdi, %rbp
leaq 0x4450(%rip), %rsi      # 0xaa49
movl %ecx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1170
movzbl (%r12), %edx
movzbl 0x1(%r12), %ecx
movzbl 0x2(%r12), %r8d
movzbl 0x3(%r12), %r9d
movzbl 0x4(%r12), %r10d
movzbl 0x5(%r12), %r11d
leaq 0x4484(%rip), %r15      # 0xaab2
movq %rbp, %rdi
movq %r15, %rsi
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x1170
addq $0x10, %rsp
leaq 0x4417(%rip), %rbx      # 0xaa61
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x1250
movzbl 0x6(%r12), %edx
movzbl 0x7(%r12), %ecx
movzbl 0x8(%r12), %r8d
movzbl 0x9(%r12), %r9d
movzbl 0xa(%r12), %r10d
movzbl 0xb(%r12), %r11d
movq %rbp, %rdi
movq %r15, %rsi
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x1170
addq $0x10, %rsp
leaq 0x43c7(%rip), %rdi      # 0xaa66
movl $0x3, %esi
movl $0x1, %edx
movq %rdi, %r13
movq %rbp, %rcx
callq 0x1250
movl 0xc(%r12), %edx
movl %edx, %ecx
shrl $0x8, %ecx
movl %edx, %r8d
shrl $0x10, %r8d
movl %edx, %r9d
shrl $0x18, %r9d
movl $0xff, %r14d
andl %r14d, %edx
andl %r14d, %ecx
andl %r14d, %r8d
leaq 0x43ee(%rip), %r15      # 0xaad0
movq %rbp, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1170
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x1250
movl 0x10(%r12), %edx
movl %edx, %ecx
shrl $0x8, %ecx
movl %edx, %r8d
shrl $0x10, %r8d
movl %edx, %r9d
shrl $0x18, %r9d
andl %r14d, %edx
andl %r14d, %ecx
andl %r14d, %r8d
movq %rbp, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1170
movzwl 0x14(%r12), %edx
movzwl 0x16(%r12), %ecx
leaq 0x4325(%rip), %rsi      # 0xaa6a
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1170
movl $0x3, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rcx
callq 0x1250
movq 0x48(%r12), %rdx
leaq 0x4309(%rip), %rsi      # 0xaa79
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1170
movq 0x50(%r12), %rdx
leaq 0x4302(%rip), %rsi      # 0xaa88
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1170
movl $0x3, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %rbp, %rcx
callq 0x1250
movq 0x58(%r12), %rcx
movq %rcx, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
movq %rdx, %rsi
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
movq %rcx, %rax
mulq %rdx
movq %rdx, %rdi
shrq $0x4, %rsi
movq %rcx, %rax
shrq $0x9, %rax
movabsq $0x44b82fa09b5a53, %rdx # imm = 0x44B82FA09B5A53
mulq %rdx
movq %rdx, %r10
shrq $0x12, %rdi
movq %rcx, %rax
shrq $0xb, %rax
movabsq $0x9299ff347e9e9, %rdx  # imm = 0x9299FF347E9E9
mulq %rdx
movq %rdx, %r11
shrq $0xb, %r10
shrq $0xc, %r11
movabsq $-0x63a000d9128a12ab, %r14 # imm = 0x9C5FFF26ED75ED55
movq %rcx, %rax
mulq %r14
shrq $0x29, %rdx
imulq $-0x3e8, %rsi, %r15     # imm = 0xFC18
addq %rcx, %r15
imulq $-0x3e8, %rdi, %rbx     # imm = 0xFC18
addq %rsi, %rbx
imulq $-0x3e8, %r10, %r9      # imm = 0xFC18
addq %rdi, %r9
imulq $-0x3c, %r11, %r8
addq %r10, %r8
imulq $-0x3c, %rdx, %rcx
addq %r11, %rcx
movslq 0x8547(%rip), %r13      # 0xeda0
leal 0x1(%r13), %eax
shlq $0x7, %r13
leaq 0x7d38(%rip), %rsi      # 0xe5a0
addq %rsi, %r13
andl $0xf, %eax
movl %eax, 0x852c(%rip)      # 0xeda0
imulq $0xaaaaaab, %rdx, %rax  # imm = 0xAAAAAAB
shrq $0x20, %rax
shll $0x3, %eax
leal (%rax,%rax,2), %eax
subl %eax, %edx
leaq 0x2cb9(%rip), %rsi      # 0x9547
movq %r13, %rdi
xorl %eax, %eax
pushq %r15
pushq %rbx
callq 0x1230
addq $0x10, %rsp
movq 0x60(%r12), %rcx
movq %rcx, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
movq %rdx, %rsi
movq %rcx, %rax
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
mulq %rdx
movq %rdx, %rdi
shrq $0x4, %rsi
shrq $0x12, %rdi
movq %rcx, %rax
shrq $0x9, %rax
movabsq $0x44b82fa09b5a53, %rdx # imm = 0x44B82FA09B5A53
mulq %rdx
movq %rdx, %r10
shrq $0xb, %r10
movq %rcx, %rax
shrq $0xb, %rax
movabsq $0x9299ff347e9e9, %rdx  # imm = 0x9299FF347E9E9
mulq %rdx
movq %rdx, %r11
shrq $0xc, %r11
movq %rcx, %rax
mulq %r14
shrq $0x29, %rdx
imulq $-0x3e8, %rsi, %r14     # imm = 0xFC18
addq %rcx, %r14
imulq $-0x3e8, %rdi, %rbx     # imm = 0xFC18
addq %rsi, %rbx
imulq $-0x3e8, %r10, %r9      # imm = 0xFC18
addq %rdi, %r9
imulq $-0x3c, %r11, %r8
addq %r10, %r8
imulq $-0x3c, %rdx, %rcx
addq %r11, %rcx
movslq 0x8457(%rip), %r15      # 0xeda0
leal 0x1(%r15), %eax
shlq $0x7, %r15
leaq 0x7c48(%rip), %rsi      # 0xe5a0
addq %rsi, %r15
andl $0xf, %eax
movl %eax, 0x843c(%rip)      # 0xeda0
imulq $0xaaaaaab, %rdx, %rax  # imm = 0xAAAAAAB
shrq $0x20, %rax
shll $0x3, %eax
leal (%rax,%rax,2), %eax
subl %eax, %edx
movq %r15, %rdi
leaq 0x2bc6(%rip), %rsi      # 0x9547
xorl %eax, %eax
pushq %r14
pushq %rbx
callq 0x1230
addq $0x10, %rsp
leaq 0x4102(%rip), %rsi      # 0xaa98
movq %rbp, %rdi
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1170
movq 0x60(%r12), %rcx
subq 0x58(%r12), %rcx
movq %rcx, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
movq %rdx, %rsi
movq %rcx, %rax
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
mulq %rdx
movq %rdx, %rdi
shrq $0x4, %rsi
shrq $0x12, %rdi
movq %rcx, %rax
shrq $0x9, %rax
movabsq $0x44b82fa09b5a53, %rdx # imm = 0x44B82FA09B5A53
mulq %rdx
movq %rdx, %r10
shrq $0xb, %r10
movq %rcx, %rax
shrq $0xb, %rax
movabsq $0x9299ff347e9e9, %rdx  # imm = 0x9299FF347E9E9
mulq %rdx
movq %rdx, %r11
shrq $0xc, %r11
movq %rcx, %rax
movabsq $-0x63a000d9128a12ab, %rdx # imm = 0x9C5FFF26ED75ED55
mulq %rdx
shrq $0x29, %rdx
imulq $-0x3e8, %rsi, %rbx     # imm = 0xFC18
addq %rcx, %rbx
imulq $-0x3e8, %rdi, %r14     # imm = 0xFC18
addq %rsi, %r14
imulq $-0x3e8, %r10, %r9      # imm = 0xFC18
addq %rdi, %r9
imulq $-0x3c, %r11, %r8
addq %r10, %r8
imulq $-0x3c, %rdx, %rcx
addq %r11, %rcx
movslq 0x8341(%rip), %r15      # 0xeda0
leal 0x1(%r15), %eax
shlq $0x7, %r15
leaq 0x7b32(%rip), %rsi      # 0xe5a0
addq %rsi, %r15
andl $0xf, %eax
movl %eax, 0x8326(%rip)      # 0xeda0
imulq $0xaaaaaab, %rdx, %rax  # imm = 0xAAAAAAB
shrq $0x20, %rax
shll $0x3, %eax
leal (%rax,%rax,2), %eax
subl %eax, %edx
movq %r15, %rdi
leaq 0x2ab0(%rip), %rsi      # 0x9547
xorl %eax, %eax
pushq %rbx
pushq %r14
callq 0x1230
addq $0x10, %rsp
leaq 0x3ff6(%rip), %rsi      # 0xaaa2
movq %rbp, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1170
movl $0x3, %esi
movl $0x1, %edx
leaq 0x3f9c(%rip), %rdi      # 0xaa66
movq %rbp, %rcx
callq 0x1250
movl 0x68(%r12), %edx
leaq 0x3fca(%rip), %rsi      # 0xaaa8
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1170
movq 0x7a71(%rip), %rax      # 0xe560
movl 0x4(%rsp), %ecx
movq (%rax,%rcx,8), %rdi
movq %rbp, %rsi
callq 0x3741
movl $0xa, %edi
movq %rbp, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1130