#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*/ fprintf(int /*<<< orphan*/, char *, ...);
char *get_file_name(int);
char *get_source_file_name(int, int);
int /*<<< orphan*/ stderr;
int _handle_special_case(int special_id, int file_id, int file_id_source,
                         int linenumber, int value, int *out) {
  if (special_id == 1) {
    if (value == 0x00)
      *out = 0xC7;
    else if (value == 0x08)
      *out = 0xCF;
    else if (value == 0x10)
      *out = 0xD7;
    else if (value == 0x18)
      *out = 0xDF;
    else if (value == 0x20)
      *out = 0xE7;
    else if (value == 0x28)
      *out = 0xEF;
    else if (value == 0x30)
      *out = 0xF7;
    else if (value == 0x38)
      *out = 0xFF;
    else {
      fprintf(stderr,
              "%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting "
              "$00/$08/$10/$18/$20/$28/$30/$38, got $%.2x instead.\n",
              get_file_name(file_id),
              get_source_file_name(file_id, file_id_source), linenumber, value);
      return 0;
    }
  } else if (special_id == 2) {
    if (value == 0)
      *out = 0x05;
    else if (value == 1)
      *out = 0x0D;
    else if (value == 2)
      *out = 0x15;
    else if (value == 3)
      *out = 0x1D;
    else if (value == 4)
      *out = 0x25;
    else if (value == 5)
      *out = 0x2D;
    else if (value == 6)
      *out = 0x35;
    else if (value == 7)
      *out = 0x3D;
    else {
      fprintf(stderr,
              "%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting "
              "0/1/2/3/4/5/6/7, got $%.2x instead.\n",
              get_file_name(file_id),
              get_source_file_name(file_id, file_id_source), linenumber, value);
      return 0;
    }
  } else if (special_id == 3) {
    if (value == 0)
      *out = 0xC7;
    else if (value == 1)
      *out = 0xCF;
    else if (value == 2)
      *out = 0xD7;
    else if (value == 3)
      *out = 0xDF;
    else if (value == 4)
      *out = 0xE7;
    else if (value == 5)
      *out = 0xEF;
    else if (value == 6)
      *out = 0xF7;
    else if (value == 7)
      *out = 0xFF;
    else {
      fprintf(stderr,
              "%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting "
              "0/1/2/3/4/5/6/7, got $%.2x instead.\n",
              get_file_name(file_id),
              get_source_file_name(file_id, file_id_source), linenumber, value);
      return 0;
    }
  } else {
    fprintf(stderr,
            "_HANDLE_SPECIAL_CASE: Unknown special case ID %d! This in an "
            "internal WLA error. Please submit a bug report!\n",
            special_id);
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<_handle_special_case>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1295 <_handle_special_case+0x165>
cmpl   $0x0,-0x18(%rbp)
jne    116f <_handle_special_case+0x3f>
mov    -0x20(%rbp),%rax
movl   $0xc7,(%rax)
jmp    1290 <_handle_special_case+0x160>
cmpl   $0x8,-0x18(%rbp)
jne    1188 <_handle_special_case+0x58>
mov    -0x20(%rbp),%rax
movl   $0xcf,(%rax)
jmp    128b <_handle_special_case+0x15b>
cmpl   $0x10,-0x18(%rbp)
jne    11a1 <_handle_special_case+0x71>
mov    -0x20(%rbp),%rax
movl   $0xd7,(%rax)
jmp    1286 <_handle_special_case+0x156>
cmpl   $0x18,-0x18(%rbp)
jne    11ba <_handle_special_case+0x8a>
mov    -0x20(%rbp),%rax
movl   $0xdf,(%rax)
jmp    1281 <_handle_special_case+0x151>
cmpl   $0x20,-0x18(%rbp)
jne    11d3 <_handle_special_case+0xa3>
mov    -0x20(%rbp),%rax
movl   $0xe7,(%rax)
jmp    127c <_handle_special_case+0x14c>
cmpl   $0x28,-0x18(%rbp)
jne    11ec <_handle_special_case+0xbc>
mov    -0x20(%rbp),%rax
movl   $0xef,(%rax)
jmp    1277 <_handle_special_case+0x147>
cmpl   $0x30,-0x18(%rbp)
jne    1205 <_handle_special_case+0xd5>
mov    -0x20(%rbp),%rax
movl   $0xf7,(%rax)
jmp    1272 <_handle_special_case+0x142>
cmpl   $0x38,-0x18(%rbp)
jne    121e <_handle_special_case+0xee>
mov    -0x20(%rbp),%rax
movl   $0xff,(%rax)
jmp    126d <_handle_special_case+0x13d>
mov    0x2dbb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <get_file_name@plt>
mov    %rax,-0x28(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <get_source_file_name@plt>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rdx
mov    %rax,%rcx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
lea    0xda6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    155e <_handle_special_case+0x42e>
jmp    1272 <_handle_special_case+0x142>
jmp    1277 <_handle_special_case+0x147>
jmp    127c <_handle_special_case+0x14c>
jmp    1281 <_handle_special_case+0x151>
jmp    1286 <_handle_special_case+0x156>
jmp    128b <_handle_special_case+0x15b>
jmp    1290 <_handle_special_case+0x160>
jmp    1557 <_handle_special_case+0x427>
cmpl   $0x2,-0x8(%rbp)
jne    13de <_handle_special_case+0x2ae>
cmpl   $0x0,-0x18(%rbp)
jne    12b8 <_handle_special_case+0x188>
mov    -0x20(%rbp),%rax
movl   $0x5,(%rax)
jmp    13d9 <_handle_special_case+0x2a9>
cmpl   $0x1,-0x18(%rbp)
jne    12d1 <_handle_special_case+0x1a1>
mov    -0x20(%rbp),%rax
movl   $0xd,(%rax)
jmp    13d4 <_handle_special_case+0x2a4>
cmpl   $0x2,-0x18(%rbp)
jne    12ea <_handle_special_case+0x1ba>
mov    -0x20(%rbp),%rax
movl   $0x15,(%rax)
jmp    13cf <_handle_special_case+0x29f>
cmpl   $0x3,-0x18(%rbp)
jne    1303 <_handle_special_case+0x1d3>
mov    -0x20(%rbp),%rax
movl   $0x1d,(%rax)
jmp    13ca <_handle_special_case+0x29a>
cmpl   $0x4,-0x18(%rbp)
jne    131c <_handle_special_case+0x1ec>
mov    -0x20(%rbp),%rax
movl   $0x25,(%rax)
jmp    13c5 <_handle_special_case+0x295>
cmpl   $0x5,-0x18(%rbp)
jne    1335 <_handle_special_case+0x205>
mov    -0x20(%rbp),%rax
movl   $0x2d,(%rax)
jmp    13c0 <_handle_special_case+0x290>
cmpl   $0x6,-0x18(%rbp)
jne    134e <_handle_special_case+0x21e>
mov    -0x20(%rbp),%rax
movl   $0x35,(%rax)
jmp    13bb <_handle_special_case+0x28b>
cmpl   $0x7,-0x18(%rbp)
jne    1367 <_handle_special_case+0x237>
mov    -0x20(%rbp),%rax
movl   $0x3d,(%rax)
jmp    13b6 <_handle_special_case+0x286>
mov    0x2c72(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <get_file_name@plt>
mov    %rax,-0x38(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <get_source_file_name@plt>
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%rdx
mov    %rax,%rcx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
lea    0xcc4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    155e <_handle_special_case+0x42e>
jmp    13bb <_handle_special_case+0x28b>
jmp    13c0 <_handle_special_case+0x290>
jmp    13c5 <_handle_special_case+0x295>
jmp    13ca <_handle_special_case+0x29a>
jmp    13cf <_handle_special_case+0x29f>
jmp    13d4 <_handle_special_case+0x2a4>
jmp    13d9 <_handle_special_case+0x2a9>
jmp    1552 <_handle_special_case+0x422>
cmpl   $0x3,-0x8(%rbp)
jne    1527 <_handle_special_case+0x3f7>
cmpl   $0x0,-0x18(%rbp)
jne    1401 <_handle_special_case+0x2d1>
mov    -0x20(%rbp),%rax
movl   $0xc7,(%rax)
jmp    1522 <_handle_special_case+0x3f2>
cmpl   $0x1,-0x18(%rbp)
jne    141a <_handle_special_case+0x2ea>
mov    -0x20(%rbp),%rax
movl   $0xcf,(%rax)
jmp    151d <_handle_special_case+0x3ed>
cmpl   $0x2,-0x18(%rbp)
jne    1433 <_handle_special_case+0x303>
mov    -0x20(%rbp),%rax
movl   $0xd7,(%rax)
jmp    1518 <_handle_special_case+0x3e8>
cmpl   $0x3,-0x18(%rbp)
jne    144c <_handle_special_case+0x31c>
mov    -0x20(%rbp),%rax
movl   $0xdf,(%rax)
jmp    1513 <_handle_special_case+0x3e3>
cmpl   $0x4,-0x18(%rbp)
jne    1465 <_handle_special_case+0x335>
mov    -0x20(%rbp),%rax
movl   $0xe7,(%rax)
jmp    150e <_handle_special_case+0x3de>
cmpl   $0x5,-0x18(%rbp)
jne    147e <_handle_special_case+0x34e>
mov    -0x20(%rbp),%rax
movl   $0xef,(%rax)
jmp    1509 <_handle_special_case+0x3d9>
cmpl   $0x6,-0x18(%rbp)
jne    1497 <_handle_special_case+0x367>
mov    -0x20(%rbp),%rax
movl   $0xf7,(%rax)
jmp    1504 <_handle_special_case+0x3d4>
cmpl   $0x7,-0x18(%rbp)
jne    14b0 <_handle_special_case+0x380>
mov    -0x20(%rbp),%rax
movl   $0xff,(%rax)
jmp    14ff <_handle_special_case+0x3cf>
mov    0x2b29(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <get_file_name@plt>
mov    %rax,-0x48(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <get_source_file_name@plt>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
lea    0xb7b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    155e <_handle_special_case+0x42e>
jmp    1504 <_handle_special_case+0x3d4>
jmp    1509 <_handle_special_case+0x3d9>
jmp    150e <_handle_special_case+0x3de>
jmp    1513 <_handle_special_case+0x3e3>
jmp    1518 <_handle_special_case+0x3e8>
jmp    151d <_handle_special_case+0x3ed>
jmp    1522 <_handle_special_case+0x3f2>
jmp    154d <_handle_special_case+0x41d>
mov    0x2ab2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xb84(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    155e <_handle_special_case+0x42e>
jmp    1552 <_handle_special_case+0x422>
jmp    1557 <_handle_special_case+0x427>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_handle_special_case>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r8d,%ebp
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
cmp    $0x3,%edi
je     1175 <_handle_special_case+0x45>
mov    %edi,%edx
cmp    $0x2,%edi
je     119c <_handle_special_case+0x6c>
cmp    $0x1,%edx
jne    11c3 <_handle_special_case+0x93>
mov    %ebp,%eax
rol    $0x1d,%eax
cmp    $0x7,%eax
ja     125c <_handle_special_case+0x12c>
lea    0xed4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmp    $0x7,%ebp
ja     1235 <_handle_special_case+0x105>
mov    %ebp,%eax
lea    0xe79(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xc7,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
cmp    $0x7,%ebp
ja     1235 <_handle_special_case+0x105>
mov    %ebp,%eax
lea    0xe72(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x5,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
mov    0x2e16(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    12dd <_handle_special_case+0x1ad>
movl   $0xcf,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0xd7,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0xdf,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0xe7,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0xef,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0xf7,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0xff,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
mov    0x2da4(%rip),%rax
mov    (%rax),%r12d
mov    %ebx,%edi
call   1050 <get_file_name@plt>
mov    %rax,%r13
mov    %ebx,%edi
mov    %r15d,%esi
call   1030 <get_source_file_name@plt>
lea    0xe6d(%rip),%rsi
jmp    1281 <_handle_special_case+0x151>
mov    0x2d7d(%rip),%rax
mov    (%rax),%r12d
mov    %ebx,%edi
call   1050 <get_file_name@plt>
mov    %rax,%r13
mov    %ebx,%edi
mov    %r15d,%esi
call   1030 <get_source_file_name@plt>
lea    0xddf(%rip),%rsi
xor    %ebx,%ebx
mov    %r12d,%edi
mov    %r13,%rdx
mov    %rax,%rcx
mov    %r14d,%r8d
mov    %ebp,%r9d
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    12dd <_handle_special_case+0x1ad>
movl   $0xd,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0x15,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0x1d,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0x25,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0x2d,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0x35,(%r9)
jmp    12d8 <_handle_special_case+0x1a8>
movl   $0x3d,(%r9)
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [103 x i8] c"%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting $00/$08/$10/$18/$20/$28/$30/$38, got $%.2x instead.\0A\00"
@.str.1 = [87 x i8] c"%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting 0/1/2/3/4/5/6/7, got $%.2x instead.\0A\00"
@.str.2 = [110 x i8] c"_HANDLE_SPECIAL_CASE: Unknown special case ID %d! This in an internal WLA error. Please submit a bug report!\0A\00"
define i32 @_handle_special_case(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32* %5, i32** %13
%14 = load i32, i32* %8
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %74
16: ; preds = %6
%17 = load i32, i32* %12
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load i32*, i32** %13
store i32 199, i32* %20
br label %73
21: ; preds = %16
%22 = load i32, i32* %12
%23 = icmp eq i32 %22, 8
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = load i32*, i32** %13
store i32 207, i32* %25
br label %72
26: ; preds = %21
%27 = load i32, i32* %12
%28 = icmp eq i32 %27, 16
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = load i32*, i32** %13
store i32 215, i32* %30
br label %71
31: ; preds = %26
%32 = load i32, i32* %12
%33 = icmp eq i32 %32, 24
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = load i32*, i32** %13
store i32 223, i32* %35
br label %70
36: ; preds = %31
%37 = load i32, i32* %12
%38 = icmp eq i32 %37, 32
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load i32*, i32** %13
store i32 231, i32* %40
br label %69
41: ; preds = %36
%42 = load i32, i32* %12
%43 = icmp eq i32 %42, 40
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load i32*, i32** %13
store i32 239, i32* %45
br label %68
46: ; preds = %41
%47 = load i32, i32* %12
%48 = icmp eq i32 %47, 48
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = load i32*, i32** %13
store i32 247, i32* %50
br label %67
51: ; preds = %46
%52 = load i32, i32* %12
%53 = icmp eq i32 %52, 56
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = load i32*, i32** %13
store i32 255, i32* %55
br label %66
56: ; preds = %51
%57 = load i32, i32* @stderr
%58 = load i32, i32* %9
%59 = call i8* @get_file_name(i32 %58)
%60 = load i32, i32* %9
%61 = load i32, i32* %10
%62 = call i8* @get_source_file_name(i32 %60, i32 %61)
%63 = load i32, i32* %11
%64 = load i32, i32* %12
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8* %59, i8* %62, i32 %63, i32 %64)
store i32 0, i32* %7
br label %203
66: ; preds = %54
br label %67
67: ; preds = %66, %49
br label %68
68: ; preds = %67, %44
br label %69
69: ; preds = %68, %39
br label %70
70: ; preds = %69, %34
br label %71
71: ; preds = %70, %29
br label %72
72: ; preds = %71, %24
br label %73
73: ; preds = %72, %19
br label %202
74: ; preds = %6
%75 = load i32, i32* %8
%76 = icmp eq i32 %75, 2
br i1 %76, label %77, label %135
77: ; preds = %74
%78 = load i32, i32* %12
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = load i32*, i32** %13
store i32 5, i32* %81
br label %134
82: ; preds = %77
%83 = load i32, i32* %12
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = load i32*, i32** %13
store i32 13, i32* %86
br label %133
87: ; preds = %82
%88 = load i32, i32* %12
%89 = icmp eq i32 %88, 2
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = load i32*, i32** %13
store i32 21, i32* %91
br label %132
92: ; preds = %87
%93 = load i32, i32* %12
%94 = icmp eq i32 %93, 3
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = load i32*, i32** %13
store i32 29, i32* %96
br label %131
97: ; preds = %92
%98 = load i32, i32* %12
%99 = icmp eq i32 %98, 4
br i1 %99, label %100, label %102
100: ; preds = %97
%101 = load i32*, i32** %13
store i32 37, i32* %101
br label %130
102: ; preds = %97
%103 = load i32, i32* %12
%104 = icmp eq i32 %103, 5
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = load i32*, i32** %13
store i32 45, i32* %106
br label %129
107: ; preds = %102
%108 = load i32, i32* %12
%109 = icmp eq i32 %108, 6
br i1 %109, label %110, label %112
110: ; preds = %107
%111 = load i32*, i32** %13
store i32 53, i32* %111
br label %128
112: ; preds = %107
%113 = load i32, i32* %12
%114 = icmp eq i32 %113, 7
br i1 %114, label %115, label %117
115: ; preds = %112
%116 = load i32*, i32** %13
store i32 61, i32* %116
br label %127
117: ; preds = %112
%118 = load i32, i32* @stderr
%119 = load i32, i32* %9
%120 = call i8* @get_file_name(i32 %119)
%121 = load i32, i32* %9
%122 = load i32, i32* %10
%123 = call i8* @get_source_file_name(i32 %121, i32 %122)
%124 = load i32, i32* %11
%125 = load i32, i32* %12
%126 = call i32 (i32, i8*, ...) @fprintf(i32 %118, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0), i8* %120, i8* %123, i32 %124, i32 %125)
store i32 0, i32* %7
br label %203
127: ; preds = %115
br label %128
128: ; preds = %127, %110
br label %129
129: ; preds = %128, %105
br label %130
130: ; preds = %129, %100
br label %131
131: ; preds = %130, %95
br label %132
132: ; preds = %131, %90
br label %133
133: ; preds = %132, %85
br label %134
134: ; preds = %133, %80
br label %201
135: ; preds = %74
%136 = load i32, i32* %8
%137 = icmp eq i32 %136, 3
br i1 %137, label %138, label %196
138: ; preds = %135
%139 = load i32, i32* %12
%140 = icmp eq i32 %139, 0
br i1 %140, label %141, label %143
141: ; preds = %138
%142 = load i32*, i32** %13
store i32 199, i32* %142
br label %195
143: ; preds = %138
%144 = load i32, i32* %12
%145 = icmp eq i32 %144, 1
br i1 %145, label %146, label %148
146: ; preds = %143
%147 = load i32*, i32** %13
store i32 207, i32* %147
br label %194
148: ; preds = %143
%149 = load i32, i32* %12
%150 = icmp eq i32 %149, 2
br i1 %150, label %151, label %153
151: ; preds = %148
%152 = load i32*, i32** %13
store i32 215, i32* %152
br label %193
153: ; preds = %148
%154 = load i32, i32* %12
%155 = icmp eq i32 %154, 3
br i1 %155, label %156, label %158
156: ; preds = %153
%157 = load i32*, i32** %13
store i32 223, i32* %157
br label %192
158: ; preds = %153
%159 = load i32, i32* %12
%160 = icmp eq i32 %159, 4
br i1 %160, label %161, label %163
161: ; preds = %158
%162 = load i32*, i32** %13
store i32 231, i32* %162
br label %191
163: ; preds = %158
%164 = load i32, i32* %12
%165 = icmp eq i32 %164, 5
br i1 %165, label %166, label %168
166: ; preds = %163
%167 = load i32*, i32** %13
store i32 239, i32* %167
br label %190
168: ; preds = %163
%169 = load i32, i32* %12
%170 = icmp eq i32 %169, 6
br i1 %170, label %171, label %173
171: ; preds = %168
%172 = load i32*, i32** %13
store i32 247, i32* %172
br label %189
173: ; preds = %168
%174 = load i32, i32* %12
%175 = icmp eq i32 %174, 7
br i1 %175, label %176, label %178
176: ; preds = %173
%177 = load i32*, i32** %13
store i32 255, i32* %177
br label %188
178: ; preds = %173
%179 = load i32, i32* @stderr
%180 = load i32, i32* %9
%181 = call i8* @get_file_name(i32 %180)
%182 = load i32, i32* %9
%183 = load i32, i32* %10
%184 = call i8* @get_source_file_name(i32 %182, i32 %183)
%185 = load i32, i32* %11
%186 = load i32, i32* %12
%187 = call i32 (i32, i8*, ...) @fprintf(i32 %179, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0), i8* %181, i8* %184, i32 %185, i32 %186)
store i32 0, i32* %7
br label %203
188: ; preds = %176
br label %189
189: ; preds = %188, %171
br label %190
190: ; preds = %189, %166
br label %191
191: ; preds = %190, %161
br label %192
192: ; preds = %191, %156
br label %193
193: ; preds = %192, %151
br label %194
194: ; preds = %193, %146
br label %195
195: ; preds = %194, %141
br label %200
196: ; preds = %135
%197 = load i32, i32* @stderr
%198 = load i32, i32* %8
%199 = call i32 (i32, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.2, i64 0, i64 0), i32 %198)
store i32 0, i32* %7
br label %203
200: ; preds = %195
br label %201
201: ; preds = %200, %134
br label %202
202: ; preds = %201, %73
store i32 1, i32* %7
br label %203
203: ; preds = %202, %196, %178, %117, %56
%204 = load i32, i32* %7
ret i32 %204
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [103 x i8] c"%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting $00/$08/$10/$18/$20/$28/$30/$38, got $%.2x instead.\0A\00"
@.str.1 = [87 x i8] c"%s: %s:%d: _HANDLE_SPECIAL_CASE: RST is expecting 0/1/2/3/4/5/6/7, got $%.2x instead.\0A\00"
@.str.2 = [110 x i8] c"_HANDLE_SPECIAL_CASE: Unknown special case ID %d! This in an internal WLA error. Please submit a bug report!\0A\00"
define i32 @_handle_special_case(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32* writeonly %5) {
switch i32 %0, label %50 [
i32 1, label %7
i32 2, label %22
i32 3, label %36
]
7: ; preds = %6
%8 = tail call i32 @llvm.fshl.i32(i32 %4, i32 %4, i32 29)
switch i32 %8, label %17 [
i32 0, label %9
i32 1, label %10
i32 2, label %11
i32 3, label %12
i32 4, label %13
i32 5, label %14
i32 6, label %15
i32 7, label %16
]
9: ; preds = %7
store i32 199, i32* %5
br label %53
10: ; preds = %7
store i32 207, i32* %5
br label %53
11: ; preds = %7
store i32 215, i32* %5
br label %53
12: ; preds = %7
store i32 223, i32* %5
br label %53
13: ; preds = %7
store i32 231, i32* %5
br label %53
14: ; preds = %7
store i32 239, i32* %5
br label %53
15: ; preds = %7
store i32 247, i32* %5
br label %53
16: ; preds = %7
store i32 255, i32* %5
br label %53
17: ; preds = %7
%18 = load i32, i32* @stderr
%19 = tail call i8* @get_file_name(i32 %1)
%20 = tail call i8* @get_source_file_name(i32 %1, i32 %2)
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8* %19, i8* %20, i32 %3, i32 %4)
br label %53
22: ; preds = %6
switch i32 %4, label %31 [
i32 0, label %23
i32 1, label %24
i32 2, label %25
i32 3, label %26
i32 4, label %27
i32 5, label %28
i32 6, label %29
i32 7, label %30
]
23: ; preds = %22
store i32 5, i32* %5
br label %53
24: ; preds = %22
store i32 13, i32* %5
br label %53
25: ; preds = %22
store i32 21, i32* %5
br label %53
26: ; preds = %22
store i32 29, i32* %5
br label %53
27: ; preds = %22
store i32 37, i32* %5
br label %53
28: ; preds = %22
store i32 45, i32* %5
br label %53
29: ; preds = %22
store i32 53, i32* %5
br label %53
30: ; preds = %22
store i32 61, i32* %5
br label %53
31: ; preds = %22
%32 = load i32, i32* @stderr
%33 = tail call i8* @get_file_name(i32 %1)
%34 = tail call i8* @get_source_file_name(i32 %1, i32 %2)
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0), i8* %33, i8* %34, i32 %3, i32 %4)
br label %53
36: ; preds = %6
switch i32 %4, label %45 [
i32 0, label %37
i32 1, label %38
i32 2, label %39
i32 3, label %40
i32 4, label %41
i32 5, label %42
i32 6, label %43
i32 7, label %44
]
37: ; preds = %36
store i32 199, i32* %5
br label %53
38: ; preds = %36
store i32 207, i32* %5
br label %53
39: ; preds = %36
store i32 215, i32* %5
br label %53
40: ; preds = %36
store i32 223, i32* %5
br label %53
41: ; preds = %36
store i32 231, i32* %5
br label %53
42: ; preds = %36
store i32 239, i32* %5
br label %53
43: ; preds = %36
store i32 247, i32* %5
br label %53
44: ; preds = %36
store i32 255, i32* %5
br label %53
45: ; preds = %36
%46 = load i32, i32* @stderr
%47 = tail call i8* @get_file_name(i32 %1)
%48 = tail call i8* @get_source_file_name(i32 %1, i32 %2)
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0), i8* %47, i8* %48, i32 %3, i32 %4)
br label %53
50: ; preds = %6
%51 = load i32, i32* @stderr
%52 = tail call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.2, i64 0, i64 0), i32 %0)
br label %53
53: ; preds = %10, %12, %14, %16, %15, %13, %11, %9, %38, %40, %42, %44, %43, %41, %39, %37, %23, %25, %27, %29, %30, %28, %26, %24, %50, %45, %31, %17
%54 = phi i32 [ 0, %17 ], [ 0, %31 ], [ 0, %45 ], [ 0, %50 ], [ 1, %24 ], [ 1, %26 ], [ 1, %28 ], [ 1, %30 ], [ 1, %29 ], [ 1, %27 ], [ 1, %25 ], [ 1, %23 ], [ 1, %37 ], [ 1, %39 ], [ 1, %41 ], [ 1, %43 ], [ 1, %44 ], [ 1, %42 ], [ 1, %40 ], [ 1, %38 ], [ 1, %9 ], [ 1, %11 ], [ 1, %13 ], [ 1, %15 ], [ 1, %16 ], [ 1, %14 ], [ 1, %12 ], [ 1, %10 ]
ret i32 %54
}