// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %rsi, %r15
movl %edi, %r12d
movl $0x10098, %edi          # imm = 0x10098
callq 0x2280
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 0x71fc
movq %rax, 0x78(%r14)
testq %rax, %rax
je 0x8579
cmpl $0x0, 0x70(%rbx)
je 0x8597
movq 0x78(%rbx), %rdi
callq 0x8322
movl $0x10098, %esi          # imm = 0x10098
movq %rbx, %rdi
callq 0x22a0
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3f0c
callq 0x6cb0
movq %rax, 0x58(%rbx)
movq 0x78(%rbx), %r15
cmpl $0x0, 0x148(%r15)
je 0x85d9
addq $0x158, %r15            # imm = 0x158
movq %r15, %rdi
callq 0x2100
movq %r15, %rdi
movl %eax, %esi
callq 0x56f4
movq %rax, 0x60(%rbx)
callq 0x5d00
movq %rax, 0x68(%rbx)
movq 0x78(%rbx), %rax
cmpl $0x0, 0x94(%rax)
jle 0x86cf
movb $0x1, %r12b
movl $0x4, %r13d
xorl %r15d, %r15d
movl $0x2, %edi
callq 0x45a6
movq %rax, 0x8(%rbx,%r15,8)
testq %rax, %rax
je 0x866a
movq %rax, %rdi
leaq 0x3ed(%rip), %rsi       # 0x8a01
movq %rbx, %rdx
callq 0x4b3c
movq 0x8(%rbx,%r15,8), %rdi
movq 0x78(%rbx), %rsi
movl 0x84(%rsi,%r15,4), %edx
addq %r13, %rsi
movl $0x1, %ecx
callq 0x4ab3
testl %eax, %eax
jle 0x867f
movq 0x8(%rbx,%r15,8), %rdi
movl $0x200000, %esi         # imm = 0x200000
callq 0x5039
incq %r15
movq 0x78(%rbx), %rax
movslq 0x94(%rax), %rax
addq $0x10, %r13
cmpq %rax, %r15
setl %r12b
jl 0x85f6
jmp 0x86cf
movq 0x797f(%rip), %rdi      # 0xfff0
leaq 0x3975(%rip), %rsi      # 0xbfed
movl $0x17, %edx
jmp 0x8692
movq 0x796a(%rip), %rdi      # 0xfff0
leaq 0x3978(%rip), %rsi      # 0xc005
movl $0x1b, %edx
callq 0x22d0
movq 0x7952(%rip), %r15      # 0xfff0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21c0
testb $0x1, %r12b
jne 0x8570
movq %rbx, %rdi
callq 0x8c76
testl %eax, %eax
je 0x8570
callq 0x67dc
movq %rax, 0x80(%rbx)
movq 0x68(%rbx), %rsi
leaq 0x693(%rip), %r9        # 0x8d89
movl $0x2710, %edx           # imm = 0x2710
movq %rax, %rdi
movl $0x1, %ecx
movq %rbx, %r8
callq 0x6b25
movq %rax, 0x88(%rbx)
movq 0x78(%rbx), %rax
movl 0x14c(%rax), %edi
testl %edi, %edi
je 0x8732
movl 0x150(%rax), %esi
callq 0x9298
movq %rax, 0x90(%rbx)
movl $0x1, 0x70(%rbx)
addq $0x98, %r14
xorl %eax, %eax
leaq -0x48(%rbp), %r12
cmpl $0x1000, %eax           # imm = 0x1000
jl 0x8759
movl $0x1, %edi
callq 0x5d29
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
callq 0x5d00
movq %rax, 0x68(%rbx)
movq 0x80(%rbx), %rdi
movq %rax, %rsi
callq 0x695d
movq 0x48(%rbx), %rdi
callq 0x2c4c
testl %eax, %eax
jle 0x89ed
movq 0x48(%rbx), %rdi
movq %r14, %rsi
movl $0x10000, %edx          # imm = 0x10000
callq 0x2a2e
testl %eax, %eax
jle 0x89ed
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rdx
callq 0x7154
movl %eax, %r13d
testl %eax, %eax
je 0x8870
movq 0x58(%rbx), %rdi
movl -0x44(%rbp), %esi
callq 0x84b9
movq %rax, %r15
testq %rax, %rax
je 0x883d
cmpl $0x2, -0x48(%rbp)
jne 0x883d
movq 0x8(%r15), %rdi
callq 0x465c
cmpl $0x3, %eax
jne 0x883d
movq 0x8(%r15), %rdi
callq 0x50b7
movq 0x78(%rbx), %rcx
cmpl 0x154(%rcx), %eax
jge 0x883d
movq 0x8(%r15), %rdi
movq -0x40(%rbp), %rsi
movl -0x38(%rbp), %edx
callq 0x4d86
testl %eax, %eax
jns 0x89e4
movl %eax, %r15d
movl $0x1d, %edx
movq 0x77d6(%rip), %rdi      # 0xfff0
leaq 0x3861(%rip), %rsi      # 0xc082
callq 0x22d0
movq 0x77c3(%rip), %rdi      # 0xfff0
movl %r15d, %esi
callq 0x23f0
movq %rax, %r15
movq (%rax), %rax
jmp 0x888e
testq %r15, %r15
setne %dl
movl -0x48(%rbp), %ecx
cmpl $0x1, %ecx
sete %sil
movb -0x40(%rbp), %al
cmpb $0x3, %al
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x88b7
movq 0x8(%r15), %rdi
callq 0x463a
jmp 0x89e4
movl $0x18, %edx
movq 0x7774(%rip), %r15      # 0xfff0
movq %r15, %rdi
leaq 0x382c(%rip), %rsi      # 0xc0b2
callq 0x22d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21c0
jmp 0x89e4
cmpl $0x1, %ecx
sete %cl
cmpb $0x1, %al
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x8945
movl -0x44(%rbp), %r15d
movl $0x1, %edi
callq 0x45a6
testq %rax, %rax
je 0x8968
movq %rax, %r12
movq 0x58(%rbx), %rdi
movl %r15d, %esi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x843c
testq %rax, %rax
je 0x8988
movq %r12, %rdi
leaq 0x6d3(%rip), %rsi       # 0x8fdb
movq %rax, %rdx
callq 0x4b3c
movq 0x78(%rbx), %rsi
movl 0x118(%rsi), %edx
addq $0x98, %rsi
movq %r12, %rdi
callq 0x4671
testl %eax, %eax
jle 0x8990
movl $0x1d, %edx
movq 0x7697(%rip), %r12      # 0xffd0
movq %r12, %rdi
leaq 0x37a1(%rip), %rsi      # 0xc0e4
jmp 0x89a6
cmpb $0x4, %al
je 0x89e4
movl $0x11, %edx
movq 0x7697(%rip), %r15      # 0xfff0
movq %r15, %rdi
leaq 0x373d(%rip), %rsi      # 0xc0a0
jmp 0x8886
movl $0x18, %edx
movq 0x767c(%rip), %r15      # 0xfff0
movq %r15, %rdi
leaq 0x374d(%rip), %rsi      # 0xc0cb
callq 0x22d0
movq (%r15), %rax
jmp 0x89bc
movq %r12, %rdi
callq 0x463a
movl $0x21, %edx
movq 0x7654(%rip), %r12      # 0xfff0
movq %r12, %rdi
leaq 0x375c(%rip), %rsi      # 0xc102
callq 0x22d0
movq %r12, %rdi
movq %r15, %rsi
callq 0x21b0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21c0
leaq -0x48(%rbp), %r12
testl %r13d, %r13d
jne 0x8785
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x515f
movl -0x2c(%rbp), %eax
incl %eax
jmp 0x8746