#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*/ printf(char *);
void usage() {
  printf("*** Cocos2d-HTML5 modifier for ACG.JS ***\n");
  printf("*** FOR UPDATE USE ***\n\n");
  printf("This program modifies the downloaded Cocos2d-HTML5 file\n");
  printf("to fit the need of ACG.JS.\n\n");
  printf("What does it do:\n");
  printf("  1. Adds methods for getting/setting normalized position\n");
  printf("     values by only X or Y fields.\n");
  printf("  2. Marks the beginning and the ending of the actions section.\n");
  printf("  3. Replace get/setPosition[X/Y]() calls in all actions\n");
  printf("     with get/setNormalizedPosition[X/Y]() calls.\n\n");
  printf("After you downloaded Javascript file for Cocos2d-HTML5,\n");
  printf("Place the file [cocos2d-html5.js]\n");
  printf("in the same folder as this program and run it.\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
call   1030 <printf@plt>
lea    0x1054(%rip),%rdi
call   1030 <printf@plt>
lea    0x106b(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcc(%rip),%rdi
call   1030 <puts@plt>
lea    0xff9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1020(%rip),%rdi
call   1030 <puts@plt>
lea    0x104c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1062(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"*** Cocos2d-HTML5 modifier for ACG.JS ***\0A\00"
@.str.1 = [25 x i8] c"*** FOR UPDATE USE ***\0A\0A\00"
@.str.2 = [57 x i8] c"This program modifies the downloaded Cocos2d-HTML5 file\0A\00"
@.str.3 = [29 x i8] c"to fit the need of ACG.JS.\0A\0A\00"
@.str.4 = [18 x i8] c"What does it do:\0A\00"
@.str.5 = [59 x i8] c" 1. Adds methods for getting/setting normalized position\0A\00"
@.str.6 = [36 x i8] c" values by only X or Y fields.\0A\00"
@.str.7 = [65 x i8] c" 2. Marks the beginning and the ending of the actions section.\0A\00"
@.str.8 = [58 x i8] c" 3. Replace get/setPosition[X/Y]() calls in all actions\0A\00"
@.str.9 = [52 x i8] c" with get/setNormalizedPosition[X/Y]() calls.\0A\0A\00"
@.str.10 = [57 x i8] c"After you downloaded Javascript file for Cocos2d-HTML5,\0A\00"
@.str.11 = [35 x i8] c"Place the file [cocos2d-html5.js]\0A\00"
@.str.12 = [49 x i8] c"in the same folder as this program and run it.\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [42 x i8] c"*** Cocos2d-HTML5 modifier for ACG.JS ***\00"
@str.13 = [24 x i8] c"*** FOR UPDATE USE ***\0A\00"
@str.14 = [56 x i8] c"This program modifies the downloaded Cocos2d-HTML5 file\00"
@str.15 = [28 x i8] c"to fit the need of ACG.JS.\0A\00"
@str.16 = [17 x i8] c"What does it do:\00"
@str.17 = [58 x i8] c" 1. Adds methods for getting/setting normalized position\00"
@str.18 = [35 x i8] c" values by only X or Y fields.\00"
@str.19 = [64 x i8] c" 2. Marks the beginning and the ending of the actions section.\00"
@str.20 = [57 x i8] c" 3. Replace get/setPosition[X/Y]() calls in all actions\00"
@str.21 = [51 x i8] c" with get/setNormalizedPosition[X/Y]() calls.\0A\00"
@str.22 = [56 x i8] c"After you downloaded Javascript file for Cocos2d-HTML5,\00"
@str.23 = [34 x i8] c"Place the file [cocos2d-html5.js]\00"
@str.24 = [48 x i8] c"in the same folder as this program and run it.\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.24, i64 0, i64 0))
ret void
}