#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("Options:\n");
  printf("    -h,--help         : Show syntax help\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("\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    0xf03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
mov    $0x5a,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa8(%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    0xf32(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1040 <puts@plt>
lea    0xe7c(%rip),%rdi
mov    $0x5a,%esi
xor    %eax,%eax
call   1050 <printf@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 = [10 x i8] c"Options:\0A\00"
@.str.2 = [42 x i8] c" -h,--help : Show syntax help\0A\00"
@.str.3 = [76 x i8] c" -c,--codec C : AV1 codec to use (choose from versions list below)\0A\00"
@.str.4 = [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.5 = [74 x i8] c" -q,--quality Q : Output quality [0-100]. (JPEG only, default: %d)\0A\00"
@.str.6 = [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 ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0), i32 90)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (...) @avifPrintVersions()
ret void
}

LLVM IR (-O2):
@.str.5 = [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.7 = [9 x i8] c"Options:\00"
@str.8 = [41 x i8] c" -h,--help : Show syntax help\00"
@str.9 = [75 x i8] c" -c,--codec C : AV1 codec to use (choose from versions list below)\00"
@str.10 = [109 x i8] c" -d,--depth D : Output depth [8,16]. (PNG only; For y4m, depth is retained, and JPEG is always 8bpc)\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 ([9 x i8], [9 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0), i32 90)
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 (...) @avifPrintVersions()
ret void
}