// File: legendddhgf[P]Text2RPG/main.cpp
// Function: main
int main (int argc, char **argv) {
  ArgParser *parser = new ArgParser();
  parser->SetExpected({string("infile"), string("config")});
  parser->ArgParse(argc, argv);
  // open files
  string infile = parser->GetTarget(string("infile"));
  FILE *fp = fopen(infile.c_str(), "r");
  if (fp == nullptr) {
    fprintf(stderr, "%s: File not found\n", infile.c_str());
    exit(1);
  }
  GameEngine *game = new GameEngine(fp);

  // end
  delete game;
  delete parser;
  fclose(fp);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x68, %edi
callq 0x21d0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x100(%rbp)
callq 0x3200
jmp 0xf517
movq -0x100(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x118(%rbp)
movb $0x1, -0x9b(%rbp)
leaq -0x90(%rbp), %rax
movq %rax, -0x110(%rbp)
movq %rax, -0x98(%rbp)
leaq -0x99(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x2310
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rdx
leaq 0x1138(%rip), %rsi      # 0x106a9
callq 0x2260
jmp 0xf578
leaq -0x70(%rbp), %rax
movq %rax, -0x128(%rbp)
movq %rax, -0x98(%rbp)
leaq -0x9a(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x2310
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rdx
leaq 0x10fe(%rip), %rsi      # 0x106b0
callq 0x2260
jmp 0xf5b9
movb $0x0, -0x9b(%rbp)
leaq -0x90(%rbp), %rax
movq %rax, -0x50(%rbp)
movq $0x2, -0x48(%rbp)
leaq -0x9c(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x4230
movq -0x130(%rbp), %rcx
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x40(%rbp), %rdi
callq 0xf9e0
jmp 0xf600
movq -0x118(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3c90
jmp 0xf612
leaq -0x40(%rbp), %rdi
callq 0x3e70
leaq -0x9c(%rbp), %rdi
callq 0x4fd0
leaq -0x90(%rbp), %rax
movq %rax, -0x140(%rbp)
addq $0x40, %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x148(%rbp)
callq 0x2150
movq -0x140(%rbp), %rcx
movq -0x148(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x138(%rbp)
jne 0xf640
leaq -0x9a(%rbp), %rdi
callq 0x21f0
leaq -0x99(%rbp), %rdi
callq 0x21f0
movq -0x18(%rbp), %rdi
movl -0x8(%rbp), %esi
movq -0x10(%rbp), %rdx
callq 0x34e0
movq -0x18(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq -0xe1(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x2310
movq -0x150(%rbp), %rdx
leaq 0xfe4(%rip), %rsi       # 0x106a9
leaq -0xe0(%rbp), %rdi
callq 0x2260
jmp 0xf6d3
movq -0x158(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
leaq -0xe0(%rbp), %rdx
callq 0x3af0
jmp 0xf6ef
leaq -0xe0(%rbp), %rdi
callq 0x2150
leaq -0xe1(%rbp), %rdi
callq 0x21f0
leaq -0xc0(%rbp), %rdi
callq 0x20c0
movq %rax, %rdi
leaq 0xf9a(%rip), %rsi       # 0x106b7
callq 0x2200
movq %rax, -0x160(%rbp)
jmp 0xf72b
movq -0x160(%rbp), %rax
movq %rax, -0xf0(%rbp)
cmpq $0x0, -0xf0(%rbp)
jne 0xf8fa
movq 0x9892(%rip), %rax      # 0x18fe0
movq (%rax), %rax
movq %rax, -0x168(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x20c0
movq -0x168(%rbp), %rdi
movq %rax, %rdx
leaq 0xf44(%rip), %rsi       # 0x106b9
movb $0x0, %al
callq 0x2280
movl $0x1, %edi
callq 0x2220
movq -0x100(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x21b0
jmp 0xf9d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xf849
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xf83d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xf7e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x3e70
leaq -0x9c(%rbp), %rdi
callq 0x4fd0
leaq -0x90(%rbp), %rax
movq %rax, -0x178(%rbp)
addq $0x40, %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x180(%rbp)
callq 0x2150
movq -0x178(%rbp), %rcx
movq -0x180(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x170(%rbp)
jne 0xf80a
jmp 0xf83d
leaq -0x9a(%rbp), %rdi
callq 0x21f0
leaq -0x99(%rbp), %rdi
callq 0x21f0
testb $0x1, -0x9b(%rbp)
jne 0xf860
jmp 0xf8ad
movq -0x98(%rbp), %rax
leaq -0x90(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x188(%rbp)
je 0xf8ab
movq -0x188(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x190(%rbp)
callq 0x2150
movq -0x190(%rbp), %rax
leaq -0x90(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x188(%rbp)
jne 0xf87a
jmp 0xf8ad
jmp 0xf9d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xf8d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x2150
leaq -0xe1(%rbp), %rdi
callq 0x21f0
jmp 0xf9d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xf9ca
movl $0x150, %edi            # imm = 0x150
callq 0x21d0
movq %rax, -0x198(%rbp)
jmp 0xf90d
movq -0x198(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x7240
jmp 0xf922
movq -0x198(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x1a0(%rbp)
cmpq $0x0, %rax
je 0xf95c
movq -0x1a0(%rbp), %rdi
callq 0xfa60
movq -0x1a0(%rbp), %rdi
callq 0x21b0
movq -0x18(%rbp), %rax
movq %rax, -0x1a8(%rbp)
cmpq $0x0, %rax
je 0xf985
movq -0x1a8(%rbp), %rdi
callq 0xfad0
movq -0x1a8(%rbp), %rdi
callq 0x21b0
movq -0xf0(%rbp), %rdi
callq 0x21c0
jmp 0xf993
movl $0x0, -0x4(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x2150
movl -0x4(%rbp), %eax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
movq -0x198(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x21b0
leaq -0xc0(%rbp), %rdi
callq 0x2150
movq -0x20(%rbp), %rdi
callq 0x2300
nop