// File: /workspace/github_cpp_makefile_star2_O3/Thomas1995[P]Rentz/src/client.cpp
// Function: Client::Client(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&)
Client(const std::unordered_map<std::string, std::string> &opts) {

    srand (time(NULL));

    const std::string name = opts.count("name") ? opts.at("name") : random_name();

    if(name == "TH")  bot = std::unique_ptr<Bot>(new Bot_Thomas);
    if(name == "ER")  bot = std::unique_ptr<Bot>(new Bot_Eric);
    if(name == "BC")  bot = std::unique_ptr<Bot>(new Bot_Bicsi);
    if(name == "EU")  bot = std::unique_ptr<Bot>(new Bot_Eugen);
    if(name == "RD")  bot = std::unique_ptr<Bot>(new Bot_Random);

    require(bot != nullptr, "Name not available. Choose from: EU | TH | ER | BC | RD\n");

    addrinfo hints, *rez;

    memset(&hints, 0, sizeof(hints));
    hints.ai_family = AF_UNSPEC;
    hints.ai_socktype = SOCK_STREAM;

    const std::string address = opts.count("address") ? opts.at("address") : "127.0.0.1";

    getaddrinfo(address.c_str(), PORT, &hints, &rez);

    for(addrinfo *p = rez; p != NULL; p = p->ai_next) {
      sfd = socket(p->ai_family, p->ai_socktype, p->ai_protocol);

      if(sfd == -1)
        continue;

      if(connect(sfd, p->ai_addr, p->ai_addrlen) != -1) {
        printf("Connected to %s\n", address.c_str());
        break;
      }

      close(sfd);
    }

    fcntl(sfd, F_SETFL, O_NONBLOCK);

    freeaddrinfo(rez);

    handshake(const_cast<char *>(name.c_str()));

    while(true) {
      event e = readEvent();
      event resp;
      resp.type = e.type;
      resp.len = 0;
      resp.data = NULL;

      switch(e.type) {
        case event::EType::SEND_CARDS: {
        //the server is sending us what cards were played
        //and are on the table

        //debug("Receiving cards on table...\n");
          std::vector<Card> cards(e.getCards());
          bot->ReceiveCardsOnTable(cards);
          resp.send(sfd);
          break;
      }

      case event::EType::SEND_HAND: {
      //the server is sending us our hand

            debug("Receiving hand: ");
            std::vector<Card> hand(e.getCards());
            for(auto &x: hand)
              debug("%s ", x.to_string().c_str());
            debug("\n");

            bot->ReceiveHand(hand);
            resp.send(sfd);
            break;
        }

        case event::EType::TURN_END: {
        //the server is telling us that turn has ended

          debug("Turn has ended.\n");
          bot->TurnEnd();
          resp.send(sfd);

          break;
        }

        case event::EType::ROUND_END: {
        //the server is sending us the scores so far

            debug("Round ended.\n Scores: ");

            std::vector<int> scores;
            scores.reserve(e.len / 4);

            for(uint32_t i = 0; i < e.len; i += 4)
              scores.push_back(e.getInt(e.data + i));

            for(auto i: scores)
              debug(" %d", i);
            debug("\n\n");

            bot->RoundEnd(scores);
            resp.send(sfd);
            break;
        }

        case event::EType::ASK_GAME: {
        //the server is asking us for a minigame to choose

            debug("Being asked for minigame...\n");
            uint8_t ans = bot->ChooseMinigame();
            debug("I chose: %s\n", GameName[ans].c_str());
            resp.len = 1;
            resp.data = &ans;
            resp.send(sfd);
            break;
        }

        case event::EType::ROUND_START: {
        //the server is sending us the chosen game type

            debug("Round is starting...\n");
            const uint8_t choice = e.data[0];
            bot->RoundStart(choice);
            resp.send(sfd);
            break;
        }

        case event::EType::ASK_CARD: {
        //the server is asking us for a card to play

            debug("Being asked for card...\n");
            Card c = bot->PlayCard();
            debug("I chose: %s\n", c.to_string().c_str());
            resp.len = 1;
            uint8_t code = c.encode();
            resp.data = &code;
            resp.send(sfd);
            break;
        }

        case event::EType::ASK_NV: {
        //the server is asking us if we want NV
          
            debug("Being asked for NV...\n");
            bool ans = bot->AskIfNV();

            if(ans) debug("Chose NV\n");
            else debug("Did not choose NV\n");

            resp.len = 1;
            resp.data = reinterpret_cast<uint8_t *>(&ans);
            resp.send(sfd);
            break;
        }

        case event::EType::GAME_END: {
        //the server is telling us that game has ended

          debug("The game has ended.\n\n");
          resp.send(sfd);
          goto end;
        }
      }
      e.free();

      std::this_thread::sleep_for(std::chrono::milliseconds(5));
    } // end while

  end:

    return;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rsi, %r15
movq %rdi, %rbx
callq 0x5bba
movq $0x0, 0x2028(%rbx)
xorl %edi, %edi
callq 0x3200
movl %eax, %edi
callq 0x3210
leaq 0xe0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x69e0(%rip), %rsi      # 0xd4ad
leaq 0x69dd(%rip), %rdx      # 0xd4b1
leaq 0xd0(%rsp), %rdi
movq %rbx, 0x8(%rsp)
callq 0xc1d2
leaq 0xd0(%rsp), %rsi
movq %r15, %rdi
callq 0x83f2
testq %rax, %rax
jne 0x6b0f
leaq 0x90(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x78e8
jmp 0x6b87
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x698b(%rip), %rsi      # 0xd4ad
leaq 0x6988(%rip), %rdx      # 0xd4b1
leaq 0x70(%rsp), %rdi
callq 0xc1d2
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x83f2
testq %rax, %rax
je 0x75cc
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x47f4
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b87
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xd0(%rsp), %rdi
cmpq %r12, %rdi
je 0x6ba4
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x68a9(%rip), %rsi      # 0xd454
leaq 0x90(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x6bef
movl $0xe8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7932
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x6bef
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6861(%rip), %rsi      # 0xd457
leaq 0x90(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x6c3a
movl $0xb8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7aac
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x6c3a
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6819(%rip), %rsi      # 0xd45a
leaq 0x90(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x6c85
movl $0xe8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7bd4
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x6c85
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6852(%rip), %rsi      # 0xd4de
leaq 0x90(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x6cd0
movl $0xc8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7d94
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x6cd0
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6786(%rip), %rsi      # 0xd45d
leaq 0x90(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x6d1b
movl $0x98, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7eb0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x6d1b
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r14
leaq 0x168(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x67a6(%rip), %rsi      # 0xd4e1
leaq 0x67d7(%rip), %rdx      # 0xd519
leaq 0x158(%rsp), %rdi
callq 0xc1d2
xorl %edi, %edi
testq %r14, %r14
setne %dil
leaq 0x158(%rsp), %rsi
callq 0x5b70
movq 0x158(%rsp), %rdi
cmpq %r12, %rdi
je 0x6d82
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x3240
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movaps %xmm0, 0xf0(%rsp)
movl $0x1, 0xd8(%rsp)
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x66da(%rip), %rsi      # 0xd493
leaq 0x66da(%rip), %rdx      # 0xd49a
leaq 0x10(%rsp), %rdi
callq 0xc1d2
leaq 0x10(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x83f2
testq %rax, %rax
jne 0x6e05
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6728(%rip), %rsi      # 0xd51a
leaq 0x672a(%rip), %rdx      # 0xd523
leaq 0x70(%rsp), %rdi
callq 0xc1d2
jmp 0x6e74
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x667e(%rip), %rsi      # 0xd493
leaq 0x667e(%rip), %rdx      # 0xd49a
leaq 0x50(%rsp), %rdi
callq 0xc1d2
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x83f2
testq %rax, %rax
je 0x75d8
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x47f4
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x6e74
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x6e8b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x70(%rsp), %rdi
leaq 0x691d(%rip), %rsi      # 0xd7b4
leaq 0xd0(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
callq 0x32e0
movq 0xb0(%rsp), %r15
testq %r15, %r15
je 0x6f17
movl 0x4(%r15), %edi
movl 0x8(%r15), %esi
movl 0xc(%r15), %edx
callq 0x3080
movq 0x8(%rsp), %rcx
movl %eax, 0x201c(%rcx)
cmpl $-0x1, %eax
je 0x6efe
movq 0x18(%r15), %rsi
movl 0x10(%r15), %edx
movl %eax, %edi
callq 0x31c0
cmpl $-0x1, %eax
jne 0x6f04
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %edi
callq 0x33f0
movq 0x28(%r15), %r15
jmp 0x6eb4
movq 0x70(%rsp), %rsi
leaq 0x6614(%rip), %rdi      # 0xd524
xorl %eax, %eax
callq 0x3050
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %edi
movl $0x4, %esi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x3150
movq 0xb0(%rsp), %rdi
callq 0x3300
movq 0x90(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x7f7e
leaq 0x40(%rsp), %r12
leaq 0x50(%rsp), %rbp
movq 0xc06d(%rip), %r13      # 0x12fd0
leaq 0xb8(%rsp), %r15
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x5e92
movl 0x50(%rsp), %eax
movl %eax, 0x38(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
cmpq $0xa, %rax
ja 0x7028
leaq 0x6457(%rip), %rcx      # 0xd3f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
movq %rbp, %rsi
callq 0x809a
movq %r13, %rbx
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r13
leaq 0x140(%rsp), %rdi
movq %r14, %rsi
callq 0x465e
movq %r13, %rdi
leaq 0x140(%rsp), %rsi
callq 0x41d6
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x6ff9
movq 0x150(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
movq %rbx, %r13
je 0x7028
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x7037
callq 0x32f0
movq $0x0, 0x10(%rsp)
movq $0x4c4b40, 0x18(%rsp)   # imm = 0x4C4B40
movq %r14, %rdi
movq %r14, %rsi
callq 0x30c0
cmpl $-0x1, %eax
jne 0x6f6b
callq 0x3040
cmpl $0x4, (%rax)
je 0x7049
jmp 0x6f6b
movq (%r13), %rcx
movl $0x18, %esi
movl $0x1, %edx
leaq 0x6531(%rip), %rdi      # 0xd5b2
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rsi
movq %r15, %rdi
callq 0x376c
movq %r13, %rbx
movq (%r13), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x56d8
movq %r14, %rdi
movq %r13, %rsi
leaq 0x20(%rsp), %rdx
callq 0x38c1
movq (%rbx), %rdi
callq 0x32b0
movq $0x1, 0x40(%rsp)
movq %r15, %rdi
callq 0x58ea
movq %rbx, %r13
movb %al, 0x10(%rsp)
movq %r14, 0x48(%rsp)
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
jmp 0x7028
movq (%r13), %rcx
movl $0x1c, %esi
movl $0x1, %edx
leaq 0x6459(%rip), %rdi      # 0xd572
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rbx
movq 0x2028(%rbx), %rdi
callq 0x41e0
movb %al, 0x10(%rsp)
movq (%r13), %rdi
movzbl %al, %eax
movq 0xc12e(%rip), %rcx      # 0x13278
shll $0x5, %eax
movq (%rcx,%rax), %rdx
leaq 0x6437(%rip), %rsi      # 0xd58f
xorl %eax, %eax
callq 0x3320
movq (%r13), %rdi
callq 0x32b0
movq $0x1, 0x40(%rsp)
movq %r14, 0x48(%rsp)
movl 0x201c(%rbx), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
jmp 0x7028
movq (%r13), %rcx
movl $0x15, %esi
movl $0x1, %edx
leaq 0x63fc(%rip), %rdi      # 0xd59c
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x60(%rsp), %rax
movzbl (%rax), %esi
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
callq 0x3756
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
jmp 0x7028
movq (%r13), %rcx
movl $0x16, %esi
movl $0x1, %edx
leaq 0x6361(%rip), %rdi      # 0xd557
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x58(%rsp), %rsi
shrq $0x2, %rsi
movq %r14, %rdi
callq 0x8356
movq 0x58(%rsp), %rax
testq %rax, %rax
movq 0xbd9b(%rip), %r13      # 0x12fd0
je 0x7282
movl $0x4, %ebp
xorl %ecx, %ecx
movq 0x60(%rsp), %rdx
movl (%rdx,%rcx), %ecx
bswapl %ecx
movl %ecx, 0xb8(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x7268
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x7278
movq %r14, %rdi
movq %r15, %rdx
callq 0xc0f6
movq 0x58(%rsp), %rax
movl %ebp, %ecx
addl $0x4, %ebp
cmpq %rcx, %rax
ja 0x723e
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
cmpq %rsi, %rdi
je 0x7296
callq 0x38fd
movq (%r13), %rcx
movl $0x2, %esi
movl $0x1, %edx
leaq 0x5e6f(%rip), %rdi      # 0xd11a
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r13
leaq 0x110(%rsp), %rdi
movq %r14, %rsi
callq 0x45de
leaq 0x50(%rsp), %rbp
movq %r13, %rdi
leaq 0x110(%rsp), %rsi
callq 0x4260
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x7307
movq 0x120(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x747b
movq 0x20(%rsp), %rsi
jmp 0x7473
movq (%r13), %rcx
movl $0x10, %esi
movl $0x1, %edx
leaq 0x61ec(%rip), %rdi      # 0xd535
callq 0x33e0
movq %r13, %rbx
movq (%r13), %rdi
callq 0x32b0
movq %r15, %rdi
movq %rbp, %rsi
callq 0x809a
movq 0xb8(%rsp), %rbp
movq 0xc0(%rsp), %rax
movq %rax, 0x108(%rsp)
cmpq %rax, %rbp
movq %rbx, %r12
je 0x73df
movq (%r12), %r13
movq %r14, %rdi
movq %rbp, %rsi
callq 0x56d8
movq 0x10(%rsp), %rdx
movq %r13, %rdi
leaq 0x5d4f(%rip), %rsi      # 0xd0f2
xorl %eax, %eax
callq 0x3320
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x73c6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3240
movq %rbx, %r12
movq (%rbx), %rdi
callq 0x32b0
addq $0x8, %rbp
cmpq 0x108(%rsp), %rbp
jne 0x7385
movq (%r12), %rsi
movl $0xa, %edi
callq 0x32d0
movq (%r12), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r13
leaq 0x128(%rsp), %rdi
movq %r15, %rsi
callq 0x465e
leaq 0x40(%rsp), %r12
leaq 0x50(%rsp), %rbp
movq %r13, %rdi
leaq 0x128(%rsp), %rsi
callq 0x41cc
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
je 0x7449
movq 0x138(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x747b
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0xbb4e(%rip), %r13      # 0x12fd0
jmp 0x7028
movq (%r13), %rcx
movl $0x10, %esi
movl $0x1, %edx
leaq 0x60aa(%rip), %rdi      # 0xd546
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
callq 0x425a
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
jmp 0x7028
movq (%r13), %rcx
movl $0x16, %esi
movl $0x1, %edx
leaq 0x60e1(%rip), %rdi      # 0xd5cb
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rbx
movq 0x2028(%rbx), %rdi
callq 0x4254
movzbl %al, %edi
movq %r14, %rsi
callq 0x388e
movq (%r13), %rdi
callq 0x32b0
movq $0x1, 0x40(%rsp)
movq %r14, 0x48(%rsp)
movl 0x201c(%rbx), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
jmp 0x7028
movq (%r13), %rcx
leaq 0x60b4(%rip), %rdi      # 0xd5ff
movl $0x15, %esi
movl $0x1, %edx
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x38(%rsp), %rdi
callq 0x80fe
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7599
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75ba
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3240
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6042(%rip), %rdi      # 0xd615
callq 0x3340
leaq 0x6036(%rip), %rdi      # 0xd615
callq 0x3340
jmp 0x778b
jmp 0x762b
jmp 0x762b
movq %rax, %r14
movl $0x98, %esi
jmp 0x761d
jmp 0x7653
movq %rax, %r14
movl $0xc8, %esi
jmp 0x761d
jmp 0x7653
jmp 0x7615
jmp 0x7653
movq %rax, %r14
movl $0xb8, %esi
jmp 0x761d
jmp 0x7653
movq %rax, %r14
movl $0xe8, %esi
movq %r12, %rdi
jmp 0x77aa
jmp 0x7653
jmp 0x765b
jmp 0x765b
movq %rax, %r14
jmp 0x7682
jmp 0x7653
movq %rax, %r14
movq 0x158(%rsp), %rdi
cmpq %r12, %rdi
je 0x77af
movq 0x168(%rsp), %rsi
jmp 0x77a7
movq %rax, %r14
jmp 0x77af
movq %rax, %r14
jmp 0x76b7
movq %rax, %r14
jmp 0x77d0
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x7682
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x77af
movq 0x20(%rsp), %rsi
jmp 0x77a7
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x76b7
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xd0(%rsp), %rdi
cmpq %r12, %rdi
je 0x77d0
movq 0xe0(%rsp), %rsi
jmp 0x77c8
movq %rax, %r14
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x7772
movq 0x120(%rsp), %rsi
jmp 0x773f
movq %rax, %r14
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
je 0x7754
movq 0x138(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
jmp 0x7754
jmp 0x778b
jmp 0x778b
jmp 0x7751
jmp 0x778b
jmp 0x778b
jmp 0x778b
jmp 0x778b
jmp 0x778b
jmp 0x778b
movq %rax, %r14
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x7772
movq 0x150(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
jmp 0x7772
jmp 0x778b
jmp 0x778b
jmp 0x778b
jmp 0x776f
movq %rax, %r14
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x778e
movq 0xc8(%rsp), %rsi
jmp 0x7781
jmp 0x776f
jmp 0x778b
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x778e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
jmp 0x778e
movq %rax, %r14
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77af
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77d0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
testq %rdi, %rdi
je 0x77e7
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x2028(%rax)
movq (%rax), %rdi
testq %rdi, %rdi
je 0x780b
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x3240
movq %r14, %rdi
callq 0x33a0
nop