// File: SeTriones[P]Anubis/main.cpp
// Function: main
int main(int argc, char* argv[]) {
	_INFO("Anubis starting");

	close(STDIN_FILENO);
	signal(SIGPIPE, SIG_IGN);
	signal(SIGTERM, &sigterm_handler);
	signal(SIGINT, &sigint_handler);

	receiver* r = new receiver(4, 20480, 2, 100000);
	r->open(8);
	r->start_listen(4444);
	r->activate();
	_INFO("Anubis started");
	pause();
	_INFO("Anubis stopping");
	r->stop();
	delete r;
	_INFO("Anubis stoppped");
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x18(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x21e0
movq -0x1e8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movq %rsi, -0x1e0(%rbp)
callq 0x2120
movq -0x1e0(%rbp), %rcx
leaq 0x1be6(%rip), %rdx      # 0x9004
leaq -0x70(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
movl $0x12, %esi
callq 0x2190
movq 0x5b9e(%rip), %rax      # 0xcfd8
movq (%rax), %rax
movq %rax, -0x1d8(%rbp)
callq 0x21c0
movq -0x1d8(%rbp), %rdi
movq -0x1d0(%rbp), %rdx
movq %rax, %rcx
leaq 0x1f1d(%rip), %rsi      # 0x937e
leaq 0x1d13(%rip), %r8       # 0x917b
xorl %eax, %eax
movl %eax, -0x1c8(%rbp)
callq 0x2310
movl -0x1c8(%rbp), %edi
movl %eax, -0x74(%rbp)
callq 0x2420
movl $0xd, %edi
movl $0x1, %esi
callq 0x2260
leaq -0x3c9(%rip), %rsi      # 0x70d0
movl $0xf, %edi
callq 0x2260
leaq -0x3ca(%rip), %rsi      # 0x70e0
movl $0x2, %edi
movl %edi, -0x1c4(%rbp)
callq 0x2260
movl $0x100, %edi            # imm = 0x100
callq 0x2200
movl -0x1c4(%rbp), %ecx
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1c0(%rbp)
movl $0x4, %esi
movl $0x5000, %edx           # imm = 0x5000
movl $0x186a0, %r8d          # imm = 0x186A0
callq 0x7770
jmp 0x74ee
movq -0x1c0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
movq (%rdi), %rax
movl $0x8, %esi
callq *0x38(%rax)
movq -0x80(%rbp), %rdi
movl $0x115c, %esi           # imm = 0x115C
callq 0x8550
movq -0x80(%rbp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq -0x98(%rbp), %rdi
callq 0x21e0
leaq -0x98(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x2120
leaq -0xf0(%rbp), %rdi
movl $0x12, %esi
leaq 0x1ab2(%rip), %rdx      # 0x9004
leaq -0xd0(%rbp), %rcx
callq 0x2190
movq 0x5a73(%rip), %rax      # 0xcfd8
movq (%rax), %rax
movq %rax, -0x210(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x208(%rbp)
callq 0x21c0
movq -0x210(%rbp), %rdi
movq -0x208(%rbp), %rdx
movq %rax, %rcx
leaq 0x1e0c(%rip), %rsi      # 0x93a6
leaq 0x1bda(%rip), %r8       # 0x917b
movb $0x0, %al
callq 0x2310
movl %eax, -0xf4(%rbp)
callq 0x2070
leaq -0x100(%rbp), %rdi
callq 0x21e0
leaq -0x100(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x2120
leaq -0x150(%rbp), %rdi
movl $0x12, %esi
leaq 0x1a1f(%rip), %rdx      # 0x9004
leaq -0x138(%rbp), %rcx
callq 0x2190
movq 0x59e0(%rip), %rax      # 0xcfd8
movq (%rax), %rax
movq %rax, -0x200(%rbp)
leaq -0x150(%rbp), %rax
movq %rax, -0x1f8(%rbp)
callq 0x21c0
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rdx
movq %rax, %rcx
leaq 0x1da0(%rip), %rsi      # 0x93cd
leaq 0x1b47(%rip), %r8       # 0x917b
movb $0x0, %al
callq 0x2310
movl %eax, -0x154(%rbp)
movq -0x80(%rbp), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq -0x80(%rbp), %rax
movq %rax, -0x1f0(%rbp)
cmpq $0x0, %rax
je 0x7669
movq -0x1f0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
leaq -0x160(%rbp), %rdi
callq 0x21e0
leaq -0x160(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x2120
leaq -0x1b0(%rbp), %rdi
movl $0x12, %esi
leaq 0x1969(%rip), %rdx      # 0x9004
leaq -0x198(%rbp), %rcx
callq 0x2190
movq 0x592a(%rip), %rax      # 0xcfd8
movq (%rax), %rax
movq %rax, -0x220(%rbp)
leaq -0x1b0(%rbp), %rax
movq %rax, -0x218(%rbp)
callq 0x21c0
movq -0x220(%rbp), %rdi
movq -0x218(%rbp), %rdx
movq %rax, %rcx
leaq 0x1d12(%rip), %rsi      # 0x93f5
leaq 0x1a91(%rip), %r8       # 0x917b
movb $0x0, %al
callq 0x2310
movl %eax, -0x1b4(%rbp)
xorl %eax, %eax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
movq -0x1c0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
movl $0x100, %esi            # imm = 0x100
callq 0x2210
movq -0x88(%rbp), %rdi
callq 0x23d0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)