#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 TapeImage_GetByte(unsigned char *);
int TapeImage_GetValue(unsigned char *, int);
int TapeImage_GetWord(unsigned char *);
int TapeImage_GetBlockLength(unsigned char *pBlock) {
  unsigned char *pBlockPtr = pBlock;
  int BlockIndex;
  int BlockLength = 0;
  BlockIndex = TapeImage_GetByte(pBlockPtr);
  pBlockPtr++;
  switch (BlockIndex) {
  case 0x010: {
    BlockLength = TapeImage_GetWord(pBlockPtr + 0x02);
    return BlockLength + 4 + 1;
  }
  case 0x011: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x0f, 3);
    return BlockLength + 0x012 + 1;
  } break;
  case 0x012: {
    return 4 + 1;
  }
  case 0x013: {
    BlockLength = TapeImage_GetByte(pBlockPtr) << 1;
    return BlockLength + 1 + 1;
  }
  case 0x014: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x07, 3);
    return BlockLength + 0x0a + 1;
  }
  case 0x015: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x05, 3);
    return BlockLength + 0x08 + 1;
  }
  case 0x020: {
    return 0x02 + 1;
  }
  case 0x021: {
    BlockLength = TapeImage_GetByte(pBlockPtr + 0x00);
    return BlockLength + 1 + 1;
  }
  case 0x022: {
    return 1;
  }
  case 0x023: {
    return 0x02 + 1;
  }
  case 0x024: {
    return 0x02 + 1;
  }
  case 0x025: {
    return 1;
  }
  case 0x026: {
    BlockLength = TapeImage_GetWord(pBlockPtr + 0x00) << 1;
    return BlockLength + 2 + 1;
  }
  case 0x027: {
    return 1;
  }
  case 0x028: {
    BlockLength = TapeImage_GetWord(pBlockPtr + 0x00);
    return BlockLength + 2 + 1;
  }
  case 0x02a: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x00, 4);
    return BlockLength + 4 + 1;
  }
  case 0x030: {
    BlockLength = TapeImage_GetByte(pBlockPtr + 0x00);
    return BlockLength + 1 + 1;
  }
  case 0x031: {
    BlockLength = TapeImage_GetByte(pBlockPtr + 0x01);
    return BlockLength + 2 + 1;
  }
  case 0x032: {
    BlockLength = TapeImage_GetWord(pBlockPtr + 0x00);
    return BlockLength + 2 + 1;
  }
  case 0x033: {
    BlockLength = TapeImage_GetByte(pBlockPtr + 0x00) * 3;
    return BlockLength + 0x01 + 1;
  }
  case 0x034: {
    return 0x08 + 1;
  }
  case 0x035: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x010, 4);
    return BlockLength + 0x014 + 1;
  }
  case 0x040: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x01, 3);
    return BlockLength + 1 + 0x04;
  }
  case 'Z': {
    return 0x09 + 1;
  }
  default: {
    BlockLength = TapeImage_GetValue(pBlockPtr + 0x00, 4);
    return BlockLength + 4 + 1;
  } break;
  }
}


