#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void print_help(const char *filename) {
  printf("hlsdl v0.27\n");
  printf("(c) 2017-2020 @selsta, samsamsam@o2.pl\n");
  printf("Usage: %s [options] url\n\n"
         "-b ... Automatically choose the best quality.\n"
         "-W ... Choose largest width lower or equal than this.\n"
         "-H ... Choose largest height lower or equal than this.\n"
         "-A ... Select audio language.\n"
         "-v ... Verbose more information.\n"
         "-o ... Choose name of output file (\"-\" alias for stdout).\n"
         "-u ... Set custom HTTP User-Agent header.\n"
         "-h ... Set custom HTTP header.\n"
         "-p ... Set proxy uri.\n"
         "-k ... Allow to replace part of AES key uri - old.\n"
         "-n ... Allow to replace part of AES key uri - new.\n"
         "-f ... Force overwriting the output file.\n"
         "-F ... Force ignore detection of DRM.\n"
         "-K ... Force AES key value (hexstring)\n"
         "-q ... Print less to the console.\n"
         "-d ... Print the openssl decryption command.\n"
         "-t ... Print the links to the .ts files.\n"
         "-s ... Set live start offset in seconds.\n"
         "-i ... Set live stream download duration in seconds.\n"
         "-e ... Set refresh delay in seconds.\n"
         "-r ... Set max retries at open.\n"
         "-w ... Set max download segment retries.\n"
         "-a ... Set additional url to the audio media playlist.\n"
         "-c ... Treat HTTP code 206 as 200 even if request was made without "
         "range header.\n"
         "-C ... the file name of file holding cookie data in the old Netscape "
         "/ Mozilla cookie data format.\n",
         filename);
  exit(0);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
mov    %rdi,%rbx
lea    0x135e(%rip),%rdi
call   1030 <puts@plt>
lea    0x135e(%rip),%rdi
call   1030 <puts@plt>
lea    0xead(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"hlsdl v0.27\0A\00"
@.str.1 = [40 x i8] c"(c) 2017-2020 @selsta, samsamsam@o2.pl\0A\00"
@.str.2 = [1177 x i8] c"Usage: %s [options] url\0A\0A-b ... Automatically choose the best quality.\0A-W ... Choose largest width lower or equal than this.\0A-H ... Choose largest height lower or equal than this.\0A-A ... Select audio language.\0A-v ... Verbose more information.\0A-o ... Choose name of output file (\22-\22 alias for stdout).\0A-u ... Set custom HTTP User-Agent header.\0A-h ... Set custom HTTP header.\0A-p ... Set proxy uri.\0A-k ... Allow to replace part of AES key uri - old.\0A-n ... Allow to replace part of AES key uri - new.\0A-f ... Force overwriting the output file.\0A-F ... Force ignore detection of DRM.\0A-K ... Force AES key value (hexstring)\0A-q ... Print less to the console.\0A-d ... Print the openssl decryption command.\0A-t ... Print the links to the .ts files.\0A-s ... Set live start offset in seconds.\0A-i ... Set live stream download duration in seconds.\0A-e ... Set refresh delay in seconds.\0A-r ... Set max retries at open.\0A-w ... Set max download segment retries.\0A-a ... Set additional url to the audio media playlist.\0A-c ... Treat HTTP code 206 as 200 even if request was made without range header.\0A-C ... the file name of file holding cookie data in the old Netscape / Mozilla cookie data format.\0A\00"
define void @print_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1177 x i8], [1177 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.2 = [1177 x i8] c"Usage: %s [options] url\0A\0A-b ... Automatically choose the best quality.\0A-W ... Choose largest width lower or equal than this.\0A-H ... Choose largest height lower or equal than this.\0A-A ... Select audio language.\0A-v ... Verbose more information.\0A-o ... Choose name of output file (\22-\22 alias for stdout).\0A-u ... Set custom HTTP User-Agent header.\0A-h ... Set custom HTTP header.\0A-p ... Set proxy uri.\0A-k ... Allow to replace part of AES key uri - old.\0A-n ... Allow to replace part of AES key uri - new.\0A-f ... Force overwriting the output file.\0A-F ... Force ignore detection of DRM.\0A-K ... Force AES key value (hexstring)\0A-q ... Print less to the console.\0A-d ... Print the openssl decryption command.\0A-t ... Print the links to the .ts files.\0A-s ... Set live start offset in seconds.\0A-i ... Set live stream download duration in seconds.\0A-e ... Set refresh delay in seconds.\0A-r ... Set max retries at open.\0A-w ... Set max download segment retries.\0A-a ... Set additional url to the audio media playlist.\0A-c ... Treat HTTP code 206 as 200 even if request was made without range header.\0A-C ... the file name of file holding cookie data in the old Netscape / Mozilla cookie data format.\0A\00"
@str = [12 x i8] c"hlsdl v0.27\00"
@str.3 = [39 x i8] c"(c) 2017-2020 @selsta, samsamsam@o2.pl\00"
define void @print_help(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.3, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([1177 x i8], [1177 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @exit(i32 0)
unreachable
}