// File: /workspace/github_cpp_makefile_star2_O1/jkingan[P]ladyheather/heathmsc.cpp
// Function: draw_watch_face()
void draw_watch_face()
{
int x, y;
int hh;
int lasth;
char **wf;
float hr;
u08 bottom_blocked, top_blocked;
int i;
int old_time_color;

   old_time_color = time_color;
   if(eclipsed) time_color = YELLOW;

   wf = face[watch_face%NUM_FACES];
   graphics_coords = 1;

   // find the best place to put the watch brand name
   bottom_blocked = top_blocked = 0;
   hh = (pri_hours / WATCH_MULT) % 12;
   hh *= 100;
   hh += pri_minutes;
   if((pri_minutes >= 20) && (pri_minutes <= 40)) bottom_blocked |= 1;
   if((hh >= 400) && (hh <= 800))                 bottom_blocked |= 2;
   if((pri_minutes >= 10) && (pri_minutes <= 50)) top_blocked |= 0;
   else                                           top_blocked |= 5;
   if((hh >= 200) && (hh <= 1000))                top_blocked |= 0;
   else                                           top_blocked |= 6;

   moon_x = 0;
   if     (top_blocked == 0)    { y = aclock_y-ACLOCK_SIZE/4; moon_y = (+ACLOCK_SIZE/4); }
   else if(bottom_blocked == 0) { y = aclock_y+ACLOCK_SIZE/4; moon_y = (-ACLOCK_SIZE/4); }
   else if(top_blocked & 1)     { y = aclock_y-ACLOCK_SIZE/4; moon_y = (+ACLOCK_SIZE/4); }
   else                         { y = aclock_y+ACLOCK_SIZE/4; moon_y = (-ACLOCK_SIZE/4); }

// sprintf(plot_title, "lwf:%d  wn[%02X]:%s  hlt:%d  r:%d  xy:%d,%d  gc:%d", label_watch_face, watch_name[0], watch_name, have_local_time, ACLOCK_R, aclock_x,y, graphics_coords);
   if(label_watch_face) {
      out[0] = 0;
      if(eclipsed) strcpy(out, "ECLIPSE!");
      else if(watch_name[0]) strcpy(out, watch_name);
      else if(!have_local_time) ;
      else if(ACLOCK_R < 70) ;
      else strcpy(out, days[day_of_week(pri_day, pri_month, pri_year)]);
      vidstr(y+TEXT_HEIGHT*0,aclock_x-strlen(out)*TEXT_WIDTH/2, time_color, out);

      out[0] = 0;
      if(watch_name2[0]) strcpy(out, watch_name2);
      else if(ACLOCK_R < 120) ;
      else strcpy(out, fmt_date(1));
      i = strlen(out);
      while(i--) {
         if(out[i] == ' ') out[i] = 0;
         else break;
      }
      vidstr(y+TEXT_HEIGHT*1,aclock_x-strlen(out)*TEXT_WIDTH/2, time_color, out);

      #ifdef GREET_STUFF
         if(moons[pri_day] && (watch_name[0] != ' ')) {
            if(y < aclock_y) vidstr(y+TEXT_HEIGHT*2,aclock_x-strlen(moons[pri_day])*TEXT_WIDTH/2, time_color, moons[pri_day]);
            else             vidstr(y-TEXT_HEIGHT*1,aclock_x-strlen(moons[pri_day])*TEXT_WIDTH/2, time_color, moons[pri_day]);
         }
      #endif
//sprintf(debug_text, "asize:%d", ACLOCK_R);
   }


   for(lasth=1; lasth<=WATCH_HOURS; lasth++) {  // draw the watch numerals
      hr = (float) lasth;
      hr *= (60.0F/(float)WATCH_HOURS);
      if(lasth == 24) x = 0;
      else if(lasth == (6*WATCH_MULT)) x = 0;
      else x = (int) (ACLOCK_R * cos(hand_angle(hr))); 
      if(x > 0) x -= strlen(wf[lasth])*TEXT_WIDTH;
      else if(x == 0) x -= (strlen(wf[lasth])*TEXT_WIDTH/2-(TEXT_WIDTH/2));
      x += aclock_x;
      x -= TEXT_WIDTH/2;

      y = (int) (ACLOCK_R * sin(hand_angle(hr))); 
      if(y > 0) y -= TEXT_HEIGHT;
      else if(y < 0) y += TEXT_HEIGHT;
      y += aclock_y;
      y -= TEXT_HEIGHT/2;


      // tweak text positions for more natural goodness
      hh = lasth;
      if((hh >= (2*WATCH_MULT)) && (hh <= (4*WATCH_MULT))) {
         x -= TEXT_WIDTH/2;
         if(hh == (3*WATCH_MULT)) x -= TEXT_WIDTH/2;
      }
      else if((hh >= (8*WATCH_MULT)) && (hh <= (10*WATCH_MULT))) {
         x += TEXT_WIDTH;  // *3/4;
         if(hh == (9*WATCH_MULT)) x += TEXT_WIDTH/2;
      }

      if(WATCH_HOURS == 24) {
         if     (hh == 1)  {                     x += TEXT_WIDTH/2;   }
         else if(hh == 7)  { y += TEXT_HEIGHT;                        }
         else if(hh == 3)  { y += TEXT_HEIGHT/2; x += TEXT_WIDTH/2;   }
         else if(hh == 9)  { y += TEXT_HEIGHT/2; x -= TEXT_WIDTH/2;   }
         else if(hh == 19) { y -= TEXT_HEIGHT;   x += TEXT_WIDTH/2;   }
         else if(hh == 21) { y -= TEXT_HEIGHT/2; x += TEXT_WIDTH;     }
         else if(hh == 13) { 
            if((watch_face%NUM_FACES) == 0) {  // special tweak for roman numerals
               y -= TEXT_HEIGHT/4; x -= TEXT_WIDTH*3/2;
            }
            else {
               x -= TEXT_WIDTH*3/4;
            }
         }
      }

      if(SCREEN_WIDTH <= NARROW_SCREEN) {  // tweaks for small screens
         if(hh == (1*WATCH_MULT)) {           // 1:00
            x += TEXT_WIDTH;
            if(PLOT_HEIGHT < 160) y += TEXT_HEIGHT/4;
         }
         else if(hh == (11*WATCH_MULT)) {     // 11:00
            if(PLOT_HEIGHT < 160) y += TEXT_HEIGHT/4;
         }
         else if(hh == (5*WATCH_MULT)) {      // 5:00
            x += TEXT_WIDTH;
            if(PLOT_HEIGHT < 160) y -= TEXT_HEIGHT/4;
         }
         else if(hh == (7*WATCH_MULT)) {      // 7:00
            if(PLOT_HEIGHT < 160) {
               x += TEXT_WIDTH/2;
               y -= TEXT_HEIGHT/4;
            }
         }
         else if(hh == (2*WATCH_MULT)) {
            y -= TEXT_HEIGHT/2;
         }
         else if(hh == (10*WATCH_MULT)) {
            y -= TEXT_HEIGHT/2;
         }

         if(WATCH_HOURS == 24) {
            if     (hh == 1)  { x += TEXT_WIDTH;                       }
            else if(hh == 3)  { x += TEXT_WIDTH/2; y -= TEXT_HEIGHT/2; }
            else if(hh == 4)  { x += TEXT_WIDTH/2;                     }
            else if(hh == 5)  { x += TEXT_WIDTH/2; y -= TEXT_HEIGHT/2; }
            else if(hh == 6)  { x += TEXT_WIDTH/2;                     }
            else if(hh == 8)  { x += TEXT_WIDTH/2; y += TEXT_HEIGHT/2; }
            else if(hh == 9)  { x += TEXT_WIDTH/2;                     }
            else if(hh == 11) { x += TEXT_WIDTH/2;                     }
//          else if(hh == 13) { x -= TEXT_WIDTH/1; y -= TEXT_HEIGHT/2; }
            else if(hh == 14) { x += TEXT_WIDTH/4;                     }
            else if(hh == 16) { x -= TEXT_WIDTH/4; y += TEXT_HEIGHT/4; }
            else if(hh == 17) {                    y += TEXT_HEIGHT/4; }
            else if(hh == 22) { x += TEXT_WIDTH*0; y -= TEXT_HEIGHT/4; }
            else if(hh == 23) { x += TEXT_WIDTH/2; y -= TEXT_HEIGHT/4; }
         }
      }

      vidstr(y,x, time_color, wf[lasth]);
   }

   time_color = old_time_color;
   graphics_coords = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x132346(%rip), %rdx    # 0x2235d4
movl (%rdx), %eax
movl %eax, -0x44(%rbp)
leaq 0x21c576(%rip), %rax    # 0x30d810
movl (%rax), %ecx
testl %ecx, %ecx
je 0xf12a6
movl $0xe, (%rdx)
leaq 0x12a165(%rip), %rax    # 0x21b412
movzbl (%rax), %eax
imull $0xab, %eax, %edx
shrl $0x9, %edx
leal (%rdx,%rdx,2), %esi
subb %sil, %al
movzbl %al, %eax
leaq 0x7f557(%rip), %rsi     # 0x170820
movq (%rsi,%rax,8), %rax
movq %rax, -0x38(%rbp)
leaq 0x127590(%rip), %rax    # 0x218868
movb $0x1, (%rax)
leaq 0x21c226(%rip), %rax    # 0x30d508
movl (%rax), %eax
incb %dl
movzbl %dl, %esi
cltd
idivl %esi
cltq
imulq $0x2aaaaaab, %rax, %rdx # imm = 0x2AAAAAAB
movq %rdx, %rsi
shrq $0x3f, %rsi
shrq $0x21, %rdx
addl %esi, %edx
shll $0x2, %edx
leal (%rdx,%rdx,2), %edx
subl %edx, %eax
imull $0x64, %eax, %edi
leaq 0x21c1f0(%rip), %rax    # 0x30d504
movl (%rax), %r9d
leal -0xa(%r9), %esi
movl $0x0, 0x288a2b(%rip)    # 0x379d50
cmpl $0x28, %esi
ja 0xf135b
leal (%rdi,%r9), %eax
addl $0xffffff38, %eax       # imm = 0xFFFFFF38
cmpl $0x320, %eax            # imm = 0x320
ja 0xf135b
leaq 0x24a037(%rip), %rax    # 0x33b378
movl (%rax), %ebx
leaq 0x24a026(%rip), %rax    # 0x33b370
movl (%rax), %edx
leal 0x3(%rdx), %eax
testl %edx, %edx
cmovnsl %edx, %eax
sarl $0x2, %eax
subl %eax, %ebx
jmp 0xf13ba
leal -0x29(%r9), %r11d
leaq 0x24a00a(%rip), %rax    # 0x33b370
movl (%rax), %r8d
leal 0x3(%r8), %edx
testl %r8d, %r8d
movl %r8d, %eax
cmovsl %edx, %eax
sarl $0x2, %eax
leaq 0x249ff8(%rip), %r10    # 0x33b378
movl (%r10), %r10d
cmpl $-0x16, %r11d
ja 0xf139a
addl %r9d, %edi
addl $0xfffffcdf, %edi       # imm = 0xFFFFFCDF
cmpl $0xfffffe6e, %edi       # imm = 0xFFFFFE6E
jbe 0xf139f
cmpl $0x29, %esi
jae 0xf13b4
movl %eax, %ebx
addl %r10d, %ebx
testl %r8d, %r8d
cmovnsl %r8d, %edx
sarl $0x2, %edx
negl %edx
movl %edx, %eax
jmp 0xf13ba
subl %eax, %r10d
movl %r10d, %ebx
movl %eax, 0x288994(%rip)    # 0x379d54
leaq 0x24d368(%rip), %rax    # 0x33e72f
cmpb $0x0, (%rax)
je 0xf1592
leaq 0x24ae49(%rip), %r14    # 0x33c220
movb $0x0, (%r14)
testl %ecx, %ecx
je 0xf13f3
movabsq $0x21455350494c4345, %rax # imm = 0x21455350494C4345
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
jmp 0xf1416
leaq 0x24d2f6(%rip), %rax    # 0x33e6f0
cmpb $0x0, (%rax)
je 0xf1aa0
leaq 0x24ae16(%rip), %rdi    # 0x33c220
leaq 0x24d2df(%rip), %rsi    # 0x33e6f0
callq 0x9340
leaq 0x249f57(%rip), %r13    # 0x33b374
movl (%r13), %r15d
movq %r14, %rdi
callq 0x9120
leaq 0x1273e0(%rip), %rcx    # 0x218810
movslq (%rcx), %rcx
imulq %rax, %rcx
shrq %rcx
subl %ecx, %r15d
leaq 0x132190(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movl %ebx, %edi
movl %r15d, %esi
movq %r14, %rcx
callq 0xe7d0
movb $0x0, (%r14)
leaq 0x24d2b1(%rip), %rsi    # 0x33e710
cmpb $0x0, (%rsi)
jne 0xf1495
leaq 0x249f05(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x127393(%rip), %rax    # 0x218810
subl (%rax), %ecx
cmpl $0x78, %ecx
jl 0xf14a1
movl $0x1, %edi
callq 0xef1b0
leaq 0x28a48b(%rip), %rsi    # 0x37b920
leaq 0x24ad84(%rip), %rdi    # 0x33c220
callq 0x9340
leaq 0x24ad78(%rip), %r14    # 0x33c220
movq %r14, %rdi
callq 0x9120
testl %eax, %eax
je 0xf14c9
cltq
cmpb $0x20, -0x1(%r14,%rax)
jne 0xf14c9
movb $0x0, -0x1(%r14,%rax)
decq %rax
jne 0xf14b6
leaq 0x127344(%rip), %r12    # 0x218814
movl (%r12), %r14d
addl %ebx, %r14d
movl (%r13), %r15d
leaq 0x24ad3e(%rip), %r13    # 0x33c220
movq %r13, %rdi
callq 0x9120
leaq 0x12731f(%rip), %rcx    # 0x218810
movslq (%rcx), %rcx
imulq %rax, %rcx
shrq %rcx
subl %ecx, %r15d
leaq 0x1320cf(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movl %r14d, %edi
movl %r15d, %esi
movq %r13, %rcx
callq 0xe7d0
leaq 0x21bfef(%rip), %rax    # 0x30d50c
movslq (%rax), %rax
leaq 0x7fa99(%rip), %rcx     # 0x170fc0
movq (%rcx,%rax,8), %r14
testq %r14, %r14
je 0xf1592
leaq 0x24d1b9(%rip), %rax    # 0x33e6f0
cmpb $0x20, (%rax)
je 0xf1592
leaq 0x249e35(%rip), %rax    # 0x33b378
movl (%r12), %r15d
leal (%r15,%r15), %ecx
negl %r15d
cmpl (%rax), %ebx
cmovll %ecx, %r15d
addl %ebx, %r15d
leaq 0x249e16(%rip), %rax    # 0x33b374
movl (%rax), %ebx
movq %r14, %rdi
callq 0x9120
leaq 0x1272a1(%rip), %rcx    # 0x218810
movslq (%rcx), %rcx
imulq %rax, %rcx
shrq %rcx
subl %ecx, %ebx
leaq 0x132052(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movl %r15d, %edi
movl %ebx, %esi
movq %r14, %rcx
callq 0xe7d0
leaq 0x129e79(%rip), %rax    # 0x21b412
movzbl (%rax), %eax
imull $0xab, %eax, %eax
shrl $0x9, %eax
incb %al
movzbl %al, %eax
leal (,%rax,4), %ecx
leal (%rcx,%rcx,2), %ecx
xorl %r14d, %r14d
leaq 0x127252(%rip), %r15    # 0x218810
movq %r14, %r13
incq %r14
cvtsi2ss %r14d, %xmm0
cvtsi2ss %ecx, %xmm1
movss 0x1ba13(%rip), %xmm2    # 0x10cfe8
divss %xmm1, %xmm2
mulss %xmm0, %xmm2
movss %xmm2, -0x2c(%rbp)
movl $0x0, %ebx
cmpq $0x17, %r13
je 0xf164e
addl %eax, %eax
leal (%rax,%rax,2), %eax
cmpq %rax, %r14
je 0xf164e
leaq 0x249d72(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
subl (%r15), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
cvtss2sd -0x2c(%rbp), %xmm0
mulsd 0x2d0c8(%rip), %xmm0    # 0x11e6f0
addsd 0x3b030(%rip), %xmm0    # 0x12c660
mulsd 0x1a1e0(%rip), %xmm0    # 0x10b818
divsd 0x1a1e0(%rip), %xmm0    # 0x10b820
callq 0x9710
mulsd -0x40(%rbp), %xmm0
cvttsd2si %xmm0, %ebx
testl %ebx, %ebx
jle 0xf1668
movq -0x38(%rbp), %rax
movq 0x8(%rax,%r13,8), %rdi
callq 0x9120
imull (%r15), %eax
subl %eax, %ebx
jmp 0xf166e
je 0xf17d4
leaq 0x249cff(%rip), %rax    # 0x33b374
addl (%rax), %ebx
movl (%r15), %r12d
leaq 0x249cef(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
subl %r12d, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
cvtss2sd -0x2c(%rbp), %xmm0
mulsd 0x2d045(%rip), %xmm0    # 0x11e6f0
addsd 0x3afad(%rip), %xmm0    # 0x12c660
mulsd 0x1a15d(%rip), %xmm0    # 0x10b818
divsd 0x1a15d(%rip), %xmm0    # 0x10b820
callq 0x9080
mulsd -0x40(%rbp), %xmm0
cvttsd2si %xmm0, %eax
testl %eax, %eax
jle 0xf16e2
leaq 0x127138(%rip), %rcx    # 0x218814
subl (%rcx), %eax
movl %eax, %edi
jmp 0xf16f3
xorl %edi, %edi
testl %eax, %eax
leaq 0x127127(%rip), %rcx    # 0x218814
js 0xf17fa
movl %r12d, %eax
shrl $0x1f, %eax
addl %r12d, %eax
sarl %eax
subl %eax, %ebx
movl (%rcx), %eax
leaq 0x129d09(%rip), %rcx    # 0x21b412
movzbl (%rcx), %ecx
imull $0xab, %ecx, %edx
shrl $0x9, %edx
incb %dl
movzbl %dl, %r9d
leaq 0x249c56(%rip), %rdx    # 0x33b378
addl (%rdx), %edi
leal (%r9,%r9), %r8d
cmpq %r8, %r14
setb %dl
leal (,%r9,4), %esi
cmpq %rsi, %r14
seta %sil
orb %dl, %sil
je 0xf1773
leal (,%r9,8), %edx
cmpq %rdx, %r14
jb 0xf1792
leal (%r8,%r8,4), %edx
cmpq %rdx, %r14
ja 0xf1792
movl (%r15), %edx
addl %edx, %ebx
leal (%r9,%r9,8), %esi
cmpq %rsi, %r14
jne 0xf1792
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
addl %esi, %ebx
jmp 0xf1792
movl (%r15), %edx
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
leal (%r9,%r9,2), %edx
cmpq %rdx, %r14
movl $0x0, %edx
cmovel %esi, %edx
addl %esi, %edx
subl %edx, %ebx
movl %eax, %esi
shrl $0x1f, %esi
addl %eax, %esi
sarl %esi
movl %esi, %edx
negl %edx
subl %esi, %edi
leal -0x3(%rcx), %r10d
cmpl $0x2, %r10d
ja 0xf1881
movl %r13d, %r10d
rorl %r10d
cmpl $0xa, %r10d
ja 0xf1881
leaq 0x3998a(%rip), %r11     # 0x12b150
movslq (%r11,%r10,4), %r10
addq %r11, %r10
jmpq *%r10
addl %esi, %edi
jmp 0xf1803
movq -0x38(%rbp), %rax
movq 0x8(%rax,%r13,8), %rdi
callq 0x9120
movslq (%r15), %rcx
imulq %rcx, %rax
shrq %rax
movl %ecx, %ebx
shrl $0x1f, %ebx
addl %ecx, %ebx
sarl %ebx
jmp 0xf1664
addl (%rcx), %eax
jmp 0xf16de
subl %eax, %edi
movl (%r15), %r10d
movl %r10d, %r11d
shrl $0x1f, %r11d
addl %r10d, %r11d
sarl %r11d
addl %r11d, %ebx
jmp 0xf1881
addl %edx, %edi
addl (%r15), %ebx
jmp 0xf1881
addl %eax, %edi
jmp 0xf1881
addl %esi, %edi
movl (%r15), %r10d
jmp 0xf1871
imull $0xaaaaaaab, %ecx, %r10d # imm = 0xAAAAAAAB
cmpl $0x55555555, %r10d      # imm = 0x55555555
jbe 0xf1859
movl (%r15), %r10d
leal (%r10,%r10,2), %r11d
leal (%r10,%r10,2), %r10d
addl $0x3, %r10d
testl %r11d, %r11d
cmovnsl %r11d, %r10d
sarl $0x2, %r10d
subl %r10d, %ebx
jmp 0xf1881
leal 0x3(%rax), %r10d
testl %eax, %eax
cmovnsl %eax, %r10d
sarl $0x2, %r10d
subl %r10d, %edi
movl (%r15), %r10d
leal (%r10,%r10,2), %r10d
movl %r10d, %r11d
shrl $0x1f, %r11d
addl %r10d, %r11d
sarl %r11d
subl %r11d, %ebx
leaq 0x131cbc(%rip), %r10    # 0x223544
imull $0x31a, (%r10), %r10d   # imm = 0x31A
movslq %r10d, %r10
imulq $0x51eb851f, %r10, %r10 # imm = 0x51EB851F
movq %r10, %r11
shrq $0x3f, %r11
sarq $0x25, %r10
addl %r11d, %r10d
leaq 0x126f52(%rip), %r11    # 0x218800
cmpl %r10d, (%r11)
jg 0xf1a0b
movl %r9d, %r10d
cmpq %r10, %r14
jne 0xf18c4
addl (%r15), %ebx
jmp 0xf18d1
leal (%r9,%r9,4), %r10d
leal (%r9,%r10,2), %r10d
cmpq %r10, %r14
jne 0xf192e
leaq 0x126fb0(%rip), %r8     # 0x218888
cmpl $0x9f, (%r8)
jg 0xf18f2
leal 0x3(%rax), %r8d
testl %eax, %eax
cmovnsl %eax, %r8d
sarl $0x2, %r8d
addl %r8d, %edi
addb $-0x3, %cl
cmpb $0x2, %cl
ja 0xf1a0b
cmpl $0x16, %r13d
ja 0xf1a0b
movl %r13d, %ecx
leaq 0x3986a(%rip), %r8      # 0x12b17c
movslq (%r8,%rcx,4), %rcx
addq %r8, %rcx
jmpq *%rcx
movl (%r15), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %ebx
jmp 0xf1a0b
leal (%r9,%r9,4), %r10d
cmpq %r10, %r14
jne 0xf194c
addl (%r15), %ebx
leaq 0x126f47(%rip), %r8     # 0x218888
cmpl $0x9f, (%r8)
jg 0xf18f2
jmp 0xf197f
leal (,%r9,8), %r10d
subl %r9d, %r10d
cmpq %r10, %r14
jne 0xf19a7
leaq 0x126f25(%rip), %r8     # 0x218888
cmpl $0x9f, (%r8)
jg 0xf18f2
movl (%r15), %r8d
movl %r8d, %r9d
shrl $0x1f, %r9d
addl %r8d, %r9d
sarl %r9d
addl %r9d, %ebx
leal 0x3(%rax), %r8d
testl %eax, %eax
cmovnsl %eax, %r8d
sarl $0x2, %r8d
subl %r8d, %edi
jmp 0xf18f2
movl (%r15), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %ebx
addl %edx, %edi
jmp 0xf1a0b
movl %r8d, %r9d
cmpq %r9, %r14
jne 0xf1a65
addl %edx, %edi
jmp 0xf18f2
movl (%r15), %ecx
leal 0x3(%rcx), %edx
testl %ecx, %ecx
cmovnsl %ecx, %edx
sarl $0x2, %edx
subl %edx, %ebx
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
addl %ecx, %edi
jmp 0xf1a0b
movl (%r15), %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
addl %edx, %ebx
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
subl %ecx, %edi
jmp 0xf1a0b
addl (%r15), %ebx
jmp 0xf1a0b
movl (%r15), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %ebx
addl %esi, %edi
leaq 0x131bc2(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movq -0x38(%rbp), %rax
movq 0x8(%rax,%r13,8), %rcx
movl %ebx, %esi
callq 0xe7d0
leaq 0x1299e6(%rip), %rax    # 0x21b412
movzbl (%rax), %eax
imull $0xab, %eax, %eax
shrl $0x9, %eax
incb %al
movzbl %al, %eax
leal (,%rax,4), %ecx
leal (%rcx,%rcx,2), %ecx
cmpq %rcx, %r14
jb 0xf15be
jmp 0xf1a7b
movl (%r15), %eax
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
jmp 0xf1927
leal (%r8,%r8,4), %r8d
cmpq %r8, %r14
movl $0x0, %r8d
cmovel %edx, %r8d
jmp 0xf18ef
leaq 0x131b52(%rip), %rax    # 0x2235d4
movl -0x44(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x126dda(%rip), %rax    # 0x218868
movb $0x0, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21bba5(%rip), %rax    # 0x30d64c
cmpl $0x0, (%rax)
je 0xf1416
leaq 0x2498b9(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x126d47(%rip), %rax    # 0x218810
subl (%rax), %ecx
cmpl $0x46, %ecx
jl 0xf1416
leaq 0x21ba31(%rip), %rax    # 0x30d50c
leaq 0x21ba2e(%rip), %rcx    # 0x30d510
movslq (%rcx), %rcx
xorl %edx, %edx
cmpq $0x3, %rcx
setl %dl
leaq 0x21ba1f(%rip), %rsi    # 0x30d514
movl (%rsi), %esi
movl %esi, %edi
subl %edx, %edi
negl %edx
addl %edx, %esi
addl $0x3, %esi
testl %edi, %edi
cmovnsl %edi, %esi
sarl $0x2, %esi
movslq %edi, %rdx
imulq $-0x51eb851f, %rdx, %rdi # imm = 0xAE147AE1
movq %rdi, %r8
shrq $0x3f, %r8
shrq $0x20, %rdi
sarl $0x5, %edi
addl %r8d, %edi
imulq $0x51eb851f, %rdx, %r8  # imm = 0x51EB851F
movq %r8, %r9
shrq $0x3f, %r9
shrq $0x20, %r8
sarl $0x7, %r8d
addl %r9d, %r8d
leaq 0x3997b(%rip), %r9      # 0x12b4c0
movzbl -0x1(%rcx,%r9), %ecx
addl %esi, %ecx
addl (%rax), %edx
addl %ecx, %edx
addl %edi, %edx
addl %r8d, %edx
movslq %edx, %rax
imulq $-0x6db6db6d, %rax, %rcx # imm = 0x92492493
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x2, %ecx
addl %edx, %ecx
leal (,%rcx,8), %edx
subl %edx, %ecx
addl %eax, %ecx
movzbl %cl, %eax
leaq 0x78b3b(%rip), %rcx     # 0x16a6c0
movq (%rcx,%rax,8), %rsi
leaq 0x24a690(%rip), %rdi    # 0x33c220
jmp 0xf1411