#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 *, char const *, ...);
int /*<<< orphan*/ stdout;
void Sys_PrintBinVersion(const char *name) {
  char *date = "Mar 19 2022";
  char *time = "04:16:15";
  char *sep = "==============================================================";
  fprintf(stdout, "\n\n%s\n", sep);
  fprintf(stdout, "Linux Quake3 Full Executable  [%s %s]\n", date, time);
  fprintf(stdout, " local install: %s\n", name);
  fprintf(stdout, "%s\n\n", sep);
}


x86 assembly (clang, -O0):
<Sys_PrintBinVersion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xedc(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xf03(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xeea(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e62(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xef6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xeef(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Sys_PrintBinVersion>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
mov    0x2ec1(%rip),%rbx
mov    (%rbx),%edi
lea    0xf2c(%rip),%rsi
lea    0xee6(%rip),%r14
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf18(%rip),%rsi
lea    0xeb7(%rip),%rdx
lea    0xebc(%rip),%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf21(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf22(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"Mar 19 2022\00"
@.str.1 = [9 x i8] c"04:16:15\00"
@.str.2 = [63 x i8] c"==============================================================\00"
@stdout = global i32 0
@.str.3 = [6 x i8] c"\0A\0A%s\0A\00"
@.str.4 = [39 x i8] c"Linux Quake3 Full Executable [%s %s]\0A\00"
@.str.5 = [20 x i8] c" local install: %s\0A\00"
@.str.6 = [5 x i8] c"%s\0A\0A\00"
define void @Sys_PrintBinVersion(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %3
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %4
store i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i8** %5
%6 = load i32, i32* @stdout
%7 = load i8*, i8** %5
%8 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @stdout
%10 = load i8*, i8** %3
%11 = load i8*, i8** %4
%12 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i8* %10, i8* %11)
%13 = load i32, i32* @stdout
%14 = load i8*, i8** %2
%15 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %14)
%16 = load i32, i32* @stdout
%17 = load i8*, i8** %5
%18 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %17)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"Mar 19 2022\00"
@.str.1 = [9 x i8] c"04:16:15\00"
@.str.2 = [63 x i8] c"==============================================================\00"
@stdout = global i32 0
@.str.3 = [6 x i8] c"\0A\0A%s\0A\00"
@.str.4 = [39 x i8] c"Linux Quake3 Full Executable [%s %s]\0A\00"
@.str.5 = [20 x i8] c" local install: %s\0A\00"
@.str.6 = [5 x i8] c"%s\0A\0A\00"
define void @Sys_PrintBinVersion(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%8 = load i32, i32* @stdout
%9 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
ret void
}