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

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

   if ( tun ) {

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

         if ( _local_network_init(tun) ) {
            
            _local_network_runloop(tun);

            _local_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 0x22a0
movq %rax, %r14
movq %rax, %rbx
movl $0x10098, %edx          # imm = 0x10098
movq %rax, %rdi
xorl %esi, %esi
callq 0x2180
movl %r12d, %edi
movq %r15, %rsi
callq 0x7144
movq %rax, 0x78(%r14)
testq %rax, %rax
je 0x85a9
callq 0x3ed8
callq 0x6bf0
movq %rax, 0x50(%rbx)
movq 0x78(%rbx), %r15
cmpl $0x0, 0x148(%r15)
je 0x8328
addq $0x158, %r15            # imm = 0x158
movq %r15, %rdi
callq 0x2110
movq %r15, %rdi
movl %eax, %esi
callq 0x567c
movq %rax, 0x60(%rbx)
callq 0x5c88
movq %rax, 0x68(%rbx)
movl $0x1, %edi
callq 0x454a
testq %rax, %rax
je 0x850b
movq %rax, %r15
leaq 0x4dc(%rip), %rsi       # 0x8821
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4af5
movq 0x78(%rbx), %rsi
movl 0x84(%rsi), %edx
addq $0x4, %rsi
movq %r15, %rdi
movl $0x1, %ecx
callq 0x4a6a
testl %eax, %eax
jle 0x8520
movq 0x78(%rbx), %rax
cmpl $0x0, (%rax)
jle 0x83f5
movl $0x98, %r12d
xorl %r13d, %r13d
leaq 0x7d2(%rip), %r15       # 0x8b5e
movl $0x2, %edi
callq 0x454a
movq %rax, 0x8(%rbx,%r13,8)
testq %rax, %rax
je 0x8545
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4af5
movq 0x8(%rbx,%r13,8), %rdi
movq 0x78(%rbx), %rsi
movl 0x118(%rsi,%r13,4), %edx
addq %r12, %rsi
callq 0x4615
testl %eax, %eax
jle 0x855a
movq 0x8(%rbx,%r13,8), %rdi
movl $0x80000, %esi          # imm = 0x80000
callq 0x4fe4
incq %r13
movq 0x78(%rbx), %rax
movslq (%rax), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x838c
leaq -0x26e(%rip), %rdi      # 0x818e
leaq -0x25f(%rip), %rsi      # 0x81a4
callq 0x261c
callq 0x5c88
movl %eax, %edi
callq 0x2270
callq 0x20b0
movl %eax, %r15d
movq 0x7bad(%rip), %r12      # 0xffd0
leaq 0x3c4e(%rip), %rsi      # 0xc078
movl $0xf, %edx
movq %r12, %rdi
callq 0x22f0
movl %r15d, %esi
movq %r12, %rdi
callq 0x21d0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2280
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21e0
movl %r15d, %edi
movq %rbx, %rsi
callq 0x26f3
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x8535
leaq 0x821(%rip), %rsi       # 0x8cac
movq %rax, %rdi
callq 0x2a80
movq 0x48(%rbx), %rdi
movq 0x78(%rbx), %rax
movl 0x130(%rax), %esi
movl 0x134(%rax), %edx
movl 0x138(%rax), %ecx
movl 0x13c(%rax), %r8d
callq 0x3e47
movq 0x48(%rbx), %rdi
movq 0x78(%rbx), %rax
movl 0x128(%rax), %edx
movl 0x12c(%rax), %esi
callq 0x3e98
movq 0x48(%rbx), %rdi
movq 0x78(%rbx), %rax
movl 0x140(%rax), %esi
callq 0x3da6
movq 0x78(%rbx), %rax
movl 0x144(%rax), %eax
cmpl $0x3, %eax
je 0x85c7
cmpl $0x2, %eax
jne 0x85d3
movl $0x28, %eax
jmp 0x85cc
movq 0x7ade(%rip), %rdi      # 0xfff0
leaq 0x3a97(%rip), %rsi      # 0xbfb0
movl $0x1b, %edx
jmp 0x856d
movq 0x7ac9(%rip), %rdi      # 0xfff0
leaq 0x3a9e(%rip), %rsi      # 0xbfcc
movl $0x16, %edx
jmp 0x856d
movq 0x7ab4(%rip), %rdi      # 0xfff0
leaq 0x3b45(%rip), %rsi      # 0xc088
jmp 0x8553
movq 0x7aa4(%rip), %rdi      # 0xfff0
leaq 0x3ad8(%rip), %rsi      # 0xc02b
movl $0x18, %edx
jmp 0x856d
movq 0x7a8f(%rip), %rdi      # 0xfff0
leaq 0x3adc(%rip), %rsi      # 0xc044
movl $0x1c, %edx
callq 0x22f0
movq 0x7a77(%rip), %r14      # 0xfff0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2280
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21e0
movq 0x78(%rbx), %rdi
callq 0x8178
movl $0x10098, %esi          # imm = 0x10098
movq %rbx, %rdi
callq 0x22c0
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x14, %eax
movq 0x48(%rbx), %rcx
movl %eax, 0x34(%rcx)
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
xorl %esi, %esi
movl $0x4, %edx
callq 0x70f5
testl %eax, %eax
je 0x85ff
movq 0x48(%rbx), %rdi
leaq -0x50(%rbp), %rsi
movl $0x10, %edx
callq 0x2d1a
callq 0x672c
movq %rax, 0x80(%rbx)
movq 0x68(%rbx), %rsi
leaq 0x325(%rip), %r9        # 0x893b
movl $0x2710, %edx           # imm = 0x2710
movq %rax, %rdi
movl $0x1, %ecx
movq %rbx, %r8
callq 0x6a64
movq %rax, 0x88(%rbx)
movq 0x78(%rbx), %rax
movl 0x14c(%rax), %edi
testl %edi, %edi
je 0x8652
movl 0x150(%rax), %esi
callq 0x8ec4
movq %rax, 0x90(%rbx)
movl $0x1, 0x70(%rbx)
addq $0x98, %r14
xorl %eax, %eax
leaq -0x50(%rbp), %r12
movq 0x7983(%rip), %r13      # 0xfff0
cmpl $0x400, %eax            # imm = 0x400
jl 0x8680
movl $0x1, %edi
callq 0x5cb1
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
callq 0x5c88
movq %rax, 0x68(%rbx)
movq 0x80(%rbx), %rdi
movq %rax, %rsi
callq 0x68ad
movq 0x48(%rbx), %rdi
callq 0x2cb2
testl %eax, %eax
jg 0x87f4
jmp 0x880d
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rdx
callq 0x709c
testl %eax, %eax
je 0x873f
movq 0x50(%rbx), %rdi
movl -0x4c(%rbp), %esi
callq 0x8e65
testq %rax, %rax
je 0x87f4
movq %rax, %r15
movl -0x50(%rbp), %eax
cmpl $0x1, %eax
je 0x8758
cmpl $0x2, %eax
jne 0x87f4
movq 0x8(%r15), %rdi
movq -0x48(%rbp), %rsi
movl -0x40(%rbp), %edx
callq 0x4d37
cmpq $0x0, -0x48(%rbp)
je 0x87f4
cmpl $0x0, -0x40(%rbp)
jle 0x87f4
movl %eax, %r15d
testl %eax, %eax
jns 0x87f4
movl $0x1c, %edx
movq %r13, %rdi
leaq 0x3977(%rip), %rsi      # 0xc0a1
callq 0x22f0
movq %r13, %rdi
movl %r15d, %esi
callq 0x2410
jmp 0x87ca
movl $0x18, %edx
movq %r13, %rdi
leaq 0x3999(%rip), %rsi      # 0xc0e7
callq 0x22f0
movq %r13, %r15
jmp 0x87cd
movzbl -0x48(%rbp), %eax
cmpl $0x3, %eax
je 0x878f
cmpl $0x2, %eax
jne 0x87f4
movl $0x1, 0x10(%r15)
movl $0x14, %edx
movq 0x7852(%rip), %r15      # 0xffd0
movq %r15, %rdi
leaq 0x3936(%rip), %rsi      # 0xc0be
callq 0x22f0
jmp 0x87cd
movq 0x8(%r15), %rdi
callq 0x45de
movq 0x50(%rbx), %rdi
movq %r15, %rsi
callq 0x8e86
movl $0x13, %edx
movq 0x7820(%rip), %r15      # 0xffd0
movq %r15, %rdi
leaq 0x3919(%rip), %rsi      # 0xc0d3
callq 0x22f0
movl -0x4c(%rbp), %esi
movq %r15, %rdi
callq 0x21d0
movq %rax, %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2280
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x21e0
movq 0x48(%rbx), %rdi
movq %r14, %rsi
movl $0x10000, %edx          # imm = 0x10000
callq 0x2a8d
testl %eax, %eax
jg 0x86b1
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x5102
movl -0x2c(%rbp), %eax
incl %eax
jmp 0x866d