#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 /*<<< orphan*/ fetch_bool();
unsigned int fetch_int();
int /*<<< orphan*/ fetch_str(int);
int prefetch_strlen();
void fetch_notify_settings(void) {
  unsigned x = fetch_int();
  assert(x == 0x8d5e11ee || x == 0x70a68512 || x == 0xddbcd4a5);
  if (x == 0xddbcd4a5) {
    fetch_int();
    int l = prefetch_strlen();
    fetch_str(l);
    fetch_bool();
    fetch_int();
  }
  if (x == 0x8d5e11ee) {
    fetch_int();
    int l = prefetch_strlen();
    fetch_str(l);
    fetch_bool();
    fetch_int();
  }
}


x86 assembly (clang, -O0):
<fetch_notify_settings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <fetch_int@plt>
mov    %eax,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x8d5e11ee,-0x4(%rbp)
mov    %al,-0xd(%rbp)
je     1193 <fetch_notify_settings+0x43>
mov    $0x1,%al
cmpl   $0x70a68512,-0x4(%rbp)
mov    %al,-0xd(%rbp)
je     1193 <fetch_notify_settings+0x43>
cmpl   $0xddbcd4a5,-0x4(%rbp)
sete   %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
cmpl   $0xddbcd4a5,-0x4(%rbp)
jne    11d4 <fetch_notify_settings+0x84>
mov    $0x0,%al
call   1050 <fetch_int@plt>
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   1070 <fetch_bool@plt>
mov    $0x0,%al
call   1050 <fetch_int@plt>
cmpl   $0x8d5e11ee,-0x4(%rbp)
jne    1208 <fetch_notify_settings+0xb8>
mov    $0x0,%al
call   1050 <fetch_int@plt>
mov    $0x0,%al
call   1030 <prefetch_strlen@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <fetch_str@plt>
mov    $0x0,%al
call   1070 <fetch_bool@plt>
mov    $0x0,%al
call   1050 <fetch_int@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fetch_notify_settings>:
push   %rbx
xor    %eax,%eax
call   1050 <fetch_int@plt>
mov    %eax,%ebx
mov    $0x1,%edi
cmp    $0x8d5e11ee,%eax
je     117a <fetch_notify_settings+0x2a>
cmp    $0x70a68512,%ebx
je     117a <fetch_notify_settings+0x2a>
xor    %edi,%edi
cmp    $0xddbcd4a5,%ebx
sete   %dil
call   1060 <assert@plt>
cmp    $0xddbcd4a5,%ebx
je     118f <fetch_notify_settings+0x3f>
cmp    $0x8d5e11ee,%ebx
jne    11b3 <fetch_notify_settings+0x63>
xor    %eax,%eax
call   1050 <fetch_int@plt>
xor    %eax,%eax
call   1030 <prefetch_strlen@plt>
mov    %eax,%edi
call   1040 <fetch_str@plt>
xor    %eax,%eax
call   1070 <fetch_bool@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <fetch_int@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @fetch_notify_settings() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (...) @fetch_int()
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = icmp eq i32 %5, -1923214866
br i1 %6, label %13, label %7
7: ; preds = %0
%8 = load i32, i32* %1
%9 = icmp eq i32 %8, 1889961234
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, i32* %1
%12 = icmp eq i32 %11, -574827355
br label %13
13: ; preds = %10, %7, %0
%14 = phi i1 [ true, %7 ], [ true, %0 ], [ %12, %10 ]
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = load i32, i32* %1
%18 = icmp eq i32 %17, -574827355
br i1 %18, label %19, label %26
19: ; preds = %13
%20 = call i32 (...) @fetch_int()
%21 = call i32 (...) @prefetch_strlen()
store i32 %21, i32* %2
%22 = load i32, i32* %2
%23 = call i32 @fetch_str(i32 %22)
%24 = call i32 (...) @fetch_bool()
%25 = call i32 (...) @fetch_int()
br label %26
26: ; preds = %19, %13
%27 = load i32, i32* %1
%28 = icmp eq i32 %27, -1923214866
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = call i32 (...) @fetch_int()
%31 = call i32 (...) @prefetch_strlen()
store i32 %31, i32* %3
%32 = load i32, i32* %3
%33 = call i32 @fetch_str(i32 %32)
%34 = call i32 (...) @fetch_bool()
%35 = call i32 (...) @fetch_int()
br label %36
36: ; preds = %29, %26
ret void
}

LLVM IR (-O2):
define void @fetch_notify_settings() {
%1 = tail call i32 (...) @fetch_int()
switch i32 %1, label %2 [
i32 -1923214866, label %5
i32 1889961234, label %5
]
2: ; preds = %0
%3 = icmp eq i32 %1, -574827355
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %0, %0, %2
%6 = phi i32 [ 1, %0 ], [ %4, %2 ], [ 1, %0 ]
%7 = tail call i32 @assert(i32 %6)
switch i32 %1, label %14 [
i32 -574827355, label %8
i32 -1923214866, label %8
]
8: ; preds = %5, %5
%9 = tail call i32 (...) @fetch_int()
%10 = tail call i32 (...) @prefetch_strlen()
%11 = tail call i32 @fetch_str(i32 %10)
%12 = tail call i32 (...) @fetch_bool()
%13 = tail call i32 (...) @fetch_int()
br label %14
14: ; preds = %8, %5
ret void
}