// File: /workspace/github_cpp_makefile_star2_O2/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: main
int main(int argc, char **argv)
{
   int rc = 0;
   struct sigaction act;
   inbound_type::iterator inbound_pos; 
   inbound *inbound_ptr;
   short int i;

   // R3ABM Patch
   if (argc != 2) /* 3 */
   {
      printf("Usage:  dxrfd <configFile>\n");
      printf("Example: dxrfd dxrfd.cfg\n");

      //printf("Usage:  dxrfd <configFile> <logFile>\n");
      //printf("Example: dxrfd dxrfd.cfg dxrfd.log\n");
      return 1;
   }

   // R3ABM Patch
   /*

   if (access(argv[2], F_OK) == 0)
   {
      printf("Log file %s exists, is dxrfd already running?, if not running, remove log file and restart\n", argv[2]);
      return 1;
   }
   */

   rc = regcomp(&preg,
        "^(([1-9][A-Z])|([A-Z][0-9])|([A-Z][A-Z][0-9]))[0-9A-Z]*[A-Z][ ]*[ A-RT-Z]$",
        REG_EXTENDED | REG_NOSUB);
   if (rc != REG_NOERROR)
   {
      traceit("The regular expression is NOT valid\n");
      return 1;
   }

   /* Open log file */
   // R3ABM Patch
   /*

   logfp = fopen(argv[2], "a");
   if (!logfp)
   {
      printf("Cant create log file %s, error=%d\n",
              argv[2],errno);
      return 1;
   }
   */

   tzset();

   /* line buffering only */
   // R3ABM Patch
   //setvbuf(logfp, (char *)NULL, _IOLBF, 0);

   act.sa_handler = sigCatch;
   sigemptyset(&act.sa_mask);
   act.sa_flags = SA_RESTART;
   if (sigaction(SIGTERM, &act, 0) != 0)
   {
      traceit("sigaction-TERM failed, error=%d\n", errno);
      return 1;
   }
   if (sigaction(SIGINT, &act, 0) != 0)
   {
      traceit("sigaction-INT failed, error=%d\n", errno);
      return 1;
   }

   do
   {
      /* process configuration file */
      rc = read_config(argv[1]);
      if (rc != 0)
      {
         traceit("Failed to process config file %s\n", argv[1]);
         break;
      }

    /* Open DB */
      rc = open_users(USERS);
      if (rc != 0)
      {
         traceit("Failed to open %s\n", USERS);
         break;
      }

      rc = open_blocks(BLOCKS);
      if (rc != 0)
      {
         traceit("Failed to open %s\n", BLOCKS);
         break;
      }

      /* get ready to accept incoming connections */
      rc = srv_open();
      if (rc != 0)
      {
         traceit("srv_open() failed\n");
         break;
      }

      /* get ready to accept shell commands from netcat */
      rc = cmd_open();
      if (rc != 0)
      {
         traceit("cmd_open() failed\n");
         break;
      }

      rc = ref_open();
      if (rc != 0)
      {
         traceit("ref_open() failed\n");
         break;
      }
  
      for (i = 0; i < 5; i++)
      {
         temp_x[i].s_addr = 0;
         memset(temp_x[i].hdr, 0, 56);

         temp_r[i].s_addr = 0;
         memset(temp_r[i].hdr, 0, 58);
      }

      traceit("dxrfd %s initialized...entering processing loop\n", VERSION);

      print_links_file();
      runit();
      traceit("Leaving processing loop...\n");

   } while (false);

   /* Close all handles */
   if (srv_sock != -1)
      close(srv_sock);

   if (cmd_sock != -1)
      close(cmd_sock);

   /* notify dvap, dvtool ... */
   if (ref_sock != -1)
   {
      refbuf[0] = 5;
      refbuf[1] = 0;
      refbuf[2] = 24;
      refbuf[3] = 0;
      refbuf[4] = 0;
      for (inbound_pos = inbound_list.begin(); inbound_pos != inbound_list.end(); inbound_pos++)
      {
         inbound_ptr = (inbound *)inbound_pos->second;
         sendto(ref_sock,(char *)refbuf,5,0,
                (struct sockaddr *)&(inbound_ptr->sin),
                sizeof(struct sockaddr_in));
      }
      inbound_list.clear();
      close(ref_sock);
   }

   /* Empty out the status file */
   statusfp = fopen(STATUS_FILE, "w");
   if (statusfp)
      fclose(statusfp);
   else
      traceit("Failed to empty out status file %s\n", STATUS_FILE);

   traceit("dxrfd exiting\n");
   // R3ABM Patch
   //fclose(logfp);
 
   return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4e8, %rsp            # imm = 0x4E8
cmpl $0x2, %edi
jne 0x2823
movq %rsi, %rbx
leaq 0xdc03(%rip), %rdi      # 0x10400
leaq 0x886c(%rip), %rsi      # 0xb070
pushq $0x9
popq %rdx
callq 0x2290
testl %eax, %eax
je 0x283d
leaq 0x88a4(%rip), %rdi      # 0xb0bb
xorl %eax, %eax
callq 0x274c
jmp 0x28b0
leaq 0x98f6(%rip), %rdi      # 0xc120
callq 0x23a0
leaq 0x9905(%rip), %rdi      # 0xc13b
callq 0x23a0
jmp 0x28b0
callq 0x2070
leaq 0xbd1(%rip), %rax       # 0x341a
leaq 0x50(%rsp), %r14
movq %rax, -0x8(%r14)
movq %r14, %rdi
callq 0x2300
movl $0x10000000, 0x80(%r14) # imm = 0x10000000
pushq $0xf
popq %rdi
leaq 0x48(%rsp), %rsi
xorl %edx, %edx
callq 0x2310
testl %eax, %eax
je 0x2888
callq 0x2050
movl (%rax), %esi
leaq 0x885a(%rip), %rdi      # 0xb0e0
jmp 0x28a9
pushq $0x2
popq %rdi
leaq 0x48(%rsp), %rsi
xorl %edx, %edx
callq 0x2310
testl %eax, %eax
je 0x28c7
callq 0x2050
movl (%rax), %esi
leaq 0x8858(%rip), %rdi      # 0xb101
xorl %eax, %eax
callq 0x274c
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x4e8, %rsp            # imm = 0x4E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %r14
leaq 0x8944(%rip), %rsi      # 0xb216
movq %r14, %rdi
callq 0x22b0
testq %rax, %rax
je 0x2e2e
movq %rax, %r15
leaq 0x8943(%rip), %rdi      # 0xb230
movq %r14, 0x20(%rsp)
movq %r14, %rsi
xorl %eax, %eax
callq 0x274c
leaq 0xe0(%rsp), %r12
pushq $0x23
popq %rbp
pushq $0x3d
popq %r13
movl $0x0, 0x8(%rsp)
movq %r12, %rdi
movl $0x3fc, %esi            # imm = 0x3FC
movq %r15, %rdx
callq 0x23d0
testq %rax, %rax
je 0x2dfc
movq %r12, %rdi
movl %ebp, %esi
callq 0x20f0
testq %rax, %rax
jne 0x2913
movq %r12, %rdi
pushq $0xd
popq %rsi
callq 0x20f0
testq %rax, %rax
je 0x294e
movb $0x0, (%rax)
movq %r12, %rdi
pushq $0xa
popq %rsi
callq 0x20f0
testq %rax, %rax
je 0x2961
movb $0x0, (%rax)
movq %r12, %rdi
movl %r13d, %esi
callq 0x20f0
testq %rax, %rax
je 0x2913
movq %rax, %r14
movb $0x0, (%rax)
movq %r12, %rdi
leaq 0x88c0(%rip), %rsi      # 0xb241
pushq $0x6
popq %r13
movq %r13, %rdx
callq 0x2270
testl %eax, %eax
je 0x2acd
movq %r12, %rdi
leaq 0x892c(%rip), %rsi      # 0xb2cb
movq %r13, %rdx
callq 0x2270
testl %eax, %eax
je 0x2b50
movq %r12, %rdi
leaq 0x8965(%rip), %rsi      # 0xb31e
pushq $0xa
popq %rdx
callq 0x2270
testl %eax, %eax
je 0x2c10
movq %r12, %rdi
leaq 0x897f(%rip), %rsi      # 0xb352
pushq $0xc
popq %r13
movq %r13, %rdx
callq 0x2270
testl %eax, %eax
je 0x2ca1
movq %r12, %rdi
leaq 0x897d(%rip), %rsi      # 0xb36e
pushq $0xd
popq %rdx
callq 0x2270
testl %eax, %eax
pushq $0xa
popq %rdx
je 0x2cfb
movq %r12, %rdi
leaq 0x897e(%rip), %rsi      # 0xb38c
callq 0x2270
testl %eax, %eax
je 0x2d15
movdqa 0xe0(%rsp), %xmm0
pcmpeqb 0x85e4(%rip), %xmm0     # 0xb010
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x2d2f
movq %r12, %rdi
leaq 0x8983(%rip), %rsi      # 0xb3c8
movq %r13, %rdx
callq 0x2270
testl %eax, %eax
je 0x2d5d
movq %r12, %rdi
leaq 0x894f(%rip), %rsi      # 0xb3ae
pushq $0x6
popq %rdx
callq 0x2270
testl %eax, %eax
je 0x2d92
movq %r12, %rdi
leaq 0x8975(%rip), %rsi      # 0xb3ee
pushq $0x7
popq %rdx
callq 0x2270
testl %eax, %eax
je 0x2dc7
movq %r12, %rdi
leaq 0x896d(%rip), %rsi      # 0xb400
movq %r13, %rdx
callq 0x2270
testl %eax, %eax
pushq $0x3d
popq %r13
jne 0x2913
movsbl 0x1(%r14), %esi
cmpl $0x59, %esi
sete 0x1107a(%rip)           # 0x13b30
leaq 0x894f(%rip), %rdi      # 0xb40c
xorl %eax, %eax
callq 0x274c
incl 0x8(%rsp)
jmp 0x2913
movabsq $0x2020202020202020, %rax # imm = 0x2020202020202020
movq %rax, 0x1101a(%rip)     # 0x13af8
movb $0x0, 0x1101b(%rip)     # 0x13b00
incq %r14
movq %r14, %rdi
pushq $0x20
popq %rsi
callq 0x20f0
testq %rax, %rax
je 0x2afb
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x2110
cmpq $0x6, %rax
pushq $0x3d
popq %r13
jne 0x2b8a
movzwl 0x4(%r14), %eax
movw %ax, 0x10fe3(%rip)      # 0x13afc
movl (%r14), %eax
movl %eax, 0x10fd6(%rip)     # 0x13af8
xorl %eax, %eax
leaq 0x10fcd(%rip), %r13     # 0x13af8
movzwl %ax, %r14d
movq %r13, %rdi
callq 0x2110
cmpq %r14, %rax
jbe 0x2ba3
movsbl (%r14,%r13), %edi
callq 0x2460
movb %al, (%r14,%r13)
leal 0x1(%r14), %eax
jmp 0x2b2b
movabsq $0x2020202020202020, %rax # imm = 0x2020202020202020
movq %rax, 0x10fa7(%rip)     # 0x13b08
movb $0x0, 0x10fa8(%rip)     # 0x13b10
cmpb $0x20, 0x1(%r14)
pushq $0x3d
popq %r13
jne 0x2c60
leaq 0x8753(%rip), %rdi      # 0xb2d1
xorl %eax, %eax
callq 0x274c
jmp 0x2913
leaq 0x86b6(%rip), %rdi      # 0xb247
movq %r14, %rsi
pushq $0x6
popq %rdx
xorl %eax, %eax
callq 0x274c
jmp 0x2913
movq %r13, %rdi
leaq 0x86cd(%rip), %rsi      # 0xb27a
pushq $0x3
popq %rdx
callq 0x2270
testl %eax, %eax
jne 0x2bf9
movsbl 0x10f3b(%rip), %eax     # 0x13afb
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x2bf9
movsbl 0x10f2d(%rip), %eax     # 0x13afc
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x2bf9
movsbl 0x10f1f(%rip), %eax     # 0x13afd
addl $-0x30, %eax
cmpl $0xa, %eax
jae 0x2bf9
leaq 0x86d4(%rip), %rdi      # 0xb2c1
leaq 0x10f04(%rip), %rsi     # 0x13af8
jmp 0x2cf2
leaq 0x867e(%rip), %rdi      # 0xb27e
xorl %eax, %eax
callq 0x274c
pushq $0x3d
popq %r13
jmp 0x2913
incq %r14
movq %r14, %rdi
pushq $0x20
popq %rsi
callq 0x20f0
testq %rax, %rax
leaq 0x8700(%rip), %rdi      # 0xb328
leaq 0x10ef1(%rip), %r13     # 0x13b20
je 0x2c34
movb $0x0, (%rax)
cmpb $0x0, (%r14)
je 0x2c8e
pxor %xmm0, %xmm0
movdqa %xmm0, 0x10eda(%rip)    # 0x13b20
movq %r13, %rdi
movq %r14, %rsi
pushq $0xf
popq %rdx
callq 0x2140
leaq 0x86e9(%rip), %rdi      # 0xb344
jmp 0x2cef
movq %r14, %rax
incq %rax
movb $0x0, 0x9(%r14)
movq %rax, %r14
movq %rax, %rdi
callq 0x2110
leaq -0x9(%rax), %rcx
cmpq $-0x7, %rcx
leaq 0x8673(%rip), %rdi      # 0xb2f8
leaq 0x10e7c(%rip), %r13     # 0x13b08
ja 0x2cbe
movq %r14, %rsi
xorl %eax, %eax
callq 0x274c
pushq $0x3d
popq %r13
jmp 0x2913
incq %r14
movq %r14, %rdi
callq 0x23b0
movl %eax, 0xd5b2(%rip)      # 0x10264
leaq 0x86a5(%rip), %rdi      # 0xb35e
jmp 0x2d47
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x21e0
xorl %r14d, %r14d
cmpq $0x8, %r14
je 0x2ce8
movsbl (%r14,%r13), %edi
callq 0x2460
movb %al, (%r14,%r13)
incq %r14
jmp 0x2ccf
leaq 0x8623(%rip), %rdi      # 0xb312
movq %r13, %rsi
xorl %eax, %eax
callq 0x274c
jmp 0x2d50
incq %r14
movq %r14, %rdi
callq 0x23b0
movl %eax, 0xd55c(%rip)      # 0x10268
leaq 0x8668(%rip), %rdi      # 0xb37b
jmp 0x2d47
incq %r14
movq %r14, %rdi
callq 0x23b0
movl %eax, 0xd546(%rip)      # 0x1026c
leaq 0x8669(%rip), %rdi      # 0xb396
jmp 0x2d47
incq %r14
movq %r14, %rdi
callq 0x23b0
movl %eax, 0xd530(%rip)      # 0x10270
leaq 0x866d(%rip), %rdi      # 0xb3b4
movl %eax, %esi
xorl %eax, %eax
callq 0x274c
incl 0x8(%rsp)
pushq $0x3d
popq %r13
jmp 0x2913
movl $0x1001, %edx           # imm = 0x1001
leaq 0xfd77(%rip), %r13      # 0x12ae0
movq %r13, %rdi
xorl %esi, %esi
callq 0x2160
incq %r14
movl $0x1000, %edx           # imm = 0x1000
movq %r13, %rdi
movq %r14, %rsi
callq 0x2140
leaq 0x8647(%rip), %rdi      # 0xb3d4
jmp 0x2cef
movl $0x1001, %edx           # imm = 0x1001
leaq 0xd6a2(%rip), %r13      # 0x10440
movq %r13, %rdi
xorl %esi, %esi
callq 0x2160
incq %r14
movl $0x1000, %edx           # imm = 0x1000
movq %r13, %rdi
movq %r14, %rsi
callq 0x2140
leaq 0x8622(%rip), %rdi      # 0xb3e4
jmp 0x2cef
movl $0x1001, %edx           # imm = 0x1001
leaq 0xe67d(%rip), %r13      # 0x11450
movq %r13, %rdi
xorl %esi, %esi
callq 0x2160
incq %r14
movl $0x1000, %edx           # imm = 0x1000
movq %r13, %rdi
movq %r14, %rsi
callq 0x2140
leaq 0x85fe(%rip), %rdi      # 0xb3f5
jmp 0x2cef
movq %r15, %rdi
callq 0x2230
cmpw $0xb, 0x8(%rsp)
jne 0x2e3a
movl 0xd456(%rip), %eax      # 0x10268
cmpl 0xd44c(%rip), %eax      # 0x10264
jne 0x2f51
leaq 0x8616(%rip), %rdi      # 0xb43b
xorl %eax, %eax
callq 0x274c
jmp 0x2e4d
leaq 0x83e3(%rip), %rdi      # 0xb218
movq %r14, %rsi
jmp 0x2e46
leaq 0x85db(%rip), %rdi      # 0xb41c
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x274c
movq 0x8(%rbx), %rsi
leaq 0x82c9(%rip), %rdi      # 0xb121
xorl %eax, %eax
callq 0x274c
pushq $0x1
popq %rbx
movl 0xd3f0(%rip), %edi      # 0x10258
cmpl $-0x1, %edi
je 0x2e72
callq 0x2480
movl 0xd3e4(%rip), %edi      # 0x1025c
cmpl $-0x1, %edi
je 0x2e82
callq 0x2480
cmpl $-0x1, 0xd3d7(%rip)     # 0x10260
je 0x2f00
movl $0x180005, 0xf84b(%rip) # imm = 0x180005
movb $0x0, 0xf848(%rip)      # 0x126e4
movq 0xd435(%rip), %r12      # 0x102d8
leaq 0xd41e(%rip), %r13      # 0x102c8
leaq 0xf82f(%rip), %r14      # 0x126e0
pushq $0x5
popq %r15
pushq $0x10
popq %rbp
cmpq %r13, %r12
je 0x2ee9
movq 0x40(%r12), %r8
movl 0xd398(%rip), %edi      # 0x10260
addq $0x18, %r8
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r9d
callq 0x2060
movq %r12, %rdi
callq 0x2190
movq %rax, %r12
jmp 0x2eb8
leaq 0xd3d0(%rip), %rdi      # 0x102c0
callq 0xa3d0
movl 0xd365(%rip), %edi      # 0x10260
callq 0x2480
leaq 0xfbd9(%rip), %rdi      # 0x12ae0
leaq 0x82d3(%rip), %rsi      # 0xb1e1
callq 0x22b0
movq %rax, 0x10bce(%rip)     # 0x13ae8
testq %rax, %rax
je 0x2f29
movq %rax, %rdi
callq 0x2230
jmp 0x2f3e
leaq 0x82b3(%rip), %rdi      # 0xb1e3
leaq 0xfba9(%rip), %rsi      # 0x12ae0
xorl %eax, %eax
callq 0x274c
leaq 0x82c2(%rip), %rdi      # 0xb207
xorl %eax, %eax
callq 0x274c
jmp 0x28b3
callq 0x342c
testl %eax, %eax
je 0x2f6d
leaq 0x81e2(%rip), %rdi      # 0xb143
leaq 0xd4d8(%rip), %rsi      # 0x10440
jmp 0x2e58
leaq 0xe4dc(%rip), %rdi      # 0x11450
leaq 0x829b(%rip), %rsi      # 0xb216
callq 0x22b0
testq %rax, %rax
je 0x319e
movq %rax, %rbx
leaq 0xd3bd(%rip), %rdi      # 0x10350
callq 0x96ca
leaq 0x84d7(%rip), %rdi      # 0xb476
leaq 0xe4aa(%rip), %rsi      # 0x11450
xorl %eax, %eax
callq 0x274c
leaq 0xe0(%rsp), %r15
pushq $0xd
popq %rbp
pushq $0xa
popq %r12
leaq 0x84b0(%rip), %r13      # 0xb473
movq %r15, %rdi
movl $0x1ff, %esi            # imm = 0x1FF
movq %rbx, %rdx
callq 0x23d0
testq %rax, %rax
je 0x30a2
movb $0x0, 0x2df(%rsp)
movq %r15, %rdi
movl %ebp, %esi
callq 0x20f0
testq %rax, %rax
je 0x2ff6
movb $0x0, (%rax)
movq %r15, %rdi
movl %r12d, %esi
callq 0x20f0
testq %rax, %rax
je 0x3009
movb $0x0, (%rax)
movq %r15, %rdi
movq %r13, %rsi
callq 0x23c0
testq %rax, %rax
je 0x2fc3
movq %rax, %r14
movq %rax, %rdi
callq 0x2110
cmpq $0x8, %rax
ja 0x2fc3
movabsq $0x2020202020202020, %rax # imm = 0x2020202020202020
movq %rax, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %r14, %rdi
callq 0x2110
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x21e0
xorl %eax, %eax
leaq 0x28(%rsp), %r14
cmpq $0x8, %rax
je 0x3074
cmpb $0x5f, 0x10(%rsp,%rax)
jne 0x306f
movb $0x20, 0x10(%rsp,%rax)
incq %rax
jmp 0x305d
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %rdx
callq 0x9204
leaq 0xd2c3(%rip), %rdi      # 0x10350
movq %r14, %rsi
callq 0x96f8
movq %r14, %rdi
callq 0x2130
jmp 0x2fc3
movq %rbx, %rdi
callq 0x2230
movq 0xd2c7(%rip), %rsi      # 0x10378
leaq 0x841f(%rip), %rdi      # 0xb4d7
xorl %eax, %eax
callq 0x274c
movq 0xd2a2(%rip), %r14      # 0x10368
leaq 0xd28b(%rip), %r15      # 0x10358
leaq 0x8437(%rip), %rbx      # 0xb50b
cmpq %r15, %r14
je 0x30f4
movq 0x20(%r14), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x274c
movq %r14, %rdi
callq 0x22a0
movq %rax, %r14
jmp 0x30d4
leaq 0x841a(%rip), %rdi      # 0xb515
xorl %eax, %eax
callq 0x274c
pushq $0x2
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x20b0
movl %eax, 0xd144(%rip)      # 0x10258
cmpl $-0x1, %eax
je 0x31c5
leaq 0xe0(%rsp), %rbx
andq $0x0, 0x8(%rbx)
movw $0x2, (%rbx)
movzwl 0xd12e(%rip), %eax      # 0x10264
rolw $0x8, %ax
movw %ax, 0x2(%rbx)
leaq 0x109db(%rip), %rdi     # 0x13b20
callq 0x2250
movl %eax, 0x4(%rbx)
movl 0xd105(%rip), %edi      # 0x10258
pushq $0x10
popq %rdx
movq %rbx, %rsi
callq 0x2080
testl %eax, %eax
je 0x31ed
movl 0xd0f8(%rip), %ebx      # 0x10264
callq 0x2050
movl (%rax), %ecx
leaq 0x83e3(%rip), %rdi      # 0xb55d
leaq 0x1099f(%rip), %rsi     # 0x13b20
movl %ebx, %edx
xorl %eax, %eax
callq 0x274c
movl 0xd0c8(%rip), %edi      # 0x10258
callq 0x2480
orl $-0x1, 0xd0bc(%rip)     # 0x10258
jmp 0x31da
leaq 0x8073(%rip), %rdi      # 0xb218
leaq 0xe2a4(%rip), %rbx      # 0x11450
movq %rbx, %rsi
xorl %eax, %eax
callq 0x274c
leaq 0x7f86(%rip), %rdi      # 0xb143
movq %rbx, %rsi
jmp 0x2e58
callq 0x2050
movl (%rax), %esi
leaq 0x8361(%rip), %rdi      # 0xb534
xorl %eax, %eax
callq 0x274c
leaq 0x7f75(%rip), %rdi      # 0xb156
xorl %eax, %eax
callq 0x274c
jmp 0x2e5f
movl 0xd065(%rip), %edi      # 0x10258
pushq $0x4
popq %rsi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x2170
pushq $0x2
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x20b0
movl %eax, 0xd048(%rip)      # 0x1025c
cmpl $-0x1, %eax
je 0x3296
leaq 0xe0(%rsp), %rbx
andq $0x0, 0x8(%rbx)
movw $0x2, (%rbx)
movzwl 0xd036(%rip), %eax      # 0x10268
rolw $0x8, %ax
movw %ax, 0x2(%rbx)
leaq 0x108df(%rip), %rdi     # 0x13b20
callq 0x2250
movl %eax, 0x4(%rbx)
movl 0xd00d(%rip), %edi      # 0x1025c
pushq $0x10
popq %rdx
movq %rbx, %rsi
callq 0x2080
testl %eax, %eax
je 0x32b7
movl 0xd004(%rip), %ebx      # 0x10268
callq 0x2050
movl (%rax), %ecx
leaq 0x834b(%rip), %rdi      # 0xb5bd
leaq 0x108a7(%rip), %rsi     # 0x13b20
movl %ebx, %edx
xorl %eax, %eax
callq 0x274c
movl 0xcfd4(%rip), %edi      # 0x1025c
callq 0x2480
orl $-0x1, 0xcfc8(%rip)     # 0x1025c
jmp 0x32ab
callq 0x2050
movl (%rax), %esi
leaq 0x82f3(%rip), %rdi      # 0xb597
xorl %eax, %eax
callq 0x274c
leaq 0x7eb7(%rip), %rdi      # 0xb169
jmp 0x31e1
movl 0xcf9f(%rip), %edi      # 0x1025c
pushq $0x4
popq %rsi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x2170
pushq $0x2
popq %rdi
movl %edi, %esi
xorl %edx, %edx
callq 0x20b0
movl %eax, 0xcf82(%rip)      # 0x10260
cmpl $-0x1, %eax
je 0x334a
leaq 0xe0(%rsp), %rbx
andq $0x0, 0x8(%rbx)
movl $0x214e0002, (%rbx)     # imm = 0x214E0002
leaq 0x10823(%rip), %rdi     # 0x13b20
callq 0x2250
movl %eax, 0x4(%rbx)
movl 0xcf55(%rip), %edi      # 0x10260
pushq $0x10
popq %rdx
movq %rbx, %rsi
callq 0x2080
testl %eax, %eax
je 0x336b
callq 0x2050
movl (%rax), %edx
leaq 0x82f2(%rip), %rdi      # 0xb61a
leaq 0x107f1(%rip), %rsi     # 0x13b20
xorl %eax, %eax
callq 0x274c
movl 0xcf24(%rip), %edi      # 0x10260
callq 0x2480
orl $-0x1, 0xcf18(%rip)     # 0x10260
jmp 0x335f
callq 0x2050
movl (%rax), %esi
leaq 0x829c(%rip), %rdi      # 0xb5f4
xorl %eax, %eax
callq 0x274c
leaq 0x7e16(%rip), %rdi      # 0xb17c
jmp 0x31e1
movl 0xceef(%rip), %edi      # 0x10260
xorl %ebx, %ebx
pushq $0x4
popq %rsi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x2170
leaq 0xf0d7(%rip), %rax      # 0x12460
leaq 0xf210(%rip), %rcx      # 0x125a0
pxor %xmm0, %xmm0
cmpq $0x140, %rbx            # imm = 0x140
je 0x33d1
movdqu %xmm0, 0x2c(%rbx,%rax)
movdqa %xmm0, 0x20(%rbx,%rax)
movdqa %xmm0, 0x10(%rbx,%rax)
movdqa %xmm0, (%rbx,%rax)
movdqa %xmm0, (%rbx,%rcx)
movdqa %xmm0, 0x10(%rbx,%rcx)
movdqa %xmm0, 0x20(%rbx,%rcx)
movdqu %xmm0, 0x2e(%rbx,%rcx)
addq $0x40, %rbx
jmp 0x3394
leaq 0x7db7(%rip), %rdi      # 0xb18f
leaq 0x7de1(%rip), %rsi      # 0xb1c0
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x274c
callq 0x3633
callq 0x38a6
leaq 0x7dcc(%rip), %rdi      # 0xb1c5
xorl %eax, %eax
callq 0x274c
jmp 0x2e62
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2130
movq %rbx, %rdi
callq 0x2420