#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int getBinaryData(char *, int, int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int decode(char *word, char *msg) {
  int cmd = 0, zones = 0;
  char year3[2], year4[2], month[2], day[2], hour[2], minute[2];
  cmd = getBinaryData(word, 0, 8);
  strcpy(msg, "");
  if (cmd == 0x05) {
    strcpy(msg, "LED Status: ");
    if (getBinaryData(word, 12, 1))
      strcat(msg, "Error ");
    if (getBinaryData(word, 13, 1))
      strcat(msg, "Bypass ");
    if (getBinaryData(word, 14, 1))
      strcat(msg, "Memory ");
    if (getBinaryData(word, 15, 1))
      strcat(msg, "Armed ");
    if (getBinaryData(word, 16, 1))
      strcat(msg, "Ready ");
  } else if (cmd == 0xa5) {
    sprintf(year3, "%d", getBinaryData(word, 9, 4));
    sprintf(year4, "%d", getBinaryData(word, 13, 4));
    sprintf(month, "%d", getBinaryData(word, 19, 4));
    sprintf(day, "%d", getBinaryData(word, 23, 5));
    sprintf(hour, "%d", getBinaryData(word, 28, 5));
    sprintf(minute, "%d", getBinaryData(word, 33, 6));
    strcpy(msg, "Date: 20");
    strcat(msg, year3);
    strcat(msg, year4);
    strcat(msg, "-");
    strcat(msg, month);
    strcat(msg, "-");
    strcat(msg, day);
    strcat(msg, " ");
    strcat(msg, hour);
    strcat(msg, ":");
    strcat(msg, minute);
  } else if (cmd == 0x27) {
    strcpy(msg, "Zone1: ");
    zones = getBinaryData(word, 41, 8);
    if (zones & 1)
      strcat(msg, "1 ");
    if (zones & 2)
      strcat(msg, "2 ");
    if (zones & 4)
      strcat(msg, "3 ");
    if (zones & 8)
      strcat(msg, "4 ");
    if (zones & 16)
      strcat(msg, "5 ");
    if (zones & 32)
      strcat(msg, "6 ");
    if (zones & 64)
      strcat(msg, "7 ");
    if (zones & 128)
      strcat(msg, "8 ");
  } else if (cmd == 0x2d) {
    strcpy(msg, "Zone2: ");
    zones = getBinaryData(word, 41, 8);
    if (zones & 1)
      strcat(msg, "9 ");
    if (zones & 2)
      strcat(msg, "10 ");
    if (zones & 4)
      strcat(msg, "11 ");
    if (zones & 8)
      strcat(msg, "12 ");
    if (zones & 16)
      strcat(msg, "13 ");
    if (zones & 32)
      strcat(msg, "14 ");
    if (zones & 64)
      strcat(msg, "15 ");
    if (zones & 128)
      strcat(msg, "16 ");
  } else if (cmd == 0x34) {
    strcpy(msg, "Zone3: ");
    zones = getBinaryData(word, 41, 8);
    if (zones & 1)
      strcat(msg, "9 ");
    if (zones & 2)
      strcat(msg, "10 ");
    if (zones & 4)
      strcat(msg, "11 ");
    if (zones & 8)
      strcat(msg, "12 ");
    if (zones & 16)
      strcat(msg, "13 ");
    if (zones & 32)
      strcat(msg, "14 ");
    if (zones & 64)
      strcat(msg, "15 ");
    if (zones & 128)
      strcat(msg, "16 ");
  } else if (cmd == 0x3e) {
    strcpy(msg, "Zone4: ");
    zones = getBinaryData(word, 41, 8);
    if (zones & 1)
      strcat(msg, "9 ");
    if (zones & 2)
      strcat(msg, "10 ");
    if (zones & 4)
      strcat(msg, "11 ");
    if (zones & 8)
      strcat(msg, "12 ");
    if (zones & 16)
      strcat(msg, "13 ");
    if (zones & 32)
      strcat(msg, "14 ");
    if (zones & 64)
      strcat(msg, "15 ");
    if (zones & 128)
      strcat(msg, "16 ");
  } else
    strcpy(msg, "Unknown command.");
  return cmd;
}


