#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*/ CompressAudio();
int /*<<< orphan*/ CompressVideo();
int /*<<< orphan*/ CreateTempFile();
int /*<<< orphan*/ CreateTempFolder();
int /*<<< orphan*/ DeleteTempFolder();
int /*<<< orphan*/ GetToolPath();
int /*<<< orphan*/ GetVideoPath();
int /*<<< orphan*/ LC_ALL;
int /*<<< orphan*/ Mux();
int /*<<< orphan*/ UI();
int /*<<< orphan*/ WriteAvisynth(int);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int /*<<< orphan*/ system(char *);
int main(void) {
  setlocale(LC_ALL, "");
  UI();
  GetVideoPath();
  CreateTempFolder();
  GetToolPath();
  WriteAvisynth(true);
  CompressVideo();
  CreateTempFile();
  CompressAudio();
  Mux();
  putchar('\n');
  system("pause");
  DeleteTempFolder();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2dfa(%rip),%rax
mov    (%rax),%edi
lea    0xe16(%rip),%rsi
call   10b0 <setlocale@plt>
mov    $0x0,%al
call   10e0 <UI@plt>
mov    $0x0,%al
call   10f0 <GetVideoPath@plt>
mov    $0x0,%al
call   1050 <CreateTempFolder@plt>
mov    $0x0,%al
call   10c0 <GetToolPath@plt>
mov    $0x1,%edi
call   10a0 <WriteAvisynth@plt>
mov    $0x0,%al
call   1080 <CompressVideo@plt>
mov    $0x0,%al
call   1060 <CreateTempFile@plt>
mov    $0x0,%al
call   1040 <CompressAudio@plt>
mov    $0x0,%al
call   10d0 <Mux@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdb9(%rip),%rdi
call   1090 <system@plt>
mov    $0x0,%al
call   1070 <DeleteTempFolder@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xe24(%rip),%rsi
call   10b0 <setlocale@plt>
xor    %eax,%eax
call   10e0 <UI@plt>
xor    %eax,%eax
call   10f0 <GetVideoPath@plt>
xor    %eax,%eax
call   1050 <CreateTempFolder@plt>
xor    %eax,%eax
call   10c0 <GetToolPath@plt>
mov    $0x1,%edi
call   10a0 <WriteAvisynth@plt>
xor    %eax,%eax
call   1080 <CompressVideo@plt>
xor    %eax,%eax
call   1060 <CreateTempFile@plt>
xor    %eax,%eax
call   1040 <CompressAudio@plt>
xor    %eax,%eax
call   10d0 <Mux@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdc7(%rip),%rdi
call   1090 <system@plt>
xor    %eax,%eax
call   1070 <DeleteTempFolder@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @LC_ALL
%3 = call i32 @setlocale(i32 %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @UI()
%5 = call i32 (...) @GetVideoPath()
%6 = call i32 (...) @CreateTempFolder()
%7 = call i32 (...) @GetToolPath()
%8 = call i32 @WriteAvisynth(i32 1)
%9 = call i32 (...) @CompressVideo()
%10 = call i32 (...) @CreateTempFile()
%11 = call i32 (...) @CompressAudio()
%12 = call i32 (...) @Mux()
%13 = call i32 @putchar(i8 signext 10)
%14 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (...) @DeleteTempFolder()
ret i32 0
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = load i32, i32* @LC_ALL
%2 = tail call i32 @setlocale(i32 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @UI()
%4 = tail call i32 (...) @GetVideoPath()
%5 = tail call i32 (...) @CreateTempFolder()
%6 = tail call i32 (...) @GetToolPath()
%7 = tail call i32 @WriteAvisynth(i32 1)
%8 = tail call i32 (...) @CompressVideo()
%9 = tail call i32 (...) @CreateTempFile()
%10 = tail call i32 (...) @CompressAudio()
%11 = tail call i32 (...) @Mux()
%12 = tail call i32 @putchar(i8 signext 10)
%13 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 (...) @DeleteTempFolder()
ret i32 0
}