// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: draw_maps()
void draw_maps()
{
u08 show_watch;
u08 show_map;
u08 show_sigs;

   // This routine controls the display of the lat/lon/alt map,  sat position
   // map, signal level map,  and analog watch displays.  
//sprintf(debug_text, "plot_lla:%d  fixes:%d  x:%d  row:%d  showing:%d  shared:%02X  aclock:%d,%d %d  WATCH:%d,%d %d", 
//plot_lla, show_fixes, LLA_Y, LLA_ROW, lla_showing, shared_item, aclock_x,aclock_y,ACLOCK_R, WATCH_COL,WATCH_ROW,WATCH_SIZE);
#define XXXX (NARROW_SCREEN)

   if(zoom_screen == '`') {
      zoom_calc();
      return;
   }
   else if(zoom_screen == 'Q') {
      zoom_cal(cal_year, cal_month);
      return;
   }

   azel_erased = 0;
   if(text_mode) plot_areas = 0;
   else if(just_read) plot_areas = 0;
   else if(zoom_screen == 'L') plot_areas = 0;
   else if(zoom_screen) plot_areas = 1;
   else if(SCREEN_WIDTH < XXXX) {
      if(shared_plot) plot_areas = 1;
      else if(rcvr_type == NO_RCVR) plot_areas = 1;
////else if(rcvr_type == TIDE_RCVR) plot_areas = 1;  // ckckck
      else plot_areas = 0;
   }
   else if(shared_plot == 0) plot_areas = 1;
   else if(all_adevs) plot_areas = 1;
   else plot_areas = 2;

   show_watch = plot_watch;
   show_map = plot_azel;
   if(zoom_screen == 'X') show_watch = show_map = 1;
   if(zoom_screen == 'Y') show_map = 1;
   if(zoom_screen == 'I') show_map = 1;
   show_sigs = plot_signals;

   if(first_key && plot_areas) {
      if(SCREEN_WIDTH < XXXX) plot_areas = 0;
      else if(all_adevs) plot_areas = 0;
//ssssssss      else if(shared_plot) plot_areas = 0;
      else plot_areas = 1;
   }

   map_and_watch = 0;
   map_and_sigs = 0; 
   if(show_watch && show_map && ((plot_areas == 1) || show_sigs || plot_lla)) {
      map_and_watch = 1;
      if(zoom_screen && (zoom_screen != 'K')) {
         aclock_x = AZEL_COL + AZEL_SIZE/2 - 2;
         aclock_y = AZEL_ROW + AZEL_SIZE/2 - 2;
      }
   }

   if(zoom_screen == 'S') ;
   else if(zoom_screen == 'X') ;
   else if(zoom_screen == 'Y') ;
   else if(zoom_screen == 'I') ;
   else if(show_map && show_sigs && (show_sigs != 3) && ((plot_areas == 1) || plot_lla)) { 
      map_and_sigs = 1;
   }

   if(plot_areas == 0) return;

   if(plot_lla && (zoom_screen == 0)) {  // we are drawing a LatLonAlt plot
      if(screen_configed) {   // screen re-configured,  so redraw LLA grid
         plot_lla_axes(2);
         screen_configed = 0;
      }
      --plot_areas;
      if(plot_areas <= 0) return;  // LLA plot is updated where packets are read in
   }

   if(zoom_screen == 'B') goto maw;
   else if(zoom_screen == 'D') {  // zoom to receiver data info
      if     (rcvr_type == BRANDY_RCVR) show_brandy_info(1,4);
      else if(rcvr_type == CS_RCVR)     show_cs_info();
      else if(rcvr_type == LPFRS_RCVR)  show_lpfrs_info(1,3, 999);
      else if(rcvr_type == PRS_RCVR)    show_prs_info(1,3, 999);
      else if(rcvr_type == SA35_RCVR)   show_sa35_info(1,3, 999);
      else if(rcvr_type == SRO_RCVR)    show_sro_info(1,3, 999);
      else if(rcvr_type == RFTG_RCVR)   show_rftg_info(1,4);
      else if(rcvr_type == X72_RCVR)    show_x72_info(1,3, 999);
      return;
   }
   else if(zoom_screen == 'F') {  // FFT waterfall
      // image drawn in process_signal()
      return;
   }
   else if(zoom_screen == 'I') {
      zoom_sat_info();
      return;
   }
   else if(zoom_screen == 'U') {
      zoom_all_signals();
      return;
   }
   else if(zoom_screen == 'V') {
      zoom_stuff();
      return;
   }
   else if(zoom_screen == 'W') goto maw;
   else if((zoom_screen == 'X') || (zoom_screen == 'Y')) {
      draw_azel_plot(1);
      return;
   }
   else if(zoom_screen == '`') {
      zoom_calc();
      return;
   }
   else if(zoom_screen) ;
   else if(map_and_watch) {
      maw:
      if(MESS && map_and_sigs && (plot_areas == 1)) {
         draw_signal_map(1);
         show_sigs = 0;
      }

      #ifdef SAT_TRAILS
//       update_sat_trails(); // update az/el position array
      #endif
      if(zoom_screen == 'W') draw_watch(1);
      else {
         if(rotate_screen && (azel_erased == 0) && (AZEL_ROW >= PLOT_ROW)) {
            erase_azel(20);
         }
         draw_azel_plot(2);
      }
      --plot_areas;
      show_watch = 0; 
      show_map = 0;
      map_and_watch = 0;
   }

   if(zoom_screen) ;
   else if(plot_areas <= 0) return;
//sprintf(out, "maw:%d  mas:%d  show_map:%d  show_sigs:%d  areas:%d", map_and_watch,map_and_sigs, show_map,show_sigs, plot_areas);
//DEBUGSTR(out);

   #ifdef SIG_LEVELS
      if((show_sigs && (plot_areas > 0)) || (zoom_screen == 'S')) {
         draw_signal_map(2);      // draw signal level map
         show_sigs = 0;

         if(map_and_sigs) {
            goto do_map;
         }
         --plot_areas;
      }
   #endif

//sprintf(debug_text3, "areas:%d  watch:%d  map:%d sigs:%d lla:%d  azel:%d,%d",
//plot_areas, show_watch,show_map, show_sigs, plot_lla, AZEL_COL,AZEL_ROW);

   #ifdef AZEL_STUFF
      if((zoom_screen == 'M') || (zoom_screen == 'B')) goto do_map;
      else if(zoom_screen) ;
      else if(show_map && (plot_areas > 0)) {
         do_map:
         #ifdef SAT_TRAILS
//          update_sat_trails(); // update az/el position array
         #endif
         draw_azel_plot(3);
         show_map = 0;
         --plot_areas;
      }
   #endif
   map_and_sigs = 0;

   #ifdef ANALOG_CLOCK
      if((zoom_screen == 'W') && (zoom_screen == 'B')) {
         goto anaw;
      }
      else if(zoom_screen) ;
      else if((plot_areas > 0) || (rcvr_type == NO_RCVR) || (rcvr_type == TIDE_RCVR)) {
         if(luxor && luxor_fault()) {
            --plot_areas;
         }
         else if(show_watch) {
            anaw:
small_screen_watch();
            draw_watch(2);      // draw analog watch
            show_watch = 0;
            --plot_areas;
         }
      }
   #endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x216ad9(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x60, %eax
jne 0x154ec1
callq 0x35c90
jmp 0x155746
leaq 0x216ac0(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x51, %eax
jne 0x154eec
leaq 0x217835(%rip), %rax    # 0x36c70c
movl (%rax), %edi
leaq 0x217828(%rip), %rax    # 0x36c708
movl (%rax), %esi
callq 0x14fab0
jmp 0x155746
jmp 0x154eee
leaq 0x245687(%rip), %rax    # 0x39a57c
movl $0x0, (%rax)
leaq 0x122ab6(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x154f19
leaq 0x1256d6(%rip), %rax    # 0x27a5e4
movl $0x0, (%rax)
jmp 0x15503d
leaq 0x2412d8(%rip), %rax    # 0x3961f8
cmpb $0x0, (%rax)
je 0x154f37
leaq 0x1256b8(%rip), %rax    # 0x27a5e4
movl $0x0, (%rax)
jmp 0x15503b
leaq 0x216a4a(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x4c, %eax
jne 0x154f58
leaq 0x125697(%rip), %rax    # 0x27a5e4
movl $0x0, (%rax)
jmp 0x155039
leaq 0x216a29(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x154f76
leaq 0x125679(%rip), %rax    # 0x27a5e4
movl $0x1, (%rax)
jmp 0x155037
leaq 0x122a63(%rip), %rax    # 0x2779e0
movl (%rax), %eax
movl %eax, -0x8(%rbp)
leaq 0x12d79b(%rip), %rax    # 0x282724
imull $0x31a, (%rax), %eax    # imm = 0x31A
movl $0x64, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x8(%rbp), %eax
cmpl %ecx, %eax
jge 0x154feb
leaq 0x245621(%rip), %rax    # 0x39a5c8
cmpb $0x0, (%rax)
je 0x154fbb
leaq 0x125631(%rip), %rax    # 0x27a5e4
movl $0x1, (%rax)
jmp 0x154fe9
leaq 0x122aee(%rip), %rax    # 0x277ab0
cmpq $0x400, (%rax)          # imm = 0x400
jne 0x154fda
leaq 0x125612(%rip), %rax    # 0x27a5e4
movl $0x1, (%rax)
jmp 0x154fe7
leaq 0x125603(%rip), %rax    # 0x27a5e4
movl $0x0, (%rax)
jmp 0x154fe9
jmp 0x155035
leaq 0x2455d6(%rip), %rax    # 0x39a5c8
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x155009
leaq 0x1255e3(%rip), %rax    # 0x27a5e4
movl $0x1, (%rax)
jmp 0x155033
leaq 0x146f0e(%rip), %rax    # 0x29bf1e
cmpb $0x0, (%rax)
je 0x155024
leaq 0x1255c8(%rip), %rax    # 0x27a5e4
movl $0x1, (%rax)
jmp 0x155031
leaq 0x1255b9(%rip), %rax    # 0x27a5e4
movl $0x2, (%rax)
jmp 0x155033
jmp 0x155035
jmp 0x155037
jmp 0x155039
jmp 0x15503b
jmp 0x15503d
leaq 0x1255a4(%rip), %rax    # 0x27a5e8
movb (%rax), %al
movb %al, -0x1(%rbp)
leaq 0x1255a3(%rip), %rax    # 0x27a5f3
movb (%rax), %al
movb %al, -0x2(%rbp)
leaq 0x21692c(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x58, %eax
jne 0x15506c
movb $0x1, -0x2(%rbp)
movb $0x1, -0x1(%rbp)
leaq 0x216915(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x59, %eax
jne 0x15507f
movb $0x1, -0x2(%rbp)
leaq 0x216902(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0x155092
movb $0x1, -0x2(%rbp)
leaq 0x12555c(%rip), %rax    # 0x27a5f5
movb (%rax), %al
movb %al, -0x3(%rbp)
leaq 0x149093(%rip), %rax    # 0x29e138
cmpl $0x0, (%rax)
je 0x15511b
leaq 0x125533(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
je 0x15511b
leaq 0x122923(%rip), %rax    # 0x2779e0
movl (%rax), %eax
movl %eax, -0xc(%rbp)
leaq 0x12d65b(%rip), %rax    # 0x282724
imull $0x31a, (%rax), %eax    # imm = 0x31A
movl $0x64, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0xc(%rbp), %eax
cmpl %ecx, %eax
jge 0x1550ef
leaq 0x1254fd(%rip), %rax    # 0x27a5e4
movl $0x0, (%rax)
jmp 0x155119
leaq 0x146e28(%rip), %rax    # 0x29bf1e
cmpb $0x0, (%rax)
je 0x15510a
leaq 0x1254e2(%rip), %rax    # 0x27a5e4
movl $0x0, (%rax)
jmp 0x155117
leaq 0x1254d3(%rip), %rax    # 0x27a5e4
movl $0x1, (%rax)
jmp 0x155119
jmp 0x15511b
leaq 0x1254ce(%rip), %rax    # 0x27a5f0
movb $0x0, (%rax)
leaq 0x1254c5(%rip), %rax    # 0x27a5f1
movb $0x0, (%rax)
cmpb $0x0, -0x1(%rbp)
je 0x1551d8
cmpb $0x0, -0x2(%rbp)
je 0x1551d8
leaq 0x12549a(%rip), %rax    # 0x27a5e4
cmpl $0x1, (%rax)
je 0x155161
cmpb $0x0, -0x3(%rbp)
jne 0x155161
leaq 0x245334(%rip), %rax    # 0x39a490
cmpb $0x0, (%rax)
je 0x1551d8
leaq 0x125488(%rip), %rax    # 0x27a5f0
movb $0x1, (%rax)
leaq 0x216816(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x1551d6
leaq 0x21680a(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x4b, %eax
je 0x1551d6
leaq 0x2453e7(%rip), %rax    # 0x39a574
movl (%rax), %ecx
leaq 0x2453d6(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %esi
cltd
idivl %esi
addl %eax, %ecx
subl $0x2, %ecx
leaq 0x2453a8(%rip), %rax    # 0x39a554
movl %ecx, (%rax)
leaq 0x2453bb(%rip), %rax    # 0x39a570
movl (%rax), %ecx
leaq 0x2453ae(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %esi
cltd
idivl %esi
addl %eax, %ecx
subl $0x2, %ecx
leaq 0x245384(%rip), %rax    # 0x39a558
movl %ecx, (%rax)
jmp 0x1551d8
leaq 0x2167a9(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x53, %eax
jne 0x1551e9
jmp 0x15525b
leaq 0x216798(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x58, %eax
jne 0x1551fa
jmp 0x155259
leaq 0x216787(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x59, %eax
jne 0x15520b
jmp 0x155257
leaq 0x216776(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0x15521c
jmp 0x155255
cmpb $0x0, -0x2(%rbp)
je 0x155253
cmpb $0x0, -0x3(%rbp)
je 0x155253
movzbl -0x3(%rbp), %eax
cmpl $0x3, %eax
je 0x155253
leaq 0x1253ac(%rip), %rax    # 0x27a5e4
cmpl $0x1, (%rax)
je 0x155249
leaq 0x24524c(%rip), %rax    # 0x39a490
cmpb $0x0, (%rax)
je 0x155253
leaq 0x1253a1(%rip), %rax    # 0x27a5f1
movb $0x1, (%rax)
jmp 0x155255
jmp 0x155257
jmp 0x155259
jmp 0x15525b
leaq 0x125382(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
jne 0x15526c
jmp 0x155746
leaq 0x24521d(%rip), %rax    # 0x39a490
cmpb $0x0, (%rax)
je 0x1552cf
leaq 0x216709(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x1552cf
leaq 0x12532a(%rip), %rax    # 0x27a5b8
cmpb $0x0, (%rax)
je 0x1552a7
movl $0x2, %edi
callq 0x12bcc0
leaq 0x125314(%rip), %rax    # 0x27a5b8
movb $0x0, (%rax)
leaq 0x125336(%rip), %rax    # 0x27a5e4
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x12532a(%rip), %rax    # 0x27a5e4
movl %ecx, (%rax)
leaq 0x125321(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
jg 0x1552cd
jmp 0x155746
jmp 0x1552cf
leaq 0x2166b2(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x42, %eax
jne 0x1552e3
jmp 0x155509
leaq 0x21669e(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x44, %eax
jne 0x155430
leaq 0x1227b3(%rip), %rax    # 0x277ab0
cmpq $0x40000, (%rax)        # imm = 0x40000
jne 0x15531a
movl $0x1, %edi
movl $0x4, %esi
callq 0xed5a0
jmp 0x15542b
leaq 0x12278f(%rip), %rax    # 0x277ab0
cmpq $0x20000, (%rax)        # imm = 0x20000
jne 0x155334
callq 0x1158e0
jmp 0x155429
leaq 0x122775(%rip), %rax    # 0x277ab0
cmpq $0x10000000, (%rax)     # imm = 0x10000000
jne 0x15535d
movl $0x1, %edi
movl $0x3, %esi
movl $0x3e7, %edx            # imm = 0x3E7
callq 0x112630
jmp 0x155427
leaq 0x12274c(%rip), %rax    # 0x277ab0
cmpq $0x1000000, (%rax)      # imm = 0x1000000
jne 0x155386
movl $0x1, %edi
movl $0x3, %esi
movl $0x3e7, %edx            # imm = 0x3E7
callq 0x113570
jmp 0x155425
movabsq $0x1000000000, %rcx     # imm = 0x1000000000
leaq 0x122719(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x1553b2
movl $0x1, %edi
movl $0x3, %esi
movl $0x3e7, %edx            # imm = 0x3E7
callq 0x1129e0
jmp 0x155423
leaq 0x1226f7(%rip), %rax    # 0x277ab0
cmpq $0x8000000, (%rax)      # imm = 0x8000000
jne 0x1553d8
movl $0x1, %edi
movl $0x3, %esi
movl $0x3e7, %edx            # imm = 0x3E7
callq 0x112cb0
jmp 0x155421
leaq 0x1226d1(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
jne 0x1553f9
movl $0x1, %edi
movl $0x4, %esi
callq 0xed9a0
jmp 0x15541f
leaq 0x1226b0(%rip), %rax    # 0x277ab0
cmpq $0x2000000, (%rax)      # imm = 0x2000000
jne 0x15541d
movl $0x1, %edi
movl $0x3, %esi
movl $0x3e7, %edx            # imm = 0x3E7
callq 0x114760
jmp 0x15541f
jmp 0x155421
jmp 0x155423
jmp 0x155425
jmp 0x155427
jmp 0x155429
jmp 0x15542b
jmp 0x155746
leaq 0x216551(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x46, %eax
jne 0x155444
jmp 0x155746
leaq 0x21653d(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x49, %eax
jne 0x15545d
callq 0x155750
jmp 0x155746
leaq 0x216524(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x55, %eax
jne 0x155476
callq 0x155980
jmp 0x155746
leaq 0x21650b(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x56, %eax
jne 0x15548f
callq 0x155b80
jmp 0x155746
leaq 0x2164f2(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x57, %eax
jne 0x1554a0
jmp 0x155509
leaq 0x2164e1(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x58, %eax
je 0x1554be
leaq 0x2164d2(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x59, %eax
jne 0x1554cd
movl $0x1, %edi
callq 0x155dd0
jmp 0x155746
leaq 0x2164b4(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x60, %eax
jne 0x1554e6
callq 0x35c90
jmp 0x155746
leaq 0x21649b(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x1554f7
jmp 0x15558d
leaq 0x1250f2(%rip), %rax    # 0x27a5f0
cmpb $0x0, (%rax)
je 0x15558b
jmp 0x155509
leaq 0x216478(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x57, %eax
jne 0x155524
movl $0x1, %edi
callq 0x14f5a0
jmp 0x155564
leaq 0x1224dd(%rip), %rax    # 0x277a08
cmpl $0x0, (%rax)
je 0x15555a
leaq 0x245045(%rip), %rax    # 0x39a57c
cmpl $0x0, (%rax)
jne 0x15555a
leaq 0x24502d(%rip), %rax    # 0x39a570
movl (%rax), %eax
leaq 0x122510(%rip), %rcx    # 0x277a5c
cmpl (%rcx), %eax
jl 0x15555a
movl $0x14, %edi
callq 0x118d0
movl $0x2, %edi
callq 0x155dd0
leaq 0x125079(%rip), %rax    # 0x27a5e4
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x12506d(%rip), %rax    # 0x27a5e4
movl %ecx, (%rax)
movb $0x0, -0x1(%rbp)
movb $0x0, -0x2(%rbp)
leaq 0x125068(%rip), %rax    # 0x27a5f0
movb $0x0, (%rax)
jmp 0x15558d
jmp 0x15558f
jmp 0x155591
jmp 0x155593
jmp 0x155595
jmp 0x155597
jmp 0x155599
jmp 0x15559b
jmp 0x15559d
jmp 0x15559f
leaq 0x2163e2(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x1555ad
jmp 0x1555c0
leaq 0x125030(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
jg 0x1555be
jmp 0x155746
jmp 0x1555c0
cmpb $0x0, -0x3(%rbp)
je 0x1555d2
leaq 0x125017(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
jg 0x1555e1
leaq 0x2163af(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x53, %eax
jne 0x155612
movl $0x2, %edi
callq 0x156a70
movb $0x0, -0x3(%rbp)
leaq 0x124ffb(%rip), %rax    # 0x27a5f1
cmpb $0x0, (%rax)
je 0x1555fd
jmp 0x155654
leaq 0x124fe0(%rip), %rax    # 0x27a5e4
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x124fd4(%rip), %rax    # 0x27a5e4
movl %ecx, (%rax)
leaq 0x21636f(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x4d, %eax
je 0x155630
leaq 0x216360(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x42, %eax
jne 0x155632
jmp 0x155654
leaq 0x21634f(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x155640
jmp 0x155679
cmpb $0x0, -0x2(%rbp)
je 0x155677
leaq 0x124f97(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
jle 0x155677
jmp 0x155654
movl $0x3, %edi
callq 0x155dd0
movb $0x0, -0x2(%rbp)
leaq 0x124f7b(%rip), %rax    # 0x27a5e4
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x124f6f(%rip), %rax    # 0x27a5e4
movl %ecx, (%rax)
jmp 0x155679
jmp 0x15567b
leaq 0x124f6f(%rip), %rax    # 0x27a5f1
movb $0x0, (%rax)
leaq 0x2162fc(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x57, %eax
jne 0x1556a5
leaq 0x2162ed(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x42, %eax
jne 0x1556a5
jmp 0x155716
leaq 0x2162dc(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x1556b6
jmp 0x155744
leaq 0x124f27(%rip), %rax    # 0x27a5e4
cmpl $0x0, (%rax)
jg 0x1556e2
leaq 0x1223e7(%rip), %rax    # 0x277ab0
cmpq $0x400, (%rax)          # imm = 0x400
je 0x1556e2
leaq 0x1223d7(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x155742
leaq 0x148a35(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x15570e
callq 0xa7e10
cmpb $0x0, %al
je 0x15570e
leaq 0x124ee6(%rip), %rax    # 0x27a5e4
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x124eda(%rip), %rax    # 0x27a5e4
movl %ecx, (%rax)
jmp 0x155740
cmpb $0x0, -0x1(%rbp)
je 0x15573e
jmp 0x155716
callq 0x154cb0
movl $0x2, %edi
callq 0x14f5a0
movb $0x0, -0x1(%rbp)
leaq 0x124eb4(%rip), %rax    # 0x27a5e4
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x124ea8(%rip), %rax    # 0x27a5e4
movl %ecx, (%rax)
jmp 0x155740
jmp 0x155742
jmp 0x155744
jmp 0x155746
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)