// File: /workspace/github_cpp_makefile_star2_O3/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 0x131c74(%rip), %rdx    # 0x2235d4
movl (%rdx), %ebx
leaq 0x21bea7(%rip), %rax    # 0x30d810
movl (%rax), %ecx
movl %ebx, -0x3c(%rbp)
testl %ecx, %ecx
je 0xf197d
movl $0xe, (%rdx)
movl $0xe, %ebx
leaq 0x129a8e(%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 0x7ee80(%rip), %rsi     # 0x170820
movq (%rsi,%rax,8), %rax
movq %rax, -0x30(%rbp)
leaq 0x126eb9(%rip), %rax    # 0x218868
movb $0x1, (%rax)
leaq 0x21bb4f(%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, %r8d
leaq 0x21bb18(%rip), %rax    # 0x30d504
movl (%rax), %r9d
leal -0xa(%r9), %edi
movl $0x0, 0x288353(%rip)    # 0x379d50
cmpl $0x28, %edi
ja 0xf1a35
leal (%r8,%r9), %eax
addl $0xffffff38, %eax       # imm = 0xFFFFFF38
cmpl $0x320, %eax            # imm = 0x320
ja 0xf1a35
leaq 0x24995f(%rip), %rax    # 0x33b378
movl (%rax), %r13d
leaq 0x24994d(%rip), %rax    # 0x33b370
movl (%rax), %eax
leal 0x3(%rax), %edx
testl %eax, %eax
cmovnsl %eax, %edx
sarl $0x2, %edx
subl %edx, %r13d
jmp 0xf1a91
leal -0x29(%r9), %r11d
leaq 0x249930(%rip), %rax    # 0x33b370
movl (%rax), %eax
leal 0x3(%rax), %esi
testl %eax, %eax
movl %eax, %edx
cmovsl %esi, %edx
sarl $0x2, %edx
leaq 0x249922(%rip), %r10    # 0x33b378
movl (%r10), %r10d
cmpl $-0x16, %r11d
ja 0xf1a72
addl %r9d, %r8d
addl $0xfffffcdf, %r8d       # imm = 0xFFFFFCDF
cmpl $0xfffffe6e, %r8d       # imm = 0xFFFFFE6E
jbe 0xf1a77
cmpl $0x29, %edi
jae 0xf1a8b
movl %edx, %r13d
addl %r10d, %r13d
testl %eax, %eax
cmovnsl %eax, %esi
sarl $0x2, %esi
negl %esi
movl %esi, %edx
jmp 0xf1a91
subl %edx, %r10d
movl %r10d, %r13d
movl %edx, 0x2882bd(%rip)    # 0x379d54
leaq 0x24cc91(%rip), %rdx    # 0x33e72f
cmpb $0x0, (%rdx)
je 0xf1c69
leaq 0x24a772(%rip), %r14    # 0x33c220
movb $0x0, (%r14)
testl %ecx, %ecx
je 0xf1aca
movabsq $0x21455350494c4345, %rax # imm = 0x21455350494C4345
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
jmp 0xf1aed
leaq 0x24cc1f(%rip), %rcx    # 0x33e6f0
cmpb $0x0, (%rcx)
je 0xf2165
leaq 0x24a73f(%rip), %rdi    # 0x33c220
leaq 0x24cc08(%rip), %rsi    # 0x33e6f0
callq 0x9340
leaq 0x249880(%rip), %rax    # 0x33b374
movl (%rax), %r15d
movq %r14, %rdi
callq 0x9120
leaq 0x126d0a(%rip), %rcx    # 0x218810
movslq (%rcx), %rcx
imulq %rax, %rcx
shrq %rcx
subl %ecx, %r15d
movzbl %bl, %edx
movl %r13d, %edi
movl %r15d, %esi
movq %r14, %rcx
callq 0xe787
movb $0x0, (%r14)
leaq 0x24cbe1(%rip), %rsi    # 0x33e710
cmpb $0x0, (%rsi)
jne 0xf1b65
leaq 0x249835(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x126cc3(%rip), %rax    # 0x218810
subl (%rax), %ecx
cmpl $0x78, %ecx
jl 0xf1b71
movl $0x1, %edi
callq 0xef8e6
leaq 0x289cdb(%rip), %rsi    # 0x37b840
leaq 0x24a6b4(%rip), %rdi    # 0x33c220
callq 0x9340
leaq 0x24a6a8(%rip), %r14    # 0x33c220
movq %r14, %rdi
callq 0x9120
testl %eax, %eax
je 0xf1b99
cltq
cmpb $0x20, -0x1(%r14,%rax)
jne 0xf1b99
movb $0x0, -0x1(%r14,%rax)
decq %rax
jne 0xf1b86
leaq 0x126c74(%rip), %r12    # 0x218814
movl (%r12), %r14d
addl %r13d, %r14d
leaq 0x2497c6(%rip), %rax    # 0x33b374
movl (%rax), %r15d
leaq 0x24a668(%rip), %rbx    # 0x33c220
movq %rbx, %rdi
callq 0x9120
leaq 0x126c49(%rip), %rcx    # 0x218810
movslq (%rcx), %rcx
imulq %rax, %rcx
shrq %rcx
subl %ecx, %r15d
leaq 0x1319f9(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movl %r14d, %edi
movl %r15d, %esi
movq %rbx, %rcx
callq 0xe787
leaq 0x21b919(%rip), %rax    # 0x30d50c
movslq (%rax), %rax
leaq 0x7f3c3(%rip), %rcx     # 0x170fc0
movq (%rcx,%rax,8), %r14
testq %r14, %r14
je 0xf1c69
leaq 0x24cae3(%rip), %rax    # 0x33e6f0
cmpb $0x20, (%rax)
je 0xf1c69
leaq 0x24975f(%rip), %rax    # 0x33b378
movl (%r12), %r15d
leal (%r15,%r15), %ecx
negl %r15d
cmpl (%rax), %r13d
cmovll %ecx, %r15d
addl %r13d, %r15d
leaq 0x24973f(%rip), %rax    # 0x33b374
movl (%rax), %ebx
movq %r14, %rdi
callq 0x9120
leaq 0x126bca(%rip), %rcx    # 0x218810
movslq (%rcx), %rcx
imulq %rax, %rcx
shrq %rcx
subl %ecx, %ebx
leaq 0x13197b(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movl %r15d, %edi
movl %ebx, %esi
movq %r14, %rcx
callq 0xe787
leaq 0x1297a2(%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 0x126b7b(%rip), %r15    # 0x218810
movq %r14, %r13
incq %r14
cvtsi2ss %r14d, %xmm1
cvtsi2ss %ecx, %xmm2
movss 0x1b3d0(%rip), %xmm0    # 0x10d07c
divss %xmm2, %xmm0
mulss %xmm1, %xmm0
cmpq $0x17, %r13
je 0xf1d3f
addl %eax, %eax
leal (%rax,%rax,2), %eax
cmpq %rax, %r14
je 0xf1d3f
leaq 0x2496a1(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
subl (%r15), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd %xmm1, -0x38(%rbp)
cvtss2sd %xmm0, %xmm0
mulsd 0x2caab(%rip), %xmm0    # 0x11e7a0
addsd 0x3aa4b(%rip), %xmm0    # 0x12c748
mulsd 0x19b23(%rip), %xmm0    # 0x10b828
divsd 0x19b23(%rip), %xmm0    # 0x10b830
movsd %xmm0, -0x48(%rbp)
callq 0x9710
mulsd -0x38(%rbp), %xmm0
cvttsd2si %xmm0, %ebx
testl %ebx, %ebx
jle 0xf1ec6
movq -0x30(%rbp), %rax
movq 0x8(%rax,%r13,8), %rdi
callq 0x9120
movl (%r15), %r12d
imull %r12d, %eax
jmp 0xf1d8b
cvtss2sd %xmm0, %xmm0
mulsd 0x2ca55(%rip), %xmm0    # 0x11e7a0
addsd 0x3a9f5(%rip), %xmm0    # 0x12c748
mulsd 0x19acd(%rip), %xmm0    # 0x10b828
divsd 0x19acd(%rip), %xmm0    # 0x10b830
movsd %xmm0, -0x48(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax,%r13,8), %rdi
callq 0x9120
movslq (%r15), %r12
imulq %r12, %rax
shrq %rax
movl %r12d, %ebx
shrl $0x1f, %ebx
addl %r12d, %ebx
sarl %ebx
subl %eax, %ebx
leaq 0x2495e0(%rip), %rax    # 0x33b374
addl (%rax), %ebx
leaq 0x2495d3(%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, -0x38(%rbp)
movsd -0x48(%rbp), %xmm0
callq 0x9080
mulsd -0x38(%rbp), %xmm0
cvttsd2si %xmm0, %edi
leaq 0x126a43(%rip), %rax    # 0x218814
testl %edi, %edi
jle 0xf1ddb
movl (%rax), %eax
subl %eax, %edi
jmp 0xf1de7
movl (%rax), %eax
leal (%rax,%rdi), %ecx
testl %edi, %edi
cmovel %edi, %ecx
movl %ecx, %edi
movl %r12d, %ecx
shrl $0x1f, %ecx
addl %r12d, %ecx
sarl %ecx
subl %ecx, %ebx
leaq 0x129617(%rip), %rcx    # 0x21b412
movzbl (%rcx), %ecx
imull $0xab, %ecx, %edx
shrl $0x9, %edx
incb %dl
movzbl %dl, %r9d
leaq 0x249564(%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 0xf1e65
leal (,%r9,8), %edx
cmpq %rdx, %r14
jb 0xf1e84
leal (%r8,%r8,4), %edx
cmpq %rdx, %r14
ja 0xf1e84
movl (%r15), %edx
addl %edx, %ebx
leal (%r9,%r9,8), %esi
cmpq %rsi, %r14
jne 0xf1e84
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
addl %esi, %ebx
jmp 0xf1e84
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 0xf1f49
movl %r13d, %r10d
rorl %r10d
cmpl $0xa, %r10d
ja 0xf1f49
leaq 0x39368(%rip), %r11     # 0x12b220
movslq (%r11,%r10,4), %r10
addq %r11, %r10
jmpq *%r10
addl %esi, %edi
jmp 0xf1ed6
je 0xf1d68
movl (%r15), %r12d
jmp 0xf1d8d
subl %eax, %edi
movl (%r15), %r10d
movl %r10d, %r11d
shrl $0x1f, %r11d
addl %r10d, %r11d
sarl %r11d
addl %r11d, %ebx
jmp 0xf1f49
addl %edx, %edi
addl (%r15), %ebx
jmp 0xf1f49
addl %eax, %edi
jmp 0xf1f49
addl %esi, %edi
movl (%r15), %r10d
jmp 0xf1f1a
cmpl $0x3, %ecx
jne 0xf1f2c
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
jmp 0xf1f49
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
leaq 0x1315f4(%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 0x12688a(%rip), %r11    # 0x218800
cmpl %r10d, (%r11)
jg 0xf20d0
movl %r9d, %r10d
cmpq %r10, %r14
jne 0xf1f8c
addl (%r15), %ebx
jmp 0xf1f99
leal (%r9,%r9,4), %r10d
leal (%r9,%r10,2), %r10d
cmpq %r10, %r14
jne 0xf1ff6
leaq 0x1268e8(%rip), %r8     # 0x218888
cmpl $0x9f, (%r8)
jg 0xf1fba
leal 0x3(%rax), %r8d
testl %eax, %eax
cmovnsl %eax, %r8d
sarl $0x2, %r8d
addl %r8d, %edi
addb $-0x3, %cl
cmpb $0x2, %cl
ja 0xf20d0
leal -0x1(%r14), %ecx
cmpl $0x16, %ecx
ja 0xf20d0
leaq 0x39272(%rip), %r8      # 0x12b24c
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 0xf20d0
leal (%r9,%r9,4), %r10d
cmpq %r10, %r14
jne 0xf2014
addl (%r15), %ebx
leaq 0x12687f(%rip), %r8     # 0x218888
cmpl $0x9f, (%r8)
jg 0xf1fba
jmp 0xf2047
leal (,%r9,8), %r10d
subl %r9d, %r10d
cmpq %r10, %r14
jne 0xf206f
leaq 0x12685d(%rip), %r8     # 0x218888
cmpl $0x9f, (%r8)
jg 0xf1fba
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 0xf1fba
movl (%r15), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %ebx
addl %edx, %edi
jmp 0xf20d0
cmpq %r8, %r14
jne 0xf212a
addl %edx, %edi
jmp 0xf1fba
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 0xf20d0
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 0xf20d0
addl (%r15), %ebx
jmp 0xf20d0
movl (%r15), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %ebx
addl %esi, %edi
leaq 0x1314fd(%rip), %rax    # 0x2235d4
movzbl (%rax), %edx
movq -0x30(%rbp), %rax
movq 0x8(%rax,%r13,8), %rcx
movl %ebx, %esi
callq 0xe787
leaq 0x129321(%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 0xf1c95
jmp 0xf2140
movl (%r15), %eax
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
jmp 0xf1fef
leal (%r8,%r8,4), %r8d
cmpq %r8, %r14
movl $0x0, %r8d
cmovel %edx, %r8d
jmp 0xf1fb7
leaq 0x13148d(%rip), %rax    # 0x2235d4
movl -0x3c(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x126715(%rip), %rax    # 0x218868
movb $0x0, (%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21b4e0(%rip), %rcx    # 0x30d64c
cmpl $0x0, (%rcx)
je 0xf1aed
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x12668b(%rip), %rax    # 0x218810
subl (%rax), %ecx
cmpl $0x46, %ecx
jl 0xf1aed
leaq 0x21b375(%rip), %rax    # 0x30d50c
leaq 0x21b372(%rip), %rcx    # 0x30d510
movslq (%rcx), %rcx
xorl %edx, %edx
cmpq $0x3, %rcx
setl %dl
leaq 0x21b363(%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 0x3938f(%rip), %r9      # 0x12b590
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 0x7847f(%rip), %rcx     # 0x16a6c0
movq (%rcx,%rax,8), %rsi
leaq 0x249fd4(%rip), %rdi    # 0x33c220
jmp 0xf1ae8