#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*/ do_it();
int /*<<< orphan*/ do_it_image();
int /*<<< orphan*/ gp2x_init(int, int, int, int, int, int, int);
int /*<<< orphan*/ gp2x_video_RGB_setwindows(int, int, int, int, int, int);
int /*<<< orphan*/ gp2x_video_YUV_setparts(int /*<<< orphan*/, int, int, int,
                                           int, int);
int main(int argc, char **argv) {
  gp2x_init(1000, 16, 44100, 16, 1, 60, 1);
  gp2x_video_YUV_setparts(0, -1, -1, -1, 319, 239);
  gp2x_video_RGB_setwindows(0x10, 0x10, 0x10, 0x10, 319, 239);
  do_it();
  do_it_image();
  return 0;
}


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)
mov    $0x3e8,%edi
mov    $0x10,%ecx
mov    $0xac44,%edx
mov    $0x1,%r8d
mov    $0x3c,%r9d
mov    %ecx,%esi
movl   $0x1,(%rsp)
call   1040 <gp2x_init@plt>
xor    %edi,%edi
mov    $0xffffffff,%ecx
mov    $0x13f,%r8d
mov    $0xef,%r9d
mov    %ecx,%esi
mov    %ecx,%edx
call   1070 <gp2x_video_YUV_setparts@plt>
mov    $0x10,%ecx
mov    $0x13f,%r8d
mov    $0xef,%r9d
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1050 <gp2x_video_RGB_setwindows@plt>
mov    $0x0,%al
call   1060 <do_it@plt>
mov    $0x0,%al
call   1030 <do_it_image@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x1,(%rsp)
mov    $0x3e8,%edi
mov    $0x10,%esi
mov    $0xac44,%edx
mov    $0x10,%ecx
mov    $0x1,%r8d
mov    $0x3c,%r9d
call   1040 <gp2x_init@plt>
xor    %edi,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
mov    $0xffffffff,%ecx
mov    $0x13f,%r8d
mov    $0xef,%r9d
call   1070 <gp2x_video_YUV_setparts@plt>
mov    $0x10,%edi
mov    $0x10,%esi
mov    $0x10,%edx
mov    $0x10,%ecx
mov    $0x13f,%r8d
mov    $0xef,%r9d
call   1050 <gp2x_video_RGB_setwindows@plt>
xor    %eax,%eax
call   1060 <do_it@plt>
xor    %eax,%eax
call   1030 <do_it_image@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @gp2x_init(i32 1000, i32 16, i32 44100, i32 16, i32 1, i32 60, i32 1)
%7 = call i32 @gp2x_video_YUV_setparts(i32 0, i32 -1, i32 -1, i32 -1, i32 319, i32 239)
%8 = call i32 @gp2x_video_RGB_setwindows(i32 16, i32 16, i32 16, i32 16, i32 319, i32 239)
%9 = call i32 (...) @do_it()
%10 = call i32 (...) @do_it_image()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @gp2x_init(i32 1000, i32 16, i32 44100, i32 16, i32 1, i32 60, i32 1)
%4 = tail call i32 @gp2x_video_YUV_setparts(i32 0, i32 -1, i32 -1, i32 -1, i32 319, i32 239)
%5 = tail call i32 @gp2x_video_RGB_setwindows(i32 16, i32 16, i32 16, i32 16, i32 319, i32 239)
%6 = tail call i32 (...) @do_it()
%7 = tail call i32 (...) @do_it_image()
ret i32 0
}