#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*/ printf(char *, ...);
void help(char *argv[]) {
  printf("Usage: %s [OPTION]... [FILE]\n", argv[0]);
  printf("Modifies TomTom TTBIN files.\n");
  printf("\n");
  printf("Mandatory arguments to long options are mandatory for short options "
         "too.\n");
  printf("  -h, --help         Print this help.\n");
  printf("  -l, --laps=[LIST]  Replace the laps recorded on the watch with a "
         "list of\n");
  printf("                       alternative laps.\n");
  printf("  -o=[FILE]          Set the output file name.\n");
  printf("  -t, --truncate=[MODE] Truncate the output file.\n");
  printf("\n");
  printf("If the input file is not specified, the program will read from "
         "stdin.\n");
  printf("If the output file is not specified, the program will write to "
         "stdout.\n");
  printf("\n");
  printf("The list of laps does not have to match the distance of the "
         "activity; it will\n");
  printf("be used multiple times. For example, \"--laps=1000\" will create a "
         "lap marker\n");
  printf("every 1000m, and \"--laps=100,200,400,800,1000\" will create laps "
         "after\n");
  printf("100m, 200m, 400m, 800m, 1000m, 1100m, 1200m, 1400m, 1800m, 2000m "
         "etc...\n");
  printf("\n");
  printf("If the truncation mode is not specified (-t is specified without a "
         "parameter,\n");
  printf("then the file is truncated at one of the following points, in this "
         "order:\n");
  printf("  1. last lap (MODE = laps)\n");
  printf("  2. interval cooldown (MODE = interval)\n");
  printf("  2. race result (MODE = race)\n");
  printf("  3. goal completion (MODE = goal)\n");
  printf("In other words, the laps take precedence over the interval etc...\n");
  printf("Alternatively, one of the above parameters can be specified to "
         "truncate at\n");
  printf("the desired point.\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12fa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1298(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1009(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x126e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1035(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1076(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1228(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x111b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1199(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11d6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1221(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x125f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    (%rdi),%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xedc(%rip),%rdi
call   1040 <puts@plt>
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
lea    0xf33(%rip),%rdi
call   1040 <puts@plt>
lea    0xf72(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfce(%rip),%rdi
call   1040 <puts@plt>
lea    0x1008(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1039(%rip),%rdi
call   1040 <puts@plt>
lea    0x107b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bb(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1127(%rip),%rdi
call   1040 <puts@plt>
lea    0x1169(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a7(%rip),%rdi
call   1040 <puts@plt>
lea    0x11b7(%rip),%rdi
call   1040 <puts@plt>
lea    0x11d4(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e7(%rip),%rdi
call   1040 <puts@plt>
lea    0x11fe(%rip),%rdi
call   1040 <puts@plt>
lea    0x1234(%rip),%rdi
call   1040 <puts@plt>
lea    0x1273(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: %s [OPTION]... [FILE]\0A\00"
@.str.1 = [30 x i8] c"Modifies TomTom TTBIN files.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [74 x i8] c"Mandatory arguments to long options are mandatory for short options too.\0A\00"
@.str.4 = [39 x i8] c" -h, --help Print this help.\0A\00"
@.str.5 = [76 x i8] c" -l, --laps=[LIST] Replace the laps recorded on the watch with a list of\0A\00"
@.str.6 = [42 x i8] c" alternative laps.\0A\00"
@.str.7 = [48 x i8] c" -o=[FILE] Set the output file name.\0A\00"
@.str.8 = [51 x i8] c" -t, --truncate=[MODE] Truncate the output file.\0A\00"
@.str.9 = [71 x i8] c"If the input file is not specified, the program will read from stdin.\0A\00"
@.str.10 = [72 x i8] c"If the output file is not specified, the program will write to stdout.\0A\00"
@.str.11 = [79 x i8] c"The list of laps does not have to match the distance of the activity; it will\0A\00"
@.str.12 = [77 x i8] c"be used multiple times. For example, \22--laps=1000\22 will create a lap marker\0A\00"
@.str.13 = [71 x i8] c"every 1000m, and \22--laps=100,200,400,800,1000\22 will create laps after\0A\00"
@.str.14 = [73 x i8] c"100m, 200m, 400m, 800m, 1000m, 1100m, 1200m, 1400m, 1800m, 2000m etc...\0A\00"
@.str.15 = [79 x i8] c"If the truncation mode is not specified (-t is specified without a parameter,\0A\00"
@.str.16 = [75 x i8] c"then the file is truncated at one of the following points, in this order:\0A\00"
@.str.17 = [29 x i8] c" 1. last lap (MODE = laps)\0A\00"
@.str.18 = [42 x i8] c" 2. interval cooldown (MODE = interval)\0A\00"
@.str.19 = [32 x i8] c" 2. race result (MODE = race)\0A\00"
@.str.20 = [36 x i8] c" 3. goal completion (MODE = goal)\0A\00"
@.str.21 = [67 x i8] c"In other words, the laps take precedence over the interval etc...\0A\00"
@.str.22 = [76 x i8] c"Alternatively, one of the above parameters can be specified to truncate at\0A\00"
@.str.23 = [20 x i8] c"the desired point.\0A\00"
define void @help(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.13, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.14, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.16, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.21, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.22, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Usage: %s [OPTION]... [FILE]\0A\00"
@str = [29 x i8] c"Modifies TomTom TTBIN files.\00"
@str.24 = [73 x i8] c"Mandatory arguments to long options are mandatory for short options too.\00"
@str.25 = [38 x i8] c" -h, --help Print this help.\00"
@str.26 = [75 x i8] c" -l, --laps=[LIST] Replace the laps recorded on the watch with a list of\00"
@str.27 = [41 x i8] c" alternative laps.\00"
@str.28 = [47 x i8] c" -o=[FILE] Set the output file name.\00"
@str.29 = [50 x i8] c" -t, --truncate=[MODE] Truncate the output file.\00"
@str.30 = [70 x i8] c"If the input file is not specified, the program will read from stdin.\00"
@str.31 = [71 x i8] c"If the output file is not specified, the program will write to stdout.\00"
@str.32 = [78 x i8] c"The list of laps does not have to match the distance of the activity; it will\00"
@str.33 = [76 x i8] c"be used multiple times. For example, \22--laps=1000\22 will create a lap marker\00"
@str.34 = [70 x i8] c"every 1000m, and \22--laps=100,200,400,800,1000\22 will create laps after\00"
@str.35 = [72 x i8] c"100m, 200m, 400m, 800m, 1000m, 1100m, 1200m, 1400m, 1800m, 2000m etc...\00"
@str.36 = [78 x i8] c"If the truncation mode is not specified (-t is specified without a parameter,\00"
@str.37 = [74 x i8] c"then the file is truncated at one of the following points, in this order:\00"
@str.38 = [28 x i8] c" 1. last lap (MODE = laps)\00"
@str.39 = [41 x i8] c" 2. interval cooldown (MODE = interval)\00"
@str.40 = [31 x i8] c" 2. race result (MODE = race)\00"
@str.41 = [35 x i8] c" 3. goal completion (MODE = goal)\00"
@str.42 = [66 x i8] c"In other words, the laps take precedence over the interval etc...\00"
@str.43 = [75 x i8] c"Alternatively, one of the above parameters can be specified to truncate at\00"
@str.44 = [19 x i8] c"the desired point.\00"
define void @help(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.30, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.31, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.34, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.35, i64 0, i64 0))
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.36, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.37, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.38, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.39, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.40, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.41, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.42, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.43, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.44, i64 0, i64 0))
ret void
}