#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*/ pB(char *, ...);
void init_stackframe(void) {
  pB("SInt32 stack_frame_stack_head:R15;");
  pB("SInt32 stack_frame:R02;");
  pB("SInt32 stack_frame_debug_tmp:R22;");
  pB("stack_frame_stack_head = %d;", ((0x400000) - 0x10000));
  pB("stack_frame = %d;", ((0x400000) - 0x200000));
}


x86 assembly (clang, -O0):
<init_stackframe>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xf18(%rip),%rdi
mov    $0x3f0000,%esi
mov    $0x0,%al
call   1030 <pB@plt>
lea    0xf22(%rip),%rdi
mov    $0x200000,%esi
mov    $0x0,%al
call   1030 <pB@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_stackframe>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xefd(%rip),%rdi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xf07(%rip),%rdi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xf1b(%rip),%rdi
mov    $0x3f0000,%esi
xor    %eax,%eax
call   1030 <pB@plt>
lea    0xf25(%rip),%rdi
mov    $0x200000,%esi
xor    %eax,%eax
pop    %rcx
jmp    1030 <pB@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"SInt32 stack_frame_stack_head:R15;\00"
@.str.1 = [24 x i8] c"SInt32 stack_frame:R02;\00"
@.str.2 = [34 x i8] c"SInt32 stack_frame_debug_tmp:R22;\00"
@.str.3 = [29 x i8] c"stack_frame_stack_head = %d;\00"
@.str.4 = [18 x i8] c"stack_frame = %d;\00"
define void @init_stackframe() {
%1 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 4128768)
%5 = call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 2097152)
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"SInt32 stack_frame_stack_head:R15;\00"
@.str.1 = [24 x i8] c"SInt32 stack_frame:R02;\00"
@.str.2 = [34 x i8] c"SInt32 stack_frame_debug_tmp:R22;\00"
@.str.3 = [29 x i8] c"stack_frame_stack_head = %d;\00"
@.str.4 = [18 x i8] c"stack_frame = %d;\00"
define void @init_stackframe() {
%1 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 4128768)
%5 = tail call i32 (i8*, ...) @pB(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 2097152)
ret void
}