#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 /*<<< orphan*/ data_dump(unsigned char *, int, int);
char *dump_ax25_call(unsigned char *, int);
int /*<<< orphan*/ dump_x25_addr(unsigned char *);
int /*<<< orphan*/ lprintf(int, char *, ...);
int /*<<< orphan*/ strncpy(char *, char *, int);
void facility(unsigned char *data, int lgtot) {
  int lgfac, lg, fct, lgdigi, lgaddcall;
  int lgad, lgaddr, lgadind;
  char digis[10], digid[10];
  char indorig[10], inddest[10];
  char addstorig[20], addstdest[20];
  unsigned char *factot;
  factot = data;
  lgfac = *data++;
  lg = lgfac;
  digid[0] = digis[0] = '\0';
  indorig[0] = inddest[0] = '\0';
  while (lg > 0) {
    fct = *data++;
    lg--;
    switch (fct) {
    case 0:
      data++;
      lg--;
      break;
    case 0x3F:
      lprintf(11, "Facility 3F%2.2X\n", *data++);
      lg--;
      break;
    case 0x7F:
      lprintf(11, "NbAlea: %2.2X%2.2X\n", *data, *(data + 1));
      data += 2;
      lg -= 2;
      break;
    case 0xE9:
      lgdigi = *data++;
      strncpy(digid, dump_ax25_call(data, lgdigi), 10);
      data += lgdigi;
      lg -= 1 + lgdigi;
      break;
    case 0xEB:
      lgdigi = *data++;
      strncpy(digis, dump_ax25_call(data, lgdigi), 10);
      data += lgdigi;
      lg -= 1 + lgdigi;
      break;
    case 0xED:
      lgaddcall = *data++;
      lprintf(11, "at %s", dump_ax25_call(data, lgaddcall));
      data += lgaddcall;
      lg -= 1 + lgaddcall;
      data_dump(factot, lgtot, 1);
      break;
    case 0xEE:
      lgaddcall = *data++;
      ++data;
      lprintf(11, " @%s\n", dump_x25_addr(data));
      data += lgaddcall;
      lg -= 1 + lgaddcall;
      data_dump(factot, lgtot, 1);
      break;
    case 0xC9:
    case 0xCB:
      lgaddcall = *data++;
      data++;
      data += 3;
      lgad = *data++;
      lg -= 6;
      lgaddr = lgad;
      if (fct == 0xCB) {
        if (lgadind > 10)
          lgadind = 10;
        strncpy(indorig, (char *)data, lgadind);
        indorig[lgadind] = '\0';
        lgadind = lgaddcall - (lgad + 1) / 2 - 5;
        if (lgadind > 10) {
          data_dump(factot, lgtot, 1);
        }
      } else {
        if (lgadind > 10)
          lgadind = 10;
        strncpy(inddest, (char *)data, lgadind);
        inddest[lgadind] = '\0';
        lgadind = lgaddcall - (lgad + 1) / 2 - 5;
        if (lgadind > 10) {
          data_dump(factot, lgtot, 1);
        }
      }
      data += lgadind;
      lg -= lgadind;
      break;
    default:
      lprintf(11, "Unknown Facility Type %2.2X at lg:%d\n", fct, lgtot - lg);
      data_dump(factot, lgtot, 1);
      lg = 0;
      break;
    }
  }
  if (*indorig && *inddest) {
    lprintf(11, "%s @%s", indorig, addstorig);
    if (*digis)
      lprintf(11, " via %s", digis);
    lprintf(11, " -> ");
    lprintf(11, "%s @%s", inddest, addstdest);
    if (*digid)
      lprintf(11, " via %s\n", digid);
    lprintf(11, "\n");
  }
}


