// File: /workspace/github_cpp_makefile_star2_O2/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 0x2290
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 0x6a2c
movq %rax, 0x78(%r14)
testq %rax, %rax
je 0x77f1
callq 0x3c28
callq 0x6514
movq %rax, 0x50(%rbx)
movq 0x78(%rbx), %r15
cmpl $0x0, 0x148(%r15)
je 0x7604
addq $0x158, %r15            # imm = 0x158
movq %r15, %rdi
callq 0x2100
movq %r15, %rdi
movl %eax, %esi
callq 0x52dc
movq %rax, 0x60(%rbx)
callq 0x5790
movq %rax, 0x68(%rbx)
pushq $0x1
popq %rdi
callq 0x4252
testq %rax, %rax
je 0x76c5
movq %rax, %r15
leaq 0x3e5(%rip), %rsi       # 0x7a04
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4798
movq 0x78(%rbx), %rsi
movl 0x84(%rsi), %edx
addq $0x4, %rsi
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x4713
testl %eax, %eax
jle 0x76d1
movl $0x98, %r15d
xorl %r13d, %r13d
pushq $0x2
popq %r12
movq 0x78(%rbx), %rax
movslq (%rax), %rax
cmpq %rax, %r13
jge 0x76dd
movl %r12d, %edi
callq 0x4252
movq %rax, 0x8(%rbx,%r13,8)
testq %rax, %rax
je 0x77bb
movq %rax, %rdi
leaq 0x603(%rip), %rsi       # 0x7c87
movq %rbx, %rdx
callq 0x4798
movq 0x8(%rbx,%r13,8), %rdi
movq 0x78(%rbx), %rsi
movl 0x118(%rsi,%r13,4), %edx
addq %r15, %rsi
callq 0x431b
testl %eax, %eax
jle 0x77c4
movq 0x8(%rbx,%r13,8), %rdi
movl $0x80000, %esi          # imm = 0x80000
callq 0x4c68
incq %r13
addq $0x10, %r15
jmp 0x7658
leaq 0x38e4(%rip), %rsi      # 0xafb0
jmp 0x77d4
leaq 0x38f4(%rip), %rsi      # 0xafcc
jmp 0x77d4
leaq -0x289(%rip), %rdi      # 0x745b
leaq -0x27a(%rip), %rsi      # 0x7471
callq 0x25ec
callq 0x5790
movl %eax, %edi
callq 0x2260
callq 0x20a0
movl %eax, %r15d
movq 0x78c5(%rip), %rdi      # 0xefd0
leaq 0x3966(%rip), %rsi      # 0xb078
callq 0x2270
movl %r15d, %esi
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2150
movl %r15d, %edi
movq %rbx, %rsi
callq 0x26c3
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x77cd
leaq 0x665(%rip), %rsi       # 0x7dae
movq %rax, %rdi
callq 0x2977
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 0x3b9a
movq 0x48(%rbx), %rdi
movq 0x78(%rbx), %rax
movl 0x128(%rax), %edx
movl 0x12c(%rax), %esi
callq 0x3beb
movq 0x48(%rbx), %rdi
movq 0x78(%rbx), %rax
movl 0x140(%rax), %esi
callq 0x3b1c
movq 0x78(%rbx), %rax
movl 0x144(%rax), %eax
cmpl $0x3, %eax
je 0x780f
cmpl $0x2, %eax
jne 0x7819
pushq $0x28
jmp 0x7811
leaq 0x3869(%rip), %rsi      # 0xb02b
jmp 0x77d4
leaq 0x3879(%rip), %rsi      # 0xb044
jmp 0x77d4
leaq 0x38b4(%rip), %rsi      # 0xb088
movq 0x7815(%rip), %rdi      # 0xeff0
callq 0x2270
movq %rax, %rdi
callq 0x2150
movq 0x78(%rbx), %rdi
callq 0x7445
movl $0x10098, %esi          # imm = 0x10098
movq %rbx, %rdi
callq 0x22b0
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x14
popq %rax
movq 0x48(%rbx), %rcx
movl %eax, 0x34(%rcx)
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
pushq $0x4
popq %rdx
xorl %esi, %esi
callq 0x69dd
testl %eax, %eax
je 0x7841
movq 0x48(%rbx), %rdi
leaq -0x50(%rbp), %rsi
pushq $0x10
popq %rdx
callq 0x2bef
callq 0x6078
movq %rax, 0x80(%rbx)
movq 0x68(%rbx), %rsi
leaq 0x290(%rip), %r9        # 0x7ae8
pushq $0x1
popq %rcx
movl $0x2710, %edx           # imm = 0x2710
movq %rax, %rdi
movq %rbx, %r8
callq 0x6386
movq %rax, 0x88(%rbx)
movq 0x78(%rbx), %rax
movl 0x14c(%rax), %edi
testl %edi, %edi
je 0x7892
movl 0x150(%rax), %esi
callq 0x7fc0
movq %rax, 0x90(%rbx)
movl $0x1, 0x70(%rbx)
addq $0x98, %r14
xorl %eax, %eax
leaq -0x50(%rbp), %r12
movq 0x7743(%rip), %r13      # 0xeff0
cmpl $0x400, %eax            # imm = 0x400
jl 0x78be
pushq $0x1
popq %rdi
callq 0x57b9
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
callq 0x5790
movq %rax, 0x68(%rbx)
movq 0x80(%rbx), %rdi
movq %rax, %rsi
callq 0x61de
movq 0x48(%rbx), %rdi
callq 0x2b89
testl %eax, %eax
jle 0x79f0
movq 0x48(%rbx), %rdi
movq %r14, %rsi
movl $0x10000, %edx          # imm = 0x10000
callq 0x2984
testl %eax, %eax
jle 0x79f0
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rdx
callq 0x6984
testl %eax, %eax
je 0x7975
movq 0x50(%rbx), %rdi
movl -0x4c(%rbp), %esi
callq 0x7f60
testq %rax, %rax
je 0x78ea
movq %rax, %r15
movl -0x50(%rbp), %eax
cmpl $0x1, %eax
je 0x7991
cmpl $0x2, %eax
jne 0x78ea
movq 0x8(%r15), %rdi
movq -0x48(%rbp), %rsi
movl -0x40(%rbp), %edx
callq 0x49cb
cmpq $0x0, -0x48(%rbp)
je 0x78ea
cmpl $0x0, -0x40(%rbp)
jle 0x78ea
movl %eax, %r15d
testl %eax, %eax
jns 0x78ea
movq %r13, %rdi
leaq 0x373e(%rip), %rsi      # 0xb0a1
callq 0x2270
movq %rax, %rdi
movl %r15d, %esi
callq 0x23e0
jmp 0x7984
movq %r13, %rdi
leaq 0x3768(%rip), %rsi      # 0xb0e7
callq 0x2270
movq %rax, %rdi
callq 0x2150
jmp 0x78ea
movzbl -0x48(%rbp), %eax
cmpl $0x3, %eax
je 0x79bb
cmpl $0x2, %eax
jne 0x78ea
movl $0x1, 0x10(%r15)
movq 0x761e(%rip), %rdi      # 0xefd0
leaq 0x3705(%rip), %rsi      # 0xb0be
jmp 0x797f
movq 0x8(%r15), %rdi
callq 0x42e4
movq 0x50(%rbx), %rdi
movq %r15, %rsi
callq 0x7f81
movq 0x75f9(%rip), %rdi      # 0xefd0
leaq 0x36f5(%rip), %rsi      # 0xb0d3
callq 0x2270
movl -0x4c(%rbp), %esi
movq %rax, %rdi
callq 0x21d0
jmp 0x7984
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x4d84
movl -0x2c(%rbp), %eax
incl %eax
jmp 0x78ad