#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*/ ai_dump(char *, unsigned char *, int);
int /*<<< orphan*/ data_dump(char *, unsigned char *, int, int);
int get16(unsigned char *);
int /*<<< orphan*/ mprintf(char *, int, char *, ...);
void ip_dump(char *dispbuf, unsigned char *data, int length, int dumpstyle) {
  int hdr_length;
  int tos;
  int ip_length;
  int id;
  int fl_offs;
  int flags;
  int offset;
  int ttl;
  int protocol;
  unsigned char *source, *dest;
  hdr_length = (data[0] & 0xf) << 2;
  if (hdr_length < 20) {
    mprintf(dispbuf, 1, " bad IP header\n");
    data_dump(dispbuf, data, length, 1);
    return;
  }
  tos = data[1];
  ip_length = get16(data + 2);
  id = get16(data + 4);
  fl_offs = get16(data + 6);
  flags = fl_offs & 0xE000;
  offset = (fl_offs & 0x1FFF) << 3;
  ttl = data[8];
  protocol = data[9];
  source = data + 12;
  dest = data + 16;
  mprintf(dispbuf, 8, " %d.%d.%d.%d", source[0], source[1], source[2],
          source[3]);
  mprintf(dispbuf, 14, "->");
  mprintf(dispbuf, 8, "%d.%d.%d.%d", dest[0], dest[1], dest[2], dest[3]);
  mprintf(dispbuf, 9, " len:");
  mprintf(dispbuf, 19, "%d", ip_length);
  if (hdr_length != 20) {
    mprintf(dispbuf, 9, " ihl:");
    mprintf(dispbuf, 19, "%d", hdr_length);
  }
  mprintf(dispbuf, 9, " ttl:");
  mprintf(dispbuf, 19, "%d", ttl);
  if (tos != 0)
    mprintf(dispbuf, 9, " tos: %d", tos);
  if (offset != 0 || (flags & 0x2000))
    mprintf(dispbuf, 9, " id:%d offs:%d", id, offset);
  if (flags & 0x4000)
    mprintf(dispbuf, 19, " DF");
  if (flags & 0x2000)
    mprintf(dispbuf, 19, " MF");
  if (flags & 0x8000)
    mprintf(dispbuf, 19, " CE");
  data += hdr_length;
  length -= hdr_length;
  if (offset != 0) {
    mprintf(dispbuf, 9, "\n");
    if (length > 0)
      data_dump(dispbuf, data, length, dumpstyle);
    return;
  }
  switch (protocol) {
  case 6:
    mprintf(dispbuf, 6, " TCP\n");
    break;
  case 17:
    mprintf(dispbuf, 6, " UDP\n");
    break;
  case 1:
    mprintf(dispbuf, 6, " ICMP\n");
    break;
  case 93:
    mprintf(dispbuf, 6, " AX25\n");
    ai_dump(dispbuf, data, length);
    break;
  case 73:
    mprintf(dispbuf, 6, " RSPF\n");
    break;
  case 94:
  case 4:
    mprintf(dispbuf, 6, " IP\n");
    ip_dump(dispbuf, data, length, dumpstyle);
    break;
  default:
    mprintf(dispbuf, 6, " prot %d\n", protocol);
    data_dump(dispbuf, data, length, dumpstyle);
    break;
  }
}


