#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 *, char *);
int /*<<< orphan*/ stderr;
void usage(char const *argv0) {
  fprintf(
      stderr,
      "Convert raw optical disk images to iso files.\n"
      "\n"
      "Usage: %s <track-mode> [<sub-channel-mode>] < INPUT.BIN > OUTPUT.ISO\n"
      "\n"
      "<track-mode>: MODE1_RAW | MODE1 | MODE2_RAW | MODE2_FORM1 | "
      "MODE2_FORM2 | MODE2_FORM_MIX\n"
      "<sub-channel-mode>: RW | RW_RAW\n"
      "\n"
      "(See cdrdao(1) -> TOC FILES -> Track Specification -> TRACK.)\n"
      "\n"
      "Note: Error correction/detection data is not checked (try\n"
      "https://github.com/claunia/edccchk) and errors are not corrected.\n"
      "\n"
      "raw2iso %s - https://github.com/not-a-user/raw2iso\n",
      argv0, "0.0.2");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
lea    0x10a8(%rip),%rcx
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
lea    0x10b5(%rip),%rcx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [479 x i8] c"Convert raw optical disk images to iso files.\0A\0AUsage: %s <track-mode> [<sub-channel-mode>] < INPUT.BIN > OUTPUT.ISO\0A\0A<track-mode>: MODE1_RAW | MODE1 | MODE2_RAW | MODE2_FORM1 | MODE2_FORM2 | MODE2_FORM_MIX\0A<sub-channel-mode>: RW | RW_RAW\0A\0A(See cdrdao(1) -> TOC FILES -> Track Specification -> TRACK.)\0A\0ANote: Error correction/detection data is not checked (try\0Ahttps://github.com/claunia/edccchk) and errors are not corrected.\0A\0Araw2iso %s - https://github.com/not-a-user/raw2iso\0A\00"
@.str.1 = [6 x i8] c"0.0.2\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([479 x i8], [479 x i8]* @.str, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [479 x i8] c"Convert raw optical disk images to iso files.\0A\0AUsage: %s <track-mode> [<sub-channel-mode>] < INPUT.BIN > OUTPUT.ISO\0A\0A<track-mode>: MODE1_RAW | MODE1 | MODE2_RAW | MODE2_FORM1 | MODE2_FORM2 | MODE2_FORM_MIX\0A<sub-channel-mode>: RW | RW_RAW\0A\0A(See cdrdao(1) -> TOC FILES -> Track Specification -> TRACK.)\0A\0ANote: Error correction/detection data is not checked (try\0Ahttps://github.com/claunia/edccchk) and errors are not corrected.\0A\0Araw2iso %s - https://github.com/not-a-user/raw2iso\0A\00"
@.str.1 = [6 x i8] c"0.0.2\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([479 x i8], [479 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}