#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*/ assert(int);
int fetch_int();
int /*<<< orphan*/ fetch_skip(int);
int /*<<< orphan*/ fetch_skip_photo();
int /*<<< orphan*/ fetch_str(int);
int prefetch_strlen();
void fetch_skip_message_action(void) {
  unsigned x = fetch_int();
  int l;
  switch (x) {
  case 0xb6aef7b0:
    break;
  case 0x6f038ebc: {
    l = prefetch_strlen();
    fetch_str(l);
    l = prefetch_strlen();
    fetch_str(l);
  } break;
  case 0xc7d53de:
    break;
  case 0xa6638b9a:
    l = prefetch_strlen();
    fetch_str(l);
    assert(fetch_int() == (int)0x1cb5c415);
    l = fetch_int();
    fetch_skip(l);
    break;
  case 0xb5a1ce5a:
    l = prefetch_strlen();
    fetch_str(l);
    break;
  case 0x7fcb13a8:
    fetch_skip_photo();
    break;
  case 0x95e3fbef:
    break;
  case 0x5e3cfc4b:
    fetch_int();
    break;
  case 0xb2ae9b0c:
    fetch_int();
    break;
  default:
    assert(0);
  }
}


x86 assembly (clang, -O0):
<fetch_skip_message_action>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1060 <fetch_int@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x95e3fbef,%eax
je     12b8 <fetch_skip_message_action+0x158>
jmp    1188 <fetch_skip_message_action+0x28>
mov    -0xc(%rbp),%eax
sub    $0xa6638b9a,%eax
je     1253 <fetch_skip_message_action+0xf3>
jmp    119b <fetch_skip_message_action+0x3b>
mov    -0xc(%rbp),%eax
sub    $0xb2ae9b0c,%eax
je     12c9 <fetch_skip_message_action+0x169>
jmp    11ae <fetch_skip_message_action+0x4e>
mov    -0xc(%rbp),%eax
sub    $0xb5a1ce5a,%eax
je     1295 <fetch_skip_message_action+0x135>
jmp    11c1 <fetch_skip_message_action+0x61>
mov    -0xc(%rbp),%eax
sub    $0xb6aef7b0,%eax
je     1220 <fetch_skip_message_action+0xc0>
jmp    11d4 <fetch_skip_message_action+0x74>
mov    -0xc(%rbp),%eax
sub    $0xc7d53de,%eax
je     124e <fetch_skip_message_action+0xee>
jmp    11e7 <fetch_skip_message_action+0x87>
mov    -0xc(%rbp),%eax
sub    $0x5e3cfc4b,%eax
je     12bd <fetch_skip_message_action+0x15d>
jmp    11fa <fetch_skip_message_action+0x9a>
mov    -0xc(%rbp),%eax
sub    $0x6f038ebc,%eax
je     1225 <fetch_skip_message_action+0xc5>
jmp    120d <fetch_skip_message_action+0xad>
mov    -0xc(%rbp),%eax
sub    $0x7fcb13a8,%eax
je     12ac <fetch_skip_message_action+0x14c>
jmp    12d5 <fetch_skip_message_action+0x175>
jmp    12dc <fetch_skip_message_action+0x17c>
mov    $0x0,%al
call   1030 <prefetch_strlen@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <fetch_str@plt>
mov    $0x0,%al
call   1030 <prefetch_strlen@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <fetch_str@plt>
jmp    12dc <fetch_skip_message_action+0x17c>
jmp    12dc <fetch_skip_message_action+0x17c>
mov    $0x0,%al
call   1030 <prefetch_strlen@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <fetch_str@plt>
mov    $0x0,%al
call   1060 <fetch_int@plt>
cmp    $0x1cb5c415,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    $0x0,%al
call   1060 <fetch_int@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1050 <fetch_skip@plt>
jmp    12dc <fetch_skip_message_action+0x17c>
mov    $0x0,%al
call   1030 <prefetch_strlen@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <fetch_str@plt>
jmp    12dc <fetch_skip_message_action+0x17c>
mov    $0x0,%al
call   1080 <fetch_skip_photo@plt>
jmp    12dc <fetch_skip_message_action+0x17c>
jmp    12dc <fetch_skip_message_action+0x17c>
mov    $0x0,%al
call   1060 <fetch_int@plt>
jmp    12dc <fetch_skip_message_action+0x17c>
mov    $0x0,%al
call   1060 <fetch_int@plt>
jmp    12dc <fetch_skip_message_action+0x17c>
xor    %edi,%edi
call   1070 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fetch_skip_message_action>:
push   %rax
xor    %eax,%eax
call   1060 <fetch_int@plt>
cmp    $0xb6aef7af,%eax
jle    11a7 <fetch_skip_message_action+0x47>
cmp    $0x5e3cfc4a,%eax
jle    11f0 <fetch_skip_message_action+0x90>
cmp    $0x5e3cfc4b,%eax
je     121d <fetch_skip_message_action+0xbd>
cmp    $0x7fcb13a8,%eax
je     1225 <fetch_skip_message_action+0xc5>
cmp    $0x6f038ebc,%eax
jne    122d <fetch_skip_message_action+0xcd>
xor    %eax,%eax
call   1030 <prefetch_strlen@plt>
mov    %eax,%edi
call   1040 <fetch_str@plt>
jmp    120e <fetch_skip_message_action+0xae>
cmp    $0xb2ae9b0b,%eax
jg     1200 <fetch_skip_message_action+0xa0>
cmp    $0x95e3fbef,%eax
je     11fe <fetch_skip_message_action+0x9e>
cmp    $0xa6638b9a,%eax
jne    122d <fetch_skip_message_action+0xcd>
xor    %eax,%eax
call   1030 <prefetch_strlen@plt>
mov    %eax,%edi
call   1040 <fetch_str@plt>
xor    %eax,%eax
call   1060 <fetch_int@plt>
xor    %edi,%edi
cmp    $0x1cb5c415,%eax
sete   %dil
call   1070 <assert@plt>
xor    %eax,%eax
call   1060 <fetch_int@plt>
mov    %eax,%edi
pop    %rax
jmp    1050 <fetch_skip@plt>
cmp    $0xb6aef7b0,%eax
je     11fe <fetch_skip_message_action+0x9e>
cmp    $0xc7d53de,%eax
jne    122d <fetch_skip_message_action+0xcd>
pop    %rax
ret
cmp    $0xb2ae9b0c,%eax
je     121d <fetch_skip_message_action+0xbd>
cmp    $0xb5a1ce5a,%eax
jne    122d <fetch_skip_message_action+0xcd>
xor    %eax,%eax
call   1030 <prefetch_strlen@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <fetch_str@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <fetch_int@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <fetch_skip_photo@plt>
xor    %edi,%edi
pop    %rax
jmp    1070 <assert@plt>

