#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 *);
int /*<<< orphan*/ s2show(int);
int /*<<< orphan*/ stderr;
void s2disp(int idelay, int icamerarestore) {
  fprintf(stderr, "Advisory: this 's2disp' function is not re-entrant, and");
  fprintf(stderr, "\ncannot return control to your main program.\n");
  fprintf(stderr, " - proceeding anyway, review documentation to learn how\n");
  fprintf(stderr, "   to overcome this limitation.\n");
  s2show(1);
  return;
}


x86 assembly (clang, -O0):
<s2disp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    0x2eab(%rip),%rax
mov    (%rax),%edi
lea    0xec2(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
lea    0xee5(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
lea    0xefe(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
lea    0xf22(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1030 <s2show@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s2disp>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef9(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf19(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf44(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
pop    %rbx
jmp    1030 <s2show@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [56 x i8] c"Advisory: this 's2disp' function is not re-entrant, and\00"
@.str.1 = [46 x i8] c"\0Acannot return control to your main program.\0A\00"
@.str.2 = [57 x i8] c" - proceeding anyway, review documentation to learn how\0A\00"
@.str.3 = [33 x i8] c" to overcome this limitation.\0A\00"
define void @s2disp(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @s2show(i32 1)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [56 x i8] c"Advisory: this 's2disp' function is not re-entrant, and\00"
@.str.1 = [46 x i8] c"\0Acannot return control to your main program.\0A\00"
@.str.2 = [57 x i8] c" - proceeding anyway, review documentation to learn how\0A\00"
@.str.3 = [33 x i8] c" to overcome this limitation.\0A\00"
define void @s2disp(i32 %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @s2show(i32 1)
ret void
}