// File: Thomas1995[P]Rentz/src/client.cpp
// Function: parseArgs[abi:cxx11](int, char**)
std::unordered_map<std::string, std::string>
parseArgs(int argc, char ** argv) {

  std::vector<std::string> args(argv + 1, argv + argc);

  std::reverse(args.begin(), args.end());

  std::unordered_map<std::string, std::string> options;

  while(!args.empty()) {

    if(addOptions(args, options, "address", {"--address", "-a"}))
      continue;

    if(addOptions(args, options, "name", {"--name", "-n"}))
      continue;

    if(addOptions(args, options, "help", {"--help", "-h"}))
      goto args_error;

    goto args_error;
  }

  return options;

args_error:
  printf("Usage: %s [OPTIONS]\n", argv[0]);
  printf("Optional arguments:\n");
  printf("%-20s ADDRESS\n", "-a, --address");
  printf("%-20s NAME\n", "-n, --name");
  printf("%-20s display this help message\n", "-h, --help");
  exit(1);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3e0, %rsp            # imm = 0x3E0
movq %rdi, -0x268(%rbp)
movq %rdi, %rax
movq %rax, -0x260(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x258(%rbp)
movslq -0xc(%rbp), %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, -0x250(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x248(%rbp)
callq 0x54b0
movq -0x258(%rbp), %rsi
movq -0x250(%rbp), %rdx
movq -0x248(%rbp), %rcx
leaq -0x30(%rbp), %rdi
callq 0xf850
jmp 0xeba8
leaq -0x31(%rbp), %rdi
callq 0x5550
leaq -0x30(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0xf910
movq -0x270(%rbp), %rdi
movq %rax, -0x50(%rbp)
callq 0xf940
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0xf8d0
jmp 0xebe4
movq -0x268(%rbp), %rdi
movb $0x0, -0x59(%rbp)
callq 0xf970
leaq -0x30(%rbp), %rdi
callq 0xf7e0
xorb $-0x1, %al
testb $0x1, %al
jne 0xec08
jmp 0xf57a
leaq -0x81(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x34a0
movq -0x278(%rbp), %rdx
leaq 0xf873(%rip), %rsi      # 0x1e49c
leaq -0x80(%rbp), %rdi
callq 0x5400
jmp 0xec34
movb $0x1, -0xfb(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0x288(%rbp)
movq %rax, -0xf8(%rbp)
leaq -0xf9(%rbp), %rdi
movq %rdi, -0x280(%rbp)
callq 0x34a0
movq -0x288(%rbp), %rdi
movq -0x280(%rbp), %rdx
leaq 0xf822(%rip), %rsi      # 0x1e49a
callq 0x5400
jmp 0xec7f
leaq -0xd0(%rbp), %rax
movq %rax, -0x298(%rbp)
movq %rax, -0xf8(%rbp)
leaq -0xfa(%rbp), %rdi
movq %rdi, -0x290(%rbp)
callq 0x34a0
movq -0x298(%rbp), %rdi
movq -0x290(%rbp), %rdx
leaq 0xf798(%rip), %rsi      # 0x1e454
callq 0x5400
jmp 0xecc3
movb $0x0, -0xfb(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq $0x2, -0xa8(%rbp)
leaq -0xfc(%rbp), %rdi
movq %rdi, -0x2a0(%rbp)
callq 0x54b0
movq -0x2a0(%rbp), %rcx
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x54d0
jmp 0xed19
movq -0x268(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x80(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
callq 0xea30
movb %al, -0x2a1(%rbp)
jmp 0xed3c
leaq -0xa0(%rbp), %rdi
callq 0x5570
leaq -0xfc(%rbp), %rdi
callq 0x5550
leaq -0xf0(%rbp), %rax
movq %rax, -0x2b8(%rbp)
addq $0x40, %rax
movq %rax, -0x2b0(%rbp)
movq -0x2b0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x31c0
movq -0x2b8(%rbp), %rcx
movq -0x2c0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2b0(%rbp)
jne 0xed6d
leaq -0xfa(%rbp), %rdi
callq 0x3330
leaq -0xf9(%rbp), %rdi
callq 0x3330
leaq -0x80(%rbp), %rdi
callq 0x31c0
leaq -0x81(%rbp), %rdi
callq 0x3330
movb -0x2a1(%rbp), %al
testb $0x1, %al
jne 0xedda
jmp 0xef42
jmp 0xebf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x5550
jmp 0xf64b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf642
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xef31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xeec4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xeeb8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xee60
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5570
leaq -0xfc(%rbp), %rdi
callq 0x5550
leaq -0xf0(%rbp), %rax
movq %rax, -0x2d0(%rbp)
addq $0x40, %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x31c0
movq -0x2d0(%rbp), %rcx
movq -0x2d8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2c8(%rbp)
jne 0xee85
jmp 0xeeb8
leaq -0xfa(%rbp), %rdi
callq 0x3330
leaq -0xf9(%rbp), %rdi
callq 0x3330
testb $0x1, -0xfb(%rbp)
jne 0xeedb
jmp 0xef28
movq -0xf8(%rbp), %rax
leaq -0xf0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x2e0(%rbp)
je 0xef26
movq -0x2e0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x31c0
movq -0x2e8(%rbp), %rax
leaq -0xf0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x2e0(%rbp)
jne 0xeef5
jmp 0xef28
leaq -0x80(%rbp), %rdi
callq 0x31c0
leaq -0x81(%rbp), %rdi
callq 0x3330
jmp 0xf636
leaq -0x121(%rbp), %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x34a0
movq -0x2f0(%rbp), %rdx
leaq 0xf553(%rip), %rsi      # 0x1e4b6
leaq -0x120(%rbp), %rdi
callq 0x5400
jmp 0xef71
movb $0x1, -0x19b(%rbp)
leaq -0x190(%rbp), %rax
movq %rax, -0x300(%rbp)
movq %rax, -0x198(%rbp)
leaq -0x199(%rbp), %rdi
movq %rdi, -0x2f8(%rbp)
callq 0x34a0
movq -0x300(%rbp), %rdi
movq -0x2f8(%rbp), %rdx
leaq 0xf4ff(%rip), %rsi      # 0x1e4b4
callq 0x5400
jmp 0xefbc
leaq -0x170(%rbp), %rax
movq %rax, -0x310(%rbp)
movq %rax, -0x198(%rbp)
leaq -0x19a(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x34a0
movq -0x310(%rbp), %rdi
movq -0x308(%rbp), %rdx
leaq 0xf45e(%rip), %rsi      # 0x1e457
callq 0x5400
jmp 0xf000
movb $0x0, -0x19b(%rbp)
leaq -0x190(%rbp), %rax
movq %rax, -0x150(%rbp)
movq $0x2, -0x148(%rbp)
leaq -0x19c(%rbp), %rdi
movq %rdi, -0x318(%rbp)
callq 0x54b0
movq -0x318(%rbp), %rcx
movq -0x150(%rbp), %rsi
movq -0x148(%rbp), %rdx
leaq -0x140(%rbp), %rdi
callq 0x54d0
jmp 0xf056
movq -0x268(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x120(%rbp), %rdx
leaq -0x140(%rbp), %rcx
callq 0xea30
movb %al, -0x319(%rbp)
jmp 0xf07c
leaq -0x140(%rbp), %rdi
callq 0x5570
leaq -0x19c(%rbp), %rdi
callq 0x5550
leaq -0x190(%rbp), %rax
movq %rax, -0x330(%rbp)
addq $0x40, %rax
movq %rax, -0x328(%rbp)
movq -0x328(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x338(%rbp)
callq 0x31c0
movq -0x330(%rbp), %rcx
movq -0x338(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x328(%rbp)
jne 0xf0ad
leaq -0x19a(%rbp), %rdi
callq 0x3330
leaq -0x199(%rbp), %rdi
callq 0x3330
leaq -0x120(%rbp), %rdi
callq 0x31c0
leaq -0x121(%rbp), %rdi
callq 0x3330
movb -0x319(%rbp), %al
testb $0x1, %al
jne 0xf11d
jmp 0xf25d
jmp 0xebf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf24c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf1dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf1d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf178
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x5570
leaq -0x19c(%rbp), %rdi
callq 0x5550
leaq -0x190(%rbp), %rax
movq %rax, -0x348(%rbp)
addq $0x40, %rax
movq %rax, -0x340(%rbp)
movq -0x340(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x350(%rbp)
callq 0x31c0
movq -0x348(%rbp), %rcx
movq -0x350(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x340(%rbp)
jne 0xf19d
jmp 0xf1d0
leaq -0x19a(%rbp), %rdi
callq 0x3330
leaq -0x199(%rbp), %rdi
callq 0x3330
testb $0x1, -0x19b(%rbp)
jne 0xf1f3
jmp 0xf240
movq -0x198(%rbp), %rax
leaq -0x190(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x358(%rbp)
je 0xf23e
movq -0x358(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x360(%rbp)
callq 0x31c0
movq -0x360(%rbp), %rax
leaq -0x190(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x358(%rbp)
jne 0xf20d
jmp 0xf240
leaq -0x120(%rbp), %rdi
callq 0x31c0
leaq -0x121(%rbp), %rdi
callq 0x3330
jmp 0xf636
leaq -0x1c1(%rbp), %rdi
movq %rdi, -0x368(%rbp)
callq 0x34a0
movq -0x368(%rbp), %rdx
leaq 0xf264(%rip), %rsi      # 0x1e4e2
leaq -0x1c0(%rbp), %rdi
callq 0x5400
jmp 0xf28c
movb $0x1, -0x23b(%rbp)
leaq -0x230(%rbp), %rax
movq %rax, -0x378(%rbp)
movq %rax, -0x238(%rbp)
leaq -0x239(%rbp), %rdi
movq %rdi, -0x370(%rbp)
callq 0x34a0
movq -0x378(%rbp), %rdi
movq -0x370(%rbp), %rdx
leaq 0xf210(%rip), %rsi      # 0x1e4e0
callq 0x5400
jmp 0xf2d7
leaq -0x210(%rbp), %rax
movq %rax, -0x388(%rbp)
movq %rax, -0x238(%rbp)
leaq -0x23a(%rbp), %rdi
movq %rdi, -0x380(%rbp)
callq 0x34a0
movq -0x388(%rbp), %rdi
movq -0x380(%rbp), %rdx
leaq 0xf146(%rip), %rsi      # 0x1e45a
callq 0x5400
jmp 0xf31b
movb $0x0, -0x23b(%rbp)
leaq -0x230(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq $0x2, -0x1e8(%rbp)
leaq -0x23c(%rbp), %rdi
movq %rdi, -0x390(%rbp)
callq 0x54b0
movq -0x390(%rbp), %rcx
movq -0x1f0(%rbp), %rsi
movq -0x1e8(%rbp), %rdx
leaq -0x1e0(%rbp), %rdi
callq 0x54d0
jmp 0xf371
movq -0x268(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x1c0(%rbp), %rdx
leaq -0x1e0(%rbp), %rcx
callq 0xea30
movb %al, -0x391(%rbp)
jmp 0xf397
leaq -0x1e0(%rbp), %rdi
callq 0x5570
leaq -0x23c(%rbp), %rdi
callq 0x5550
leaq -0x230(%rbp), %rax
movq %rax, -0x3a8(%rbp)
addq $0x40, %rax
movq %rax, -0x3a0(%rbp)
movq -0x3a0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3b0(%rbp)
callq 0x31c0
movq -0x3a8(%rbp), %rcx
movq -0x3b0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3a0(%rbp)
jne 0xf3c8
leaq -0x23a(%rbp), %rdi
callq 0x3330
leaq -0x239(%rbp), %rdi
callq 0x3330
leaq -0x1c0(%rbp), %rdi
callq 0x31c0
leaq -0x1c1(%rbp), %rdi
callq 0x3330
movb -0x391(%rbp), %al
testb $0x1, %al
jne 0xf438
jmp 0xf578
jmp 0xf58d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf567
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf4f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf4eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf493
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0x5570
leaq -0x23c(%rbp), %rdi
callq 0x5550
leaq -0x230(%rbp), %rax
movq %rax, -0x3c0(%rbp)
addq $0x40, %rax
movq %rax, -0x3b8(%rbp)
movq -0x3b8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3c8(%rbp)
callq 0x31c0
movq -0x3c0(%rbp), %rcx
movq -0x3c8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3b8(%rbp)
jne 0xf4b8
jmp 0xf4eb
leaq -0x23a(%rbp), %rdi
callq 0x3330
leaq -0x239(%rbp), %rdi
callq 0x3330
testb $0x1, -0x23b(%rbp)
jne 0xf50e
jmp 0xf55b
movq -0x238(%rbp), %rax
leaq -0x230(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x3d0(%rbp)
je 0xf559
movq -0x3d0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3d8(%rbp)
callq 0x31c0
movq -0x3d8(%rbp), %rax
leaq -0x230(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x3d0(%rbp)
jne 0xf528
jmp 0xf55b
leaq -0x1c0(%rbp), %rdi
callq 0x31c0
leaq -0x1c1(%rbp), %rdi
callq 0x3330
jmp 0xf636
jmp 0xf58d
movb $0x1, -0x59(%rbp)
testb $0x1, -0x59(%rbp)
jne 0xf61d
jmp 0xf611
movq -0x18(%rbp), %rax
movq (%rax), %rsi
leaq 0xeec2(%rip), %rdi      # 0x1e45d
xorl %eax, %eax
callq 0x3060
jmp 0xf5a4
leaq 0xeec7(%rip), %rdi      # 0x1e472
xorl %eax, %eax
callq 0x3060
jmp 0xf5b4
leaq 0xeecc(%rip), %rdi      # 0x1e487
leaq 0xeed4(%rip), %rsi      # 0x1e496
xorl %eax, %eax
callq 0x3060
jmp 0xf5cb
leaq 0xeed2(%rip), %rdi      # 0x1e4a4
leaq 0xeed7(%rip), %rsi      # 0x1e4b0
xorl %eax, %eax
callq 0x3060
jmp 0xf5e2
leaq 0xeed2(%rip), %rdi      # 0x1e4bb
leaq 0xeeec(%rip), %rsi      # 0x1e4dc
xorl %eax, %eax
callq 0x3060
jmp 0xf5f9
movl $0x1, %edi
callq 0x3380
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xf636
movq -0x268(%rbp), %rdi
callq 0xf990
leaq -0x30(%rbp), %rdi
callq 0x5570
movq -0x260(%rbp), %rax
addq $0x3e0, %rsp            # imm = 0x3E0
popq %rbp
retq
movq -0x268(%rbp), %rdi
callq 0xf990
leaq -0x30(%rbp), %rdi
callq 0x5570
movq -0x40(%rbp), %rdi
callq 0x3490
nopw %cs:(%rax,%rax)