x86 assembly (clang, -O0):
<TapeImage_GetBlockLength>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <TapeImage_GetByte@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xfffffff0,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x4a,%eax
ja     13ee <TapeImage_GetBlockLength+0x2be>
mov    -0x28(%rbp),%rax
lea    0xe7d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x18(%rbp),%rdi
add    $0x2,%rdi
call   1030 <TapeImage_GetWord@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x4,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
add    $0xf,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x12,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x5,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1040 <TapeImage_GetByte@plt>
shl    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
add    $0x7,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0xa,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
add    $0x5,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x8,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x3,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1040 <TapeImage_GetByte@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x1,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x3,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x3,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x1,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1030 <TapeImage_GetWord@plt>
shl    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x2,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x1,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1030 <TapeImage_GetWord@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x2,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
mov    $0x4,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x4,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1040 <TapeImage_GetByte@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
add    $0x1,%rdi
call   1040 <TapeImage_GetByte@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x2,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1030 <TapeImage_GetWord@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x2,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
call   1040 <TapeImage_GetByte@plt>
imul   $0x3,%eax,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0x9,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
add    $0x10,%rdi
mov    $0x4,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x14,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
add    $0x1,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
add    $0x4,%eax
mov    %eax,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
movl   $0xa,-0x4(%rbp)
jmp    140b <TapeImage_GetBlockLength+0x2db>
mov    -0x18(%rbp),%rdi
mov    $0x4,%esi
call   1050 <TapeImage_GetValue@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x4,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TapeImage_GetBlockLength>:
push   %rbx
mov    %rdi,%rbx
call   1040 <TapeImage_GetByte@plt>
mov    %eax,%ecx
lea    0x1(%rbx),%rdi
add    $0xfffffff0,%ecx
cmp    $0x4a,%ecx
ja     117e <TapeImage_GetBlockLength+0x4e>
mov    $0x5,%eax
lea    0xead(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0x3,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret
call   1040 <TapeImage_GetByte@plt>
add    $0x2,%eax
pop    %rbx
ret
call   1030 <TapeImage_GetWord@plt>
jmp    11ff <TapeImage_GetBlockLength+0xcf>
mov    $0x4,%esi
jmp    123a <TapeImage_GetBlockLength+0x10a>
add    $0x3,%rbx
mov    %rbx,%rdi
call   1030 <TapeImage_GetWord@plt>
jmp    123f <TapeImage_GetBlockLength+0x10f>
add    $0x10,%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
add    $0x13,%eax
pop    %rbx
ret
call   1040 <TapeImage_GetByte@plt>
add    %eax,%eax
add    $0x2,%eax
pop    %rbx
ret
add    $0x8,%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
add    $0xb,%eax
pop    %rbx
ret
add    $0x6,%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
add    $0x9,%eax
pop    %rbx
ret
call   1030 <TapeImage_GetWord@plt>
add    %eax,%eax
add    $0x3,%eax
pop    %rbx
ret
add    $0x2,%rbx
mov    %rbx,%rdi
call   1040 <TapeImage_GetByte@plt>
add    $0x3,%eax
pop    %rbx
ret
call   1040 <TapeImage_GetByte@plt>
lea    (%rax,%rax,2),%eax
add    $0x2,%eax
pop    %rbx
ret
mov    $0x9,%eax
pop    %rbx
ret
add    $0x11,%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1050 <TapeImage_GetValue@plt>
add    $0x15,%eax
pop    %rbx
ret
add    $0x2,%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <TapeImage_GetValue@plt>
add    $0x5,%eax
pop    %rbx
ret
mov    $0xa,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @TapeImage_GetBlockLength(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
%7 = load i8*, i8** %3
store i8* %7, i8** %4
store i32 0, i32* %6
%8 = load i8*, i8** %4
%9 = call i32 @TapeImage_GetByte(i8* %8)
store i32 %9, i32* %5
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i32 1
store i8* %11, i8** %4
%12 = load i32, i32* %5
switch i32 %12, label %129 [
i32 16, label %13
i32 17, label %20
i32 18, label %27
i32 19, label %28
i32 20, label %35
i32 21, label %42
i32 32, label %49
i32 33, label %50
i32 34, label %57
i32 35, label %58
i32 36, label %59
i32 37, label %60
i32 38, label %61
i32 39, label %69
i32 40, label %70
i32 42, label %77
i32 48, label %84
i32 49, label %91
i32 50, label %98
i32 51, label %105
i32 52, label %113
i32 53, label %114
i32 64, label %121
i32 90, label %128
]
13: ; preds = %1
%14 = load i8*, i8** %4
%15 = getelementptr inbounds i8, i8* %14, i64 2
%16 = call i32 @TapeImage_GetWord(i8* %15)
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = add nsw i32 %17, 4
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %136
20: ; preds = %1
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 15
%23 = call i32 @TapeImage_GetValue(i8* %22, i32 3)
store i32 %23, i32* %6
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 18
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %136
27: ; preds = %1
store i32 5, i32* %2
br label %136
28: ; preds = %1
%29 = load i8*, i8** %4
%30 = call i32 @TapeImage_GetByte(i8* %29)
%31 = shl i32 %30, 1
store i32 %31, i32* %6
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
%34 = add nsw i32 %33, 1
store i32 %34, i32* %2
br label %136
35: ; preds = %1
%36 = load i8*, i8** %4
%37 = getelementptr inbounds i8, i8* %36, i64 7
%38 = call i32 @TapeImage_GetValue(i8* %37, i32 3)
store i32 %38, i32* %6
%39 = load i32, i32* %6
%40 = add nsw i32 %39, 10
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
br label %136
42: ; preds = %1
%43 = load i8*, i8** %4
%44 = getelementptr inbounds i8, i8* %43, i64 5
%45 = call i32 @TapeImage_GetValue(i8* %44, i32 3)
store i32 %45, i32* %6
%46 = load i32, i32* %6
%47 = add nsw i32 %46, 8
%48 = add nsw i32 %47, 1
store i32 %48, i32* %2
br label %136
49: ; preds = %1
store i32 3, i32* %2
br label %136
50: ; preds = %1
%51 = load i8*, i8** %4
%52 = getelementptr inbounds i8, i8* %51, i64 0
%53 = call i32 @TapeImage_GetByte(i8* %52)
store i32 %53, i32* %6
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 1
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
br label %136
57: ; preds = %1
store i32 1, i32* %2
br label %136
58: ; preds = %1
store i32 3, i32* %2
br label %136
59: ; preds = %1
store i32 3, i32* %2
br label %136
60: ; preds = %1
store i32 1, i32* %2
br label %136
61: ; preds = %1
%62 = load i8*, i8** %4
%63 = getelementptr inbounds i8, i8* %62, i64 0
%64 = call i32 @TapeImage_GetWord(i8* %63)
%65 = shl i32 %64, 1
store i32 %65, i32* %6
%66 = load i32, i32* %6
%67 = add nsw i32 %66, 2
%68 = add nsw i32 %67, 1
store i32 %68, i32* %2
br label %136
69: ; preds = %1
store i32 1, i32* %2
br label %136
70: ; preds = %1
%71 = load i8*, i8** %4
%72 = getelementptr inbounds i8, i8* %71, i64 0
%73 = call i32 @TapeImage_GetWord(i8* %72)
store i32 %73, i32* %6
%74 = load i32, i32* %6
%75 = add nsw i32 %74, 2
%76 = add nsw i32 %75, 1
store i32 %76, i32* %2
br label %136
77: ; preds = %1
%78 = load i8*, i8** %4
%79 = getelementptr inbounds i8, i8* %78, i64 0
%80 = call i32 @TapeImage_GetValue(i8* %79, i32 4)
store i32 %80, i32* %6
%81 = load i32, i32* %6
%82 = add nsw i32 %81, 4
%83 = add nsw i32 %82, 1
store i32 %83, i32* %2
br label %136
84: ; preds = %1
%85 = load i8*, i8** %4
%86 = getelementptr inbounds i8, i8* %85, i64 0
%87 = call i32 @TapeImage_GetByte(i8* %86)
store i32 %87, i32* %6
%88 = load i32, i32* %6
%89 = add nsw i32 %88, 1
%90 = add nsw i32 %89, 1
store i32 %90, i32* %2
br label %136
91: ; preds = %1
%92 = load i8*, i8** %4
%93 = getelementptr inbounds i8, i8* %92, i64 1
%94 = call i32 @TapeImage_GetByte(i8* %93)
store i32 %94, i32* %6
%95 = load i32, i32* %6
%96 = add nsw i32 %95, 2
%97 = add nsw i32 %96, 1
store i32 %97, i32* %2
br label %136
98: ; preds = %1
%99 = load i8*, i8** %4
%100 = getelementptr inbounds i8, i8* %99, i64 0
%101 = call i32 @TapeImage_GetWord(i8* %100)
store i32 %101, i32* %6
%102 = load i32, i32* %6
%103 = add nsw i32 %102, 2
%104 = add nsw i32 %103, 1
store i32 %104, i32* %2
br label %136
105: ; preds = %1
%106 = load i8*, i8** %4
%107 = getelementptr inbounds i8, i8* %106, i64 0
%108 = call i32 @TapeImage_GetByte(i8* %107)
%109 = mul nsw i32 %108, 3
store i32 %109, i32* %6
%110 = load i32, i32* %6
%111 = add nsw i32 %110, 1
%112 = add nsw i32 %111, 1
store i32 %112, i32* %2
br label %136
113: ; preds = %1
store i32 9, i32* %2
br label %136
114: ; preds = %1
%115 = load i8*, i8** %4
%116 = getelementptr inbounds i8, i8* %115, i64 16
%117 = call i32 @TapeImage_GetValue(i8* %116, i32 4)
store i32 %117, i32* %6
%118 = load i32, i32* %6
%119 = add nsw i32 %118, 20
%120 = add nsw i32 %119, 1
store i32 %120, i32* %2
br label %136
121: ; preds = %1
%122 = load i8*, i8** %4
%123 = getelementptr inbounds i8, i8* %122, i64 1
%124 = call i32 @TapeImage_GetValue(i8* %123, i32 3)
store i32 %124, i32* %6
%125 = load i32, i32* %6
%126 = add nsw i32 %125, 1
%127 = add nsw i32 %126, 4
store i32 %127, i32* %2
br label %136
128: ; preds = %1
store i32 10, i32* %2
br label %136
129: ; preds = %1
%130 = load i8*, i8** %4
%131 = getelementptr inbounds i8, i8* %130, i64 0
%132 = call i32 @TapeImage_GetValue(i8* %131, i32 4)
store i32 %132, i32* %6
%133 = load i32, i32* %6
%134 = add nsw i32 %133, 4
%135 = add nsw i32 %134, 1
store i32 %135, i32* %2
br label %136
136: ; preds = %129, %128, %121, %114, %113, %105, %98, %91, %84, %77, %70, %69, %61, %60, %59, %58, %57, %50, %49, %42, %35, %28, %27, %20, %13
%137 = load i32, i32* %2
ret i32 %137
}

LLVM IR (-O2):
define i32 @TapeImage_GetBlockLength(i8* %0) {
%2 = tail call i32 @TapeImage_GetByte(i8* %0)
%3 = getelementptr inbounds i8, i8* %0, i64 1
switch i32 %2, label %67 [
i32 16, label %4
i32 17, label %8
i32 18, label %70
i32 19, label %12
i32 20, label %16
i32 21, label %20
i32 32, label %24
i32 33, label %25
i32 34, label %28
i32 35, label %29
i32 36, label %30
i32 37, label %31
i32 38, label %32
i32 39, label %36
i32 40, label %37
i32 42, label %40
i32 48, label %43
i32 49, label %46
i32 50, label %50
i32 51, label %53
i32 52, label %57
i32 53, label %58
i32 64, label %62
i32 90, label %66
]
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 3
%6 = tail call i32 @TapeImage_GetWord(i8* %5)
%7 = add nsw i32 %6, 5
br label %70
8: ; preds = %1
%9 = getelementptr inbounds i8, i8* %0, i64 16
%10 = tail call i32 @TapeImage_GetValue(i8* %9, i32 3)
%11 = add nsw i32 %10, 19
br label %70
12: ; preds = %1
%13 = tail call i32 @TapeImage_GetByte(i8* %3)
%14 = shl i32 %13, 1
%15 = add i32 %14, 2
br label %70
16: ; preds = %1
%17 = getelementptr inbounds i8, i8* %0, i64 8
%18 = tail call i32 @TapeImage_GetValue(i8* %17, i32 3)
%19 = add nsw i32 %18, 11
br label %70
20: ; preds = %1
%21 = getelementptr inbounds i8, i8* %0, i64 6
%22 = tail call i32 @TapeImage_GetValue(i8* %21, i32 3)
%23 = add nsw i32 %22, 9
br label %70
24: ; preds = %1
br label %70
25: ; preds = %1
%26 = tail call i32 @TapeImage_GetByte(i8* %3)
%27 = add nsw i32 %26, 2
br label %70
28: ; preds = %1
br label %70
29: ; preds = %1
br label %70
30: ; preds = %1
br label %70
31: ; preds = %1
br label %70
32: ; preds = %1
%33 = tail call i32 @TapeImage_GetWord(i8* %3)
%34 = shl i32 %33, 1
%35 = add nsw i32 %34, 3
br label %70
36: ; preds = %1
br label %70
37: ; preds = %1
%38 = tail call i32 @TapeImage_GetWord(i8* %3)
%39 = add nsw i32 %38, 3
br label %70
40: ; preds = %1
%41 = tail call i32 @TapeImage_GetValue(i8* %3, i32 4)
%42 = add nsw i32 %41, 5
br label %70
43: ; preds = %1
%44 = tail call i32 @TapeImage_GetByte(i8* %3)
%45 = add nsw i32 %44, 2
br label %70
46: ; preds = %1
%47 = getelementptr inbounds i8, i8* %0, i64 2
%48 = tail call i32 @TapeImage_GetByte(i8* %47)
%49 = add nsw i32 %48, 3
br label %70
50: ; preds = %1
%51 = tail call i32 @TapeImage_GetWord(i8* %3)
%52 = add nsw i32 %51, 3
br label %70
53: ; preds = %1
%54 = tail call i32 @TapeImage_GetByte(i8* %3)
%55 = mul nsw i32 %54, 3
%56 = add nsw i32 %55, 2
br label %70
57: ; preds = %1
br label %70
58: ; preds = %1
%59 = getelementptr inbounds i8, i8* %0, i64 17
%60 = tail call i32 @TapeImage_GetValue(i8* %59, i32 4)
%61 = add nsw i32 %60, 21
br label %70
62: ; preds = %1
%63 = getelementptr inbounds i8, i8* %0, i64 2
%64 = tail call i32 @TapeImage_GetValue(i8* %63, i32 3)
%65 = add nsw i32 %64, 5
br label %70
66: ; preds = %1
br label %70
67: ; preds = %1
%68 = tail call i32 @TapeImage_GetValue(i8* %3, i32 4)
%69 = add nsw i32 %68, 5
br label %70
70: ; preds = %1, %67, %66, %62, %58, %57, %53, %50, %46, %43, %40, %37, %36, %32, %31, %30, %29, %28, %25, %24, %20, %16, %12, %8, %4
%71 = phi i32 [ %69, %67 ], [ 10, %66 ], [ %65, %62 ], [ %61, %58 ], [ 9, %57 ], [ %56, %53 ], [ %52, %50 ], [ %49, %46 ], [ %45, %43 ], [ %42, %40 ], [ %39, %37 ], [ 1, %36 ], [ %35, %32 ], [ 1, %31 ], [ 3, %30 ], [ 3, %29 ], [ 1, %28 ], [ %27, %25 ], [ 3, %24 ], [ %23, %20 ], [ %19, %16 ], [ %15, %12 ], [ %11, %8 ], [ %7, %4 ], [ 5, %1 ]
ret i32 %71
}