// File: /workspace/github_cpp_makefile_star2_O3/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, %r15d
movl $0x68, %edi
callq 0x2180
movq %rax, %rbx
movq %rax, %rdi
callq 0x2cfc
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x13b3(%rip), %rsi      # 0x85e9
leaq 0x13b2(%rip), %rdx      # 0x85ef
leaq -0x70(%rbp), %rdi
callq 0x29b2
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x1397(%rip), %rsi      # 0x85f0
leaq 0x1396(%rip), %rdx      # 0x85f6
callq 0x29b2
leaq -0x88(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x29(%rbp), %rcx
movl $0x2, %edx
callq 0x746a
leaq -0x88(%rbp), %rsi
movq %rbx, %rdi
callq 0x33c6
leaq -0x88(%rbp), %rdi
callq 0x345e
xorl %r12d, %r12d
movq -0x50(%rbp,%r12), %rdi
leaq (%r12,%r13), %rax
cmpq %rdi, %rax
je 0x72af
callq 0x2160
addq $-0x20, %r12
cmpq $-0x40, %r12
jne 0x729c
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x2efe
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x1310(%rip), %rsi      # 0x85e9
leaq 0x130f(%rip), %rdx      # 0x85ef
leaq -0xa8(%rbp), %rdi
callq 0x29b2
leaq -0x70(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
movq %rbx, %rsi
callq 0x32b8
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x7310
callq 0x2160
movq -0x70(%rbp), %rdi
leaq 0x12dc(%rip), %rsi      # 0x85f7
callq 0x21d0
testq %rax, %rax
je 0x73e0
movq %rax, %r14
movl $0x150, %edi            # imm = 0x150
callq 0x2180
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x44d4
leaq 0x118(%r15), %rdi
callq 0x60cc
leaq 0xe0(%r15), %rdi
callq 0x359a
leaq 0xa8(%r15), %rdi
callq 0x61cc
leaq 0x70(%r15), %rdi
callq 0x61cc
movq %r15, %rdi
addq $0x38, %rdi
callq 0x6274
movq %r15, %rdi
callq 0x359a
movq %r15, %rdi
callq 0x2160
leaq 0x50(%rbx), %rdi
callq 0x345e
movq %rbx, %rdi
addq $0x18, %rdi
callq 0x359a
movq %rbx, %rdi
callq 0x345e
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2170
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x73cc
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 0x7443
jmp 0x7440
movq %rax, %r14
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x745d
jmp 0x7462
jmp 0x7452
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x345e
jmp 0x741f
movq %rax, %r14
movq $-0x40, %rbx
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x7434
callq 0x2160
addq $-0x20, %r13
addq $0x20, %rbx
jne 0x7426
jmp 0x7462
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
jne 0x745d
jmp 0x7462
movq %rax, %r14
jmp 0x7462
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2290