// File: /workspace/github_c_makefile_star2_O0/LenShustek[P]miditones/miditones.c
// Function: find_next_note
void find_next_note (int tracknum) {
   unsigned long int delta_ticks;
   int event, chan;
   int note, velocity, controller, pressure, pitchbend, instrument;
   int meta_cmd, meta_length;
   unsigned long int sysex_length;
   char *tag;

   struct track_status *t = &track[tracknum];   // our track status structure
   while (t->trkptr < t->trkend) {
      delta_ticks = get_varlen (&t->trkptr);
      t->time += delta_ticks;
      if (logparse) {
         fprintf(logfile, "# trk %d ", tracknum);
         if (loggen) fprintf(logfile, "at ticks+%lu=%lu: ", delta_ticks, t->time);
         else {
            if (delta_ticks > 0) fprintf(logfile, "ticks+%-5lu%7lu  ", delta_ticks, t->time);
            else fprintf(logfile, "                    "); } }

      if (*t->trkptr < 0x80) event = t->last_event;  // using "running status": same event as before
      else event = *t->trkptr++; // otherwise get new "status" (event type) */

      if (event == 0xff) { // meta-event
         meta_cmd = *t->trkptr++;
         meta_length = get_varlen (&t->trkptr);
         switch (meta_cmd) {
         case 0x00:
            if (logparse) fprintf (logfile, "sequence number %d\n", rev_short (*(unsigned short *) t->trkptr));
            break;
         case 0x01:
            tag = "description"; goto show_text;
         case 0x02:
            tag = "copyright"; goto show_text;
         case 0x03:
            tag = "track name";
            if (tracknum == 0 && !parseonly && !binaryoutput && !asm_output) {
               /* Incredibly, MIDI has no standard for recording the name of the piece!
                  Track 0's "trackname" is often used for that so we output it to the C file as documentation. */
               fprintf (outfile, "// ");
               for (int i = 0; i < meta_length; ++i) {
                  int ch = t->trkptr[i];
                  fprintf (outfile, "%c", isprint (ch) ? ch : '?'); }
               fprintf (outfile, "\n"); }
            goto show_text;
         case 0x04:
            tag = "instrument name"; goto show_text;
         case 0x05:
            tag = "lyric"; goto show_text;
         case 0x06:
            tag = "marked point"; goto show_text;
         case 0x07:
            tag = "cue point"; goto show_text;
         case 0x08:
            tag = "program name"; goto show_text;
         case 0x09:
            tag = "device (port) name";
show_text:
            if (logparse) {
               fprintf (logfile, "meta cmd %02X, length %d, %s: \"", meta_cmd, meta_length, tag);
               for (int i = 0; i < meta_length; ++i) {
                  int ch = t->trkptr[i];
                  fprintf (logfile, "%c", isprint (ch) ? ch : '?'); }
               fprintf (logfile, "\"\n"); }
            break;
         case 0x20:
            if (logparse) fprintf (logfile, "channel prefix %d\n", *t->trkptr);
            break;
         case 0x21:
            if (logparse) fprintf(logfile, "MIDI port %d\n", *t->trkptr);
            break;
         case 0x2f:
            if (logparse) fprintf (logfile, "end of track\n");
            break;
         case 0x51:    // tempo: 3 byte big-endian integer, not a varlen integer!
            t->cmd = CMD_TEMPO;
            t->tempo = rev_long (*(uint32_t *) (t->trkptr - 1)) & 0xffffffL;
            if (logparse) fprintf (logfile, "set tempo %ld usec/qnote\n", t->tempo);
            t->trkptr += meta_length;
            return;
         case 0x54:
            if (logparse) fprintf (logfile, "SMPTE offset %08" PRIx32 "\n",
                                      rev_long (*(uint32_t *) t->trkptr));
            break;
         case 0x58:
            if (logparse) fprintf (logfile, "time signature %08" PRIx32 "\n",
                                      rev_long (*(uint32_t *) t->trkptr));
            break;
         case 0x59:
            if (logparse) fprintf (logfile, "key signature %04X\n", rev_short (*(unsigned short *) t->trkptr));
            break;
         case 0x7f:
            tag = "sequencer data"; goto show_hex;
         default:              /* unknown meta command */
            tag = "???";
show_hex:
            if (logparse) {
               fprintf (logfile, "meta cmd %02X, length %d, %s: ", meta_cmd, meta_length, tag);
               for (int i = 0; i < meta_length; ++i)
                  fprintf (logfile, "%02X ", t->trkptr[i]);
               fprintf (logfile, "\n"); }
            break; }
         t->trkptr += meta_length; }

      else if (event < 0x80) midi_error ("Unknown MIDI event type", t->trkptr);

      else {
         if (event < 0xf0)
            t->last_event = event;      // remember "running status" if not meta or sysex event
         t->chan = chan = event & 0xf;
         switch (event >> 4) {
         case 0x8: // note off
            t->note = *t->trkptr++;
            t->volume = *t->trkptr++;
note_off:   if (logparse) fprintf(logfile, "note %d (0x%02X) off, channel %d, volume %d\n", t->note, t->note, chan, t->volume);
            if ((1 << chan) & channel_mask  // we're processing this channel
                  && (!percussion_ignore || chan != PERCUSSION_TRACK)) {  // and not ignoring percussion
               if (!instrumentoutput) t->chan = 0; // if no instruments, force all notes to channel 0
               t->cmd = CMD_STOPNOTE;    /* stop processing and return */
               return; }
            break;
         case 0x9: // note on
            t->note = *t->trkptr++;
            t->volume = *t->trkptr++;
            if (t->volume == 0)  // some scores use note-on with zero velocity for off!
               goto note_off;
            if (logparse) fprintf(logfile, "note %d (0x%02X) on,  channel %d, volume %d\n", t->note, t->note, chan, t->volume);
            if ((1 << chan) & channel_mask // we're processing this channel
                  && (!percussion_ignore || chan != PERCUSSION_TRACK)) {  // and not ignoring percussion
               if (!instrumentoutput) t->chan = 0; // if no instruments, force all notes to channel 0
               t->cmd = CMD_PLAYNOTE;    /* stop processing and return */
               return; }
            break;
         case 0xa: // key pressure
            note = *t->trkptr++;
            velocity = *t->trkptr++;
            if (logparse) fprintf (logfile, "channel %d: note %d (0x%02X) has key pressure %d\n", chan, note, note, velocity);
            break;
         case 0xb: // control value change
            controller = *t->trkptr++;
            velocity = *t->trkptr++;
            if (logparse) fprintf (logfile, "channel %d: change control value of controller %d to %d\n", chan, controller, velocity);
            break;
         case 0xc: // program patch, ie which instrument
            instrument = *t->trkptr++;
            channel[chan].instrument = instrument;    // record new instrument for this channel
            if (logparse) fprintf (logfile, "channel %d: program patch to instrument %d\n", chan, instrument);
            break;
         case 0xd: // channel pressure
            pressure = *t->trkptr++;
            if (logparse) fprintf (logfile, "channel %d: after-touch pressure is %d\n", chan, pressure);
            break;
         case 0xe: // pitch wheel change
            pitchbend = *t->trkptr++ | (*t->trkptr++ << 7);
            if (logparse) fprintf (logfile, "pitch wheel change to %d\n", pitchbend);
            break;
         case 0xf: // sysex event
            sysex_length = get_varlen (&t->trkptr);
            if (logparse) fprintf (logfile, "SysEx event %d with %ld bytes\n", event, sysex_length);
            t->trkptr += sysex_length;
            break;
         default:
            midi_error ("Unknown MIDI command", t->trkptr); } } }
   t->cmd = CMD_TRACKDONE;   //no more events to process on this track
   ++tracks_done; }