x86 assembly (clang, -O0):
<facility>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
movb   $0x0,-0x36(%rbp)
movb   $0x0,-0x40(%rbp)
movb   $0x0,-0x54(%rbp)
movb   $0x0,-0x4a(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    165c <facility+0x50c>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x9c(%rbp)
test   %eax,%eax
je     1282 <facility+0x132>
jmp    11d6 <facility+0x86>
mov    -0x9c(%rbp),%eax
sub    $0x3f,%eax
je     129c <facility+0x14c>
jmp    11ea <facility+0x9a>
mov    -0x9c(%rbp),%eax
sub    $0x7f,%eax
je     12cf <facility+0x17f>
jmp    11fe <facility+0xae>
mov    -0x9c(%rbp),%eax
sub    $0xc9,%eax
je     14b9 <facility+0x369>
jmp    1214 <facility+0xc4>
mov    -0x9c(%rbp),%eax
sub    $0xcb,%eax
je     14b9 <facility+0x369>
jmp    122a <facility+0xda>
mov    -0x9c(%rbp),%eax
sub    $0xe9,%eax
je     130b <facility+0x1bb>
jmp    1240 <facility+0xf0>
mov    -0x9c(%rbp),%eax
sub    $0xeb,%eax
je     136f <facility+0x21f>
jmp    1256 <facility+0x106>
mov    -0x9c(%rbp),%eax
sub    $0xed,%eax
je     13d3 <facility+0x283>
jmp    126c <facility+0x11c>
mov    -0x9c(%rbp),%eax
sub    $0xee,%eax
je     1442 <facility+0x2f2>
jmp    1620 <facility+0x4d0>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%edx
mov    $0xb,%edi
lea    0xd46(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
movzbl (%rax),%edx
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%ecx
mov    $0xb,%edi
lea    0xd28(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    -0x8(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1060 <dump_ax25_call@plt>
mov    -0xa8(%rbp),%rdi
mov    %rax,%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
mov    -0x1c(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x36(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1060 <dump_ax25_call@plt>
mov    -0xb0(%rbp),%rdi
mov    %rax,%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
mov    -0x1c(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1060 <dump_ax25_call@plt>
mov    %rax,%rdx
mov    $0xb,%edi
lea    0xc23(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    -0x20(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x98(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <dump_x25_addr@plt>
mov    %eax,%edx
mov    $0xb,%edi
lea    0xbb2(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    -0x20(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x98(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
jmp    1657 <facility+0x507>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x6,%eax
mov    %eax,-0x14(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpl   $0xcb,-0x18(%rbp)
jne    158b <facility+0x43b>
cmpl   $0xa,-0x2c(%rbp)
jle    1528 <facility+0x3d8>
movl   $0xa,-0x2c(%rbp)
lea    -0x4a(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1030 <strncpy@plt>
movslq -0x2c(%rbp),%rax
movb   $0x0,-0x4a(%rbp,%rax,1)
mov    -0x20(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb4(%rbp),%eax
sub    %ecx,%eax
sub    $0x5,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jle    1586 <facility+0x436>
mov    -0x98(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
jmp    15ff <facility+0x4af>
cmpl   $0xa,-0x2c(%rbp)
jle    159c <facility+0x44c>
movl   $0xa,-0x2c(%rbp)
lea    -0x54(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1030 <strncpy@plt>
movslq -0x2c(%rbp),%rax
movb   $0x0,-0x54(%rbp,%rax,1)
mov    -0x20(%rbp),%eax
mov    %eax,-0xb8(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb8(%rbp),%eax
sub    %ecx,%eax
sub    $0x5,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jle    15fa <facility+0x4aa>
mov    -0x98(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
jmp    15ff <facility+0x4af>
mov    -0x2c(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x2c(%rbp),%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1657 <facility+0x507>
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
sub    -0x14(%rbp),%ecx
mov    $0xb,%edi
lea    0x9fd(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    -0x98(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
movl   $0x0,-0x14(%rbp)
jmp    1198 <facility+0x48>
movsbl -0x4a(%rbp),%eax
cmp    $0x0,%eax
je     1717 <facility+0x5c7>
movsbl -0x54(%rbp),%eax
cmp    $0x0,%eax
je     1717 <facility+0x5c7>
lea    -0x4a(%rbp),%rdx
lea    -0x70(%rbp),%rcx
mov    $0xb,%edi
lea    0x9ce(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
cmpb   $0x0,-0x36(%rbp)
je     16b2 <facility+0x562>
lea    -0x36(%rbp),%rdx
mov    $0xb,%edi
lea    0x9b4(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    $0xb,%edi
lea    0x9a9(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
lea    -0x54(%rbp),%rdx
lea    -0x90(%rbp),%rcx
mov    $0xb,%edi
lea    0x97c(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
cmpb   $0x0,-0x40(%rbp)
je     1704 <facility+0x5b4>
lea    -0x40(%rbp),%rdx
mov    $0xb,%edi
lea    0x96f(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
mov    $0xb,%edi
lea    0x900(%rip),%rsi
mov    $0x0,%al
call   1070 <lprintf@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<facility>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %esi,0xc(%rsp)
mov    %rdi,0x10(%rsp)
movzbl (%rdi),%ebx
movb   $0x0,0x36(%rsp)
movb   $0x0,0x2c(%rsp)
movb   $0x0,0x18(%rsp)
movb   $0x0,0x22(%rsp)
test   %ebx,%ebx
je     14b7 <facility+0x367>
mov    0x10(%rsp),%rax
lea    0x1(%rax),%r14
lea    0xe6a(%rip),%rbp
jmp    11d0 <facility+0x80>
mov    0x10(%rsp),%rdi
mov    0xc(%rsp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
mov    %r15d,%r13d
movslq %r13d,%rax
add    $0xfffffffb,%r13d
add    %rax,%r14
add    $0xfffffffffffffffb,%r14
sub    %eax,%ebx
add    $0xfffffffe,%ebx
lea    0xe38(%rip),%rbp
test   %ebx,%ebx
jle    1403 <facility+0x2b3>
movzbl (%r14),%eax
lea    -0x1(%rbx),%r12d
lea    0x37(%rax),%ecx
cmp    $0x37,%cl
ja     1250 <facility+0x100>
movzbl %cl,%ecx
movslq 0x0(%rbp,%rcx,4),%rcx
add    %rbp,%rcx
jmp    *%rcx
movzbl 0x1(%r14),%r15d
movzbl 0x6(%r14),%ebp
add    $0x7,%r14
cmp    $0xa,%r13d
mov    $0xa,%ecx
cmovge %ecx,%r13d
cmp    $0xcb,%al
jne    137d <facility+0x22d>
lea    0x22(%rsp),%rdi
mov    %r14,%rsi
mov    %r13d,%edx
call   1030 <strncpy@plt>
movslq %r13d,%rax
movb   $0x0,0x22(%rsp,%rax,1)
add    $0x1,%ebp
shr    %ebp
sub    %ebp,%r15d
mov    %r15d,%r13d
cmp    $0xf,%r15d
jg     1198 <facility+0x48>
jmp    11ae <facility+0x5e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x3f,%al
je     13af <facility+0x25f>
cmp    $0x7f,%al
jne    13d3 <facility+0x283>
movzbl 0x1(%r14),%edx
movzbl 0x2(%r14),%ecx
mov    $0xb,%edi
lea    0xe7c(%rip),%rsi
xor    %eax,%eax
call   1070 <lprintf@plt>
add    $0x3,%r14
add    $0xfffffffd,%ebx
jmp    11c8 <facility+0x78>
lea    0x2(%r14),%rdi
movzbl 0x1(%r14),%r15d
mov    %r15d,%esi
call   1060 <dump_ax25_call@plt>
lea    0x2c(%rsp),%rdi
mov    %rax,%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
add    %r15,%r14
add    $0x2,%r14
not    %r15d
add    %r15d,%r12d
lea    0xd40(%rip),%rbp
mov    %r12d,%ebx
jmp    11c8 <facility+0x78>
lea    0x2(%r14),%rdi
movzbl 0x1(%r14),%ebx
mov    %ebx,%esi
call   1060 <dump_ax25_call@plt>
lea    0x36(%rsp),%rdi
mov    %rax,%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
add    %rbx,%r14
add    $0x2,%r14
not    %ebx
add    %ebx,%r12d
mov    %r12d,%ebx
jmp    11c8 <facility+0x78>
lea    0x2(%r14),%rdi
movzbl 0x1(%r14),%ebx
mov    %ebx,%esi
call   1060 <dump_ax25_call@plt>
mov    $0xb,%edi
lea    0xdec(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1070 <lprintf@plt>
add    %rbx,%r14
add    $0x2,%r14
jmp    1357 <facility+0x207>
movzbl 0x1(%r14),%ebx
lea    0x3(%r14),%rdi
call   1040 <dump_x25_addr@plt>
mov    $0xb,%edi
lea    0xdc5(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <lprintf@plt>
add    %rbx,%r14
add    $0x3,%r14
not    %ebx
add    %ebx,%r12d
mov    0x10(%rsp),%rdi
mov    0xc(%rsp),%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
mov    %r12d,%ebx
jmp    11c8 <facility+0x78>
add    $0x2,%r14
jmp    13cb <facility+0x27b>
lea    0x18(%rsp),%rdi
mov    %r14,%rsi
mov    %r13d,%edx
call   1030 <strncpy@plt>
movslq %r13d,%rax
movb   $0x0,0x18(%rsp,%rax,1)
add    $0x1,%ebp
shr    %ebp
sub    %ebp,%r15d
mov    %r15d,%r13d
cmp    $0x10,%r15d
jge    1198 <facility+0x48>
jmp    11ae <facility+0x5e>
movzbl 0x1(%r14),%edx
add    $0x2,%r14
mov    $0xb,%edi
lea    0xd1c(%rip),%rsi
xor    %eax,%eax
call   1070 <lprintf@plt>
add    $0xfffffffe,%ebx
jmp    11c8 <facility+0x78>
movzbl %al,%edx
mov    0xc(%rsp),%ebx
mov    %ebx,%ecx
sub    %r12d,%ecx
lea    0xd2c(%rip),%rsi
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
mov    0x10(%rsp),%rdi
mov    %ebx,%esi
mov    $0x1,%edx
call   1050 <data_dump@plt>
cmpb   $0x0,0x22(%rsp)
je     14b7 <facility+0x367>
cmpb   $0x0,0x18(%rsp)
je     14b7 <facility+0x367>
lea    0xd18(%rip),%rsi
lea    0x22(%rsp),%rdx
lea    0x60(%rsp),%rcx
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
cmpb   $0x0,0x36(%rsp)
je     1455 <facility+0x305>
lea    0xcfb(%rip),%rsi
lea    0x36(%rsp),%rdx
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
lea    0xceb(%rip),%rsi
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
lea    0xcc9(%rip),%rsi
lea    0x18(%rsp),%rdx
lea    0x40(%rsp),%rcx
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
cmpb   $0x0,0x2c(%rsp)
je     14a4 <facility+0x354>
lea    0xcb9(%rip),%rsi
lea    0x2c(%rsp),%rdx
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
lea    0xc45(%rip),%rsi
mov    $0xb,%edi
xor    %eax,%eax
call   1070 <lprintf@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Facility 3F%2.2X\0A\00"
@.str.1 = [20 x i8] c"NbAlea: %2.2X%2.2X\0A\00"
@.str.2 = [6 x i8] c"at %s\00"
@.str.3 = [6 x i8] c" @%s\0A\00"
@.str.4 = [38 x i8] c"Unknown Facility Type %2.2X at lg:%d\0A\00"
@.str.5 = [7 x i8] c"%s @%s\00"
@.str.6 = [8 x i8] c" via %s\00"
@.str.7 = [5 x i8] c" -> \00"
@.str.8 = [9 x i8] c" via %s\0A\00"
@.str.9 = [2 x i8] c"\0A\00"
define void @facility(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [10 x i8]
%14 = alloca [10 x i8]
%15 = alloca [10 x i8]
%16 = alloca [10 x i8]
%17 = alloca [20 x i8]
%18 = alloca [20 x i8]
%19 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
%20 = load i8*, i8** %3
store i8* %20, i8** %19
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i32 1
store i8* %22, i8** %3
%23 = load i8, i8* %21
%24 = zext i8 %23 to i32
store i32 %24, i32* %5
%25 = load i32, i32* %5
store i32 %25, i32* %6
%26 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
store i8 0, i8* %26
%27 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
store i8 0, i8* %27
%28 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
store i8 0, i8* %28
%29 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
store i8 0, i8* %29
br label %30
30: ; preds = %229, %2
%31 = load i32, i32* %6
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %230
33: ; preds = %30
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i32 1
store i8* %35, i8** %3
%36 = load i8, i8* %34
%37 = zext i8 %36 to i32
store i32 %37, i32* %7
%38 = load i32, i32* %6
%39 = add nsw i32 %38, -1
store i32 %39, i32* %6
%40 = load i32, i32* %7
switch i32 %40, label %220 [
i32 0, label %41
i32 63, label %46
i32 127, label %54
i32 233, label %67
i32 235, label %85
i32 237, label %103
i32 238, label %123
i32 201, label %144
i32 203, label %144
]
41: ; preds = %33
%42 = load i8*, i8** %3
%43 = getelementptr inbounds i8, i8* %42, i32 1
store i8* %43, i8** %3
%44 = load i32, i32* %6
%45 = add nsw i32 %44, -1
store i32 %45, i32* %6
br label %229
46: ; preds = %33
%47 = load i8*, i8** %3
%48 = getelementptr inbounds i8, i8* %47, i32 1
store i8* %48, i8** %3
%49 = load i8, i8* %47
%50 = zext i8 %49 to i32
%51 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %6
%53 = add nsw i32 %52, -1
store i32 %53, i32* %6
br label %229
54: ; preds = %33
%55 = load i8*, i8** %3
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = load i8*, i8** %3
%59 = getelementptr inbounds i8, i8* %58, i64 1
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %57, i32 %61)
%63 = load i8*, i8** %3
%64 = getelementptr inbounds i8, i8* %63, i64 2
store i8* %64, i8** %3
%65 = load i32, i32* %6
%66 = sub nsw i32 %65, 2
store i32 %66, i32* %6
br label %229
67: ; preds = %33
%68 = load i8*, i8** %3
%69 = getelementptr inbounds i8, i8* %68, i32 1
store i8* %69, i8** %3
%70 = load i8, i8* %68
%71 = zext i8 %70 to i32
store i32 %71, i32* %8
%72 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%73 = load i8*, i8** %3
%74 = load i32, i32* %8
%75 = call i8* @dump_ax25_call(i8* %73, i32 %74)
%76 = call i32 @strncpy(i8* %72, i8* %75, i32 10)
%77 = load i32, i32* %8
%78 = load i8*, i8** %3
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds i8, i8* %78, i64 %79
store i8* %80, i8** %3
%81 = load i32, i32* %8
%82 = add nsw i32 1, %81
%83 = load i32, i32* %6
%84 = sub nsw i32 %83, %82
store i32 %84, i32* %6
br label %229
85: ; preds = %33
%86 = load i8*, i8** %3
%87 = getelementptr inbounds i8, i8* %86, i32 1
store i8* %87, i8** %3
%88 = load i8, i8* %86
%89 = zext i8 %88 to i32
store i32 %89, i32* %8
%90 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%91 = load i8*, i8** %3
%92 = load i32, i32* %8
%93 = call i8* @dump_ax25_call(i8* %91, i32 %92)
%94 = call i32 @strncpy(i8* %90, i8* %93, i32 10)
%95 = load i32, i32* %8
%96 = load i8*, i8** %3
%97 = sext i32 %95 to i64
%98 = getelementptr inbounds i8, i8* %96, i64 %97
store i8* %98, i8** %3
%99 = load i32, i32* %8
%100 = add nsw i32 1, %99
%101 = load i32, i32* %6
%102 = sub nsw i32 %101, %100
store i32 %102, i32* %6
br label %229
103: ; preds = %33
%104 = load i8*, i8** %3
%105 = getelementptr inbounds i8, i8* %104, i32 1
store i8* %105, i8** %3
%106 = load i8, i8* %104
%107 = zext i8 %106 to i32
store i32 %107, i32* %9
%108 = load i8*, i8** %3
%109 = load i32, i32* %9
%110 = call i8* @dump_ax25_call(i8* %108, i32 %109)
%111 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %110)
%112 = load i32, i32* %9
%113 = load i8*, i8** %3
%114 = sext i32 %112 to i64
%115 = getelementptr inbounds i8, i8* %113, i64 %114
store i8* %115, i8** %3
%116 = load i32, i32* %9
%117 = add nsw i32 1, %116
%118 = load i32, i32* %6
%119 = sub nsw i32 %118, %117
store i32 %119, i32* %6
%120 = load i8*, i8** %19
%121 = load i32, i32* %4
%122 = call i32 @data_dump(i8* %120, i32 %121, i32 1)
br label %229
123: ; preds = %33
%124 = load i8*, i8** %3
%125 = getelementptr inbounds i8, i8* %124, i32 1
store i8* %125, i8** %3
%126 = load i8, i8* %124
%127 = zext i8 %126 to i32
store i32 %127, i32* %9
%128 = load i8*, i8** %3
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %3
%130 = load i8*, i8** %3
%131 = call i32 @dump_x25_addr(i8* %130)
%132 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %131)
%133 = load i32, i32* %9
%134 = load i8*, i8** %3
%135 = sext i32 %133 to i64
%136 = getelementptr inbounds i8, i8* %134, i64 %135
store i8* %136, i8** %3
%137 = load i32, i32* %9
%138 = add nsw i32 1, %137
%139 = load i32, i32* %6
%140 = sub nsw i32 %139, %138
store i32 %140, i32* %6
%141 = load i8*, i8** %19
%142 = load i32, i32* %4
%143 = call i32 @data_dump(i8* %141, i32 %142, i32 1)
br label %229
144: ; preds = %33, %33
%145 = load i8*, i8** %3
%146 = getelementptr inbounds i8, i8* %145, i32 1
store i8* %146, i8** %3
%147 = load i8, i8* %145
%148 = zext i8 %147 to i32
store i32 %148, i32* %9
%149 = load i8*, i8** %3
%150 = getelementptr inbounds i8, i8* %149, i32 1
store i8* %150, i8** %3
%151 = load i8*, i8** %3
%152 = getelementptr inbounds i8, i8* %151, i64 3
store i8* %152, i8** %3
%153 = load i8*, i8** %3
%154 = getelementptr inbounds i8, i8* %153, i32 1
store i8* %154, i8** %3
%155 = load i8, i8* %153
%156 = zext i8 %155 to i32
store i32 %156, i32* %10
%157 = load i32, i32* %6
%158 = sub nsw i32 %157, 6
store i32 %158, i32* %6
%159 = load i32, i32* %10
store i32 %159, i32* %11
%160 = load i32, i32* %7
%161 = icmp eq i32 %160, 203
br i1 %161, label %162, label %187
162: ; preds = %144
%163 = load i32, i32* %12
%164 = icmp sgt i32 %163, 10
br i1 %164, label %165, label %166
165: ; preds = %162
store i32 10, i32* %12
br label %166
166: ; preds = %165, %162
%167 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%168 = load i8*, i8** %3
%169 = load i32, i32* %12
%170 = call i32 @strncpy(i8* %167, i8* %168, i32 %169)
%171 = load i32, i32* %12
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 %172
store i8 0, i8* %173
%174 = load i32, i32* %9
%175 = load i32, i32* %10
%176 = add nsw i32 %175, 1
%177 = sdiv i32 %176, 2
%178 = sub nsw i32 %174, %177
%179 = sub nsw i32 %178, 5
store i32 %179, i32* %12
%180 = load i32, i32* %12
%181 = icmp sgt i32 %180, 10
br i1 %181, label %182, label %186
182: ; preds = %166
%183 = load i8*, i8** %19
%184 = load i32, i32* %4
%185 = call i32 @data_dump(i8* %183, i32 %184, i32 1)
br label %186
186: ; preds = %182, %166
br label %212
187: ; preds = %144
%188 = load i32, i32* %12
%189 = icmp sgt i32 %188, 10
br i1 %189, label %190, label %191
190: ; preds = %187
store i32 10, i32* %12
br label %191
191: ; preds = %190, %187
%192 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%193 = load i8*, i8** %3
%194 = load i32, i32* %12
%195 = call i32 @strncpy(i8* %192, i8* %193, i32 %194)
%196 = load i32, i32* %12
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 %197
store i8 0, i8* %198
%199 = load i32, i32* %9
%200 = load i32, i32* %10
%201 = add nsw i32 %200, 1
%202 = sdiv i32 %201, 2
%203 = sub nsw i32 %199, %202
%204 = sub nsw i32 %203, 5
store i32 %204, i32* %12
%205 = load i32, i32* %12
%206 = icmp sgt i32 %205, 10
br i1 %206, label %207, label %211
207: ; preds = %191
%208 = load i8*, i8** %19
%209 = load i32, i32* %4
%210 = call i32 @data_dump(i8* %208, i32 %209, i32 1)
br label %211
211: ; preds = %207, %191
br label %212
212: ; preds = %211, %186
%213 = load i32, i32* %12
%214 = load i8*, i8** %3
%215 = sext i32 %213 to i64
%216 = getelementptr inbounds i8, i8* %214, i64 %215
store i8* %216, i8** %3
%217 = load i32, i32* %12
%218 = load i32, i32* %6
%219 = sub nsw i32 %218, %217
store i32 %219, i32* %6
br label %229
220: ; preds = %33
%221 = load i32, i32* %7
%222 = load i32, i32* %4
%223 = load i32, i32* %6
%224 = sub nsw i32 %222, %223
%225 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 %221, i32 %224)
%226 = load i8*, i8** %19
%227 = load i32, i32* %4
%228 = call i32 @data_dump(i8* %226, i32 %227, i32 1)
store i32 0, i32* %6
br label %229
229: ; preds = %220, %212, %123, %103, %85, %67, %54, %46, %41
br label %30
230: ; preds = %30
%231 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%232 = load i8, i8* %231
%233 = sext i8 %232 to i32
%234 = icmp ne i32 %233, 0
br i1 %234, label %235, label %263
235: ; preds = %230
%236 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%237 = load i8, i8* %236
%238 = sext i8 %237 to i32
%239 = icmp ne i32 %238, 0
br i1 %239, label %240, label %263
240: ; preds = %235
%241 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%242 = getelementptr inbounds [20 x i8], [20 x i8]* %17, i64 0, i64 0
%243 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %241, i8* %242)
%244 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%245 = load i8, i8* %244
%246 = icmp ne i8 %245, 0
br i1 %246, label %247, label %250
247: ; preds = %240
%248 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%249 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* %248)
br label %250
250: ; preds = %247, %240
%251 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%252 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%253 = getelementptr inbounds [20 x i8], [20 x i8]* %18, i64 0, i64 0
%254 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %252, i8* %253)
%255 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%256 = load i8, i8* %255
%257 = icmp ne i8 %256, 0
br i1 %257, label %258, label %261
258: ; preds = %250
%259 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%260 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %259)
br label %261
261: ; preds = %258, %250
%262 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %263
263: ; preds = %261, %235, %230
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"Facility 3F%2.2X\0A\00"
@.str.1 = [20 x i8] c"NbAlea: %2.2X%2.2X\0A\00"
@.str.2 = [6 x i8] c"at %s\00"
@.str.3 = [6 x i8] c" @%s\0A\00"
@.str.4 = [38 x i8] c"Unknown Facility Type %2.2X at lg:%d\0A\00"
@.str.5 = [7 x i8] c"%s @%s\00"
@.str.6 = [8 x i8] c" via %s\00"
@.str.7 = [5 x i8] c" -> \00"
@.str.8 = [9 x i8] c" via %s\0A\00"
@.str.9 = [2 x i8] c"\0A\00"
define void @facility(i8* %0, i32 %1) {
%3 = alloca [10 x i8]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = alloca [10 x i8]
%7 = alloca [20 x i8]
%8 = alloca [20 x i8]
%9 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%15 = load i8, i8* %0
store i8 0, i8* %9
store i8 0, i8* %10
store i8 0, i8* %12
store i8 0, i8* %11
%16 = icmp eq i8 %15, 0
br i1 %16, label %154, label %17
17: ; preds = %2
%18 = zext i8 %15 to i32
%19 = getelementptr inbounds i8, i8* %0, i64 1
br label %20
20: ; preds = %17, %128
%21 = phi i8* [ %131, %128 ], [ %19, %17 ]
%22 = phi i32 [ %130, %128 ], [ undef, %17 ]
%23 = phi i32 [ %129, %128 ], [ %18, %17 ]
%24 = getelementptr inbounds i8, i8* %21, i64 1
%25 = load i8, i8* %21
%26 = add nsw i32 %23, -1
switch i8 %25, label %123 [
i8 0, label %27
i8 63, label %30
i8 127, label %36
i8 -23, label %45
i8 -21, label %55
i8 -19, label %65
i8 -18, label %76
i8 -55, label %87
i8 -53, label %87
]
27: ; preds = %20
%28 = getelementptr inbounds i8, i8* %21, i64 2
%29 = add nsw i32 %23, -2
br label %128
30: ; preds = %20
%31 = getelementptr inbounds i8, i8* %21, i64 2
%32 = load i8, i8* %24
%33 = zext i8 %32 to i32
%34 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %33)
%35 = add nsw i32 %23, -2
br label %128
36: ; preds = %20
%37 = load i8, i8* %24
%38 = zext i8 %37 to i32
%39 = getelementptr inbounds i8, i8* %21, i64 2
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %38, i32 %41)
%43 = getelementptr inbounds i8, i8* %21, i64 3
%44 = add nsw i32 %23, -3
br label %128
45: ; preds = %20
%46 = getelementptr inbounds i8, i8* %21, i64 2
%47 = load i8, i8* %24
%48 = zext i8 %47 to i32
%49 = call i8* @dump_ax25_call(i8* %46, i32 %48)
%50 = call i32 @strncpy(i8* %10, i8* %49, i32 10)
%51 = zext i8 %47 to i64
%52 = getelementptr inbounds i8, i8* %46, i64 %51
%53 = xor i32 %48, -1
%54 = add i32 %26, %53
br label %128
55: ; preds = %20
%56 = getelementptr inbounds i8, i8* %21, i64 2
%57 = load i8, i8* %24
%58 = zext i8 %57 to i32
%59 = call i8* @dump_ax25_call(i8* %56, i32 %58)
%60 = call i32 @strncpy(i8* %9, i8* %59, i32 10)
%61 = zext i8 %57 to i64
%62 = getelementptr inbounds i8, i8* %56, i64 %61
%63 = xor i32 %58, -1
%64 = add i32 %26, %63
br label %128
65: ; preds = %20
%66 = getelementptr inbounds i8, i8* %21, i64 2
%67 = load i8, i8* %24
%68 = zext i8 %67 to i32
%69 = call i8* @dump_ax25_call(i8* %66, i32 %68)
%70 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %69)
%71 = zext i8 %67 to i64
%72 = getelementptr inbounds i8, i8* %66, i64 %71
%73 = xor i32 %68, -1
%74 = add i32 %26, %73
%75 = call i32 @data_dump(i8* %0, i32 %1, i32 1)
br label %128
76: ; preds = %20
%77 = load i8, i8* %24
%78 = zext i8 %77 to i32
%79 = getelementptr inbounds i8, i8* %21, i64 3
%80 = call i32 @dump_x25_addr(i8* %79)
%81 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %80)
%82 = zext i8 %77 to i64
%83 = getelementptr inbounds i8, i8* %79, i64 %82
%84 = xor i32 %78, -1
%85 = add i32 %26, %84
%86 = call i32 @data_dump(i8* %0, i32 %1, i32 1)
br label %128
87: ; preds = %20, %20
%88 = load i8, i8* %24
%89 = zext i8 %88 to i32
%90 = getelementptr inbounds i8, i8* %21, i64 6
%91 = getelementptr inbounds i8, i8* %21, i64 7
%92 = load i8, i8* %90
%93 = zext i8 %92 to i32
%94 = icmp eq i8 %25, -53
%95 = icmp slt i32 %22, 10
%96 = select i1 %95, i32 %22, i32 10
br i1 %94, label %97, label %105
97: ; preds = %87
%98 = call i32 @strncpy(i8* %11, i8* %91, i32 %96)
%99 = sext i32 %96 to i64
%100 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %99
store i8 0, i8* %100
%101 = add nuw nsw i32 %93, 1
%102 = lshr i32 %101, 1
%103 = sub nsw i32 %89, %102
%104 = icmp sgt i32 %103, 15
br i1 %104, label %113, label %116
105: ; preds = %87
%106 = call i32 @strncpy(i8* %12, i8* %91, i32 %96)
%107 = sext i32 %96 to i64
%108 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 %107
store i8 0, i8* %108
%109 = add nuw nsw i32 %93, 1
%110 = lshr i32 %109, 1
%111 = sub nsw i32 %89, %110
%112 = icmp sgt i32 %111, 15
br i1 %112, label %113, label %116
113: ; preds = %105, %97
%114 = phi i32 [ %103, %97 ], [ %111, %105 ]
%115 = call i32 @data_dump(i8* %0, i32 %1, i32 1)
br label %116
116: ; preds = %113, %105, %97
%117 = phi i32 [ %103, %97 ], [ %111, %105 ], [ %114, %113 ]
%118 = add nsw i32 %117, -5
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, i8* %91, i64 %119
%121 = sub i32 %23, %117
%122 = add i32 %121, -2
br label %128
123: ; preds = %20
%124 = zext i8 %25 to i32
%125 = sub nsw i32 %1, %26
%126 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 %124, i32 %125)
%127 = call i32 @data_dump(i8* %0, i32 %1, i32 1)
br label %133
128: ; preds = %116, %76, %65, %55, %45, %36, %30, %27
%129 = phi i32 [ %122, %116 ], [ %85, %76 ], [ %74, %65 ], [ %64, %55 ], [ %54, %45 ], [ %44, %36 ], [ %35, %30 ], [ %29, %27 ]
%130 = phi i32 [ %118, %116 ], [ %22, %76 ], [ %22, %65 ], [ %22, %55 ], [ %22, %45 ], [ %22, %36 ], [ %22, %30 ], [ %22, %27 ]
%131 = phi i8* [ %120, %116 ], [ %83, %76 ], [ %72, %65 ], [ %62, %55 ], [ %52, %45 ], [ %43, %36 ], [ %31, %30 ], [ %28, %27 ]
%132 = icmp sgt i32 %129, 0
br i1 %132, label %20, label %133
133: ; preds = %128, %123
%134 = load i8, i8* %11
%135 = load i8, i8* %12
%136 = icmp ne i8 %134, 0
%137 = icmp ne i8 %135, 0
%138 = select i1 %136, i1 %137, i1 false
br i1 %138, label %139, label %154
139: ; preds = %133
%140 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %11, i8* %13)
%141 = load i8, i8* %9
%142 = icmp eq i8 %141, 0
br i1 %142, label %145, label %143
143: ; preds = %139
%144 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* %9)
br label %145
145: ; preds = %143, %139
%146 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%147 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %12, i8* %14)
%148 = load i8, i8* %10
%149 = icmp eq i8 %148, 0
br i1 %149, label %152, label %150
150: ; preds = %145
%151 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %10)
br label %152
152: ; preds = %150, %145
%153 = call i32 (i32, i8*, ...) @lprintf(i32 11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %154
154: ; preds = %2, %152, %133
ret void
}