#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*/ fprintf(int /*<<< orphan*/, char *, char *);
char getopt(int, char **, char *);
int /*<<< orphan*/ node_transcode_server();
int /*<<< orphan*/ node_transcode_task_init();
char *optarg;
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ usage();
int main(int argc, char *argv[]) {
  int ret = 0;
  char ch = 0;
  while ((ch = getopt(argc, argv, "hc:")) != -1) {
    switch (ch) {
    case 'c':
      fprintf(stderr, "the command line = [%s]\n", optarg);
      break;
    case '?':
    case 'h':
    default:
      usage();
      break;
    }
  }
  node_transcode_task_init();
  node_transcode_server();
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movb   $0x0,-0x15(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe81(%rip),%rdx
call   1070 <getopt@plt>
mov    %al,-0x15(%rbp)
movsbl %al,%eax
cmp    $0xffffffff,%eax
je     11ff <main+0xaf>
movsbl -0x15(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0x3f,%eax
je     11ee <main+0x9e>
jmp    11a8 <main+0x58>
mov    -0x1c(%rbp),%eax
sub    $0x63,%eax
je     11ca <main+0x7a>
jmp    11b9 <main+0x69>
mov    -0x1c(%rbp),%eax
sub    $0x68,%eax
je     11ee <main+0x9e>
jmp    11f3 <main+0xa3>
mov    0x2e07(%rip),%rax
mov    (%rax),%edi
mov    0x2e1e(%rip),%rax
mov    (%rax),%rdx
lea    0xe20(%rip),%rsi
call   1050 <fprintf@plt>
jmp    11fa <main+0xaa>
jmp    11f3 <main+0xa3>
mov    $0x0,%al
call   1060 <usage@plt>
jmp    1171 <main+0x21>
mov    $0x0,%al
call   1030 <node_transcode_task_init@plt>
mov    $0x0,%al
call   1040 <node_transcode_server@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe99(%rip),%r14
mov    0x2e6a(%rip),%r12
mov    0x2e83(%rip),%r13
lea    0xe88(%rip),%r15
jmp    1190 <main+0x40>
xchg   %ax,%ax
mov    (%r12),%edi
mov    0x0(%r13),%rdx
mov    %r15,%rsi
call   1050 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1070 <getopt@plt>
cmp    $0x63,%al
je     1180 <main+0x30>
cmp    $0xff,%al
je     11ae <main+0x5e>
xor    %eax,%eax
call   1060 <usage@plt>
jmp    1190 <main+0x40>
xor    %eax,%eax
call   1030 <node_transcode_task_init@plt>
xor    %eax,%eax
call   1040 <node_transcode_server@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"hc:\00"
@stderr = global i32 0
@.str.1 = [25 x i8] c"the command line = [%s]\0A\00"
@optarg = global i8* null
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i8 0, i8* %7
br label %8
8: ; preds = %24, %2
%9 = load i32, i32* %4
%10 = load i8**, i8*** %5
%11 = call signext i8 @getopt(i32 %9, i8** %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i8 %11, i8* %7
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %25
14: ; preds = %8
%15 = load i8, i8* %7
%16 = sext i8 %15 to i32
switch i32 %16, label %22 [
i32 99, label %17
i32 63, label %21
i32 104, label %21
]
17: ; preds = %14
%18 = load i32, i32* @stderr
%19 = load i8*, i8** @optarg
%20 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %19)
br label %24
21: ; preds = %14, %14
br label %22
22: ; preds = %14, %21
%23 = call i32 (...) @usage()
br label %24
24: ; preds = %22, %17
br label %8
25: ; preds = %8
%26 = call i32 (...) @node_transcode_task_init()
%27 = call i32 (...) @node_transcode_server()
%28 = load i32, i32* %6
ret i32 %28
}

LLVM IR (-O2):
@.str = [4 x i8] c"hc:\00"
@stderr = global i32 0
@.str.1 = [25 x i8] c"the command line = [%s]\0A\00"
@optarg = global i8* null
define i32 @main(i32 %0, i8** %1) {
br label %3
3: ; preds = %11, %2
%4 = tail call signext i8 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
switch i8 %4, label %9 [
i8 -1, label %12
i8 99, label %5
]
5: ; preds = %3
%6 = load i32, i32* @stderr
%7 = load i8*, i8** @optarg
%8 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %11
9: ; preds = %3
%10 = tail call i32 (...) @usage()
br label %11
11: ; preds = %9, %5
br label %3
12: ; preds = %3
%13 = tail call i32 (...) @node_transcode_task_init()
%14 = tail call i32 (...) @node_transcode_server()
ret i32 0
}