x86 assembly (clang, -O0):
<decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xee2(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x5,-0x14(%rbp)
jne    127c <decode+0x13c>
mov    -0x10(%rbp),%rdi
lea    0xe6a(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
cmp    $0x0,%eax
je     11c7 <decode+0x87>
mov    -0x10(%rbp),%rdi
lea    0xe4b(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
cmp    $0x0,%eax
je     11f3 <decode+0xb3>
mov    -0x10(%rbp),%rdi
lea    0xe26(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    $0xe,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
cmp    $0x0,%eax
je     121f <decode+0xdf>
mov    -0x10(%rbp),%rdi
lea    0xe02(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
cmp    $0x0,%eax
je     124b <decode+0x10b>
mov    -0x10(%rbp),%rdi
lea    0xdde(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
cmp    $0x0,%eax
je     1277 <decode+0x137>
mov    -0x10(%rbp),%rdi
lea    0xdb9(%rip),%rsi
call   1050 <strcat@plt>
jmp    191f <decode+0x7df>
cmpl   $0xa5,-0x14(%rbp)
jne    143a <decode+0x2fa>
lea    -0x1a(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
mov    $0x4,%edx
call   1040 <getBinaryData@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%edx
lea    0xd81(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x1c(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xd,%esi
mov    $0x4,%edx
call   1040 <getBinaryData@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
lea    0xd54(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x1e(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x13,%esi
mov    $0x4,%edx
call   1040 <getBinaryData@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
lea    0xd27(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x20(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x17,%esi
mov    $0x5,%edx
call   1040 <getBinaryData@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
lea    0xcfa(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x22(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1c,%esi
mov    $0x5,%edx
call   1040 <getBinaryData@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%edx
lea    0xccd(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x24(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x21,%esi
mov    $0x6,%edx
call   1040 <getBinaryData@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%edx
lea    0xca0(%rip),%rsi
call   1060 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xc93(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    -0x1a(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    0xc72(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    -0x1e(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    0xc55(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    0xc57(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    -0x22(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    0xc1d(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <strcat@plt>
jmp    191a <decode+0x7da>
cmpl   $0x27,-0x14(%rbp)
jne    1569 <decode+0x429>
mov    -0x10(%rbp),%rdi
lea    0xbf3(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    $0x29,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1489 <decode+0x349>
mov    -0x10(%rbp),%rdi
lea    0xbdc(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     14a8 <decode+0x368>
mov    -0x10(%rbp),%rdi
lea    0xbc1(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     14c7 <decode+0x387>
mov    -0x10(%rbp),%rdi
lea    0xba6(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     14e6 <decode+0x3a6>
mov    -0x10(%rbp),%rdi
lea    0xb8b(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1505 <decode+0x3c5>
mov    -0x10(%rbp),%rdi
lea    0xb70(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1524 <decode+0x3e4>
mov    -0x10(%rbp),%rdi
lea    0xb55(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1543 <decode+0x403>
mov    -0x10(%rbp),%rdi
lea    0xb0c(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1564 <decode+0x424>
mov    -0x10(%rbp),%rdi
lea    0xaee(%rip),%rsi
call   1050 <strcat@plt>
jmp    1915 <decode+0x7d5>
cmpl   $0x2d,-0x14(%rbp)
jne    1698 <decode+0x558>
mov    -0x10(%rbp),%rdi
lea    0xad2(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    $0x29,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     15b8 <decode+0x478>
mov    -0x10(%rbp),%rdi
lea    0xaa5(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     15d7 <decode+0x497>
mov    -0x10(%rbp),%rdi
lea    0xa89(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     15f6 <decode+0x4b6>
mov    -0x10(%rbp),%rdi
lea    0xa6e(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1615 <decode+0x4d5>
mov    -0x10(%rbp),%rdi
lea    0xa53(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1634 <decode+0x4f4>
mov    -0x10(%rbp),%rdi
lea    0xa38(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1653 <decode+0x513>
mov    -0x10(%rbp),%rdi
lea    0xa1d(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1672 <decode+0x532>
mov    -0x10(%rbp),%rdi
lea    0xa02(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1693 <decode+0x553>
mov    -0x10(%rbp),%rdi
lea    0x9e5(%rip),%rsi
call   1050 <strcat@plt>
jmp    1910 <decode+0x7d0>
cmpl   $0x34,-0x14(%rbp)
jne    17c7 <decode+0x687>
mov    -0x10(%rbp),%rdi
lea    0x9ca(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    $0x29,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     16e7 <decode+0x5a7>
mov    -0x10(%rbp),%rdi
lea    0x976(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1706 <decode+0x5c6>
mov    -0x10(%rbp),%rdi
lea    0x95a(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1725 <decode+0x5e5>
mov    -0x10(%rbp),%rdi
lea    0x93f(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1744 <decode+0x604>
mov    -0x10(%rbp),%rdi
lea    0x924(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1763 <decode+0x623>
mov    -0x10(%rbp),%rdi
lea    0x909(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1782 <decode+0x642>
mov    -0x10(%rbp),%rdi
lea    0x8ee(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     17a1 <decode+0x661>
mov    -0x10(%rbp),%rdi
lea    0x8d3(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     17c2 <decode+0x682>
mov    -0x10(%rbp),%rdi
lea    0x8b6(%rip),%rsi
call   1050 <strcat@plt>
jmp    190b <decode+0x7cb>
cmpl   $0x3e,-0x14(%rbp)
jne    18f6 <decode+0x7b6>
mov    -0x10(%rbp),%rdi
lea    0x8a3(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    $0x29,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1816 <decode+0x6d6>
mov    -0x10(%rbp),%rdi
lea    0x847(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1835 <decode+0x6f5>
mov    -0x10(%rbp),%rdi
lea    0x82b(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1854 <decode+0x714>
mov    -0x10(%rbp),%rdi
lea    0x810(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1873 <decode+0x733>
mov    -0x10(%rbp),%rdi
lea    0x7f5(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1892 <decode+0x752>
mov    -0x10(%rbp),%rdi
lea    0x7da(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     18b1 <decode+0x771>
mov    -0x10(%rbp),%rdi
lea    0x7bf(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     18d0 <decode+0x790>
mov    -0x10(%rbp),%rdi
lea    0x7a4(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     18f1 <decode+0x7b1>
mov    -0x10(%rbp),%rdi
lea    0x787(%rip),%rsi
call   1050 <strcat@plt>
jmp    1906 <decode+0x7c6>
mov    -0x10(%rbp),%rdi
lea    0x786(%rip),%rsi
call   1030 <strcpy@plt>
jmp    190b <decode+0x7cb>
jmp    1910 <decode+0x7d0>
jmp    1915 <decode+0x7d5>
jmp    191a <decode+0x7da>
jmp    191f <decode+0x7df>
mov    -0x14(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %esi,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,%r14d
lea    0xf54(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    -0x27(%r14),%eax
cmp    $0x17,%eax
ja     11ff <decode+0xbf>
lea    0xe7a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf0c(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    $0x29,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,%ebx
test   $0x1,%bl
jne    1565 <decode+0x425>
test   $0x2,%bl
jne    157d <decode+0x43d>
test   $0x4,%bl
jne    1595 <decode+0x455>
test   $0x8,%bl
jne    15ad <decode+0x46d>
test   $0x10,%bl
jne    15c5 <decode+0x485>
test   $0x20,%bl
jne    15dd <decode+0x49d>
test   $0x40,%bl
jne    15f5 <decode+0x4b5>
test   $0x80,%bl
jne    1609 <decode+0x4c9>
jmp    1618 <decode+0x4d8>
cmp    $0xa5,%r14d
je     13fd <decode+0x2bd>
cmp    $0x5,%r14d
jne    12df <decode+0x19f>
lea    0xe43(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
test   %eax,%eax
je     124a <decode+0x10a>
lea    0xe2b(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
test   %eax,%eax
je     126f <decode+0x12f>
lea    0xe0d(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
test   %eax,%eax
je     1294 <decode+0x154>
lea    0xdf0(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
test   %eax,%eax
je     12b9 <decode+0x179>
lea    0xdd3(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1040 <getBinaryData@plt>
test   %eax,%eax
je     1618 <decode+0x4d8>
lea    0xdb1(%rip),%rsi
jmp    1610 <decode+0x4d0>
lea    0xe01(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
jmp    1618 <decode+0x4d8>
lea    0xdb6(%rip),%rsi
jmp    130c <decode+0x1cc>
lea    0xddc(%rip),%rsi
jmp    130c <decode+0x1cc>
lea    0xdcb(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    $0x29,%esi
mov    $0x8,%edx
call   1040 <getBinaryData@plt>
mov    %eax,%ebx
test   $0x1,%bl
jne    135d <decode+0x21d>
test   $0x2,%bl
jne    1371 <decode+0x231>
test   $0x4,%bl
jne    1385 <decode+0x245>
test   $0x8,%bl
jne    1399 <decode+0x259>
test   $0x10,%bl
jne    13ad <decode+0x26d>
test   $0x20,%bl
jne    13c1 <decode+0x281>
test   $0x40,%bl
jne    13d9 <decode+0x299>
test   $0x80,%bl
jne    13f1 <decode+0x2b1>
jmp    1618 <decode+0x4d8>
lea    0xd54(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x2,%bl
je     1332 <decode+0x1f2>
lea    0xd43(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x4,%bl
je     1337 <decode+0x1f7>
lea    0xd33(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x8,%bl
je     133c <decode+0x1fc>
lea    0xd23(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x10,%bl
je     1341 <decode+0x201>
lea    0xd13(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x20,%bl
je     1346 <decode+0x206>
lea    0xd03(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x40,%bl
je     134f <decode+0x20f>
lea    0xcef(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x80,%bl
je     1618 <decode+0x4d8>
lea    0xcdb(%rip),%rsi
jmp    1610 <decode+0x4d0>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x4,%edx
call   1040 <getBinaryData@plt>
lea    0xc7c(%rip),%rbp
lea    0x10(%rsp),%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0x4,%edx
call   1040 <getBinaryData@plt>
lea    0xe(%rsp),%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
mov    $0x13,%esi
mov    $0x4,%edx
call   1040 <getBinaryData@plt>
lea    0xc(%rsp),%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
mov    $0x17,%esi
mov    $0x5,%edx
call   1040 <getBinaryData@plt>
lea    0x16(%rsp),%r13
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
mov    $0x1c,%esi
mov    $0x5,%edx
call   1040 <getBinaryData@plt>
lea    0x14(%rsp),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
mov    $0x21,%esi
mov    $0x6,%edx
call   1040 <getBinaryData@plt>
lea    0x12(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %eax,%edx
call   1060 <sprintf@plt>
lea    0xbbb(%rip),%rsi
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %r15,%rdi
lea    0x10(%rsp),%rsi
call   1050 <strcat@plt>
mov    %r15,%rdi
lea    0xe(%rsp),%rsi
call   1050 <strcat@plt>
lea    0xb9b(%rip),%rbp
mov    %r15,%rdi
mov    %rbp,%rsi
call   1050 <strcat@plt>
mov    %r15,%rdi
lea    0xc(%rsp),%rsi
call   1050 <strcat@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1050 <strcat@plt>
mov    %r15,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
lea    0xb85(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1050 <strcat@plt>
lea    0xb4e(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
jmp    1613 <decode+0x4d3>
lea    0xb54(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x2,%bl
je     11c4 <decode+0x84>
lea    0xb40(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x4,%bl
je     11cd <decode+0x8d>
lea    0xb2c(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x8,%bl
je     11d6 <decode+0x96>
lea    0xb18(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x10,%bl
je     11df <decode+0x9f>
lea    0xb04(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x20,%bl
je     11e8 <decode+0xa8>
lea    0xaf0(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x40,%bl
je     11f1 <decode+0xb1>
lea    0xaae(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
test   $0x80,%bl
je     1618 <decode+0x4d8>
lea    0xa9d(%rip),%rsi
mov    %r15,%rdi
call   1050 <strcat@plt>
mov    %r14d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [13 x i8] c"LED Status: \00"
@.str.2 = [7 x i8] c"Error \00"
@.str.3 = [8 x i8] c"Bypass \00"
@.str.4 = [8 x i8] c"Memory \00"
@.str.5 = [7 x i8] c"Armed \00"
@.str.6 = [7 x i8] c"Ready \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [9 x i8] c"Date: 20\00"
@.str.9 = [2 x i8] c"-\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [2 x i8] c":\00"
@.str.12 = [8 x i8] c"Zone1: \00"
@.str.13 = [3 x i8] c"1 \00"
@.str.14 = [3 x i8] c"2 \00"
@.str.15 = [3 x i8] c"3 \00"
@.str.16 = [3 x i8] c"4 \00"
@.str.17 = [3 x i8] c"5 \00"
@.str.18 = [3 x i8] c"6 \00"
@.str.19 = [3 x i8] c"7 \00"
@.str.20 = [3 x i8] c"8 \00"
@.str.21 = [8 x i8] c"Zone2: \00"
@.str.22 = [3 x i8] c"9 \00"
@.str.23 = [4 x i8] c"10 \00"
@.str.24 = [4 x i8] c"11 \00"
@.str.25 = [4 x i8] c"12 \00"
@.str.26 = [4 x i8] c"13 \00"
@.str.27 = [4 x i8] c"14 \00"
@.str.28 = [4 x i8] c"15 \00"
@.str.29 = [4 x i8] c"16 \00"
@.str.30 = [8 x i8] c"Zone3: \00"
@.str.31 = [8 x i8] c"Zone4: \00"
@.str.32 = [17 x i8] c"Unknown command.\00"
define i32 @decode(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca [2 x i8]
%8 = alloca [2 x i8]
%9 = alloca [2 x i8]
%10 = alloca [2 x i8]
%11 = alloca [2 x i8]
%12 = alloca [2 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
store i32 0, i32* %5
store i32 0, i32* %6
%13 = load i8*, i8** %3
%14 = call i32 @getBinaryData(i8* %13, i32 0, i32 8)
store i32 %14, i32* %5
%15 = load i8*, i8** %4
%16 = call i32 @strcpy(i8* %15, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* %5
%18 = icmp eq i32 %17, 5
br i1 %18, label %19, label %57
19: ; preds = %2
%20 = load i8*, i8** %4
%21 = call i32 @strcpy(i8* %20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%22 = load i8*, i8** %3
%23 = call i32 @getBinaryData(i8* %22, i32 12, i32 1)
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load i8*, i8** %4
%27 = call i32 @strcat(i8* %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %28
28: ; preds = %25, %19
%29 = load i8*, i8** %3
%30 = call i32 @getBinaryData(i8* %29, i32 13, i32 1)
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i8*, i8** %4
%34 = call i32 @strcat(i8* %33, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %35
35: ; preds = %32, %28
%36 = load i8*, i8** %3
%37 = call i32 @getBinaryData(i8* %36, i32 14, i32 1)
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load i8*, i8** %4
%41 = call i32 @strcat(i8* %40, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %39, %35
%43 = load i8*, i8** %3
%44 = call i32 @getBinaryData(i8* %43, i32 15, i32 1)
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i8*, i8** %4
%48 = call i32 @strcat(i8* %47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %49
49: ; preds = %46, %42
%50 = load i8*, i8** %3
%51 = call i32 @getBinaryData(i8* %50, i32 16, i32 1)
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i8*, i8** %4
%55 = call i32 @strcat(i8* %54, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %56
56: ; preds = %53, %49
br label %377
57: ; preds = %2
%58 = load i32, i32* %5
%59 = icmp eq i32 %58, 165
br i1 %59, label %60, label %113
60: ; preds = %57
%61 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%62 = load i8*, i8** %3
%63 = call i32 @getBinaryData(i8* %62, i32 9, i32 4)
%64 = call i32 @sprintf(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%66 = load i8*, i8** %3
%67 = call i32 @getBinaryData(i8* %66, i32 13, i32 4)
%68 = call i32 @sprintf(i8* %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %67)
%69 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%70 = load i8*, i8** %3
%71 = call i32 @getBinaryData(i8* %70, i32 19, i32 4)
%72 = call i32 @sprintf(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%74 = load i8*, i8** %3
%75 = call i32 @getBinaryData(i8* %74, i32 23, i32 5)
%76 = call i32 @sprintf(i8* %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %75)
%77 = getelementptr inbounds [2 x i8], [2 x i8]* %11, i64 0, i64 0
%78 = load i8*, i8** %3
%79 = call i32 @getBinaryData(i8* %78, i32 28, i32 5)
%80 = call i32 @sprintf(i8* %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %79)
%81 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%82 = load i8*, i8** %3
%83 = call i32 @getBinaryData(i8* %82, i32 33, i32 6)
%84 = call i32 @sprintf(i8* %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %83)
%85 = load i8*, i8** %4
%86 = call i32 @strcpy(i8* %85, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%87 = load i8*, i8** %4
%88 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%89 = call i32 @strcat(i8* %87, i8* %88)
%90 = load i8*, i8** %4
%91 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%92 = call i32 @strcat(i8* %90, i8* %91)
%93 = load i8*, i8** %4
%94 = call i32 @strcat(i8* %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%95 = load i8*, i8** %4
%96 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%97 = call i32 @strcat(i8* %95, i8* %96)
%98 = load i8*, i8** %4
%99 = call i32 @strcat(i8* %98, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%100 = load i8*, i8** %4
%101 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%102 = call i32 @strcat(i8* %100, i8* %101)
%103 = load i8*, i8** %4
%104 = call i32 @strcat(i8* %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%105 = load i8*, i8** %4
%106 = getelementptr inbounds [2 x i8], [2 x i8]* %11, i64 0, i64 0
%107 = call i32 @strcat(i8* %105, i8* %106)
%108 = load i8*, i8** %4
%109 = call i32 @strcat(i8* %108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%110 = load i8*, i8** %4
%111 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%112 = call i32 @strcat(i8* %110, i8* %111)
br label %376
113: ; preds = %57
%114 = load i32, i32* %5
%115 = icmp eq i32 %114, 39
br i1 %115, label %116, label %177
116: ; preds = %113
%117 = load i8*, i8** %4
%118 = call i32 @strcpy(i8* %117, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%119 = load i8*, i8** %3
%120 = call i32 @getBinaryData(i8* %119, i32 41, i32 8)
store i32 %120, i32* %6
%121 = load i32, i32* %6
%122 = and i32 %121, 1
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %127
124: ; preds = %116
%125 = load i8*, i8** %4
%126 = call i32 @strcat(i8* %125, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %127
127: ; preds = %124, %116
%128 = load i32, i32* %6
%129 = and i32 %128, 2
%130 = icmp ne i32 %129, 0
br i1 %130, label %131, label %134
131: ; preds = %127
%132 = load i8*, i8** %4
%133 = call i32 @strcat(i8* %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %134
134: ; preds = %131, %127
%135 = load i32, i32* %6
%136 = and i32 %135, 4
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %141
138: ; preds = %134
%139 = load i8*, i8** %4
%140 = call i32 @strcat(i8* %139, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
br label %141
141: ; preds = %138, %134
%142 = load i32, i32* %6
%143 = and i32 %142, 8
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %148
145: ; preds = %141
%146 = load i8*, i8** %4
%147 = call i32 @strcat(i8* %146, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
br label %148
148: ; preds = %145, %141
%149 = load i32, i32* %6
%150 = and i32 %149, 16
%151 = icmp ne i32 %150, 0
br i1 %151, label %152, label %155
152: ; preds = %148
%153 = load i8*, i8** %4
%154 = call i32 @strcat(i8* %153, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
br label %155
155: ; preds = %152, %148
%156 = load i32, i32* %6
%157 = and i32 %156, 32
%158 = icmp ne i32 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %155
%160 = load i8*, i8** %4
%161 = call i32 @strcat(i8* %160, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
br label %162
162: ; preds = %159, %155
%163 = load i32, i32* %6
%164 = and i32 %163, 64
%165 = icmp ne i32 %164, 0
br i1 %165, label %166, label %169
166: ; preds = %162
%167 = load i8*, i8** %4
%168 = call i32 @strcat(i8* %167, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
br label %169
169: ; preds = %166, %162
%170 = load i32, i32* %6
%171 = and i32 %170, 128
%172 = icmp ne i32 %171, 0
br i1 %172, label %173, label %176
173: ; preds = %169
%174 = load i8*, i8** %4
%175 = call i32 @strcat(i8* %174, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
br label %176
176: ; preds = %173, %169
br label %375
177: ; preds = %113
%178 = load i32, i32* %5
%179 = icmp eq i32 %178, 45
br i1 %179, label %180, label %241
180: ; preds = %177
%181 = load i8*, i8** %4
%182 = call i32 @strcpy(i8* %181, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
%183 = load i8*, i8** %3
%184 = call i32 @getBinaryData(i8* %183, i32 41, i32 8)
store i32 %184, i32* %6
%185 = load i32, i32* %6
%186 = and i32 %185, 1
%187 = icmp ne i32 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %180
%189 = load i8*, i8** %4
%190 = call i32 @strcat(i8* %189, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %191
191: ; preds = %188, %180
%192 = load i32, i32* %6
%193 = and i32 %192, 2
%194 = icmp ne i32 %193, 0
br i1 %194, label %195, label %198
195: ; preds = %191
%196 = load i8*, i8** %4
%197 = call i32 @strcat(i8* %196, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %198
198: ; preds = %195, %191
%199 = load i32, i32* %6
%200 = and i32 %199, 4
%201 = icmp ne i32 %200, 0
br i1 %201, label %202, label %205
202: ; preds = %198
%203 = load i8*, i8** %4
%204 = call i32 @strcat(i8* %203, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %205
205: ; preds = %202, %198
%206 = load i32, i32* %6
%207 = and i32 %206, 8
%208 = icmp ne i32 %207, 0
br i1 %208, label %209, label %212
209: ; preds = %205
%210 = load i8*, i8** %4
%211 = call i32 @strcat(i8* %210, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %212
212: ; preds = %209, %205
%213 = load i32, i32* %6
%214 = and i32 %213, 16
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %212
%217 = load i8*, i8** %4
%218 = call i32 @strcat(i8* %217, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
br label %219
219: ; preds = %216, %212
%220 = load i32, i32* %6
%221 = and i32 %220, 32
%222 = icmp ne i32 %221, 0
br i1 %222, label %223, label %226
223: ; preds = %219
%224 = load i8*, i8** %4
%225 = call i32 @strcat(i8* %224, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %226
226: ; preds = %223, %219
%227 = load i32, i32* %6
%228 = and i32 %227, 64
%229 = icmp ne i32 %228, 0
br i1 %229, label %230, label %233
230: ; preds = %226
%231 = load i8*, i8** %4
%232 = call i32 @strcat(i8* %231, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %233
233: ; preds = %230, %226
%234 = load i32, i32* %6
%235 = and i32 %234, 128
%236 = icmp ne i32 %235, 0
br i1 %236, label %237, label %240
237: ; preds = %233
%238 = load i8*, i8** %4
%239 = call i32 @strcat(i8* %238, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %240
240: ; preds = %237, %233
br label %374
241: ; preds = %177
%242 = load i32, i32* %5
%243 = icmp eq i32 %242, 52
br i1 %243, label %244, label %305
244: ; preds = %241
%245 = load i8*, i8** %4
%246 = call i32 @strcpy(i8* %245, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0))
%247 = load i8*, i8** %3
%248 = call i32 @getBinaryData(i8* %247, i32 41, i32 8)
store i32 %248, i32* %6
%249 = load i32, i32* %6
%250 = and i32 %249, 1
%251 = icmp ne i32 %250, 0
br i1 %251, label %252, label %255
252: ; preds = %244
%253 = load i8*, i8** %4
%254 = call i32 @strcat(i8* %253, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %255
255: ; preds = %252, %244
%256 = load i32, i32* %6
%257 = and i32 %256, 2
%258 = icmp ne i32 %257, 0
br i1 %258, label %259, label %262
259: ; preds = %255
%260 = load i8*, i8** %4
%261 = call i32 @strcat(i8* %260, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %262
262: ; preds = %259, %255
%263 = load i32, i32* %6
%264 = and i32 %263, 4
%265 = icmp ne i32 %264, 0
br i1 %265, label %266, label %269
266: ; preds = %262
%267 = load i8*, i8** %4
%268 = call i32 @strcat(i8* %267, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %269
269: ; preds = %266, %262
%270 = load i32, i32* %6
%271 = and i32 %270, 8
%272 = icmp ne i32 %271, 0
br i1 %272, label %273, label %276
273: ; preds = %269
%274 = load i8*, i8** %4
%275 = call i32 @strcat(i8* %274, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %276
276: ; preds = %273, %269
%277 = load i32, i32* %6
%278 = and i32 %277, 16
%279 = icmp ne i32 %278, 0
br i1 %279, label %280, label %283
280: ; preds = %276
%281 = load i8*, i8** %4
%282 = call i32 @strcat(i8* %281, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
br label %283
283: ; preds = %280, %276
%284 = load i32, i32* %6
%285 = and i32 %284, 32
%286 = icmp ne i32 %285, 0
br i1 %286, label %287, label %290
287: ; preds = %283
%288 = load i8*, i8** %4
%289 = call i32 @strcat(i8* %288, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %290
290: ; preds = %287, %283
%291 = load i32, i32* %6
%292 = and i32 %291, 64
%293 = icmp ne i32 %292, 0
br i1 %293, label %294, label %297
294: ; preds = %290
%295 = load i8*, i8** %4
%296 = call i32 @strcat(i8* %295, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %297
297: ; preds = %294, %290
%298 = load i32, i32* %6
%299 = and i32 %298, 128
%300 = icmp ne i32 %299, 0
br i1 %300, label %301, label %304
301: ; preds = %297
%302 = load i8*, i8** %4
%303 = call i32 @strcat(i8* %302, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %304
304: ; preds = %301, %297
br label %373
305: ; preds = %241
%306 = load i32, i32* %5
%307 = icmp eq i32 %306, 62
br i1 %307, label %308, label %369
308: ; preds = %305
%309 = load i8*, i8** %4
%310 = call i32 @strcpy(i8* %309, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0))
%311 = load i8*, i8** %3
%312 = call i32 @getBinaryData(i8* %311, i32 41, i32 8)
store i32 %312, i32* %6
%313 = load i32, i32* %6
%314 = and i32 %313, 1
%315 = icmp ne i32 %314, 0
br i1 %315, label %316, label %319
316: ; preds = %308
%317 = load i8*, i8** %4
%318 = call i32 @strcat(i8* %317, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %319
319: ; preds = %316, %308
%320 = load i32, i32* %6
%321 = and i32 %320, 2
%322 = icmp ne i32 %321, 0
br i1 %322, label %323, label %326
323: ; preds = %319
%324 = load i8*, i8** %4
%325 = call i32 @strcat(i8* %324, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %326
326: ; preds = %323, %319
%327 = load i32, i32* %6
%328 = and i32 %327, 4
%329 = icmp ne i32 %328, 0
br i1 %329, label %330, label %333
330: ; preds = %326
%331 = load i8*, i8** %4
%332 = call i32 @strcat(i8* %331, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %333
333: ; preds = %330, %326
%334 = load i32, i32* %6
%335 = and i32 %334, 8
%336 = icmp ne i32 %335, 0
br i1 %336, label %337, label %340
337: ; preds = %333
%338 = load i8*, i8** %4
%339 = call i32 @strcat(i8* %338, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %340
340: ; preds = %337, %333
%341 = load i32, i32* %6
%342 = and i32 %341, 16
%343 = icmp ne i32 %342, 0
br i1 %343, label %344, label %347
344: ; preds = %340
%345 = load i8*, i8** %4
%346 = call i32 @strcat(i8* %345, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
br label %347
347: ; preds = %344, %340
%348 = load i32, i32* %6
%349 = and i32 %348, 32
%350 = icmp ne i32 %349, 0
br i1 %350, label %351, label %354
351: ; preds = %347
%352 = load i8*, i8** %4
%353 = call i32 @strcat(i8* %352, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %354
354: ; preds = %351, %347
%355 = load i32, i32* %6
%356 = and i32 %355, 64
%357 = icmp ne i32 %356, 0
br i1 %357, label %358, label %361
358: ; preds = %354
%359 = load i8*, i8** %4
%360 = call i32 @strcat(i8* %359, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %361
361: ; preds = %358, %354
%362 = load i32, i32* %6
%363 = and i32 %362, 128
%364 = icmp ne i32 %363, 0
br i1 %364, label %365, label %368
365: ; preds = %361
%366 = load i8*, i8** %4
%367 = call i32 @strcat(i8* %366, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %368
368: ; preds = %365, %361
br label %372
369: ; preds = %305
%370 = load i8*, i8** %4
%371 = call i32 @strcpy(i8* %370, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.32, i64 0, i64 0))
br label %372
372: ; preds = %369, %368
br label %373
373: ; preds = %372, %304
br label %374
374: ; preds = %373, %240
br label %375
375: ; preds = %374, %176
br label %376
376: ; preds = %375, %60
br label %377
377: ; preds = %376, %56
%378 = load i32, i32* %5
ret i32 %378
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [13 x i8] c"LED Status: \00"
@.str.2 = [7 x i8] c"Error \00"
@.str.3 = [8 x i8] c"Bypass \00"
@.str.4 = [8 x i8] c"Memory \00"
@.str.5 = [7 x i8] c"Armed \00"
@.str.6 = [7 x i8] c"Ready \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [9 x i8] c"Date: 20\00"
@.str.9 = [2 x i8] c"-\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [2 x i8] c":\00"
@.str.12 = [8 x i8] c"Zone1: \00"
@.str.13 = [3 x i8] c"1 \00"
@.str.14 = [3 x i8] c"2 \00"
@.str.15 = [3 x i8] c"3 \00"
@.str.16 = [3 x i8] c"4 \00"
@.str.17 = [3 x i8] c"5 \00"
@.str.18 = [3 x i8] c"6 \00"
@.str.19 = [3 x i8] c"7 \00"
@.str.20 = [3 x i8] c"8 \00"
@.str.21 = [8 x i8] c"Zone2: \00"
@.str.22 = [3 x i8] c"9 \00"
@.str.23 = [4 x i8] c"10 \00"
@.str.24 = [4 x i8] c"11 \00"
@.str.25 = [4 x i8] c"12 \00"
@.str.26 = [4 x i8] c"13 \00"
@.str.27 = [4 x i8] c"14 \00"
@.str.28 = [4 x i8] c"15 \00"
@.str.29 = [4 x i8] c"16 \00"
@.str.30 = [8 x i8] c"Zone3: \00"
@.str.31 = [8 x i8] c"Zone4: \00"
@.str.32 = [17 x i8] c"Unknown command.\00"
define i32 @decode(i8* %0, i8* %1) {
%3 = alloca [2 x i8]
%4 = alloca [2 x i8]
%5 = alloca [2 x i8]
%6 = alloca [2 x i8]
%7 = alloca [2 x i8]
%8 = alloca [2 x i8]
%9 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%14 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%15 = tail call i32 @getBinaryData(i8* %0, i32 0, i32 8)
%16 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
switch i32 %15, label %235 [
i32 5, label %17
i32 165, label %43
i32 39, label %67
i32 45, label %109
i32 52, label %151
i32 62, label %193
]
17: ; preds = %2
%18 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%19 = tail call i32 @getBinaryData(i8* %0, i32 12, i32 1)
%20 = icmp eq i32 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %17
%22 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %21, %17
%24 = tail call i32 @getBinaryData(i8* %0, i32 13, i32 1)
%25 = icmp eq i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %28
28: ; preds = %26, %23
%29 = tail call i32 @getBinaryData(i8* %0, i32 14, i32 1)
%30 = icmp eq i32 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31, %28
%34 = tail call i32 @getBinaryData(i8* %0, i32 15, i32 1)
%35 = icmp eq i32 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %33
%37 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %36, %33
%39 = tail call i32 @getBinaryData(i8* %0, i32 16, i32 1)
%40 = icmp eq i32 %39, 0
br i1 %40, label %237, label %41
41: ; preds = %38
%42 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %237
43: ; preds = %2
%44 = tail call i32 @getBinaryData(i8* %0, i32 9, i32 4)
%45 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %44)
%46 = tail call i32 @getBinaryData(i8* %0, i32 13, i32 4)
%47 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %46)
%48 = tail call i32 @getBinaryData(i8* %0, i32 19, i32 4)
%49 = call i32 @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %48)
%50 = tail call i32 @getBinaryData(i8* %0, i32 23, i32 5)
%51 = call i32 @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %50)
%52 = tail call i32 @getBinaryData(i8* %0, i32 28, i32 5)
%53 = call i32 @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %52)
%54 = tail call i32 @getBinaryData(i8* %0, i32 33, i32 6)
%55 = call i32 @sprintf(i8* %14, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %54)
%56 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%57 = call i32 @strcat(i8* %1, i8* %9)
%58 = call i32 @strcat(i8* %1, i8* %10)
%59 = call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%60 = call i32 @strcat(i8* %1, i8* %11)
%61 = call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%62 = call i32 @strcat(i8* %1, i8* %12)
%63 = call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%64 = call i32 @strcat(i8* %1, i8* %13)
%65 = call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%66 = call i32 @strcat(i8* %1, i8* %14)
br label %237
67: ; preds = %2
%68 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%69 = tail call i32 @getBinaryData(i8* %0, i32 41, i32 8)
%70 = and i32 %69, 1
%71 = icmp eq i32 %70, 0
br i1 %71, label %74, label %72
72: ; preds = %67
%73 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %74
74: ; preds = %72, %67
%75 = and i32 %69, 2
%76 = icmp eq i32 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %79
79: ; preds = %77, %74
%80 = and i32 %69, 4
%81 = icmp eq i32 %80, 0
br i1 %81, label %84, label %82
82: ; preds = %79
%83 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
br label %84
84: ; preds = %82, %79
%85 = and i32 %69, 8
%86 = icmp eq i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %84
%88 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
br label %89
89: ; preds = %87, %84
%90 = and i32 %69, 16
%91 = icmp eq i32 %90, 0
br i1 %91, label %94, label %92
92: ; preds = %89
%93 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
br label %94
94: ; preds = %92, %89
%95 = and i32 %69, 32
%96 = icmp eq i32 %95, 0
br i1 %96, label %99, label %97
97: ; preds = %94
%98 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
br label %99
99: ; preds = %97, %94
%100 = and i32 %69, 64
%101 = icmp eq i32 %100, 0
br i1 %101, label %104, label %102
102: ; preds = %99
%103 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
br label %104
104: ; preds = %102, %99
%105 = and i32 %69, 128
%106 = icmp eq i32 %105, 0
br i1 %106, label %237, label %107
107: ; preds = %104
%108 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
br label %237
109: ; preds = %2
%110 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
%111 = tail call i32 @getBinaryData(i8* %0, i32 41, i32 8)
%112 = and i32 %111, 1
%113 = icmp eq i32 %112, 0
br i1 %113, label %116, label %114
114: ; preds = %109
%115 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %116
116: ; preds = %114, %109
%117 = and i32 %111, 2
%118 = icmp eq i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %116
%120 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %121
121: ; preds = %119, %116
%122 = and i32 %111, 4
%123 = icmp eq i32 %122, 0
br i1 %123, label %126, label %124
124: ; preds = %121
%125 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %126
126: ; preds = %124, %121
%127 = and i32 %111, 8
%128 = icmp eq i32 %127, 0
br i1 %128, label %131, label %129
129: ; preds = %126
%130 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %131
131: ; preds = %129, %126
%132 = and i32 %111, 16
%133 = icmp eq i32 %132, 0
br i1 %133, label %136, label %134
134: ; preds = %131
%135 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
br label %136
136: ; preds = %134, %131
%137 = and i32 %111, 32
%138 = icmp eq i32 %137, 0
br i1 %138, label %141, label %139
139: ; preds = %136
%140 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %141
141: ; preds = %139, %136
%142 = and i32 %111, 64
%143 = icmp eq i32 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %141
%145 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %146
146: ; preds = %144, %141
%147 = and i32 %111, 128
%148 = icmp eq i32 %147, 0
br i1 %148, label %237, label %149
149: ; preds = %146
%150 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %237
151: ; preds = %2
%152 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0))
%153 = tail call i32 @getBinaryData(i8* %0, i32 41, i32 8)
%154 = and i32 %153, 1
%155 = icmp eq i32 %154, 0
br i1 %155, label %158, label %156
156: ; preds = %151
%157 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %158
158: ; preds = %156, %151
%159 = and i32 %153, 2
%160 = icmp eq i32 %159, 0
br i1 %160, label %163, label %161
161: ; preds = %158
%162 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %163
163: ; preds = %161, %158
%164 = and i32 %153, 4
%165 = icmp eq i32 %164, 0
br i1 %165, label %168, label %166
166: ; preds = %163
%167 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %168
168: ; preds = %166, %163
%169 = and i32 %153, 8
%170 = icmp eq i32 %169, 0
br i1 %170, label %173, label %171
171: ; preds = %168
%172 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %173
173: ; preds = %171, %168
%174 = and i32 %153, 16
%175 = icmp eq i32 %174, 0
br i1 %175, label %178, label %176
176: ; preds = %173
%177 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
br label %178
178: ; preds = %176, %173
%179 = and i32 %153, 32
%180 = icmp eq i32 %179, 0
br i1 %180, label %183, label %181
181: ; preds = %178
%182 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %183
183: ; preds = %181, %178
%184 = and i32 %153, 64
%185 = icmp eq i32 %184, 0
br i1 %185, label %188, label %186
186: ; preds = %183
%187 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %188
188: ; preds = %186, %183
%189 = and i32 %153, 128
%190 = icmp eq i32 %189, 0
br i1 %190, label %237, label %191
191: ; preds = %188
%192 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %237
193: ; preds = %2
%194 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0))
%195 = tail call i32 @getBinaryData(i8* %0, i32 41, i32 8)
%196 = and i32 %195, 1
%197 = icmp eq i32 %196, 0
br i1 %197, label %200, label %198
198: ; preds = %193
%199 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %200
200: ; preds = %198, %193
%201 = and i32 %195, 2
%202 = icmp eq i32 %201, 0
br i1 %202, label %205, label %203
203: ; preds = %200
%204 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %205
205: ; preds = %203, %200
%206 = and i32 %195, 4
%207 = icmp eq i32 %206, 0
br i1 %207, label %210, label %208
208: ; preds = %205
%209 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %210
210: ; preds = %208, %205
%211 = and i32 %195, 8
%212 = icmp eq i32 %211, 0
br i1 %212, label %215, label %213
213: ; preds = %210
%214 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %215
215: ; preds = %213, %210
%216 = and i32 %195, 16
%217 = icmp eq i32 %216, 0
br i1 %217, label %220, label %218
218: ; preds = %215
%219 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
br label %220
220: ; preds = %218, %215
%221 = and i32 %195, 32
%222 = icmp eq i32 %221, 0
br i1 %222, label %225, label %223
223: ; preds = %220
%224 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %225
225: ; preds = %223, %220
%226 = and i32 %195, 64
%227 = icmp eq i32 %226, 0
br i1 %227, label %230, label %228
228: ; preds = %225
%229 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %230
230: ; preds = %228, %225
%231 = and i32 %195, 128
%232 = icmp eq i32 %231, 0
br i1 %232, label %237, label %233
233: ; preds = %230
%234 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %237
235: ; preds = %2
%236 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.32, i64 0, i64 0))
br label %237
237: ; preds = %43, %149, %146, %235, %233, %230, %188, %191, %104, %107, %38, %41
ret i32 %15
}