#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*/ ol_main_version();
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
void ol_main_help(char *argv0) {
  ol_main_version();
  puts("");
  puts("Usage:");
  printf(" %s [options]\n", argv0);
  char *helpstr =
      "\n"
      "Adjusts screen color temperature\n"
      "\n"
      "Options:\n"
      " -k, --kelvin          color temperature in kelvin (1000-40000,\n"
      "                         default: 3400)\n"
      " -r, --red             red color channel (0-255, default: auto)\n"
      " -g, --green           green color channel (0-255, default: auto)\n"
      " -b, --blue            blue color channel (0-255, default: auto)\n"
      " -i, --identity        resets display gamma to identity\n"
      "                         (no color bias)\n"
      "\n"
      " -K, --kelvin-backend  kelvin algorithm backend, one of these:\n"
      "                           neilb (default)\n"
      "                           tanner\n"
      "                           flux\n"
      "\n"
      " -R, --reset           resets display gamma to last saved gamma\n"
      " -s, --save            saves current gamma (automatically done when\n"
      "                         openlux is run for the first time on boot)\n"
      "\n"
      " -a, --animate         animation time in milliseconds (default: 0)\n"
      " -d, --delay           animation delay per \"frame\" in milliseconds\n"
      "                         (default: 0)\n"
      "\n"
      " -p, --print           prints internal variables, variables to print\n"
      "                         are comma-separated, or use 'all' to print\n"
      "                         all variables.\n"
      "\n"
      " -h, --help            display this help and exit\n"
      " -V, --version         display version information and exit\n";
  puts(helpstr);
}


x86 assembly (clang, -O0):
<ol_main_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1050 <ol_main_version@plt>
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
lea    0xeaa(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%rsi
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
lea    0xea4(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ol_main_help>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1060 <ol_main_version@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea4(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9f(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
lea    0xe9f(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [7 x i8] c"Usage:\00"
@.str.2 = [15 x i8] c" %s [options]\0A\00"
@.str.3 = [1277 x i8] c"\0AAdjusts screen color temperature\0A\0AOptions:\0A -k, --kelvin color temperature in kelvin (1000-40000,\0A default: 3400)\0A -r, --red red color channel (0-255, default: auto)\0A -g, --green green color channel (0-255, default: auto)\0A -b, --blue blue color channel (0-255, default: auto)\0A -i, --identity resets display gamma to identity\0A (no color bias)\0A\0A -K, --kelvin-backend kelvin algorithm backend, one of these:\0A neilb (default)\0A tanner\0A flux\0A\0A -R, --reset resets display gamma to last saved gamma\0A -s, --save saves current gamma (automatically done when\0A openlux is run for the first time on boot)\0A\0A -a, --animate animation time in milliseconds (default: 0)\0A -d, --delay animation delay per \22frame\22 in milliseconds\0A (default: 0)\0A\0A -p, --print prints internal variables, variables to print\0A are comma-separated, or use 'all' to print\0A all variables.\0A\0A -h, --help display this help and exit\0A -V, --version display version information and exit\0A\00"
define void @ol_main_help(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = call i32 (...) @ol_main_version()
%5 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %7)
store i8* getelementptr inbounds ([1277 x i8], [1277 x i8]* @.str.3, i64 0, i64 0), i8** %3
%9 = load i8*, i8** %3
%10 = call i32 @puts(i8* %9)
ret void
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"Usage:\00"
@.str.2 = [15 x i8] c" %s [options]\0A\00"
@.str.3 = [1277 x i8] c"\0AAdjusts screen color temperature\0A\0AOptions:\0A -k, --kelvin color temperature in kelvin (1000-40000,\0A default: 3400)\0A -r, --red red color channel (0-255, default: auto)\0A -g, --green green color channel (0-255, default: auto)\0A -b, --blue blue color channel (0-255, default: auto)\0A -i, --identity resets display gamma to identity\0A (no color bias)\0A\0A -K, --kelvin-backend kelvin algorithm backend, one of these:\0A neilb (default)\0A tanner\0A flux\0A\0A -R, --reset resets display gamma to last saved gamma\0A -s, --save saves current gamma (automatically done when\0A openlux is run for the first time on boot)\0A\0A -a, --animate animation time in milliseconds (default: 0)\0A -d, --delay animation delay per \22frame\22 in milliseconds\0A (default: 0)\0A\0A -p, --print prints internal variables, variables to print\0A are comma-separated, or use 'all' to print\0A all variables.\0A\0A -h, --help display this help and exit\0A -V, --version display version information and exit\0A\00"
define void @ol_main_help(i8* %0) {
%2 = tail call i32 (...) @ol_main_version()
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1277 x i8], [1277 x i8]* @.str.3, i64 0, i64 0))
ret void
}