// Assembly:
subq $0xb8, %rsp
movl %edi, 0xb4(%rsp)
movslq 0xb4(%rsp), %rcx
leaq 0x7553(%rip), %rax      # 0xb500
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq 0x68(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x4ae9
movq 0x68(%rsp), %rdi
callq 0x3f00
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rcx
movq 0x68(%rsp), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
testb $0x1, 0x7307(%rip)      # 0xb305
je 0x409d
movq 0x730d(%rip), %rdi      # 0xb318
movl 0xb4(%rsp), %edx
leaq 0x41ea(%rip), %rsi      # 0x8203
movb $0x0, %al
callq 0x10a0
testb $0x1, 0x72dc(%rip)      # 0xb303
je 0x4051
movq 0x72e8(%rip), %rdi      # 0xb318
movq 0xa8(%rsp), %rdx
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rcx
leaq 0x41c5(%rip), %rsi      # 0x820d
movb $0x0, %al
callq 0x10a0
jmp 0x409b
cmpq $0x0, 0xa8(%rsp)
jbe 0x4084
movq 0x72b5(%rip), %rdi      # 0xb318
movq 0xa8(%rsp), %rdx
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rcx
leaq 0x41a5(%rip), %rsi      # 0x8220
movb $0x0, %al
callq 0x10a0
jmp 0x4099
movq 0x728d(%rip), %rdi      # 0xb318
leaq 0x41a0(%rip), %rsi      # 0x8232
movb $0x0, %al
callq 0x10a0
jmp 0x409b
jmp 0x409d
movq 0x68(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
cmpl $0x80, %eax
jge 0x40c1
movq 0x68(%rsp), %rax
movzbl 0x28(%rax), %eax
movl %eax, 0xa4(%rsp)
jmp 0x40dd
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0xa4(%rsp)
cmpl $0xff, 0xa4(%rsp)
jne 0x4646
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
incq %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x84(%rsp)
movq 0x68(%rsp), %rdi
callq 0x3f00
movl %eax, 0x80(%rsp)
movl 0x84(%rsp), %eax
movq %rax, 0x48(%rsp)
subq $0x7f, %rax
ja 0x4589
movq 0x48(%rsp), %rax
leaq 0x2ee8(%rip), %rcx      # 0x7024
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testb $0x1, 0x71b9(%rip)      # 0xb305
je 0x4180
movq 0x71c3(%rip), %rax      # 0xb318
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movzwl (%rax), %edi
callq 0x2140
movq 0x40(%rsp), %rdi
movzwl %ax, %edx
leaq 0x40ce(%rip), %rsi      # 0x8247
movb $0x0, %al
callq 0x10a0
jmp 0x4629
leaq 0x40cf(%rip), %rax      # 0x825b
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x40ca(%rip), %rax      # 0x8267
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x40c3(%rip), %rax      # 0x8271
movq %rax, 0x70(%rsp)
cmpl $0x0, 0xb4(%rsp)
jne 0x429f
testb $0x1, 0x713e(%rip)      # 0xb306
jne 0x429f
testb $0x1, 0x712b(%rip)      # 0xb300
jne 0x429f
testb $0x1, 0x7128(%rip)      # 0xb30a
jne 0x429f
movq 0x7141(%rip), %rdi      # 0xb330
leaq 0x4086(%rip), %rsi      # 0x827c
movb $0x0, %al
callq 0x10a0
movl $0x0, 0x64(%rsp)
movl 0x64(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x428a
movq 0x68(%rsp), %rax
movq (%rax), %rax
movslq 0x64(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, 0x60(%rsp)
movq 0x7102(%rip), %rax      # 0xb330
movq %rax, 0x38(%rsp)
callq 0x1150
movq (%rax), %rax
movslq 0x60(%rsp), %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x4258
movl 0x60(%rsp), %eax
movl %eax, 0x34(%rsp)
jmp 0x4263
movl $0x3f, %eax
movl %eax, 0x34(%rsp)
jmp 0x4263
movq 0x38(%rsp), %rdi
movl 0x34(%rsp), %edx
leaq 0x400d(%rip), %rsi      # 0x8280
movb $0x0, %al
callq 0x10a0
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x64(%rsp)
jmp 0x4205
movq 0x709f(%rip), %rdi      # 0xb330
leaq 0x45bd(%rip), %rsi      # 0x8855
movb $0x0, %al
callq 0x10a0
jmp 0x42f3
leaq 0x3fdb(%rip), %rax      # 0x8283
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x3fdd(%rip), %rax      # 0x8293
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x3fd5(%rip), %rax      # 0x8299
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x3fd4(%rip), %rax      # 0x82a6
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x3fd0(%rip), %rax      # 0x82b0
movq %rax, 0x70(%rsp)
jmp 0x42f3
leaq 0x3fcf(%rip), %rax      # 0x82bd
movq %rax, 0x70(%rsp)
testb $0x1, 0x700b(%rip)      # 0xb305
je 0x43ca
movq 0x7011(%rip), %rdi      # 0xb318
movl 0x84(%rsp), %edx
movl 0x80(%rsp), %ecx
movq 0x70(%rsp), %r8
leaq 0x3faf(%rip), %rsi      # 0x82d0
movb $0x0, %al
callq 0x10a0
movl $0x0, 0x5c(%rsp)
movl 0x5c(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x43b5
movq 0x68(%rsp), %rax
movq (%rax), %rax
movslq 0x5c(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, 0x58(%rsp)
movq 0x6fbf(%rip), %rax      # 0xb318
movq %rax, 0x28(%rsp)
callq 0x1150
movq (%rax), %rax
movslq 0x58(%rsp), %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x4383
movl 0x58(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0x438e
movl $0x3f, %eax
movl %eax, 0x24(%rsp)
jmp 0x438e
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %edx
leaq 0x3ee2(%rip), %rsi      # 0x8280
movb $0x0, %al
callq 0x10a0
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x4330
movq 0x6f5c(%rip), %rdi      # 0xb318
leaq 0x3f2d(%rip), %rsi      # 0x82f0
movb $0x0, %al
callq 0x10a0
jmp 0x4629
testb $0x1, 0x6f2f(%rip)      # 0xb305
je 0x43f8
movq 0x6f39(%rip), %rdi      # 0xb318
movq 0x68(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %edx
leaq 0x3f02(%rip), %rsi      # 0x82f3
movb $0x0, %al
callq 0x10a0
jmp 0x4629
testb $0x1, 0x6f01(%rip)      # 0xb305
je 0x4426
movq 0x6f0b(%rip), %rdi      # 0xb318
movq 0x68(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %edx
leaq 0x3ee7(%rip), %rsi      # 0x8306
movb $0x0, %al
callq 0x10a0
jmp 0x4629
testb $0x1, 0x6ed3(%rip)      # 0xb305
je 0x4449
movq 0x6edd(%rip), %rdi      # 0xb318
leaq 0x3ed2(%rip), %rsi      # 0x8314
movb $0x0, %al
callq 0x10a0
jmp 0x4629
movq 0x68(%rsp), %rax
movb $-0x2, 0x24(%rax)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movl -0x1(%rax), %edi
callq 0x2170
movl %eax, %eax
movl %eax, %ecx
andq $0xffffff, %rcx         # imm = 0xFFFFFF
movq 0x68(%rsp), %rax
movq %rcx, 0x18(%rax)
testb $0x1, 0x6e83(%rip)      # 0xb305
je 0x44a2
movq 0x6e8d(%rip), %rdi      # 0xb318
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rdx
leaq 0x3e87(%rip), %rsi      # 0x8322
movb $0x0, %al
callq 0x10a0
movl 0x80(%rsp), %edx
movq 0x68(%rsp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
jmp 0x4b01
testb $0x1, 0x6e3f(%rip)      # 0xb305
je 0x44f8
movq 0x6e49(%rip), %rax      # 0xb318
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movl (%rax), %edi
callq 0x2170
movq 0x18(%rsp), %rdi
movl %eax, %edx
leaq 0x3e4b(%rip), %rsi      # 0x833c
movb $0x0, %al
callq 0x10a0
jmp 0x4629
testb $0x1, 0x6e01(%rip)      # 0xb305
je 0x4536
movq 0x6e0b(%rip), %rax      # 0xb318
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movl (%rax), %edi
callq 0x2170
movq 0x10(%rsp), %rdi
movl %eax, %edx
leaq 0x3e20(%rip), %rsi      # 0x834f
movb $0x0, %al
callq 0x10a0
jmp 0x4629
testb $0x1, 0x6dc3(%rip)      # 0xb305
je 0x4576
movq 0x6dcd(%rip), %rax      # 0xb318
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movzwl (%rax), %edi
callq 0x2140
movq 0x8(%rsp), %rdi
movzwl %ax, %edx
leaq 0x3df5(%rip), %rsi      # 0x8364
movb $0x0, %al
callq 0x10a0
jmp 0x4629
leaq 0x3df6(%rip), %rax      # 0x8378
movq %rax, 0x70(%rsp)
jmp 0x4595
leaq 0x3b6c(%rip), %rax      # 0x80fc
movq %rax, 0x70(%rsp)
testb $0x1, 0x6d69(%rip)      # 0xb305
je 0x4627
movq 0x6d6f(%rip), %rdi      # 0xb318
movl 0x84(%rsp), %edx
movl 0x80(%rsp), %ecx
movq 0x70(%rsp), %r8
leaq 0x3dc4(%rip), %rsi      # 0x8387
movb $0x0, %al
callq 0x10a0
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x4612
movq 0x6d32(%rip), %rdi      # 0xb318
movq 0x68(%rsp), %rax
movq (%rax), %rax
movslq 0x54(%rsp), %rcx
movzbl (%rax,%rcx), %edx
leaq 0x35f6(%rip), %rsi      # 0x7bf4
movb $0x0, %al
callq 0x10a0
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0x45d2
movq 0x6cff(%rip), %rdi      # 0xb318
leaq 0x4235(%rip), %rsi      # 0x8855
movb $0x0, %al
callq 0x10a0
jmp 0x4629
movl 0x80(%rsp), %edx
movq 0x68(%rsp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
jmp 0x4ae4
cmpl $0x80, 0xa4(%rsp)
jge 0x466c
movq 0x68(%rsp), %rax
movq (%rax), %rsi
leaq 0x3d44(%rip), %rdi      # 0x83a6
callq 0x1ce0
jmp 0x4ae2
cmpl $0xf0, 0xa4(%rsp)
jge 0x468a
movl 0xa4(%rsp), %eax
movb %al, %cl
movq 0x68(%rsp), %rax
movb %cl, 0x28(%rax)
movl 0xa4(%rsp), %eax
andl $0xf, %eax
movl %eax, 0xa0(%rsp)
movb %al, %cl
movq 0x68(%rsp), %rax
movb %cl, 0x25(%rax)
movl 0xa4(%rsp), %eax
sarl $0x4, %eax
addl $-0x8, %eax
movl %eax, %ecx
movq %rcx, (%rsp)
subl $0x7, %eax
ja 0x4acc
movq (%rsp), %rax
leaq 0x2938(%rip), %rcx      # 0x7004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb (%rax), %cl
movq 0x68(%rsp), %rax
movb %cl, 0x26(%rax)
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb (%rax), %cl
movq 0x68(%rsp), %rax
movb %cl, 0x27(%rax)
testb $0x1, 0x6bf1(%rip)      # 0xb305
je 0x474f
movq 0x6bfb(%rip), %rdi      # 0xb318
movq 0x68(%rsp), %rax
movzbl 0x26(%rax), %edx
movq 0x68(%rsp), %rax
movzbl 0x26(%rax), %ecx
movl 0xa0(%rsp), %r8d
movq 0x68(%rsp), %rax
movzbl 0x27(%rax), %r9d
leaq 0x3c76(%rip), %rsi      # 0x83be
movb $0x0, %al
callq 0x10a0
movl 0xa0(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
andl 0x697d(%rip), %eax      # 0xb0e0
cmpl $0x0, %eax
je 0x479b
testb $0x1, 0x6b98(%rip)      # 0xb307
je 0x477b
cmpl $0x9, 0xa0(%rsp)
je 0x479b
testb $0x1, 0x6b82(%rip)      # 0xb304
jne 0x478d
movq 0x68(%rsp), %rax
movb $0x0, 0x25(%rax)
movq 0x68(%rsp), %rax
movb $-0x80, 0x24(%rax)
jmp 0x4b01
jmp 0x4ae0
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb (%rax), %cl
movq 0x68(%rsp), %rax
movb %cl, 0x26(%rax)
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb (%rax), %cl
movq 0x68(%rsp), %rax
movb %cl, 0x27(%rax)
movq 0x68(%rsp), %rax
movzbl 0x27(%rax), %eax
cmpl $0x0, %eax
jne 0x47eb
jmp 0x470d
testb $0x1, 0x6b13(%rip)      # 0xb305
je 0x482d
movq 0x6b1d(%rip), %rdi      # 0xb318
movq 0x68(%rsp), %rax
movzbl 0x26(%rax), %edx
movq 0x68(%rsp), %rax
movzbl 0x26(%rax), %ecx
movl 0xa0(%rsp), %r8d
movq 0x68(%rsp), %rax
movzbl 0x27(%rax), %r9d
leaq 0x3bc5(%rip), %rsi      # 0x83eb
movb $0x0, %al
callq 0x10a0
movl 0xa0(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
andl 0x689f(%rip), %eax      # 0xb0e0
cmpl $0x0, %eax
je 0x4879
testb $0x1, 0x6aba(%rip)      # 0xb307
je 0x4859
cmpl $0x9, 0xa0(%rsp)
je 0x4879
testb $0x1, 0x6aa4(%rip)      # 0xb304
jne 0x486b
movq 0x68(%rsp), %rax
movb $0x0, 0x25(%rax)
movq 0x68(%rsp), %rax
movb $-0x70, 0x24(%rax)
jmp 0x4b01
jmp 0x4ae0
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x9c(%rsp)
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x98(%rsp)
testb $0x1, 0x6a48(%rip)      # 0xb305
je 0x48f2
movq 0x6a52(%rip), %rdi      # 0xb318
movl 0xa0(%rsp), %edx
movl 0x9c(%rsp), %ecx
movl 0x9c(%rsp), %r8d
movl 0x98(%rsp), %r9d
leaq 0x3b2d(%rip), %rsi      # 0x8418
movb $0x0, %al
callq 0x10a0
jmp 0x4ae0
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x94(%rsp)
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x98(%rsp)
testb $0x1, 0x69cf(%rip)      # 0xb305
je 0x4963
movq 0x69d9(%rip), %rdi      # 0xb318
movl 0xa0(%rsp), %edx
movl 0x94(%rsp), %ecx
movl 0x98(%rsp), %r8d
leaq 0x3aee(%rip), %rsi      # 0x844a
movb $0x0, %al
callq 0x10a0
jmp 0x4ae0
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x88(%rsp)
movl 0x88(%rsp), %ecx
movslq 0xa0(%rsp), %rdx
leaq 0x6fe6(%rip), %rax      # 0xb980
imulq $0x194, %rdx, %rdx      # imm = 0x194
addq %rdx, %rax
movl %ecx, (%rax)
testb $0x1, 0x6958(%rip)      # 0xb305
je 0x49d2
movq 0x6962(%rip), %rdi      # 0xb318
movl 0xa0(%rsp), %edx
movl 0x88(%rsp), %ecx
leaq 0x3ab8(%rip), %rsi      # 0x8483
movb $0x0, %al
callq 0x10a0
jmp 0x4ae0
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movl %eax, 0x90(%rsp)
testb $0x1, 0x690b(%rip)      # 0xb305
je 0x4a1f
movq 0x6915(%rip), %rdi      # 0xb318
movl 0xa0(%rsp), %edx
movl 0x90(%rsp), %ecx
leaq 0x3a97(%rip), %rsi      # 0x84af
movb $0x0, %al
callq 0x10a0
jmp 0x4ae0
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movzbl (%rax), %eax
movq 0x68(%rsp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
movzbl (%rcx), %ecx
shll $0x7, %ecx
orl %ecx, %eax
movl %eax, 0x8c(%rsp)
testb $0x1, 0x68a4(%rip)      # 0xb305
je 0x4a7f
movq 0x68ae(%rip), %rdi      # 0xb318
movl 0x8c(%rsp), %edx
leaq 0x3a5f(%rip), %rsi      # 0x84d7
movb $0x0, %al
callq 0x10a0
jmp 0x4ae0
movq 0x68(%rsp), %rdi
callq 0x3f00
movq %rax, 0x78(%rsp)
testb $0x1, 0x686e(%rip)      # 0xb305
je 0x4aba
movq 0x6878(%rip), %rdi      # 0xb318
movl 0xa4(%rsp), %edx
movq 0x78(%rsp), %rcx
leaq 0x3a3e(%rip), %rsi      # 0x84f1
movb $0x0, %al
callq 0x10a0
movq 0x78(%rsp), %rcx
movq 0x68(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x4ae0
movq 0x68(%rsp), %rax
movq (%rax), %rsi
leaq 0x3a35(%rip), %rdi      # 0x8510
callq 0x1ce0
jmp 0x4ae2
jmp 0x4ae4
jmp 0x3fb9
movq 0x68(%rsp), %rax
movb $-0x1, 0x24(%rax)
movl 0x6778(%rip), %eax      # 0xb270
addl $0x1, %eax
movl %eax, 0x676f(%rip)      # 0xb270
addq $0xb8, %rsp
retq
nopl (%rax)