// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movl %edi, %r13d
movl $0x68, %edi
callq 0x2180
movq %rax, %rbx
movq %rax, %rdi
callq 0x2d30
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x13a3(%rip), %rsi      # 0x85e9
leaq 0x13a2(%rip), %rdx      # 0x85ef
leaq -0x70(%rbp), %rdi
callq 0x29ba
leaq -0x50(%rbp), %r15
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1386(%rip), %rsi      # 0x85f0
leaq 0x1385(%rip), %rdx      # 0x85f6
movq %r15, %rdi
callq 0x29ba
leaq -0x88(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x29(%rbp), %rcx
movl $0x2, %edx
callq 0x74d8
leaq -0x88(%rbp), %rsi
movq %rbx, %rdi
callq 0x33fc
leaq -0x88(%rbp), %rdi
callq 0x3494
leaq -0x40(%rbp), %r15
xorl %r12d, %r12d
movq -0x50(%rbp,%r12), %rdi
leaq (%r15,%r12), %rax
cmpq %rdi, %rax
je 0x72c7
callq 0x2160
addq $-0x20, %r12
cmpq $-0x40, %r12
jne 0x72b4
movq %rbx, %rdi
movl %r13d, %esi
movq %r14, %rdx
callq 0x2f32
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x12f8(%rip), %rsi      # 0x85e9
leaq 0x12f7(%rip), %rdx      # 0x85ef
leaq -0xa8(%rbp), %rdi
callq 0x29ba
leaq -0x70(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
movq %rbx, %rsi
callq 0x32ee
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x7328
callq 0x2160
movq -0x70(%rbp), %rdi
leaq 0x12c4(%rip), %rsi      # 0x85f7
callq 0x21d0
testq %rax, %rax
je 0x73f8
movq %rax, %r14
movl $0x150, %edi            # imm = 0x150
callq 0x2180
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x44d8
leaq 0x118(%r15), %rdi
callq 0x60d8
leaq 0xe0(%r15), %rdi
callq 0x35c6
leaq 0xa8(%r15), %rdi
callq 0x61d8
leaq 0x70(%r15), %rdi
callq 0x61d8
movq %r15, %rdi
addq $0x38, %rdi
callq 0x6280
movq %r15, %rdi
callq 0x35c6
movq %r15, %rdi
callq 0x2160
leaq 0x50(%rbx), %rdi
callq 0x3494
movq %rbx, %rdi
addq $0x18, %rdi
callq 0x35c6
movq %rbx, %rdi
callq 0x3494
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2170
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x73e4
callq 0x2160
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x70(%rbp), %rdi
callq 0x2660
movq %rax, %r14
movq %r15, %rdi
callq 0x2160
jmp 0x7411
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
jne 0x74cb
jmp 0x74d0
movq %rax, %r14
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x74cb
jmp 0x74d0
movq %rax, %r14
jmp 0x74d0
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x3494
jmp 0x745b
movq %rax, %r14
movq $-0x40, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x7471
callq 0x2160
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x7462
movb $0x1, %al
jmp 0x748f
movq %rax, %r14
xorl %eax, %eax
jmp 0x748f
movq %rax, %r14
xorl %eax, %eax
leaq -0x70(%rbp), %r15
leaq -0x70(%rbp), %rcx
cmpq %r15, %rcx
sete %cl
orb %al, %cl
jne 0x74d0
addq $-0x10, %r15
leaq -0x70(%rbp), %rbx
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x74b3
callq 0x2160
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %rbx, %r15
movq %rax, %r15
jne 0x74a5
jmp 0x74d0
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2290