#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*/ Inst_Printf(char *, char *, ...);
int /*<<< orphan*/ Label(char *);
int /*<<< orphan*/ Label_Printf(char *);
void Code_Start(char *label, int prolog, int global) {
  Label_Printf("");
  Inst_Printf(".align", "4");
  Inst_Printf(".proc", "020");
  if (global)
    Inst_Printf(".global", "%s", label);
  Label(label);
  if (!prolog)
    Inst_Printf("save", "%%sp,-104,%%sp");
}


x86 assembly (clang, -O0):
<Code_Start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    0xec9(%rip),%rdi
call   1040 <Label_Printf@plt>
lea    0xeab(%rip),%rdi
lea    0xeab(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xe9f(%rip),%rdi
lea    0xe9e(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
cmpl   $0x0,-0x10(%rbp)
je     119b <Code_Start+0x6b>
mov    -0x8(%rbp),%rdx
lea    0xe86(%rip),%rdi
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <Label@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11c3 <Code_Start+0x93>
lea    0xe69(%rip),%rdi
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Code_Start>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebp
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xecf(%rip),%rdi
call   1040 <Label_Printf@plt>
lea    0xeb1(%rip),%rdi
lea    0xeb1(%rip),%rsi
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xea5(%rip),%rdi
lea    0xea4(%rip),%rsi
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
test   %ebp,%ebp
je     118e <Code_Start+0x5e>
lea    0xe96(%rip),%rdi
lea    0xe97(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
mov    %rbx,%rdi
call   1050 <Label@plt>
test   %r14d,%r14d
je     11a0 <Code_Start+0x70>
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xe77(%rip),%rdi
lea    0xe75(%rip),%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <Inst_Printf@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [7 x i8] c".align\00"
@.str.2 = [2 x i8] c"4\00"
@.str.3 = [6 x i8] c".proc\00"
@.str.4 = [4 x i8] c"020\00"
@.str.5 = [8 x i8] c".global\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [5 x i8] c"save\00"
@.str.8 = [15 x i8] c"%%sp,-104,%%sp\00"
define void @Code_Start(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 @Label_Printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%10 = load i32, i32* %6
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i8*, i8** %4
%14 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %13)
br label %15
15: ; preds = %12, %3
%16 = load i8*, i8** %4
%17 = call i32 @Label(i8* %16)
%18 = load i32, i32* %5
%19 = icmp ne i32 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %15
%21 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
br label %22
22: ; preds = %20, %15
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [7 x i8] c".align\00"
@.str.2 = [2 x i8] c"4\00"
@.str.3 = [6 x i8] c".proc\00"
@.str.4 = [4 x i8] c"020\00"
@.str.5 = [8 x i8] c".global\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [5 x i8] c"save\00"
@.str.8 = [15 x i8] c"%%sp,-104,%%sp\00"
define void @Code_Start(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @Label_Printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%7 = icmp eq i32 %2, 0
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %0)
br label %10
10: ; preds = %8, %3
%11 = tail call i32 @Label(i8* %0)
%12 = icmp eq i32 %1, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
br label %15
15: ; preds = %13, %10
ret void
}