// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heathmsc.cpp
// Function: label_circles(int, int)
void label_circles(int signals, int row)
{
int col;
int x, y;
char *s;

   // label the various az/el plots

   center_sat = 1;
   cursor_sat_color = WHITE;

   if(rcvr_type == CS_RCVR) return;
   else if(rcvr_type == NO_RCVR) return;
   else if(rcvr_type == THERMO_RCVR) return;
   else if(rcvr_type == TICC_RCVR) return;
////else if(rcvr_type == TIDE_RCVR) return;  // ckckck
   else if(signals && (plot_signals == 1)) {
      s = "Relative strength vs azimuth";
      if(zoom_screen == 'U') row -= 2;
   }
   else if(signals && (plot_signals == 2)) {
      s = "1/EL weighted strength vs azimuth";
      if(zoom_screen == 'U') row -= 2;
      if(zoom_screen == 'V') row -= 2;
      if(zoom_screen == 'I') row -= 2;
   }
   else if(signals && (plot_signals == 3)) s = "Relative strength vs elevation";
   else if(signals && (plot_signals == 4)) {
      s = "Signal strength vs az/el";
      if(zoom_screen == 'U') row -= 2;
      if(zoom_screen == 'V') row -= 2;
      if(zoom_screen == 'I') row -= 2;
   }
   else if(signals && (plot_signals == 5)) {
      s = "Raw signal level data";
   }
   else {
      find_cursor_sat();
      s = &out[0];
      if(zoom_screen == 'U') row -= 2;
      else if(zoom_screen == 'V') row -= 2;
      else if(zoom_screen == 'I') row -= 2;
      else if((zoom_screen == 'B') || (zoom_screen == 'M')) {
         if(SCREEN_HEIGHT < TINY_TINY_HEIGHT) row -= 1;
      }
   }

   if(zoom_screen) ++row;
   col = ((AZEL_X-AZEL_RADIUS)/TEXT_WIDTH);
   x = (AZEL_RADIUS*2) / TEXT_WIDTH;
   vidstr(row,col, WHITE, &blanks[TEXT_COLS-x]);

   if(center_sat) col = (AZEL_X/TEXT_WIDTH) - (strlen(s)/2);
   else           col = ((AZEL_X-AZEL_RADIUS)/TEXT_WIDTH);
   vidstr(row,col, cursor_sat_color, s);

   if(small_azel()) return;  // map is too small to label

   graphics_coords = 1;   // these labels need fine positioning

   if(signals && (plot_signals == 3)) {
      x = AZEL_X;
      y = AZEL_Y;  // AZEL_RADIUS;
      if(zoom_screen) y += TEXT_HEIGHT;
      y += AZEL_RADIUS+TEXT_HEIGHT/2;
      vidstr(y, x-AZEL_RADIUS*1-2*TEXT_WIDTH/2, WHITE, "0%");
      vidstr(y, x-AZEL_RADIUS/2-3*TEXT_WIDTH/2, WHITE, "25%");
      vidstr(y, x-AZEL_RADIUS*0-3*TEXT_WIDTH/2, WHITE, "50%");
      vidstr(y, x+AZEL_RADIUS/2-3*TEXT_WIDTH/2, WHITE, "75%");
      vidstr(y, x+AZEL_RADIUS*1-4*TEXT_WIDTH/2, WHITE, "100%");

      x = AZEL_X+AZEL_RADIUS+TEXT_WIDTH*2;
      y = AZEL_Y+AZEL_RADIUS-TEXT_HEIGHT/2;
      if(zoom_screen) x += TEXT_WIDTH;
      sprintf(out, "0%c", DEGREES);
      vidstr(y,x, WHITE, out);

      x = AZEL_X-AZEL_RADIUS+TEXT_WIDTH*3  + (int) ((float)(AZEL_RADIUS*2)*cos360(30));
      y = AZEL_Y+AZEL_RADIUS-TEXT_HEIGHT*2 - (int) ((float)(AZEL_RADIUS*2)*sin360(30));
      if(zoom_screen == 0) y += TEXT_HEIGHT;
      if(zoom_screen == 0) x -= TEXT_WIDTH;
      sprintf(out, "30%c", DEGREES);
      vidstr(y,x, WHITE, out);

      x = AZEL_X-AZEL_RADIUS+TEXT_WIDTH*1  + (int) ((float)(AZEL_RADIUS*2)*cos360(60));
      y = AZEL_Y+AZEL_RADIUS-TEXT_HEIGHT*3 - (int) ((float)(AZEL_RADIUS*2)*sin360(60));
      if(zoom_screen == 0) y += TEXT_HEIGHT;
      sprintf(out, "60%c", DEGREES);
      vidstr(y,x, WHITE, out);

      x = AZEL_X-AZEL_RADIUS-(TEXT_WIDTH*3/2);
      y = AZEL_Y-AZEL_RADIUS-TEXT_HEIGHT;
      if(zoom_screen) y -= TEXT_HEIGHT;
      sprintf(out, "90%c", DEGREES);
      vidstr(y,x, WHITE, out);
   }
   else if((signals && plot_signals) || (zoom_screen == 'M') || (zoom_screen == 'I')) {
      x = AZEL_X-TEXT_WIDTH/2;
      y = AZEL_Y;  // AZEL_RADIUS;
      vidstr(y-AZEL_RADIUS-TEXT_HEIGHT-TEXT_HEIGHT/2,x, WHITE, "N");

      if((zoom_screen == 'U') || (zoom_screen == 'V')) ;
      else vidstr(y+AZEL_RADIUS+TEXT_HEIGHT/2,x, WHITE, "S");

      x = AZEL_X;
      y = AZEL_Y - TEXT_HEIGHT/2;
      vidstr(y,x-AZEL_RADIUS-TEXT_WIDTH*2-TEXT_WIDTH/2, WHITE, "W");

      x = x+AZEL_RADIUS+TEXT_WIDTH*1+TEXT_WIDTH/2;
      if((plot_signals >= 4) || (zoom_screen == 'M') || (zoom_screen == 'I')) {
         vidstr(y,x, WHITE, "E");
      }
      else {
         if((SCREEN_WIDTH == 1280) && (zoom_screen == 0)) ;
         else x += TEXT_WIDTH;
         vidstr(y,x, WHITE, "E");

         x = AZEL_X;
         y = AZEL_Y+TEXT_HEIGHT/4;  // AZEL_RADIUS;
         vidstr(y, x+AZEL_RADIUS*1/4-3*TEXT_WIDTH/2, WHITE, "25%");
         vidstr(y, x+AZEL_RADIUS*2/4-3*TEXT_WIDTH/2, WHITE, "50%");
         vidstr(y, x+AZEL_RADIUS*3/4-3*TEXT_WIDTH/2, WHITE, "75%");
         vidstr(y, x+AZEL_RADIUS*4/4-4*TEXT_WIDTH/2, WHITE, "100%");

         vidstr(y, x-AZEL_RADIUS*4/4-3*TEXT_WIDTH/2, WHITE, "100%");
         vidstr(y, x-AZEL_RADIUS*3/4-2*TEXT_WIDTH/2, WHITE, "75%");
         vidstr(y, x-AZEL_RADIUS*2/4-2*TEXT_WIDTH/2, WHITE, "50%");
         vidstr(y, x-AZEL_RADIUS*1/4-2*TEXT_WIDTH/2, WHITE, "25%");
      }
   }

   graphics_coords = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0x1, 0x35a55c(%rip)    # 0x43bd28
movl $0xf, 0x35a556(%rip)    # 0x43bd2c
leaq 0x1210f3(%rip), %rax    # 0x2028d0
movq (%rax), %rax
cmpq $0x400, %rax            # imm = 0x400
je 0xe1fba
cmpq $0x10000, %rax          # imm = 0x10000
je 0xe1fba
cmpq $0x20000, %rax          # imm = 0x20000
je 0xe1fba
cmpq $0x80000, %rax          # imm = 0x80000
je 0xe1fba
movl %esi, %r14d
movl %edi, %ebx
testl %edi, %edi
setne %cl
leaq 0x123bf4(%rip), %rax    # 0x205415
movb (%rax), %al
cmpb $0x1, %al
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xe1854
leaq 0x214f72(%rip), %rax    # 0x2f67a8
leal -0x2(%r14), %ecx
cmpb $0x55, (%rax)
cmovnel %r14d, %ecx
leaq 0x3d790(%rip), %rax     # 0x11efd8
movq %rax, -0x30(%rbp)
movl %ecx, %r14d
jmp 0xe1959
testl %ebx, %ebx
setne %cl
cmpb $0x2, %al
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xe1896
leaq 0x214f3c(%rip), %rax    # 0x2f67a8
movb (%rax), %al
leal -0x2(%r14), %ecx
cmpb $0x55, %al
cmovnel %r14d, %ecx
leal -0x2(%rcx), %edx
cmpb $0x56, %al
cmovnel %ecx, %edx
leal -0x2(%rdx), %r14d
cmpb $0x49, %al
cmovnel %edx, %r14d
leaq 0x3d764(%rip), %rax     # 0x11eff5
jmp 0xe1955
testl %ebx, %ebx
setne %cl
cmpb $0x3, %al
sete %dl
testb %dl, %cl
je 0xe18b0
leaq 0x3d76c(%rip), %rax     # 0x11f017
jmp 0xe1955
testl %ebx, %ebx
setne %cl
cmpb $0x4, %al
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xe18ef
leaq 0x214ee0(%rip), %rax    # 0x2f67a8
movb (%rax), %al
leal -0x2(%r14), %ecx
cmpb $0x55, %al
cmovnel %r14d, %ecx
leal -0x2(%rcx), %edx
cmpb $0x56, %al
cmovnel %ecx, %edx
leal -0x2(%rdx), %r14d
cmpb $0x49, %al
cmovnel %edx, %r14d
leaq 0x3d749(%rip), %rax     # 0x11f036
jmp 0xe1955
testl %ebx, %ebx
setne %cl
cmpb $0x5, %al
sete %al
testb %al, %cl
je 0xe1906
leaq 0x3d74b(%rip), %rax     # 0x11f04f
jmp 0xe1955
callq 0xe3785
leaq 0x214e96(%rip), %rax    # 0x2f67a8
movzbl (%rax), %eax
cmpl $0x49, %eax
je 0xe1924
cmpl $0x56, %eax
je 0xe1924
cmpl $0x55, %eax
jne 0xe192a
addl $-0x2, %r14d
jmp 0xe194e
cmpb $0x42, %al
sete %cl
cmpb $0x4d, %al
sete %al
orb %cl, %al
leaq 0x120ec7(%rip), %rcx    # 0x202804
cmpl $0x190, (%rcx)          # imm = 0x190
setl %cl
andb %al, %cl
movzbl %cl, %eax
subl %eax, %r14d
leaq 0x2448cb(%rip), %rax    # 0x326220
movq %rax, -0x30(%rbp)
leaq 0x214e48(%rip), %rax    # 0x2f67a8
cmpb $0x1, (%rax)
sbbl $-0x1, %r14d
leaq 0x243a32(%rip), %r15    # 0x3253a0
movl (%r15), %ecx
leaq 0x243a14(%rip), %rax    # 0x32538c
movl (%rax), %eax
pushq $0x2
popq %rsi
cltd
idivl %esi
movl %eax, %esi
leaq 0x243a0f(%rip), %r13    # 0x325398
subl (%r13), %esi
subl %esi, %ecx
leaq 0x120e7a(%rip), %r12    # 0x202810
movl (%r12), %edi
movl %ecx, %eax
cltd
idivl %edi
movl %eax, %r8d
addl %esi, %esi
movl %esi, %eax
cltd
idivl %edi
leaq 0x120e58(%rip), %rcx    # 0x202808
movslq (%rcx), %rcx
cltq
subq %rax, %rcx
addq 0x585b9(%rip), %rcx     # 0x139f78
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %r8d, %esi
callq 0xe2d2
cmpl $0x0, 0x35a354(%rip)    # 0x43bd28
movl (%r15), %ecx
pushq $-0x2
popq %rsi
je 0xe19fd
movl %ecx, %eax
cltd
movq %r12, %r13
idivl (%r12)
movl %eax, %r12d
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x9120
shrq %rax
subl %eax, %r12d
jmp 0xe1a1e
leaq 0x243988(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
idivl %esi
addl (%r13), %ecx
addl %ecx, %eax
cltd
movq %r12, %r13
idivl (%r12)
movl %eax, %r12d
movq -0x30(%rbp), %r15
movzbl 0x35a307(%rip), %edx    # 0x43bd2c
movl %r14d, %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe2d2
leaq 0x243952(%rip), %r9     # 0x32538c
movl (%r9), %ecx
cmpl $0xa0, %ecx
setge %dl
leaq 0x214d5b(%rip), %rax    # 0x2f67a8
movb (%rax), %al
testb %al, %al
setne %sil
orb %dl, %sil
cmpb $0x1, %sil
jne 0xe1fba
testl %ebx, %ebx
setne %sil
leaq 0x120df9(%rip), %r8     # 0x202868
movb $0x1, (%r8)
leaq 0x12399b(%rip), %rdx    # 0x205415
movb (%rdx), %dl
cmpb $0x3, %dl
sete %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0xe1e30
testb %al, %al
leaq 0x243907(%rip), %rax    # 0x3253a0
movl (%rax), %r14d
leaq 0x120d71(%rip), %rax    # 0x202814
movl (%rax), %esi
movl $0x0, %r15d
cmovnel %esi, %r15d
leaq 0x2438ee(%rip), %rdi    # 0x3253a4
movl %ecx, %eax
cltd
pushq $0x2
popq %r8
idivl %r8d
movl %eax, %ecx
leaq 0x2438cf(%rip), %rax    # 0x325398
subl (%rax), %ecx
movl %esi, %eax
cltd
idivl %r8d
addl (%rdi), %r15d
addl %eax, %r15d
addl %ecx, %r15d
movq %r13, %rbx
addl (%r13), %ecx
movl %r14d, %esi
subl %ecx, %esi
leaq 0x3d586(%rip), %rcx     # 0x11f073
pushq $0xf
popq %rdx
movl %r15d, %edi
movq %r9, %r12
callq 0xe2d2
movl (%r12), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
leaq 0x24388c(%rip), %rcx    # 0x325398
subl (%rcx), %eax
cltd
pushq $-0x2
popq %r13
idivl %r13d
movl %eax, %esi
imull $0x3, (%rbx), %eax
cltd
idivl %r13d
addl %r14d, %eax
addl %eax, %esi
leaq 0x3d53a(%rip), %rcx     # 0x11f065
movl %r15d, %edi
pushq $0xf
popq %r12
movl %r12d, %edx
callq 0xe2d2
imull $0x3, (%rbx), %eax
cltd
idivl %r13d
leal (%rax,%r14), %esi
leaq 0x3d51d(%rip), %rcx     # 0x11f069
movl %r15d, %edi
movl %r12d, %edx
callq 0xe2d2
leaq 0x24382e(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
pushq $0x2
popq %r13
idivl %r13d
leaq 0x243829(%rip), %rdx    # 0x325398
subl (%rdx), %eax
cltd
idivl %r13d
movl %eax, %esi
imull $0x3, (%rbx), %eax
cltd
pushq $-0x2
popq %rcx
idivl %ecx
addl %r14d, %eax
addl %eax, %esi
leaq 0x3d4e1(%rip), %rcx     # 0x11f06d
movl %r15d, %edi
movl %r12d, %edx
callq 0xe2d2
leaq 0x2437ee(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
idivl %r13d
movl %r13d, %r12d
movl (%rbx), %ecx
addl %eax, %r14d
addl %ecx, %ecx
leaq 0x2437e3(%rip), %r13    # 0x325398
addl (%r13), %ecx
subl %ecx, %r14d
leaq 0x3d4ae(%rip), %rcx     # 0x11f071
movl %r15d, %edi
movl %r14d, %esi
pushq $0xf
popq %rdx
callq 0xe2d2
leaq 0x2437b4(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
idivl %r12d
movl %eax, %r12d
subl (%r13), %r12d
leaq 0x2437b4(%rip), %r14    # 0x3253a0
movl (%r14), %ecx
addl %r12d, %ecx
movl (%rbx), %r13d
leaq 0x2437a8(%rip), %rax    # 0x3253a4
addl (%rax), %r12d
leaq 0x120c0e(%rip), %rax    # 0x202814
movl (%rax), %eax
cltd
pushq $-0x2
popq %rsi
idivl %esi
addl %eax, %r12d
leaq 0x214b90(%rip), %r15    # 0x2f67a8
cmpb $0x0, (%r15)
leal (%rcx,%r13,2), %eax
movl $0x0, %ecx
cmovel %ecx, %r13d
addl %eax, %r13d
leaq 0x2445ed(%rip), %r15    # 0x326220
leaq 0x3d43d(%rip), %rsi     # 0x11f077
pushq $0x1
popq %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x9060
movl %r12d, %edi
movl %r13d, %esi
pushq $0xf
popq %rdx
movq %r15, %rcx
callq 0xe2d2
movl (%r14), %esi
leaq 0x24372a(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
leaq 0x243727(%rip), %rcx    # 0x325398
subl (%rcx), %eax
subl %eax, %esi
movl (%rbx), %ecx
leal (%rcx,%rcx,2), %edx
leal (%rax,%rax), %edi
cvtsi2ss %edi, %xmm0
addl %esi, %edx
movaps %xmm0, %xmm1
mulss 0x34a7e(%rip), %xmm1    # 0x11670c
cvttss2si %xmm1, %r12d
addl %edx, %r12d
leaq 0x120b77(%rip), %r15    # 0x202814
movl (%r15), %r13d
mulss 0x15450(%rip), %xmm0    # 0xf70f8
cvttss2si %xmm0, %edx
leaq 0x2436f1(%rip), %rsi    # 0x3253a4
addl (%rsi), %eax
leal (%rdx,%r13,2), %edx
subl %edx, %eax
leaq 0x214ae6(%rip), %rdx    # 0x2f67a8
cmpb $0x0, (%rdx)
movl $0x0, %edx
cmovnel %edx, %r13d
cmovnel %edx, %ecx
addl %eax, %r13d
subl %ecx, %r12d
leaq 0x3d398(%rip), %rsi     # 0x11f076
leaq 0x24453b(%rip), %r15    # 0x326220
movq %r15, %rdi
pushq $0x1
popq %rdx
xorl %eax, %eax
callq 0x9060
movl %r13d, %edi
movl %r12d, %esi
pushq $0xf
popq %rdx
movq %r15, %rcx
movq %r15, %r14
callq 0xe2d2
leaq 0x243693(%rip), %rax    # 0x3253a0
movl (%rax), %ecx
leaq 0x243676(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
pushq $0x2
popq %rsi
idivl %esi
leaq 0x243673(%rip), %rdx    # 0x325398
subl (%rdx), %eax
subl %eax, %ecx
addl (%rbx), %ecx
leal (%rax,%rax), %edx
cvtsi2ss %edx, %xmm0
movss 0x153be(%rip), %xmm1    # 0xf70f8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %r12d
addl %ecx, %r12d
leaq 0x243657(%rip), %rcx    # 0x3253a4
addl (%rcx), %eax
leaq 0x120abe(%rip), %rcx    # 0x202814
movl (%rcx), %r13d
imull $-0x3, %r13d, %ecx
mulss 0x349a7(%rip), %xmm0    # 0x11670c
cvttss2si %xmm0, %edx
addl %eax, %ecx
subl %edx, %ecx
leaq 0x214a34(%rip), %r15    # 0x2f67a8
cmpb $0x0, (%r15)
movl $0x0, %eax
cmovnel %eax, %r13d
addl %ecx, %r13d
leaq 0x3d2f0(%rip), %rsi     # 0x11f07b
movq %r14, %rdi
pushq $0x1
popq %rdx
xorl %eax, %eax
callq 0x9060
movl %r13d, %edi
movl %r12d, %esi
pushq $0xf
popq %rdx
movq %r14, %rcx
callq 0xe2d2
leaq 0x2435dc(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
pushq $-0x2
popq %rcx
idivl %ecx
movl %eax, %r12d
leaq 0x2435d6(%rip), %rax    # 0x325398
addl (%rax), %r12d
leaq 0x2435d4(%rip), %rax    # 0x3253a0
movl (%rax), %r13d
imull $0x3, (%rbx), %eax
addl %r12d, %r13d
cltd
idivl %ecx
addl %eax, %r13d
cmpb $0x0, (%r15)
leaq 0x120a2e(%rip), %rax    # 0x202814
movl (%rax), %eax
movl $0x0, %ecx
cmovnel %eax, %ecx
leaq 0x2435ad(%rip), %rdx    # 0x3253a4
addl (%rdx), %r12d
addl %eax, %ecx
subl %ecx, %r12d
leaq 0x3d27a(%rip), %rsi     # 0x11f080
movq %r14, %rdi
pushq $0x1
popq %rdx
xorl %eax, %eax
callq 0x9060
movl %r12d, %edi
movl %r13d, %esi
pushq $0xf
popq %rdx
movq %r14, %rcx
callq 0xe2d2
leaq 0x120a3d(%rip), %r8     # 0x202868
jmp 0xe1fb6
testl %ebx, %ebx
setne %sil
testb %dl, %dl
setne %dl
andb %sil, %dl
andb $-0x5, %al
cmpb $0x49, %al
sete %al
orb %dl, %al
cmpb $0x1, %al
leaq 0x243550(%rip), %rdi    # 0x3253a0
jne 0xe1fb6
movl (%r13), %eax
cltd
pushq $-0x2
popq %rsi
idivl %esi
movl %eax, %ebx
addl (%rdi), %ebx
leaq 0x243539(%rip), %rax    # 0x3253a4
movl (%rax), %r14d
movl %ecx, %eax
cltd
idivl %esi
movl %eax, %edi
leaq 0x120998(%rip), %rax    # 0x202814
movl (%rax), %ecx
movl %ecx, %eax
cltd
movl %esi, %r12d
idivl %esi
addl %r14d, %edi
leaq 0x243508(%rip), %r15    # 0x325398
addl (%r15), %edi
subl %ecx, %edi
addl %eax, %edi
leaq 0x2f454(%rip), %rcx     # 0x1112f2
pushq $0xf
popq %rdx
movl %ebx, %esi
callq 0xe2d2
leaq 0x2148f9(%rip), %rax    # 0x2f67a8
movb (%rax), %al
addb $-0x55, %al
cmpb $0x2, %al
jb 0xe1ef1
leaq 0x2434ce(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
pushq $0x2
popq %rsi
idivl %esi
movl %eax, %ecx
leaq 0x120945(%rip), %rax    # 0x202814
movl (%rax), %eax
cltd
idivl %esi
subl (%r15), %r14d
addl %ecx, %r14d
addl %eax, %r14d
leaq 0x2a489(%rip), %rcx     # 0x10c36d
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %ebx, %esi
callq 0xe2d2
leaq 0x2434a8(%rip), %rax    # 0x3253a0
movl (%rax), %ebx
leaq 0x120913(%rip), %rax    # 0x202814
movl (%rax), %eax
cltd
movl %r12d, %esi
idivl %r12d
movl %eax, %r14d
leaq 0x243490(%rip), %rax    # 0x3253a4
addl (%rax), %r14d
leaq 0x24346e(%rip), %r13    # 0x32538c
movl (%r13), %eax
cltd
idivl %r12d
movl %eax, %ecx
leaq 0x1208e1(%rip), %r12    # 0x202810
movl (%r12), %edi
movl %edi, %eax
cltd
idivl %esi
movl (%r15), %esi
addl %ebx, %esi
addl %ecx, %esi
addl %edi, %edi
subl %edi, %esi
addl %eax, %esi
leaq 0x2aa08(%rip), %rcx     # 0x10c954
pushq $0xf
popq %rdx
movl %r14d, %edi
callq 0xe2d2
movl (%r13), %eax
cltd
pushq $0x2
popq %rdi
idivl %edi
movl %eax, %esi
movl (%r12), %ecx
movl %ecx, %eax
cltd
idivl %edi
subl (%r15), %ebx
addl %ecx, %ebx
addl %esi, %ebx
addl %eax, %ebx
leaq 0x123499(%rip), %rax    # 0x205415
cmpb $0x4, (%rax)
setae %dl
leaq 0x21481f(%rip), %rax    # 0x2f67a8
movb (%rax), %al
movl %eax, %esi
andb $-0x5, %sil
cmpb $0x49, %sil
sete %sil
orb %dl, %sil
cmpb $0x1, %sil
jne 0xe1fc9
leaq 0x2f2dc(%rip), %rcx     # 0x111285
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %ebx, %esi
jmp 0xe1e1f
movb $0x0, (%r8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x120830(%rip), %rdx    # 0x202800
xorl %esi, %esi
testb %al, %al
cmovnel %ecx, %esi
cmpl $0x500, (%rdx)          # imm = 0x500
cmovnel %ecx, %esi
addl %ebx, %esi
leaq 0x2f29c(%rip), %rcx     # 0x111285
pushq $0xf
popq %rdx
movl %edi, %r12d
movl %r14d, %edi
callq 0xe2d2
leaq 0x2433a2(%rip), %rax    # 0x3253a0
movl (%rax), %r14d
leaq 0x12080c(%rip), %rax    # 0x202814
movl (%rax), %eax
movq %r15, %rbx
pushq $0x4
popq %rcx
cltd
idivl %ecx
movl %eax, %r13d
leaq 0x243387(%rip), %rax    # 0x3253a4
addl (%rax), %r13d
leaq 0x243365(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
idivl %r12d
subl (%r15), %eax
cltd
idivl %ecx
movl %eax, %esi
leaq 0x1207d4(%rip), %r12    # 0x202810
imull $0x3, (%r12), %eax
cltd
pushq $-0x2
popq %r15
idivl %r15d
addl %r14d, %eax
addl %eax, %esi
leaq 0x3d010(%rip), %rcx     # 0x11f065
movl %r13d, %edi
pushq $0xf
popq %r15
movl %r15d, %edx
callq 0xe2d2
leaq 0x243321(%rip), %r12    # 0x32538c
movl (%r12), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
subl (%rbx), %eax
cltd
idivl %ecx
movl %eax, %esi
leaq 0x12078d(%rip), %rax    # 0x202810
imull $0x3, (%rax), %eax
cltd
pushq $-0x2
popq %rcx
idivl %ecx
addl %r14d, %eax
addl %eax, %esi
leaq 0x3cfd1(%rip), %rcx     # 0x11f069
movl %r13d, %edi
movl %r15d, %edx
callq 0xe2d2
movl (%r12), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
subl (%rbx), %eax
leal (%rax,%rax,2), %eax
cltd
pushq $0x4
popq %rcx
idivl %ecx
movl %eax, %esi
leaq 0x12074f(%rip), %rax    # 0x202810
imull $0x3, (%rax), %eax
cltd
pushq $-0x2
popq %rcx
idivl %ecx
addl %r14d, %eax
addl %eax, %esi
leaq 0x3cf97(%rip), %rcx     # 0x11f06d
movl %r13d, %edi
movl %r15d, %edx
callq 0xe2d2
movl (%r12), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
leaq 0x12071e(%rip), %rcx    # 0x202810
movl (%rcx), %ecx
leal (%rax,%r14), %esi
addl %ecx, %ecx
addl (%rbx), %ecx
subl %ecx, %esi
leaq 0x3cf6c(%rip), %rcx     # 0x11f071
movl %r13d, %edi
movl %r15d, %edx
callq 0xe2d2
movl (%r12), %eax
cltd
pushq $-0x2
popq %rsi
idivl %esi
movl %eax, %ecx
leaq 0x1206ed(%rip), %r12    # 0x202810
imull $0x3, (%r12), %eax
cltd
idivl %esi
movl (%rbx), %esi
addl %r14d, %esi
addl %ecx, %esi
addl %eax, %esi
movl %r13d, %edi
movl %r15d, %edx
leaq 0x3cf30(%rip), %rcx     # 0x11f071
callq 0xe2d2
leaq 0x24323f(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
pushq $0x2
popq %r15
idivl %r15d
subl (%rbx), %eax
leal (%rax,%rax,2), %eax
pushq $-0x4
popq %rcx
cltd
idivl %ecx
movl %r14d, %esi
subl (%r12), %esi
addl %eax, %esi
movl %r13d, %edi
pushq $0xf
popq %rdx
leaq 0x3cef5(%rip), %rcx     # 0x11f06d
callq 0xe2d2
leaq 0x243208(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
idivl %r15d
subl (%rbx), %eax
cltd
pushq $-0x2
popq %rcx
idivl %ecx
movl %r14d, %esi
subl (%r12), %esi
addl %eax, %esi
movl %r13d, %edi
pushq $0xf
popq %rdx
leaq 0x3cec1(%rip), %rcx     # 0x11f069
callq 0xe2d2
leaq 0x2431d8(%rip), %rax    # 0x32538c
movl (%rax), %eax
cltd
idivl %r15d
subl (%rbx), %eax
cltd
pushq $-0x4
popq %rcx
idivl %ecx
subl (%r12), %r14d
addl %eax, %r14d
movl %r13d, %edi
movl %r14d, %esi
pushq $0xf
popq %rdx
leaq 0x3ce8c(%rip), %rcx     # 0x11f065
jmp 0xe1e1f