LLVM IR (-O0):
define void @fetch_skip_message_action() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @fetch_int()
store i32 %3, i32* %1
%4 = load i32, i32* %1
switch i32 %4, label %36 [
i32 -1230047312, label %5
i32 1862504124, label %6
i32 209540062, label %13
i32 -1503425638, label %14
i32 -1247687078, label %25
i32 2144015272, label %29
i32 -1780220945, label %31
i32 1581055051, label %32
i32 -1297179892, label %34
]
5: ; preds = %0
br label %38
6: ; preds = %0
%7 = call i32 (...) @prefetch_strlen()
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = call i32 @fetch_str(i32 %8)
%10 = call i32 (...) @prefetch_strlen()
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = call i32 @fetch_str(i32 %11)
br label %38
13: ; preds = %0
br label %38
14: ; preds = %0
%15 = call i32 (...) @prefetch_strlen()
store i32 %15, i32* %2
%16 = load i32, i32* %2
%17 = call i32 @fetch_str(i32 %16)
%18 = call i32 (...) @fetch_int()
%19 = icmp eq i32 %18, 481674261
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 (...) @fetch_int()
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = call i32 @fetch_skip(i32 %23)
br label %38
25: ; preds = %0
%26 = call i32 (...) @prefetch_strlen()
store i32 %26, i32* %2
%27 = load i32, i32* %2
%28 = call i32 @fetch_str(i32 %27)
br label %38
29: ; preds = %0
%30 = call i32 (...) @fetch_skip_photo()
br label %38
31: ; preds = %0
br label %38
32: ; preds = %0
%33 = call i32 (...) @fetch_int()
br label %38
34: ; preds = %0
%35 = call i32 (...) @fetch_int()
br label %38
36: ; preds = %0
%37 = call i32 @assert(i32 0)
br label %38
38: ; preds = %36, %34, %32, %31, %29, %25, %14, %13, %6, %5
ret void
}

LLVM IR (-O2):
define void @fetch_skip_message_action() {
%1 = tail call i32 (...) @fetch_int()
switch i32 %1, label %25 [
i32 -1230047312, label %27
i32 1862504124, label %2
i32 209540062, label %27
i32 -1503425638, label %7
i32 -1247687078, label %16
i32 2144015272, label %19
i32 -1780220945, label %27
i32 1581055051, label %21
i32 -1297179892, label %23
]
2: ; preds = %0
%3 = tail call i32 (...) @prefetch_strlen()
%4 = tail call i32 @fetch_str(i32 %3)
%5 = tail call i32 (...) @prefetch_strlen()
%6 = tail call i32 @fetch_str(i32 %5)
br label %27
7: ; preds = %0
%8 = tail call i32 (...) @prefetch_strlen()
%9 = tail call i32 @fetch_str(i32 %8)
%10 = tail call i32 (...) @fetch_int()
%11 = icmp eq i32 %10, 481674261
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
%14 = tail call i32 (...) @fetch_int()
%15 = tail call i32 @fetch_skip(i32 %14)
br label %27
16: ; preds = %0
%17 = tail call i32 (...) @prefetch_strlen()
%18 = tail call i32 @fetch_str(i32 %17)
br label %27
19: ; preds = %0
%20 = tail call i32 (...) @fetch_skip_photo()
br label %27
21: ; preds = %0
%22 = tail call i32 (...) @fetch_int()
br label %27
23: ; preds = %0
%24 = tail call i32 (...) @fetch_int()
br label %27
25: ; preds = %0
%26 = tail call i32 @assert(i32 0)
br label %27
27: ; preds = %25, %23, %21, %0, %19, %16, %7, %0, %2, %0
ret void
}