#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*/ avifPrintVersions();
int /*<<< orphan*/ printf(char *, ...);
void syntax(void) {
  printf("Syntax: avifdec [options] input.avif output.[jpg|jpeg|png|y4m]\n");
  printf("        avifdec --info    input.avif\n");
  printf("Options:\n");
  printf("    -h,--help         : Show syntax help\n");
  printf("    -V,--version      : Show the version number\n");
  printf(
      "    -j,--jobs J       : Number of jobs (worker threads, default: 1)\n");
  printf("    -c,--codec C      : AV1 codec to use (choose from versions list "
         "below)\n");
  printf("    -d,--depth D      : Output depth [8,16]. (PNG only; For y4m, "
         "depth is retained, and JPEG is always 8bpc)\n");
  printf("    -q,--quality Q    : Output quality [0-100]. (JPEG only, default: "
         "%d)\n",
         90);
  printf("    -u,--upsampling U : Chroma upsampling (for 420/422). automatic "
         "(default), fastest, best, nearest, or bilinear\n");
  printf("    -i,--info         : Decode all frames and display all image "
         "information instead of saving to disk\n");
  printf("    --ignore-icc      : If the input file contains an embedded ICC "
         "profile, ignore it (no-op if absent)\n");
  printf("\n");
  avifPrintVersions();
}


x86 assembly (clang, -O0):
<syntax>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102f(%rip),%rdi
mov    $0x5a,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1124(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <avifPrintVersions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<syntax>:
push   %rax
lea    0xf02(%rip),%rdi
call   1040 <puts@plt>
lea    0xf35(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf68(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1003(%rip),%rdi
call   1040 <puts@plt>
lea    0xe58(%rip),%rdi
mov    $0x5a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1051(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1111(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <avifPrintVersions@plt>

LLVM IR (-O0):
@.str = [64 x i8] c"Syntax: avifdec [options] input.avif output.[jpg|jpeg|png|y4m]\0A\00"
@.str.1 = [38 x i8] c" avifdec --info input.avif\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [42 x i8] c" -h,--help : Show syntax help\0A\00"
@.str.4 = [49 x i8] c" -V,--version : Show the version number\0A\00"
@.str.5 = [69 x i8] c" -j,--jobs J : Number of jobs (worker threads, default: 1)\0A\00"
@.str.6 = [76 x i8] c" -c,--codec C : AV1 codec to use (choose from versions list below)\0A\00"
@.str.7 = [110 x i8] c" -d,--depth D : Output depth [8,16]. (PNG only; For y4m, depth is retained, and JPEG is always 8bpc)\0A\00"
@.str.8 = [74 x i8] c" -q,--quality Q : Output quality [0-100]. (JPEG only, default: %d)\0A\00"
@.str.9 = [115 x i8] c" -u,--upsampling U : Chroma upsampling (for 420/422). automatic (default), fastest, best, nearest, or bilinear\0A\00"
@.str.10 = [103 x i8] c" -i,--info : Decode all frames and display all image information instead of saving to disk\0A\00"
@.str.11 = [105 x i8] c" --ignore-icc : If the input file contains an embedded ICC profile, ignore it (no-op if absent)\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
define void @syntax() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.8, i64 0, i64 0), i32 90)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 (...) @avifPrintVersions()
ret void
}

LLVM IR (-O2):
@.str.8 = [74 x i8] c" -q,--quality Q : Output quality [0-100]. (JPEG only, default: %d)\0A\00"
@str = [63 x i8] c"Syntax: avifdec [options] input.avif output.[jpg|jpeg|png|y4m]\00"
@str.13 = [37 x i8] c" avifdec --info input.avif\00"
@str.14 = [9 x i8] c"Options:\00"
@str.15 = [41 x i8] c" -h,--help : Show syntax help\00"
@str.16 = [48 x i8] c" -V,--version : Show the version number\00"
@str.17 = [68 x i8] c" -j,--jobs J : Number of jobs (worker threads, default: 1)\00"
@str.18 = [75 x i8] c" -c,--codec C : AV1 codec to use (choose from versions list below)\00"
@str.19 = [109 x i8] c" -d,--depth D : Output depth [8,16]. (PNG only; For y4m, depth is retained, and JPEG is always 8bpc)\00"
@str.20 = [114 x i8] c" -u,--upsampling U : Chroma upsampling (for 420/422). automatic (default), fastest, best, nearest, or bilinear\00"
@str.21 = [102 x i8] c" -i,--info : Decode all frames and display all image information instead of saving to disk\00"
@str.22 = [104 x i8] c" --ignore-icc : If the input file contains an embedded ICC profile, ignore it (no-op if absent)\00"
define void @syntax() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.8, i64 0, i64 0), i32 90)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([114 x i8], [114 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 (...) @avifPrintVersions()
ret void
}