// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movslq %edi, %rax
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x606a(%rip), %rdx      # 0x93c0
leaq (%rdx,%rcx), %rbp
movq (%rcx,%rdx), %rax
cmpq 0x8(%rcx,%rdx), %rax
jae 0x3b5e
movl %edi, %r14d
leaq 0x28(%rbp), %r15
xorl %ecx, %ecx
xorl %edx, %edx
movl %edi, 0xc(%rsp)
movq %r15, 0x10(%rsp)
movq %rax, %rsi
incq %rax
movq %rax, (%rbp)
movzbl (%rsi), %esi
movq %rdx, %rdi
shlq $0x7, %rdi
movl %esi, %edx
andl $0x7f, %edx
orq %rdi, %rdx
testb %sil, %sil
cmovnsq %rdx, %rbx
movq %rbx, %r12
jns 0x33af
incl %ecx
movq %rdx, %r12
cmpl $0x4, %ecx
jne 0x337d
addq %r12, 0x10(%rbp)
cmpb $0x1, 0x5e0b(%rip)      # 0x91c5
jne 0x3419
movq 0x5e15(%rip), %rdi      # 0x91d8
leaq 0x2c85(%rip), %rsi      # 0x604f
movl %r14d, %edx
xorl %eax, %eax
callq 0x10b0
cmpb $0x1, 0x5de8(%rip)      # 0x91c3
jne 0x33f1
movq 0x5df4(%rip), %rdi      # 0x91d8
movq 0x10(%rbp), %rcx
leaq 0x2c6a(%rip), %rsi      # 0x6059
jmp 0x340f
movq 0x5de0(%rip), %rax      # 0x91d8
testq %r12, %r12
je 0x3585
movq 0x10(%rbp), %rcx
movq %rax, %rdi
leaq 0x2c5d(%rip), %rsi      # 0x606c
movq %r12, %rdx
xorl %eax, %eax
callq 0x10b0
movq (%rbp), %rax
cmpb $0x0, (%rax)
movq %r15, %rcx
jns 0x3430
leaq 0x1(%rax), %rcx
movq %rcx, (%rbp)
movq %rax, %rcx
movzbl (%rcx), %edx
cmpl $0xff, %edx
je 0x3492
testb %dl, %dl
jns 0x3bd7
cmpb $-0x11, %dl
ja 0x344b
movb %dl, 0x28(%rbp)
movl %edx, %r12d
andl $0xf, %r12d
movb %r12b, 0x25(%rbp)
movl %edx, %ecx
shrl $0x4, %ecx
movq (%rbp), %rax
addl $-0x8, %ecx
leaq 0x1b9b(%rip), %rsi      # 0x5004
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
leaq 0x1(%rax), %rcx
movq %rcx, (%rbp)
movb (%rax), %cl
movb %cl, 0x26(%rbp)
leaq 0x2(%rax), %rcx
movq %rcx, (%rbp)
movb 0x1(%rax), %al
movb %al, 0x27(%rbp)
jmp 0x3714
movq (%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbp)
movzbl (%rax), %r13d
leaq 0x2(%rax), %rdx
xorl %edi, %edi
xorl %r12d, %r12d
movq %rdi, %rcx
addq %rdx, %rdi
movq %rdi, (%rbp)
movzbl -0x1(%rdx,%rcx), %edi
movq %r12, %r8
shlq $0x7, %r8
movl %edi, %r12d
andl $0x7f, %r12d
orq %r8, %r12
testb %dil, %dil
cmovnsq %r12, %rsi
jns 0x34df
leaq 0x1(%rcx), %rdi
cmpl $0x4, %edi
jne 0x34ab
jmp 0x34e2
movq %rsi, %r12
cmpl $0x20, %r13d
jg 0x3538
cmpl $0x9, %r13d
ja 0x3853
movl %r13d, %edx
leaq 0x1b28(%rip), %rsi      # 0x5024
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
leaq 0x2b9d(%rip), %r8       # 0x60a7
jmpq *%rdx
cmpb $0x1, 0x5cb2(%rip)      # 0x91c5
jne 0x3b42
movq 0x5cb8(%rip), %rdi      # 0x91d8
movzwl 0x2(%rax,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %edx
leaq 0x2b60(%rip), %rsi      # 0x6093
jmp 0x3977
cmpl $0x50, %r13d
jle 0x37e3
leal -0x51(%r13), %edx
cmpl $0x8, %edx
ja 0x387e
leaq 0x1af6(%rip), %rsi      # 0x504c
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
cmpb $0x1, 0x5c5f(%rip)      # 0x91c5
jne 0x3b42
movq 0x5c65(%rip), %rdi      # 0x91d8
movl 0x2(%rax,%rcx), %edx
bswapl %edx
leaq 0x2c05(%rip), %rsi      # 0x6185
jmp 0x3977
movl $0x14, %esi
movl $0x1, %edx
leaq 0x2ae8(%rip), %rdi      # 0x607e
movq %rax, %rcx
callq 0x1150
jmp 0x3419
leaq 0x1(%rax), %rcx
movq %rcx, (%rbp)
movzbl (%rax), %ecx
imulq $0x194, %r12, %rax      # imm = 0x194
leaq 0x6284(%rip), %rdx      # 0x9840
movl %ecx, (%rax,%rdx)
cmpb $0x1, 0x5bff(%rip)      # 0x91c5
jne 0x3b49
movq 0x5c05(%rip), %rdi      # 0x91d8
leaq 0x2cf2(%rip), %rsi      # 0x62cc
jmp 0x3792
leaq 0x1(%rax), %rdx
movq %rdx, (%rbp)
movzbl (%rax), %ecx
addq $0x2, %rax
movq %rax, (%rbp)
cmpb $0x1, 0x5bcc(%rip)      # 0x91c5
jne 0x3b49
movzbl (%rdx), %r9d
movq 0x5bce(%rip), %rdi      # 0x91d8
leaq 0x2c50(%rip), %rsi      # 0x6261
movl %r12d, %edx
movl %ecx, %r8d
xorl %eax, %eax
callq 0x10b0
jmp 0x3b49
leaq 0x1(%rax), %rdx
movq %rdx, (%rbp)
movzbl (%rax), %ecx
addq $0x2, %rax
movq %rax, (%rbp)
cmpb $0x1, 0x5b88(%rip)      # 0x91c5
jne 0x3b49
movzbl (%rdx), %r8d
movq 0x5b8a(%rip), %rdi      # 0x91d8
leaq 0x2c3e(%rip), %rsi      # 0x6293
movl %r12d, %edx
xorl %eax, %eax
callq 0x10b0
jmp 0x3b49
incq %rax
movl $0x4, %ecx
xorl %r12d, %r12d
movq %rax, (%rbp)
movzbl -0x1(%rax), %edi
movq %r12, %r8
shlq $0x7, %r8
movl %edi, %r12d
andl $0x7f, %r12d
orq %r8, %r12
testb %dil, %dil
cmovnsq %r12, %rsi
jns 0x3826
incq %rax
decl %ecx
jne 0x366f
jmp 0x3829
leaq 0x1(%rax), %rcx
movq %rcx, (%rbp)
movzbl (%rax), %ecx
movb %cl, 0x26(%rbp)
leaq 0x2(%rax), %rdx
movq %rdx, (%rbp)
movzbl 0x1(%rax), %r9d
movb %r9b, 0x27(%rbp)
testl %r9d, %r9d
je 0x3714
cmpb $0x1, 0x5af9(%rip)      # 0x91c5
jne 0x36e8
movq 0x5b03(%rip), %rdi      # 0x91d8
leaq 0x2b58(%rip), %rsi      # 0x6234
movl %ecx, %edx
movl %r12d, %r8d
xorl %eax, %eax
callq 0x10b0
movl 0x5a02(%rip), %eax      # 0x90f0
btl %r12d, %eax
jae 0x3b49
cmpl $0x9, %r12d
jne 0x3b8a
cmpb $0x0, 0x5abe(%rip)      # 0x91c7
jne 0x3b49
jmp 0x3b8a
cmpb $0x1, 0x5aaa(%rip)      # 0x91c5
jne 0x3740
movq 0x5ab4(%rip), %rdi      # 0x91d8
movzbl 0x26(%rbp), %ecx
movzbl 0x27(%rbp), %r9d
leaq 0x2ad3(%rip), %rsi      # 0x6207
movl %ecx, %edx
movl %r12d, %r8d
xorl %eax, %eax
callq 0x10b0
movl 0x59aa(%rip), %eax      # 0x90f0
btl %r12d, %eax
jae 0x3b49
cmpl $0x9, %r12d
jne 0x3b77
cmpb $0x0, 0x5a66(%rip)      # 0x91c7
jne 0x3b49
jmp 0x3b77
leaq 0x1(%rax), %rcx
movq %rcx, (%rbp)
cmpb $0x1, 0x5a4a(%rip)      # 0x91c5
jne 0x3b49
movzbl (%rax), %ecx
movq 0x5a4d(%rip), %rdi      # 0x91d8
leaq 0x2b66(%rip), %rsi      # 0x62f8
movl %r12d, %edx
xorl %eax, %eax
callq 0x10b0
jmp 0x3b49
leaq 0x1(%rax), %rdx
movq %rdx, (%rbp)
movzbl (%rax), %ecx
addq $0x2, %rax
movq %rax, (%rbp)
cmpb $0x1, 0x5a0a(%rip)      # 0x91c5
jne 0x3b49
movzbl (%rdx), %edx
shll $0x7, %edx
orl %ecx, %edx
movq 0x5a08(%rip), %rdi      # 0x91d8
leaq 0x2b49(%rip), %rsi      # 0x6320
xorl %eax, %eax
callq 0x10b0
jmp 0x3b49
cmpl $0x21, %r13d
je 0x3957
cmpl $0x2f, %r13d
jne 0x388b
cmpb $0x1, 0x59c7(%rip)      # 0x91c5
jne 0x3b42
movq 0x59cd(%rip), %rcx      # 0x91d8
movl $0xd, %esi
movl $0x1, %edx
leaq 0x2941(%rip), %rdi      # 0x615d
callq 0x1150
jmp 0x3b42
movq %rsi, %r12
cmpb $0x1, 0x5995(%rip)      # 0x91c5
jne 0x384a
movq 0x599f(%rip), %rdi      # 0x91d8
leaq 0x2afa(%rip), %rsi      # 0x633a
movq %r12, %rcx
xorl %eax, %eax
callq 0x10b0
addq %r12, (%rbp)
jmp 0x3b49
cmpl $0x20, %r13d
jne 0x388b
cmpb $0x1, 0x5965(%rip)      # 0x91c5
jne 0x3b42
movq 0x596b(%rip), %rdi      # 0x91d8
movzbl 0x2(%rax,%rcx), %edx
leaq 0x28c3(%rip), %rsi      # 0x613c
jmp 0x3977
leaq 0x293c(%rip), %r8       # 0x61c1
cmpl $0x7f, %r13d
je 0x3892
leaq 0x26b6(%rip), %r8       # 0x5f48
cmpb $0x1, 0x592c(%rip)      # 0x91c5
jne 0x3b42
movq 0x5932(%rip), %rdi      # 0x91d8
leaq 0x2923(%rip), %rsi      # 0x61d0
movl %r13d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x10b0
testl %r12d, %r12d
leaq 0x217c(%rip), %r13      # 0x5a40
jle 0x38f5
movl %r12d, %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %r15d, %r15d
movq 0x58fe(%rip), %rdi      # 0x91d8
movq (%rbp), %rax
movzbl (%rax,%r15), %edx
movq %r13, %rsi
xorl %eax, %eax
callq 0x10b0
incq %r15
cmpq %r15, %r14
jne 0x38d3
movq 0x58dc(%rip), %rsi      # 0x91d8
movl $0xa, %edi
callq 0x1090
jmp 0x3b38
cmpb $0x1, 0x58b3(%rip)      # 0x91c5
jne 0x3b42
movq 0x58b9(%rip), %rdi      # 0x91d8
movzwl 0x2(%rax,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %edx
leaq 0x287b(%rip), %rsi      # 0x61ad
jmp 0x3977
cmpb $0x1, 0x588a(%rip)      # 0x91c5
jne 0x3b42
movq 0x5890(%rip), %rdi      # 0x91d8
movl 0x2(%rax,%rcx), %edx
bswapl %edx
leaq 0x2843(%rip), %rsi      # 0x6198
jmp 0x3977
cmpb $0x1, 0x5867(%rip)      # 0x91c5
jne 0x3b42
movq 0x586d(%rip), %rdi      # 0x91d8
movzbl 0x2(%rax,%rcx), %edx
leaq 0x27d8(%rip), %rsi      # 0x614f
xorl %eax, %eax
callq 0x10b0
jmp 0x3b42
leaq 0x2742(%rip), %r8       # 0x60cc
jmp 0x3aa8
leaq 0x2770(%rip), %r8       # 0x6106
jmp 0x3aa8
leaq 0x2711(%rip), %r8       # 0x60b3
jmp 0x3aa8
leaq 0x270f(%rip), %r8       # 0x60bd
testl %r14d, %r14d
jne 0x3aa8
cmpb $0x0, 0x5808(%rip)      # 0x91c6
leaq 0x26f8(%rip), %r8       # 0x60bd
jne 0x3aa8
cmpb $0x0, 0x57ee(%rip)      # 0x91c0
leaq 0x26e4(%rip), %r8       # 0x60bd
jne 0x3aa8
cmpb $0x0, 0x57e4(%rip)      # 0x91ca
leaq 0x26d0(%rip), %r8       # 0x60bd
jne 0x3aa8
movq 0x57f6(%rip), %rcx      # 0x91f0
movl $0x3, %esi
movl $0x1, %edx
leaq 0x26bd(%rip), %rdi      # 0x60c8
callq 0x1150
testl %r12d, %r12d
jle 0x3a67
callq 0x1170
movq %rax, 0x20(%rsp)
movl %r12d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x18(%rsp)
xorl %r15d, %r15d
movq (%rbp), %rax
movzbl (%rax,%r15), %eax
movq 0x57b1(%rip), %rsi      # 0x91f0
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
movzwl (%rcx,%rax,2), %ecx
btl $0xe, %ecx
movl $0x3f, %edi
jae 0x3a58
movl %eax, %edi
callq 0x1090
incq %r15
cmpq %r15, 0x18(%rsp)
jne 0x3a2f
movq 0x5782(%rip), %rsi      # 0x91f0
movl $0xa, %edi
callq 0x1090
leaq 0x263e(%rip), %r8       # 0x60bd
movq 0x10(%rsp), %r15
jmp 0x3aa8
leaq 0x2662(%rip), %r8       # 0x60ef
jmp 0x3aa8
leaq 0x2646(%rip), %r8       # 0x60dc
jmp 0x3aa8
leaq 0x2643(%rip), %r8       # 0x60e2
jmp 0x3aa8
leaq 0x2651(%rip), %r8       # 0x60f9
cmpb $0x1, 0x5716(%rip)      # 0x91c5
jne 0x3b42
movq 0x571c(%rip), %rdi      # 0x91d8
leaq 0x2656(%rip), %rsi      # 0x6119
movl %r13d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x10b0
testl %r12d, %r12d
jle 0x3b1b
callq 0x1170
movq %rax, %r15
movl %r12d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %r14d, %r14d
movq (%rbp), %rax
movzbl (%rax,%r14), %eax
movq 0x56de(%rip), %rsi      # 0x91d8
movq (%r15), %rcx
movzwl (%rcx,%rax,2), %ecx
btl $0xe, %ecx
movl $0x3f, %edi
jae 0x3b0e
movl %eax, %edi
callq 0x1090
incq %r14
cmpq %r14, %r13
jne 0x3aea
movq 0x56b6(%rip), %rcx      # 0x91d8
movl $0x2, %esi
movl $0x1, %edx
leaq 0x2606(%rip), %rdi      # 0x6139
callq 0x1150
movl 0xc(%rsp), %r14d
movq 0x10(%rsp), %r15
movslq %r12d, %rax
addq %rax, (%rbp)
movq (%rbp), %rax
xorl %ecx, %ecx
movl $0x0, %edx
cmpq 0x8(%rbp), %rax
jb 0x337d
movb $-0x1, 0x24(%rbp)
incl 0x55c8(%rip)            # 0x9130
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, 0x5646(%rip)      # 0x91c4
jne 0x3b84
movb $0x0, 0x25(%rbp)
movb $-0x80, 0x24(%rbp)
jmp 0x3b68
cmpb $0x0, 0x5633(%rip)      # 0x91c4
jne 0x3b97
movb $0x0, 0x25(%rbp)
movb $-0x70, 0x24(%rbp)
jmp 0x3b68
movb $-0x2, 0x24(%rbp)
movl $0xffffff00, %edx       # imm = 0xFFFFFF00
andl 0x1(%rax,%rcx), %edx
bswapl %edx
movq %rdx, 0x18(%rbp)
cmpb $0x1, 0x560e(%rip)      # 0x91c5
jne 0x3bce
movq 0x5618(%rip), %rdi      # 0x91d8
leaq 0x25a4(%rip), %rsi      # 0x616b
xorl %eax, %eax
callq 0x10b0
movslq %r12d, %rax
addq %rax, (%rbp)
jmp 0x3b68
movq (%rbp), %rsi
leaq 0x260d(%rip), %rdi      # 0x61ef
callq 0x1b89