// File: /workspace/github_cpp_makefile_star2_O3/xocoder[P]m_kcptun/src/kcp_remote.cpp
// Function: main
int
main(int argc, const char *argv[]) {

   tun_remote_t *tun = new tun_remote_t;
   memset(tun, 0, sizeof(*tun));

   if ( tun ) {

      tun->conf = conf_create(argc, argv);
      if ( tun->conf ) {

         if ( _remote_network_init(tun) ) {
            
            _remote_network_runloop(tun);

            _remote_network_fini(tun);
         }

         conf_release(tun->conf);
      }

      delete tun;
   }

   return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movl %edi, %r12d
movl $0x10098, %edi          # imm = 0x10098
callq 0x2290
movq %rax, %r14
movq %rax, %rbx
movl $0x10098, %edx          # imm = 0x10098
movq %rax, %rdi
xorl %esi, %esi
callq 0x2170
movl %r12d, %edi
movq %r15, %rsi
callq 0x7134
movq %rax, 0x78(%r14)
testq %rax, %rax
je 0x888c
callq 0x3ec8
callq 0x6be0
movq %rax, 0x58(%rbx)
movq 0x78(%rbx), %r15
cmpl $0x0, 0x148(%r15)
je 0x8480
addq $0x158, %r15            # imm = 0x158
movq %r15, %rdi
callq 0x2100
movq %r15, %rdi
movl %eax, %esi
callq 0x566c
movq %rax, 0x60(%rbx)
callq 0x5c78
movq %rax, 0x68(%rbx)
movq 0x78(%rbx), %r15
cmpl $0x0, 0x94(%r15)
jle 0x8510
movl $0x4, %r12d
xorl %r13d, %r13d
leaq 0x40c(%rip), %r15       # 0x88aa
movl $0x2, %edi
callq 0x453a
movq %rax, 0x8(%rbx,%r13,8)
testq %rax, %rax
je 0x8828
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4ae5
movq 0x8(%rbx,%r13,8), %rdi
movq 0x78(%rbx), %rsi
movl 0x84(%rsi,%r13,4), %edx
addq %r12, %rsi
movl $0x1, %ecx
callq 0x4a5a
testl %eax, %eax
jle 0x883d
movq 0x8(%rbx,%r13,8), %rdi
movl $0x200000, %esi         # imm = 0x200000
callq 0x4fd4
incq %r13
movq 0x78(%rbx), %rax
movslq 0x94(%rax), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x849e
movq %rbx, %rdi
callq 0x8b1f
testl %eax, %eax
je 0x8883
callq 0x671c
movq %rax, 0x80(%rbx)
movq 0x68(%rbx), %rsi
leaq 0x6fb(%rip), %r9        # 0x8c32
movl $0x2710, %edx           # imm = 0x2710
movq %rax, %rdi
movl $0x1, %ecx
movq %rbx, %r8
callq 0x6a54
movq %rax, 0x88(%rbx)
movq 0x78(%rbx), %rax
movl 0x14c(%rax), %edi
testl %edi, %edi
je 0x8573
movl 0x150(%rax), %esi
callq 0x9170
movq %rax, 0x90(%rbx)
movl $0x1, 0x70(%rbx)
addq $0x98, %r14
xorl %r15d, %r15d
cmpl $0x1000, %r15d          # imm = 0x1000
jl 0x859a
movl $0x1, %edi
callq 0x5ca1
xorl %r15d, %r15d
callq 0x5c78
movq %rax, 0x68(%rbx)
movq 0x80(%rbx), %rdi
movq %rax, %rsi
callq 0x689d
movq 0x48(%rbx), %rdi
callq 0x2ca2
testl %eax, %eax
jle 0x8816
movq 0x48(%rbx), %rdi
movq %r14, %rsi
movl $0x10000, %edx          # imm = 0x10000
callq 0x2a7d
testl %eax, %eax
jle 0x8816
movq %r14, %rdi
movl %eax, %esi
leaq -0x40(%rbp), %rdx
callq 0x708c
testl %eax, %eax
je 0x87d3
movq 0x58(%rbx), %rdi
movl -0x3c(%rbp), %esi
callq 0x838d
movq %rax, %r13
testq %rax, %rax
je 0x8677
cmpl $0x2, -0x40(%rbp)
jne 0x8677
movq 0x8(%r13), %rdi
callq 0x45f0
cmpl $0x3, %eax
jne 0x8677
movq 0x8(%r13), %rdi
callq 0x5052
movq 0x78(%rbx), %rcx
cmpl 0x154(%rcx), %eax
jge 0x8677
movq 0x8(%r13), %rdi
movq -0x38(%rbp), %rsi
movl -0x30(%rbp), %edx
callq 0x4d27
testl %eax, %eax
jns 0x85c3
movl %eax, %r12d
movl $0x1d, %edx
movq 0x799e(%rip), %r13      # 0xfff0
movq %r13, %rdi
leaq 0x3a26(%rip), %rsi      # 0xc082
callq 0x22e0
movq %r13, %rdi
movl %r12d, %esi
callq 0x2400
movq %rax, %r12
movq (%rax), %rax
jmp 0x87aa
testq %r13, %r13
setne %dl
movl -0x40(%rbp), %ecx
cmpl $0x1, %ecx
sete %sil
movb -0x38(%rbp), %al
cmpb $0x3, %al
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x86aa
movq 0x8(%r13), %rdi
callq 0x45ce
jmp 0x85c3
cmpl $0x1, %ecx
sete %cl
cmpb $0x1, %al
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x8738
movl -0x3c(%rbp), %r13d
movl $0x1, %edi
callq 0x453a
testq %rax, %rax
je 0x8758
movq %rax, %r12
movq 0x58(%rbx), %rdi
movl %r13d, %esi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x8310
testq %rax, %rax
je 0x8775
movq %r12, %rdi
leaq 0x789(%rip), %rsi       # 0x8e84
movq %rax, %rdx
callq 0x4ae5
movq 0x78(%rbx), %rsi
movl 0x118(%rsi), %edx
addq $0x98, %rsi
movq %r12, %rdi
callq 0x4605
testl %eax, %eax
jle 0x877d
movl $0x1d, %edx
movq 0x78a4(%rip), %r12      # 0xffd0
movq %r12, %rdi
leaq 0x39ae(%rip), %rsi      # 0xc0e4
jmp 0x8793
cmpb $0x4, %al
je 0x85c3
movl $0x11, %edx
movq 0x78a4(%rip), %r12      # 0xfff0
movq %r12, %rdi
leaq 0x394a(%rip), %rsi      # 0xc0a0
jmp 0x876e
movl $0x18, %edx
movq 0x788c(%rip), %r12      # 0xfff0
movq %r12, %rdi
leaq 0x395d(%rip), %rsi      # 0xc0cb
callq 0x22e0
jmp 0x87a6
movq %r12, %rdi
callq 0x45ce
movl $0x21, %edx
movq 0x7867(%rip), %r12      # 0xfff0
movq %r12, %rdi
leaq 0x396f(%rip), %rsi      # 0xc102
callq 0x22e0
movq %r12, %rdi
movq %r13, %rsi
callq 0x21c0
movq %rax, %r12
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2270
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21d0
jmp 0x85c3
movl $0x18, %edx
movq 0x7811(%rip), %r12      # 0xfff0
movq %r12, %rdi
leaq 0x38c9(%rip), %rsi      # 0xc0b2
callq 0x22e0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2270
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21d0
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x50f2
incl %r15d
jmp 0x8584
movq 0x77c1(%rip), %rdi      # 0xfff0
leaq 0x37b7(%rip), %rsi      # 0xbfed
movl $0x17, %edx
jmp 0x8850
movq 0x77ac(%rip), %rdi      # 0xfff0
leaq 0x37ba(%rip), %rsi      # 0xc005
movl $0x1b, %edx
callq 0x22e0
movq 0x7794(%rip), %r14      # 0xfff0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2270
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21d0
movq 0x78(%rbx), %rdi
callq 0x81ef
movl $0x10098, %esi          # imm = 0x10098
movq %rbx, %rdi
callq 0x22b0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq