#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 *, char *);
void Code_Start(char *label, int prolog, int global) {
  Inst_Printf(".p2align", "4,,15");
  if (global)
    Label_Printf(".globl "
                 "%s",
                 label);
  Label(label);
  if (!prolog) {
    Inst_Printf("pushl", "%%esi");
    Inst_Printf("subl", "$%d,%%esp", 32 * 4 + 4);
  }
}


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    0xeb7(%rip),%rdi
lea    0xeb9(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
cmpl   $0x0,-0x10(%rbp)
je     1171 <Code_Start+0x41>
mov    -0x8(%rbp),%rsi
lea    0xea3(%rip),%rdi
call   1040 <Label_Printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <Label@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11b3 <Code_Start+0x83>
lea    0xe8e(%rip),%rdi
lea    0xe8d(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xe85(%rip),%rdi
lea    0xe83(%rip),%rsi
mov    $0x84,%edx
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    0xebd(%rip),%rdi
lea    0xebf(%rip),%rsi
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
test   %ebp,%ebp
je     1164 <Code_Start+0x34>
lea    0xeb3(%rip),%rdi
mov    %rbx,%rsi
call   1040 <Label_Printf@plt>
mov    %rbx,%rdi
call   1050 <Label@plt>
test   %r14d,%r14d
je     1176 <Code_Start+0x46>
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xe9c(%rip),%rdi
lea    0xe9b(%rip),%rsi
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xe93(%rip),%rdi
lea    0xe91(%rip),%rsi
mov    $0x84,%edx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <Inst_Printf@plt>

LLVM IR (-O0):
@.str = [9 x i8] c".p2align\00"
@.str.1 = [6 x i8] c"4,,15\00"
@.str.2 = [10 x i8] c".globl %s\00"
@.str.3 = [6 x i8] c"pushl\00"
@.str.4 = [6 x i8] c"%%esi\00"
@.str.5 = [5 x i8] c"subl\00"
@.str.6 = [10 x i8] c"$%d,%%esp\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 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %6
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load i8*, i8** %4
%12 = call i32 @Label_Printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %11)
br label %13
13: ; preds = %10, %3
%14 = load i8*, i8** %4
%15 = call i32 @Label(i8* %14)
%16 = load i32, i32* %5
%17 = icmp ne i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %13
%19 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 132)
br label %21
21: ; preds = %18, %13
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c".p2align\00"
@.str.1 = [6 x i8] c"4,,15\00"
@.str.2 = [10 x i8] c".globl %s\00"
@.str.3 = [6 x i8] c"pushl\00"
@.str.4 = [6 x i8] c"%%esi\00"
@.str.5 = [5 x i8] c"subl\00"
@.str.6 = [10 x i8] c"$%d,%%esp\00"
define void @Code_Start(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32 %2, 0
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @Label_Printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %8
8: ; preds = %6, %3
%9 = tail call i32 @Label(i8* %0)
%10 = icmp eq i32 %1, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = 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 ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 132)
br label %14
14: ; preds = %11, %8
ret void
}