#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 *, ...);
void C_Ret(void) {
  Inst_Printf("ld", "$gp,%d($sp)", 32 * 8 + 8);
  Inst_Printf("ld", "$31,%d($sp)", 32 * 8 + 0);
  Inst_Printf("addiu", "$sp,$sp,%d", 32 * 8 + 16);
  Inst_Printf("j", "$31");
}


x86 assembly (clang, -O0):
<C_Ret>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee1(%rip),%rsi
mov    $0x108,%edx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xecb(%rip),%rdi
lea    0xed3(%rip),%rsi
mov    $0x100,%edx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xecc(%rip),%rdi
lea    0xecb(%rip),%rsi
mov    $0x110,%edx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
lea    0xec3(%rip),%rdi
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<C_Ret>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xee4(%rip),%rsi
mov    %rbx,%rdi
mov    $0x108,%edx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xeda(%rip),%rsi
mov    %rbx,%rdi
mov    $0x100,%edx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xed0(%rip),%rdi
lea    0xecf(%rip),%rsi
mov    $0x110,%edx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    0xec7(%rip),%rdi
lea    0xec2(%rip),%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <Inst_Printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"ld\00"
@.str.1 = [12 x i8] c"$gp,%d($sp)\00"
@.str.2 = [12 x i8] c"$31,%d($sp)\00"
@.str.3 = [6 x i8] c"addiu\00"
@.str.4 = [11 x i8] c"$sp,$sp,%d\00"
@.str.5 = [2 x i8] c"j\00"
@.str.6 = [4 x i8] c"$31\00"
define void @C_Ret() {
%1 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 264)
%2 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 256)
%3 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 272)
%4 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"ld\00"
@.str.1 = [12 x i8] c"$gp,%d($sp)\00"
@.str.2 = [12 x i8] c"$31,%d($sp)\00"
@.str.3 = [6 x i8] c"addiu\00"
@.str.4 = [11 x i8] c"$sp,$sp,%d\00"
@.str.5 = [2 x i8] c"j\00"
@.str.6 = [4 x i8] c"$31\00"
define void @C_Ret() {
%1 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 264)
%2 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 256)
%3 = 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 ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 272)
%4 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
ret void
}