#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void syntax(void) {
  printf("%s v%s (%s %s)\n", "sysstrip", "0.03", "Mar 17 2022", "17:19:02");
  printf("Syntax: %s [-r] <infile> -o<outfile>\n", "sysstrip");
  printf("[-r]        : remove T_ResRef structures from the image head\n");
  printf("<infile>    : standard Helios image file\n");
  printf("-o<outfile> : destination object (image header removed)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<syntax>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xede(%rip),%rsi
lea    0xee0(%rip),%rdx
lea    0xede(%rip),%rcx
lea    0xee3(%rip),%r8
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
lea    0xeb4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<syntax>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xed1(%rip),%rbx
lea    0xed3(%rip),%rdx
lea    0xed1(%rip),%rcx
lea    0xed6(%rip),%r8
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"%s v%s (%s %s)\0A\00"
@.str.1 = [9 x i8] c"sysstrip\00"
@.str.2 = [5 x i8] c"0.03\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [9 x i8] c"17:19:02\00"
@.str.5 = [38 x i8] c"Syntax: %s [-r] <infile> -o<outfile>\0A\00"
@.str.6 = [62 x i8] c"[-r] : remove T_ResRef structures from the image head\0A\00"
@.str.7 = [42 x i8] c"<infile> : standard Helios image file\0A\00"
@.str.8 = [57 x i8] c"-o<outfile> : destination object (image header removed)\0A\00"
define void @syntax() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [16 x i8] c"%s v%s (%s %s)\0A\00"
@.str.1 = [9 x i8] c"sysstrip\00"
@.str.2 = [5 x i8] c"0.03\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [9 x i8] c"17:19:02\00"
@.str.5 = [38 x i8] c"Syntax: %s [-r] <infile> -o<outfile>\0A\00"
@str = [61 x i8] c"[-r] : remove T_ResRef structures from the image head\00"
@str.9 = [41 x i8] c"<infile> : standard Helios image file\00"
@str.10 = [56 x i8] c"-o<outfile> : destination object (image header removed)\00"
define void @syntax() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
}