x86 assembly (clang, -O0):
<ip_dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
and    $0xf,%eax
shl    $0x2,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x14,-0x1c(%rbp)
jge    11b1 <ip_dump+0x61>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
lea    0xe70(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0x1,%ecx
call   1030 <data_dump@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x2,%rdi
call   1070 <get16@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x4,%rdi
call   1070 <get16@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x6,%rdi
call   1070 <get16@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
and    $0xe000,%eax
mov    %eax,-0x30(%rbp)
mov    -0x2c(%rbp),%eax
and    $0x1fff,%eax
shl    $0x3,%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x9(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x48(%rbp),%rax
movzbl (%rax),%ecx
mov    -0x48(%rbp),%rax
movzbl 0x1(%rax),%r8d
mov    -0x48(%rbp),%rax
movzbl 0x2(%rax),%r9d
mov    -0x48(%rbp),%rax
movzbl 0x3(%rax),%eax
mov    $0x8,%esi
lea    0xdac(%rip),%rdx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    $0xe,%esi
lea    0xd9f(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x50(%rbp),%rax
movzbl (%rax),%ecx
mov    -0x50(%rbp),%rax
movzbl 0x1(%rax),%r8d
mov    -0x50(%rbp),%rax
movzbl 0x2(%rax),%r9d
mov    -0x50(%rbp),%rax
movzbl 0x3(%rax),%eax
mov    $0x8,%esi
lea    0xd5b(%rip),%rdx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
lea    0xd50(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%ecx
mov    $0x13,%esi
lea    0xd4e(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
cmpl   $0x14,-0x1c(%rbp)
je     132c <ip_dump+0x1dc>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
lea    0xd1b(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%ecx
mov    $0x13,%esi
lea    0xd13(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
lea    0xcf0(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%ecx
mov    $0x13,%esi
lea    0xce2(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
cmpl   $0x0,-0x20(%rbp)
je     1381 <ip_dump+0x231>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%ecx
mov    $0x9,%esi
lea    0xcb8(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
cmpl   $0x0,-0x34(%rbp)
jne    139c <ip_dump+0x24c>
mov    -0x30(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     13ba <ip_dump+0x26a>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    $0x9,%esi
lea    0xc88(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x30(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     13e2 <ip_dump+0x292>
mov    -0x8(%rbp),%rdi
mov    $0x13,%esi
lea    0xc6f(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x30(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     140a <ip_dump+0x2ba>
mov    -0x8(%rbp),%rdi
mov    $0x13,%esi
lea    0xc4b(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x30(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     1432 <ip_dump+0x2e2>
mov    -0x8(%rbp),%rdi
mov    $0x13,%esi
lea    0xc27(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     1491 <ip_dump+0x341>
mov    -0x8(%rbp),%rdi
mov    $0x9,%esi
lea    0xc06(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
cmpl   $0x0,-0x14(%rbp)
jle    148c <ip_dump+0x33c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1030 <data_dump@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x54(%rbp)
sub    $0x1,%eax
je     1543 <ip_dump+0x3f3>
jmp    14a5 <ip_dump+0x355>
mov    -0x54(%rbp),%eax
sub    $0x4,%eax
je     15a7 <ip_dump+0x457>
jmp    14b6 <ip_dump+0x366>
mov    -0x54(%rbp),%eax
sub    $0x6,%eax
je     150b <ip_dump+0x3bb>
jmp    14c7 <ip_dump+0x377>
mov    -0x54(%rbp),%eax
sub    $0x11,%eax
je     1527 <ip_dump+0x3d7>
jmp    14d8 <ip_dump+0x388>
mov    -0x54(%rbp),%eax
sub    $0x49,%eax
je     158b <ip_dump+0x43b>
jmp    14e9 <ip_dump+0x399>
mov    -0x54(%rbp),%eax
sub    $0x5d,%eax
je     155f <ip_dump+0x40f>
jmp    14fa <ip_dump+0x3aa>
mov    -0x54(%rbp),%eax
sub    $0x5e,%eax
je     15a7 <ip_dump+0x457>
jmp    15d6 <ip_dump+0x486>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xb3b(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xb25(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xb0f(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xafa(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <ai_dump@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xad5(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xac0(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1060 <ip_dump@plt>
jmp    1603 <ip_dump+0x4b3>
mov    -0x8(%rbp),%rdi
mov    -0x3c(%rbp),%ecx
mov    $0x6,%esi
lea    0xa93(%rip),%rdx
mov    $0x0,%al
call   1040 <mprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1030 <data_dump@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ip_dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edx,%r14d
mov    %rsi,%rbp
mov    %rdi,%r12
mov    (%rsi),%al
shl    $0x2,%al
and    $0x3c,%al
cmp    $0x14,%al
jae    1199 <ip_dump+0x59>
lea    0xedb(%rip),%rdx
mov    %r12,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
mov    $0x1,%ecx
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <data_dump@plt>
mov    %ecx,0xc(%rsp)
lea    0xed8(%rip),%rbx
jmp    11e7 <ip_dump+0xa7>
cs nopw 0x0(%rax,%rax,1)
cmp    $0x5e,%bl
jne    1455 <ip_dump+0x315>
mov    %r12,%rdi
mov    $0x6,%esi
lea    0xef3(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
movzbl 0x0(%rbp),%eax
shl    $0x2,%al
and    $0x3c,%al
cmp    $0x14,%al
lea    0xe9b(%rip),%rbx
jb     1162 <ip_dump+0x22>
mov    %r14d,0x1c(%rsp)
movzbl %al,%r15d
movzbl 0x1(%rbp),%eax
mov    %eax,0x18(%rsp)
lea    0x2(%rbp),%rdi
call   1060 <get16@plt>
mov    %eax,%r14d
lea    0x4(%rbp),%rdi
call   1060 <get16@plt>
mov    %eax,0x10(%rsp)
lea    0x6(%rbp),%rdi
call   1060 <get16@plt>
mov    %eax,%r13d
movzbl 0x8(%rbp),%eax
mov    %eax,0x14(%rsp)
movzbl 0x9(%rbp),%eax
mov    %rax,0x20(%rsp)
movzbl 0xc(%rbp),%ecx
movzbl 0xd(%rbp),%r8d
movzbl 0xe(%rbp),%r9d
movzbl 0xf(%rbp),%eax
mov    %eax,(%rsp)
mov    %r12,%rdi
mov    $0x8,%esi
lea    0xe02(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    $0xe,%esi
lea    0xdf9(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
movzbl 0x10(%rbp),%ecx
movzbl 0x11(%rbp),%r8d
movzbl 0x12(%rbp),%r9d
movzbl 0x13(%rbp),%eax
mov    %eax,(%rsp)
mov    %r12,%rdi
mov    $0x8,%esi
lea    0xdc2(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    $0x9,%esi
lea    0xdbb(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    $0x13,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
xor    %eax,%eax
call   1040 <mprintf@plt>
cmp    $0x14,%r15b
je     12f6 <ip_dump+0x1b6>
mov    %r12,%rdi
mov    $0x9,%esi
lea    0xd90(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    $0x13,%esi
mov    %rbx,%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <mprintf@plt>
lea    0x0(,%r13,8),%r14d
mov    %r12,%rdi
mov    $0x9,%esi
lea    0xd63(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    $0x13,%esi
mov    %rbx,%rdx
mov    0x14(%rsp),%ecx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    0x18(%rsp),%ecx
test   %ecx,%ecx
je     1348 <ip_dump+0x208>
mov    %r12,%rdi
mov    $0x9,%esi
lea    0xd35(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
movzwl %r14w,%ebx
mov    %r13d,%eax
and    $0x2000,%eax
or     %ebx,%eax
mov    0x1c(%rsp),%r14d
jne    13e0 <ip_dump+0x2a0>
test   $0x4000,%r13d
jne    140a <ip_dump+0x2ca>
test   $0x2000,%r13d
jne    142d <ip_dump+0x2ed>
test   $0x8000,%r13d
je     139a <ip_dump+0x25a>
mov    %r12,%rdi
mov    $0x13,%esi
lea    0xd03(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r15d,%eax
add    %rax,%rbp
sub    %r15d,%r14d
test   %ebx,%ebx
jne    1499 <ip_dump+0x359>
mov    0x20(%rsp),%rbx
cmp    $0x48,%bl
jg     11b0 <ip_dump+0x70>
lea    -0x1(%rbx),%eax
cmp    $0x10,%al
ja     1502 <ip_dump+0x3c2>
movzbl %al,%eax
lea    0xc32(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    $0x9,%esi
lea    0xc90(%rip),%rdx
mov    0x10(%rsp),%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <mprintf@plt>
test   $0x4000,%r13d
je     136e <ip_dump+0x22e>
mov    %r12,%rdi
mov    $0x13,%esi
lea    0xc75(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
test   $0x2000,%r13d
je     137b <ip_dump+0x23b>
mov    %r12,%rdi
mov    $0x13,%esi
lea    0xc56(%rip),%rdx
xor    %eax,%eax
call   1040 <mprintf@plt>
test   $0x8000,%r13d
jne    1384 <ip_dump+0x244>
jmp    139a <ip_dump+0x25a>
cmp    $0x49,%bl
je     14de <ip_dump+0x39e>
cmp    $0x5d,%bl
jne    1502 <ip_dump+0x3c2>
lea    0xc3f(%rip),%rdx
mov    %r12,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <ai_dump@plt>
lea    0xc12(%rip),%rdx
mov    %r12,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <mprintf@plt>
test   %r14d,%r14d
jg     151a <ip_dump+0x3da>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xbdc(%rip),%rdx
jmp    14e5 <ip_dump+0x3a5>
lea    0xbc7(%rip),%rdx
jmp    14e5 <ip_dump+0x3a5>
lea    0xbc4(%rip),%rdx
jmp    14e5 <ip_dump+0x3a5>
lea    0xbcf(%rip),%rdx
mov    %r12,%rdi
mov    $0x6,%esi
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <mprintf@plt>
lea    0xbb7(%rip),%rdx
mov    %r12,%rdi
mov    $0x6,%esi
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <mprintf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
jmp    1186 <ip_dump+0x46>

LLVM IR (-O0):
@.str = [16 x i8] c" bad IP header\0A\00"
@.str.1 = [13 x i8] c" %d.%d.%d.%d\00"
@.str.2 = [3 x i8] c"->\00"
@.str.3 = [12 x i8] c"%d.%d.%d.%d\00"
@.str.4 = [6 x i8] c" len:\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [6 x i8] c" ihl:\00"
@.str.7 = [6 x i8] c" ttl:\00"
@.str.8 = [9 x i8] c" tos: %d\00"
@.str.9 = [15 x i8] c" id:%d offs:%d\00"
@.str.10 = [4 x i8] c" DF\00"
@.str.11 = [4 x i8] c" MF\00"
@.str.12 = [4 x i8] c" CE\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [6 x i8] c" TCP\0A\00"
@.str.15 = [6 x i8] c" UDP\0A\00"
@.str.16 = [7 x i8] c" ICMP\0A\00"
@.str.17 = [7 x i8] c" AX25\0A\00"
@.str.18 = [7 x i8] c" RSPF\0A\00"
@.str.19 = [5 x i8] c" IP\0A\00"
@.str.20 = [10 x i8] c" prot %d\0A\00"
define void @ip_dump(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8*
%19 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%20 = load i8*, i8** %6
%21 = getelementptr inbounds i8, i8* %20, i64 0
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = and i32 %23, 15
%25 = shl i32 %24, 2
store i32 %25, i32* %9
%26 = load i32, i32* %9
%27 = icmp slt i32 %26, 20
br i1 %27, label %28, label %35
28: ; preds = %4
%29 = load i8*, i8** %5
%30 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %29, i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%31 = load i8*, i8** %5
%32 = load i8*, i8** %6
%33 = load i32, i32* %7
%34 = call i32 @data_dump(i8* %31, i8* %32, i32 %33, i32 1)
br label %221
35: ; preds = %4
%36 = load i8*, i8** %6
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
store i32 %39, i32* %10
%40 = load i8*, i8** %6
%41 = getelementptr inbounds i8, i8* %40, i64 2
%42 = call i32 @get16(i8* %41)
store i32 %42, i32* %11
%43 = load i8*, i8** %6
%44 = getelementptr inbounds i8, i8* %43, i64 4
%45 = call i32 @get16(i8* %44)
store i32 %45, i32* %12
%46 = load i8*, i8** %6
%47 = getelementptr inbounds i8, i8* %46, i64 6
%48 = call i32 @get16(i8* %47)
store i32 %48, i32* %13
%49 = load i32, i32* %13
%50 = and i32 %49, 57344
store i32 %50, i32* %14
%51 = load i32, i32* %13
%52 = and i32 %51, 8191
%53 = shl i32 %52, 3
store i32 %53, i32* %15
%54 = load i8*, i8** %6
%55 = getelementptr inbounds i8, i8* %54, i64 8
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
store i32 %57, i32* %16
%58 = load i8*, i8** %6
%59 = getelementptr inbounds i8, i8* %58, i64 9
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
store i32 %61, i32* %17
%62 = load i8*, i8** %6
%63 = getelementptr inbounds i8, i8* %62, i64 12
store i8* %63, i8** %18
%64 = load i8*, i8** %6
%65 = getelementptr inbounds i8, i8* %64, i64 16
store i8* %65, i8** %19
%66 = load i8*, i8** %5
%67 = load i8*, i8** %18
%68 = getelementptr inbounds i8, i8* %67, i64 0
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = load i8*, i8** %18
%72 = getelementptr inbounds i8, i8* %71, i64 1
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = load i8*, i8** %18
%76 = getelementptr inbounds i8, i8* %75, i64 2
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = load i8*, i8** %18
%80 = getelementptr inbounds i8, i8* %79, i64 3
%81 = load i8, i8* %80
%82 = zext i8 %81 to i32
%83 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %66, i32 8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %70, i32 %74, i32 %78, i32 %82)
%84 = load i8*, i8** %5
%85 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %84, i32 14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%86 = load i8*, i8** %5
%87 = load i8*, i8** %19
%88 = getelementptr inbounds i8, i8* %87, i64 0
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = load i8*, i8** %19
%92 = getelementptr inbounds i8, i8* %91, i64 1
%93 = load i8, i8* %92
%94 = zext i8 %93 to i32
%95 = load i8*, i8** %19
%96 = getelementptr inbounds i8, i8* %95, i64 2
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = load i8*, i8** %19
%100 = getelementptr inbounds i8, i8* %99, i64 3
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %86, i32 8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %90, i32 %94, i32 %98, i32 %102)
%104 = load i8*, i8** %5
%105 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %104, i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%106 = load i8*, i8** %5
%107 = load i32, i32* %11
%108 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %106, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %107)
%109 = load i32, i32* %9
%110 = icmp ne i32 %109, 20
br i1 %110, label %111, label %117
111: ; preds = %35
%112 = load i8*, i8** %5
%113 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %112, i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%114 = load i8*, i8** %5
%115 = load i32, i32* %9
%116 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %114, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %111, %35
%118 = load i8*, i8** %5
%119 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %118, i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%120 = load i8*, i8** %5
%121 = load i32, i32* %16
%122 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %120, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %10
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %129
125: ; preds = %117
%126 = load i8*, i8** %5
%127 = load i32, i32* %10
%128 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %126, i32 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %127)
br label %129
129: ; preds = %125, %117
%130 = load i32, i32* %15
%131 = icmp ne i32 %130, 0
br i1 %131, label %136, label %132
132: ; preds = %129
%133 = load i32, i32* %14
%134 = and i32 %133, 8192
%135 = icmp ne i32 %134, 0
br i1 %135, label %136, label %141
136: ; preds = %132, %129
%137 = load i8*, i8** %5
%138 = load i32, i32* %12
%139 = load i32, i32* %15
%140 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %137, i32 9, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %138, i32 %139)
br label %141
141: ; preds = %136, %132
%142 = load i32, i32* %14
%143 = and i32 %142, 16384
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %148
145: ; preds = %141
%146 = load i8*, i8** %5
%147 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %146, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
br label %148
148: ; preds = %145, %141
%149 = load i32, i32* %14
%150 = and i32 %149, 8192
%151 = icmp ne i32 %150, 0
br i1 %151, label %152, label %155
152: ; preds = %148
%153 = load i8*, i8** %5
%154 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %153, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
br label %155
155: ; preds = %152, %148
%156 = load i32, i32* %14
%157 = and i32 %156, 32768
%158 = icmp ne i32 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %155
%160 = load i8*, i8** %5
%161 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %160, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
br label %162
162: ; preds = %159, %155
%163 = load i32, i32* %9
%164 = load i8*, i8** %6
%165 = sext i32 %163 to i64
%166 = getelementptr inbounds i8, i8* %164, i64 %165
store i8* %166, i8** %6
%167 = load i32, i32* %9
%168 = load i32, i32* %7
%169 = sub nsw i32 %168, %167
store i32 %169, i32* %7
%170 = load i32, i32* %15
%171 = icmp ne i32 %170, 0
br i1 %171, label %172, label %184
172: ; preds = %162
%173 = load i8*, i8** %5
%174 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %173, i32 9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%175 = load i32, i32* %7
%176 = icmp sgt i32 %175, 0
br i1 %176, label %177, label %183
177: ; preds = %172
%178 = load i8*, i8** %5
%179 = load i8*, i8** %6
%180 = load i32, i32* %7
%181 = load i32, i32* %8
%182 = call i32 @data_dump(i8* %178, i8* %179, i32 %180, i32 %181)
br label %183
183: ; preds = %177, %172
br label %221
184: ; preds = %162
%185 = load i32, i32* %17
switch i32 %185, label %212 [
i32 6, label %186
i32 17, label %189
i32 1, label %192
i32 93, label %195
i32 73, label %202
i32 94, label %205
i32 4, label %205
]
186: ; preds = %184
%187 = load i8*, i8** %5
%188 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %187, i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %221
189: ; preds = %184
%190 = load i8*, i8** %5
%191 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %190, i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %221
192: ; preds = %184
%193 = load i8*, i8** %5
%194 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %193, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %221
195: ; preds = %184
%196 = load i8*, i8** %5
%197 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %196, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%198 = load i8*, i8** %5
%199 = load i8*, i8** %6
%200 = load i32, i32* %7
%201 = call i32 @ai_dump(i8* %198, i8* %199, i32 %200)
br label %221
202: ; preds = %184
%203 = load i8*, i8** %5
%204 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %203, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
br label %221
205: ; preds = %184, %184
%206 = load i8*, i8** %5
%207 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %206, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%208 = load i8*, i8** %5
%209 = load i8*, i8** %6
%210 = load i32, i32* %7
%211 = load i32, i32* %8
br label %221
212: ; preds = %184
%213 = load i8*, i8** %5
%214 = load i32, i32* %17
%215 = call i32 (i8*, i32, i8*, ...) @mprintf(i8* %213, i32 6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i32 %214)
%216 = load i8*, i8** %5
%217 = load i8*, i8** %6
%218 = load i32, i32* %7
%219 = load i32, i32* %8
%220 = call i32 @data_dump(i8* %216, i8* %217, i32 %218, i32 %219)
br label %221
221: ; preds = %28, %183, %212, %205, %202, %195, %192, %189, %186
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c" bad IP header\0A\00"
@.str.1 = [13 x i8] c" %d.%d.%d.%d\00"
@.str.2 = [3 x i8] c"->\00"
@.str.3 = [12 x i8] c"%d.%d.%d.%d\00"
@.str.4 = [6 x i8] c" len:\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [6 x i8] c" ihl:\00"
@.str.7 = [6 x i8] c" ttl:\00"
@.str.8 = [9 x i8] c" tos: %d\00"
@.str.9 = [15 x i8] c" id:%d offs:%d\00"
@.str.10 = [4 x i8] c" DF\00"
@.str.11 = [4 x i8] c" MF\00"
@.str.12 = [4 x i8] c" CE\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [6 x i8] c" TCP\0A\00"
@.str.15 = [6 x i8] c" UDP\0A\00"
@.str.16 = [7 x i8] c" ICMP\0A\00"
@.str.17 = [7 x i8] c" AX25\0A\00"
@.str.18 = [7 x i8] c" RSPF\0A\00"
@.str.19 = [5 x i8] c" IP\0A\00"
@.str.20 = [10 x i8] c" prot %d\0A\00"
define void @ip_dump(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = load i8, i8* %1
%6 = shl i8 %5, 2
%7 = and i8 %6, 60
%8 = icmp ult i8 %7, 20
br i1 %8, label %9, label %14
9: ; preds = %115, %4
%10 = phi i8* [ %1, %4 ], [ %96, %115 ]
%11 = phi i32 [ %2, %4 ], [ %97, %115 ]
%12 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @data_dump(i8* %0, i8* %10, i32 %11, i32 1)
br label %125
14: ; preds = %4, %115
%15 = phi i8 [ %119, %115 ], [ %7, %4 ]
%16 = phi i32 [ %97, %115 ], [ %2, %4 ]
%17 = phi i8* [ %96, %115 ], [ %1, %4 ]
%18 = zext i8 %15 to i32
%19 = getelementptr inbounds i8, i8* %17, i64 1
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = getelementptr inbounds i8, i8* %17, i64 2
%23 = tail call i32 @get16(i8* %22)
%24 = getelementptr inbounds i8, i8* %17, i64 4
%25 = tail call i32 @get16(i8* %24)
%26 = getelementptr inbounds i8, i8* %17, i64 6
%27 = tail call i32 @get16(i8* %26)
%28 = shl i32 %27, 3
%29 = and i32 %28, 65528
%30 = getelementptr inbounds i8, i8* %17, i64 8
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = getelementptr inbounds i8, i8* %17, i64 9
%34 = load i8, i8* %33
%35 = getelementptr inbounds i8, i8* %17, i64 12
%36 = getelementptr inbounds i8, i8* %17, i64 16
%37 = load i8, i8* %35
%38 = zext i8 %37 to i32
%39 = getelementptr inbounds i8, i8* %17, i64 13
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = getelementptr inbounds i8, i8* %17, i64 14
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = getelementptr inbounds i8, i8* %17, i64 15
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %38, i32 %41, i32 %44, i32 %47)
%49 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%50 = load i8, i8* %36
%51 = zext i8 %50 to i32
%52 = getelementptr inbounds i8, i8* %17, i64 17
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = getelementptr inbounds i8, i8* %17, i64 18
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = getelementptr inbounds i8, i8* %17, i64 19
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %51, i32 %54, i32 %57, i32 %60)
%62 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%63 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %23)
%64 = icmp eq i8 %15, 20
br i1 %64, label %68, label %65
65: ; preds = %14
%66 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%67 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %18)
br label %68
68: ; preds = %65, %14
%69 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%70 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%71 = icmp eq i8 %20, 0
br i1 %71, label %74, label %72
72: ; preds = %68
%73 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %21)
br label %74
74: ; preds = %72, %68
%75 = icmp eq i32 %29, 0
%76 = and i32 %27, 8192
%77 = icmp eq i32 %76, 0
%78 = select i1 %75, i1 %77, i1 false
br i1 %78, label %81, label %79
79: ; preds = %74
%80 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 9, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %25, i32 %29)
br label %81
81: ; preds = %74, %79
%82 = and i32 %27, 16384
%83 = icmp eq i32 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
br label %86
86: ; preds = %84, %81
br i1 %77, label %89, label %87
87: ; preds = %86
%88 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
br label %89
89: ; preds = %87, %86
%90 = and i32 %27, 32768
%91 = icmp eq i32 %90, 0
br i1 %91, label %94, label %92
92: ; preds = %89
%93 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
br label %94
94: ; preds = %92, %89
%95 = zext i8 %15 to i64
%96 = getelementptr inbounds i8, i8* %17, i64 %95
%97 = sub nsw i32 %16, %18
br i1 %75, label %103, label %98
98: ; preds = %94
%99 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%100 = icmp sgt i32 %97, 0
br i1 %100, label %101, label %125
101: ; preds = %98
%102 = tail call i32 @data_dump(i8* %0, i8* %96, i32 %97, i32 %3)
br label %125
103: ; preds = %94
switch i8 %34, label %121 [
i8 6, label %104
i8 17, label %106
i8 1, label %108
i8 93, label %110
i8 73, label %113
i8 94, label %115
i8 4, label %115
]
104: ; preds = %103
%105 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %125
106: ; preds = %103
%107 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %125
108: ; preds = %103
%109 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %125
110: ; preds = %103
%111 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%112 = tail call i32 @ai_dump(i8* %0, i8* %96, i32 %97)
br label %125
113: ; preds = %103
%114 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
br label %125
115: ; preds = %103, %103
%116 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%117 = load i8, i8* %96
%118 = shl i8 %117, 2
%119 = and i8 %118, 60
%120 = icmp ult i8 %119, 20
br i1 %120, label %9, label %14
121: ; preds = %103
%122 = zext i8 %34 to i32
%123 = tail call i32 (i8*, i32, i8*, ...) @mprintf(i8* %0, i32 6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i32 %122)
%124 = tail call i32 @data_dump(i8* %0, i8* %96, i32 %97, i32 %3)
br label %125
125: ; preds = %104, %106, %108, %110, %113, %121, %98, %101, %9
ret void
}