// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: luxor_fault()
u08 luxor_fault()
{
int row, col;
int color;

   if(1 && (unit_status & RESET_BIT)) {
      have_time = 0;
      reset_alarm();
      sound_alarm = 0;
//    fault_seen = 0;
   }

   if((unit_status & FAULT_BITS) == 0) {
      fault_seen = 0;
      if(unit_status & RESET_BIT) ;
      else if(unit_status & CAL_MODE_BIT) ;
      else if(unit_status & ZEROING_BIT) ;
      else if(prot_menu || show_prots) ;
      else {
         return 0;
      }
   }
   else if((unit_status & FAULT_BITS) && (fault_seen == 0)) {
      if(unit_status & RESET_BIT) ;
      else if(unit_status & ZEROING_BIT) ;
      else {
         fault_seen = 1;
         if((unit_status & FAULT_BITS) == COM_ERR_BIT) ;
         else if((unit_status & FAULT_BITS) == WDT_BIT) ;
         else if((unit_status & FAULT_BITS) == (WDT_BIT | COM_ERR_BIT)) ;
         else if(have_time) {
            sound_alarm |= ALARM_LUXOR;
            enable_alarm();
         }
      }
   }

   erase_watch();
   row = (aclock_y - ACLOCK_SIZE/2 + (TEXT_HEIGHT-1)) / TEXT_HEIGHT;
   col = (aclock_x - ACLOCK_SIZE/2 + (TEXT_WIDTH-1)) / TEXT_WIDTH;
   if(aclock_y < PLOT_ROW) {
      col -= 5;
      if(row) --row;
   }

   if(prot_menu || show_prots) {
      if(unit_status & FAULT_BITS) color = RED;
      else                         color = WHITE;
      vidstr(row++, col, color, "Protections:");

      if(unit_status & BATT_LVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "Batt LVC: %8.3f V", batt_lvc);
      vidstr(row++, col, color, out);

      if(unit_status & BATT_HVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "Batt HVC: %8.3f V", batt_hvc);
      vidstr(row++, col, color, out);

      if(unit_status & BATT_OVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "Batt OVC: %8.3f A", batt_ovc);
      vidstr(row++, col, color, out);

      if(unit_status & BATT_WATTS_BIT) color = RED;
      else                             color = WHITE;
      sprintf(out, "Batt OVW: %8.3f W", batt_watts);
      vidstr(row++, col, color, out);

      if(unit_status & LOAD_LVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "LED LVC:  %8.3f V", load_lvc);
      vidstr(row++, col, color, out);

      if(unit_status & LOAD_HVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "LED HVC:  %8.3f V", load_hvc);
      vidstr(row++, col, color, out);

      if(unit_status & LOAD_OVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "LED OVC:  %8.3f A", load_ovc);
      vidstr(row++, col, color, out);

      if(unit_status & LOAD_WATTS_BIT) color = RED;
      else                             color = WHITE;
      sprintf(out, "LED OVW:  %8.3f W", load_watts);
      vidstr(row++, col, color, out);

      if(unit_status & AUXV_LVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "AUXV LVC: %8.3f V", auxv_lvc);
      vidstr(row++, col, color, out);

      if(unit_status & AUXV_HVC_BIT) color = RED;
      else                           color = WHITE;
      sprintf(out, "AUXV HVC: %8.3f V", auxv_hvc);
      vidstr(row++, col, color, out);


      if(unit_status & TEMP1_OVT_BIT) color = RED;
      else                            color = WHITE;
      sprintf(out, "TEMP1:    %8.3f%c%c", tc1_ovt, DEGREES, DEG_SCALE);
      vidstr(row++, col, color, out);

      if(unit_status & TEMP2_OVT_BIT) color = RED;
      else                            color = WHITE;
      sprintf(out, "TEMP2:    %8.3f%c%c", tc2_ovt, DEGREES, DEG_SCALE);
      vidstr(row++, col, color, out);

      if(unit_status & WDT_BIT) color = RED;
      else                      color = WHITE;
      sprintf(out, "Timeout:  %8.3f S", msg_timeout);
      vidstr(row++, col, color, out);
   }
   else {
      vidstr(row++, col, RED, "Abnormal status:");
      if(unit_status & RESET_BIT)      vidstr(row++, col, RED, "Unit reset"); 
      if(unit_status & CAL_MODE_BIT)   vidstr(row++, col, RED, "Cal mode"); 
      if(unit_status & CAL_CRC_ERR)    vidstr(row++, col, RED, "Cal memory bad"); 
      if(unit_status & CFG_CRC_ERR)    vidstr(row++, col, RED, "Config memory bad"); 
      if(unit_status & CONFIG_ERR)     vidstr(row++, col, RED, "Config changed"); 
      if(unit_status & ZEROING_BIT) {
         vidstr(row++, col, RED, "Zeroing sensors"); 
      }
      else {
         if(unit_status & BATT_OVC_BIT)   vidstr(row++, col, RED, "Battery over current");
         if(unit_status & BATT_WATTS_BIT) vidstr(row++, col, RED, "Battery over watts");
         if(unit_status & LOAD_OVC_BIT)   vidstr(row++, col, RED, "LED over current");
         if(unit_status & LOAD_WATTS_BIT) vidstr(row++, col, RED, "LED over watts");
      }
      if(unit_status & BATT_LVC_BIT)   vidstr(row++, col, RED, "Battery low voltage");
      if(unit_status & BATT_HVC_BIT)   vidstr(row++, col, RED, "Battery high voltage");
      if(unit_status & LOAD_LVC_BIT)   vidstr(row++, col, RED, "LED low voltage");
      if(unit_status & LOAD_HVC_BIT)   vidstr(row++, col, RED, "LED high voltage");
      if(unit_status & AUXV_LVC_BIT)   vidstr(row++, col, RED, "AUXV low voltage");
      if(unit_status & AUXV_HVC_BIT)   vidstr(row++, col, RED, "AUXV high voltage");
      if(unit_status & TEMP1_OVT_BIT)  vidstr(row++, col, RED, "Temp1 over-temp");
      if(unit_status & TEMP2_OVT_BIT)  vidstr(row++, col, RED, "Temp2 over-temp");
      if(unit_status & TEMP1_BAD_BIT)  vidstr(row++, col, RED, "Temp1 sensor fault");
      if(unit_status & TEMP2_BAD_BIT)  vidstr(row++, col, RED, "Temp2 sensor fault");
      if(unit_status & LUX1_OVFL_BIT)  vidstr(row++, col, RED, "Lux overflow");
      if(unit_status & LUX2_OVFL_BIT)  vidstr(row++, col, RED, "Lumens overflow");
      if(unit_status & COM_ERR_BIT)    vidstr(row++, col, RED, "Serial data error");
      if(unit_status & WDT_BIT)        vidstr(row++, col, RED, "Message timeout");
      if(unit_status & RUN_TIMEOUT)    vidstr(row++, col, RED, "Timer shutdown");
   }

   return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x292db7(%rip), %rax    # 0x30ce20
movq %rax, %r12
movl (%rax), %eax
testl %eax, %eax
jns 0x7a08f
leaq 0x1c4e63(%rip), %rax    # 0x23eedc
xorl %ebx, %ebx
movb %bl, (%rax)
callq 0xe3081
leaq 0x293ebf(%rip), %rax    # 0x30df48
movb %bl, (%rax)
movl (%r12), %eax
movl %eax, %eax
testl $0x1ff0ccfe, %eax       # imm = 0x1FF0CCFE
je 0x7a0e8
btl $0x1d, %eax
jb 0x7a111
testl %eax, %eax
js 0x7a111
leaq 0x1a10b1(%rip), %rcx    # 0x21b15a
cmpb $0x0, (%rcx)
jne 0x7a111
movb $0x1, (%rcx)
andl $0x1ff0ccfe, %eax       # imm = 0x1FF0CCFE
cmpl $0x1000000, %eax        # imm = 0x1000000
je 0x7a111
cmpl $0x10000000, %eax       # imm = 0x10000000
je 0x7a111
cmpl $0x11000000, %eax       # imm = 0x11000000
je 0x7a111
leaq 0x1c4e0a(%rip), %rax    # 0x23eedc
cmpb $0x0, (%rax)
je 0x7a111
leaq 0x293e6a(%rip), %rax    # 0x30df48
orb $0x10, (%rax)
callq 0xe30c9
jmp 0x7a111
leaq 0x1a106b(%rip), %rcx    # 0x21b15a
movb $0x0, (%rcx)
cmpl $0x1fffffff, %eax       # imm = 0x1FFFFFFF
ja 0x7a111
leaq 0x1a1058(%rip), %rax    # 0x21b158
leaq 0x1a1052(%rip), %rcx    # 0x21b159
movb (%rcx), %cl
orb (%rax), %cl
je 0x7a956
callq 0xed70
leaq 0x2c125b(%rip), %rax    # 0x33b378
movl (%rax), %esi
leaq 0x2c124a(%rip), %rax    # 0x33b370
movl (%rax), %eax
movl %eax, %edi
shrl $0x1f, %edi
addl %eax, %edi
sarl %edi
leaq 0x19e6dc(%rip), %rax    # 0x218814
movl (%rax), %ecx
movl %esi, %eax
subl %edi, %eax
addl %ecx, %eax
decl %eax
cltd
idivl %ecx
movl %eax, %ecx
leaq 0x2c1226(%rip), %rax    # 0x33b374
movl (%rax), %eax
leaq 0x19e6b9(%rip), %rdx    # 0x218810
movl (%rdx), %r8d
subl %edi, %eax
addl %r8d, %eax
decl %eax
cltd
idivl %r8d
leaq 0x19e710(%rip), %rdx    # 0x21887c
xorl %edi, %edi
movl %ecx, %r14d
subl $0x1, %r14d
cmovbl %edi, %r14d
cmpl (%rdx), %esi
cmovgel %ecx, %r14d
leal -0x5(%rax), %r13d
cmovgel %eax, %r13d
leaq 0x1a0fca(%rip), %rax    # 0x21b158
leaq 0x1a0fc4(%rip), %rcx    # 0x21b159
movb (%rcx), %cl
orb (%rax), %cl
je 0x7a566
xorl %eax, %eax
movq %r12, %rbx
testl $0x1ff0ccfe, (%r12)     # imm = 0x1FF0CCFE
sete %al
leal 0x1(%r14), %ecx
movl %ecx, -0x2c(%rbp)
leal (%rax,%rax,2), %edx
addl $0xc, %edx
leaq 0xa8169(%rip), %rcx     # 0x12232c
movl %r14d, %edi
movl %r13d, %esi
callq 0xe787
movl %r13d, %r12d
xorl %r13d, %r13d
testb $0x4, (%rbx)
sete %r13b
leaq 0x1a0f3e(%rip), %rax    # 0x21b120
movsd (%rax), %xmm0
leaq 0x2c2033(%rip), %r15    # 0x33c220
leaq 0xa8145(%rip), %rsi     # 0x122339
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x2(%r14), %eax
movl %eax, -0x30(%rbp)
leal 0xc(%r13,%r13,2), %edx
movl -0x2c(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292bff(%rip), %r13    # 0x30ce20
testb $0x8, (%r13)
sete %bl
leaq 0x1a0ee8(%rip), %rax    # 0x21b118
movsd (%rax), %xmm0
leaq 0xa8110(%rip), %rsi     # 0x12234b
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x3(%r14), %eax
movl %eax, -0x2c(%rbp)
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x30(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
testb $0x2, (%r13)
sete %bl
leaq 0x1a0e9f(%rip), %rax    # 0x21b110
movsd (%rax), %xmm0
leaq 0xa80e1(%rip), %rsi     # 0x12235d
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x4(%r14), %eax
movl %eax, -0x30(%rbp)
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x2c(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
btl $0x14, (%r13)
setae %bl
leaq 0x1a0e75(%rip), %rax    # 0x21b128
movsd (%rax), %xmm0
leaq 0xa80b1(%rip), %rsi     # 0x12236f
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x5(%r14), %r13d
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x30(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292b37(%rip), %rax    # 0x30ce20
testb $0x40, (%rax)
sete %bl
leaq 0x1a0e0a(%rip), %rax    # 0x21b100
movsd (%rax), %xmm0
leaq 0xa8080(%rip), %rsi     # 0x122381
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x6(%r14), %eax
movl %eax, -0x2c(%rbp)
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl %r13d, %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292af1(%rip), %rax    # 0x30ce20
cmpb $0x0, (%rax)
setns %bl
leaq 0x1a0dbc(%rip), %rax    # 0x21b0f8
movsd (%rax), %xmm0
leaq 0xa804c(%rip), %rsi     # 0x122393
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x7(%r14), %r13d
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x2c(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292aae(%rip), %rax    # 0x30ce20
testb $0x20, (%rax)
sete %bl
leaq 0x1a0d71(%rip), %rax    # 0x21b0f0
movsd (%rax), %xmm0
leaq 0xa801b(%rip), %rsi     # 0x1223a5
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x8(%r14), %eax
movl %eax, -0x2c(%rbp)
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl %r13d, %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292a68(%rip), %rax    # 0x30ce20
btl $0x15, (%rax)
setae %bl
leaq 0x1a0d42(%rip), %rax    # 0x21b108
movsd (%rax), %xmm0
leaq 0xa7fe6(%rip), %rsi     # 0x1223b7
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0x9(%r14), %r13d
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x2c(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292a24(%rip), %rax    # 0x30ce20
btl $0x16, (%rax)
setae %bl
leaq 0x1a0d2e(%rip), %rax    # 0x21b138
movsd (%rax), %xmm0
leaq 0xa7fb4(%rip), %rsi     # 0x1223c9
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0xa(%r14), %eax
movl %eax, -0x30(%rbp)
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl %r13d, %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x2929dd(%rip), %r13    # 0x30ce20
btl $0x17, (%r13)
setae %bl
leaq 0x1a0cdd(%rip), %rax    # 0x21b130
movsd (%rax), %xmm0
leaq 0xa7f7d(%rip), %rsi     # 0x1223db
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal 0xb(%r14), %eax
movl %eax, -0x2c(%rbp)
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x30(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
btl $0xa, (%r13)
setae %bl
leaq 0x1a0cab(%rip), %rax    # 0x21b140
movsd (%rax), %xmm0
leaq 0x292b05(%rip), %rax    # 0x30cfa5
movsbl (%rax), %ecx
leaq 0xa7f43(%rip), %rsi     # 0x1223ed
movq %r15, %rdi
movl $0x1, %edx
movb $0x1, %al
callq 0x9060
leal 0xc(%r14), %r13d
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl -0x2c(%rbp), %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x292946(%rip), %rax    # 0x30ce20
btl $0xe, (%rax)
setae %bl
leaq 0x1a0c60(%rip), %rax    # 0x21b148
movsd (%rax), %xmm0
leaq 0x292ab2(%rip), %rax    # 0x30cfa5
movsbl (%rax), %ecx
leaq 0xa7f04(%rip), %rsi     # 0x122401
movq %r15, %rdi
movl $0x1, %edx
movb $0x1, %al
callq 0x9060
addl $0xd, %r14d
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movl %r13d, %edi
movl %r12d, %esi
movq %r15, %rcx
callq 0xe787
xorl %ebx, %ebx
leaq 0x2928f3(%rip), %rax    # 0x30ce20
btl $0x1c, (%rax)
setae %bl
leaq 0x1a0c15(%rip), %rax    # 0x21b150
movsd (%rax), %xmm0
leaq 0xa7ecf(%rip), %rsi     # 0x122415
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
leal (%rbx,%rbx,2), %edx
addl $0xc, %edx
movb $0x1, %bl
movl %r14d, %edi
movl %r12d, %esi
movq %r15, %rcx
jmp 0x7a940
leal 0x1(%r14), %r15d
leaq 0xa7eb6(%rip), %rcx     # 0x122427
movl %r14d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
testl %eax, %eax
jns 0x7a5ab
addl $0x2, %r14d
leaq 0xa7ea4(%rip), %rcx     # 0x122438
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %r14d, %r15d
btl $0x1e, %eax
jae 0x7a5d3
leal 0x1(%r15), %ebx
leaq 0xa7e87(%rip), %rcx     # 0x122443
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x19, %eax
jae 0x7a5fb
leal 0x1(%r15), %ebx
leaq 0xa7e68(%rip), %rcx     # 0x12244c
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
testb $0x10, %al
je 0x7a621
leal 0x1(%r15), %ebx
leaq 0xa7e51(%rip), %rcx     # 0x12245b
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x1a, %eax
jae 0x7a649
leal 0x1(%r15), %ebx
leaq 0xa7e3b(%rip), %rcx     # 0x12246d
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x1d, %eax
jb 0x7a6dd
movl %eax, %ecx
testb $0x2, %cl
je 0x7a67c
leal 0x1(%r15), %ebx
leaq 0xa7e27(%rip), %rcx     # 0x12248c
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x14, %eax
jae 0x7a6a4
leal 0x1(%r15), %ebx
leaq 0xa7e14(%rip), %rcx     # 0x1224a1
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
testb $0x20, %al
je 0x7a6ca
leal 0x1(%r15), %ebx
leaq 0xa7e01(%rip), %rcx     # 0x1224b4
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x15, %eax
jae 0x7a6fb
leal 0x1(%r15), %ebx
leaq 0xa7dea(%rip), %rcx     # 0x1224c5
jmp 0x7a6e8
leal 0x1(%r15), %ebx
leaq 0xa7d94(%rip), %rcx     # 0x12247c
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl %ebx, %r15d
movl (%r12), %eax
testb $0x4, %al
je 0x7a725
leal 0x1(%r15), %ebx
leaq 0xa7dc6(%rip), %rcx     # 0x1224d4
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
testb $0x8, %al
je 0x7a74b
leal 0x1(%r15), %ebx
leaq 0xa7db4(%rip), %rcx     # 0x1224e8
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
testb $0x40, %al
je 0x7a771
leal 0x1(%r15), %ebx
leaq 0xa7da3(%rip), %rcx     # 0x1224fd
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
testb %al, %al
jns 0x7a797
leal 0x1(%r15), %ebx
leaq 0xa7d8d(%rip), %rcx     # 0x12250d
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x16, %eax
jae 0x7a7bf
leal 0x1(%r15), %ebx
leaq 0xa7d76(%rip), %rcx     # 0x12251e
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x17, %eax
jae 0x7a7e7
leal 0x1(%r15), %ebx
leaq 0xa7d5f(%rip), %rcx     # 0x12252f
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0xa, %eax
jae 0x7a80f
leal 0x1(%r15), %ebx
leaq 0xa7d49(%rip), %rcx     # 0x122541
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0xe, %eax
jae 0x7a837
leal 0x1(%r15), %ebx
leaq 0xa7d31(%rip), %rcx     # 0x122551
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0xb, %eax
jae 0x7a85f
leal 0x1(%r15), %ebx
leaq 0xa7d19(%rip), %rcx     # 0x122561
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
testw %ax, %ax
jns 0x7a886
leal 0x1(%r15), %ebx
leaq 0xa7d05(%rip), %rcx     # 0x122574
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x11, %eax
jae 0x7a8ae
leal 0x1(%r15), %ebx
leaq 0xa7cf0(%rip), %rcx     # 0x122587
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x13, %eax
jae 0x7a8d6
leal 0x1(%r15), %ebx
leaq 0xa7cd5(%rip), %rcx     # 0x122594
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x18, %eax
jae 0x7a8fe
leal 0x1(%r15), %ebx
leaq 0xa7cbd(%rip), %rcx     # 0x1225a4
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
btl $0x1c, %eax
jae 0x7a926
leal 0x1(%r15), %ebx
leaq 0xa7ca7(%rip), %rcx     # 0x1225b6
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl (%r12), %eax
movl %ebx, %r15d
movb $0x1, %bl
btl $0x1b, %eax
jae 0x7a945
leaq 0xa7c91(%rip), %rcx     # 0x1225c6
movl %r15d, %edi
movl %r13d, %esi
movl $0xc, %edx
callq 0xe787
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x7a945