// File: /workspace/github_cpp_makefile_star2_O1/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 $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %r15
movq %rdi, %rbx
callq 0x57ba
movq $0x0, 0x2028(%rbx)
xorl %edi, %edi
callq 0x3200
movl %eax, %edi
callq 0x3210
leaq 0xd0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x6cd5(%rip), %rsi      # 0xd46d
leaq 0x6cd2(%rip), %rdx      # 0xd471
leaq 0xc0(%rsp), %rdi
movq %rbx, 0x8(%rsp)
callq 0xc0d0
leaq 0xc0(%rsp), %rsi
movq %r15, %rdi
callq 0x810c
movq %rax, %r12
testq %rax, %rax
setne %bpl
je 0x682d
leaq 0x198(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x6c8d(%rip), %rsi      # 0xd46d
leaq 0x6c8a(%rip), %rdx      # 0xd471
leaq 0x188(%rsp), %rdi
callq 0xc0d0
leaq 0x188(%rsp), %rsi
movq %r15, %rdi
callq 0x810c
testq %rax, %rax
je 0x72b4
leaq 0x70(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x47bc
jmp 0x683c
leaq 0x60(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x7614
testq %r12, %r12
je 0x6862
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6862
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x687f
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x6b8e(%rip), %rsi      # 0xd414
leaq 0x60(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x68c7
movl $0xe8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x765e
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x68c7
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6b49(%rip), %rsi      # 0xd417
leaq 0x60(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x690f
movl $0xb8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x77d8
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x690f
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6b04(%rip), %rsi      # 0xd41a
leaq 0x60(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x6957
movl $0xe8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7900
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x6957
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6b40(%rip), %rsi      # 0xd49e
leaq 0x60(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x699f
movl $0xc8, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7ac0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x699f
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6a77(%rip), %rsi      # 0xd41d
leaq 0x60(%rsp), %rdi
callq 0x30b0
testl %eax, %eax
jne 0x69e7
movl $0x98, %edi
callq 0x3230
movq %rax, %r12
movq %rax, %rdi
callq 0x7bdc
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
movq %r12, 0x2028(%rax)
testq %rdi, %rdi
je 0x69e7
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r14
leaq 0x178(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x6a9a(%rip), %rsi      # 0xd4a1
leaq 0x6acb(%rip), %rdx      # 0xd4d9
leaq 0x168(%rsp), %rdi
callq 0xc0d0
xorl %edi, %edi
testq %r14, %r14
setne %dil
leaq 0x168(%rsp), %rsi
callq 0x5770
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x6a4e
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3240
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movl $0x1, 0xc8(%rsp)
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x69cf(%rip), %rsi      # 0xd453
leaq 0x69cf(%rip), %rdx      # 0xd45a
leaq 0x10(%rsp), %rdi
callq 0xc0d0
leaq 0x10(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x810c
movq %rax, %r12
testq %rax, %rax
setne %bpl
je 0x6b17
leaq 0x158(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x698f(%rip), %rsi      # 0xd453
leaq 0x698f(%rip), %rdx      # 0xd45a
leaq 0x148(%rsp), %rdi
callq 0xc0d0
leaq 0x148(%rsp), %rsi
movq %r15, %rdi
callq 0x810c
testq %rax, %rax
je 0x72c0
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x47bc
jmp 0x6b3e
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x69b0(%rip), %rsi      # 0xd4da
leaq 0x69b2(%rip), %rdx      # 0xd4e3
leaq 0xa0(%rsp), %rdi
callq 0xc0d0
testq %r12, %r12
je 0x6b64
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6b64
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b7b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0xa0(%rsp), %rdi
leaq 0x6bea(%rip), %rsi      # 0xd774
leaq 0xc0(%rsp), %rdx
leaq 0x80(%rsp), %rcx
callq 0x32e0
movq 0x80(%rsp), %r15
testq %r15, %r15
je 0x6c0d
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 0x6bf1
movq 0x18(%r15), %rsi
movl 0x10(%r15), %edx
movl %eax, %edi
callq 0x31c0
cmpl $-0x1, %eax
jne 0x6bf7
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %edi
callq 0x33f0
movq 0x28(%r15), %r15
jmp 0x6ba7
movq 0xa0(%rsp), %rsi
leaq 0x68de(%rip), %rdi      # 0xd4e4
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 0x80(%rsp), %rdi
callq 0x3300
movq 0x60(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x7caa
leaq 0x38(%rsp), %r12
leaq 0x48(%rsp), %rbp
movq 0xc37a(%rip), %r13      # 0x12fd0
leaq 0x88(%rsp), %r15
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x5a96
movl 0x48(%rsp), %eax
movl %eax, 0x30(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
cmpq $0xa, %rax
ja 0x6d1b
leaq 0x6724(%rip), %rcx      # 0xd3b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
movq %rbp, %rsi
callq 0x7dc6
movq %r13, %rbx
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r13
leaq 0x130(%rsp), %rdi
movq %r14, %rsi
callq 0x4626
movq %r13, %rdi
leaq 0x130(%rsp), %rsi
callq 0x41c6
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x6cec
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
movq %rbx, %r13
je 0x6d1b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x6d2a
callq 0x32f0
movq $0x0, 0x10(%rsp)
movq $0x4c4b40, 0x18(%rsp)   # imm = 0x4C4B40
movq %r14, %rdi
movq %r14, %rsi
callq 0x30c0
cmpl $-0x1, %eax
jne 0x6c5e
callq 0x3040
cmpl $0x4, (%rax)
je 0x6d3c
jmp 0x6c5e
movq (%r13), %rcx
movl $0x18, %esi
movl $0x1, %edx
leaq 0x67fe(%rip), %rdi      # 0xd572
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 0x52c8
movq %r14, %rdi
movq %r13, %rsi
leaq 0x20(%rsp), %rdx
callq 0x38b7
movq (%rbx), %rdi
callq 0x32b0
movq $0x1, 0x38(%rsp)
movq %r15, %rdi
callq 0x54ec
movq %rbx, %r13
movb %al, 0x10(%rsp)
movq %r14, 0x40(%rsp)
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
jmp 0x6d1b
movq (%r13), %rcx
movl $0x1c, %esi
movl $0x1, %edx
leaq 0x6726(%rip), %rdi      # 0xd532
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rbx
movq 0x2028(%rbx), %rdi
callq 0x41d0
movb %al, 0x10(%rsp)
movq (%r13), %rdi
movzbl %al, %eax
movq 0xc43b(%rip), %rcx      # 0x13278
shll $0x5, %eax
movq (%rcx,%rax), %rdx
leaq 0x6704(%rip), %rsi      # 0xd54f
xorl %eax, %eax
callq 0x3320
movq (%r13), %rdi
callq 0x32b0
movq $0x1, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movl 0x201c(%rbx), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
jmp 0x6d1b
movq (%r13), %rcx
movl $0x15, %esi
movl $0x1, %edx
leaq 0x66c9(%rip), %rdi      # 0xd55c
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x58(%rsp), %rax
movzbl (%rax), %esi
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
callq 0x3756
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
jmp 0x6d1b
movq (%r13), %rcx
movl $0x16, %esi
movl $0x1, %edx
leaq 0x662e(%rip), %rdi      # 0xd517
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x50(%rsp), %rsi
shrq $0x2, %rsi
movq %r14, %rdi
callq 0x8076
cmpq $0x0, 0x50(%rsp)
movq 0xc0aa(%rip), %r13      # 0x12fd0
je 0x6f70
movl $0x4, %ebp
xorl %eax, %eax
movq 0x58(%rsp), %rcx
movl (%rcx,%rax), %eax
bswapl %eax
movl %eax, 0x88(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x6f59
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x6f64
movq %r14, %rdi
movq %r15, %rdx
callq 0xbff4
movl %ebp, %eax
addl $0x4, %ebp
cmpq %rax, 0x50(%rsp)
ja 0x6f2f
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
cmpq %rsi, %rdi
je 0x6f84
callq 0x38f3
movq (%r13), %rcx
movl $0x2, %esi
movl $0x1, %edx
leaq 0x6145(%rip), %rdi      # 0xd0de
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r13
leaq 0x100(%rsp), %rdi
movq %r14, %rsi
callq 0x45a6
leaq 0x48(%rsp), %rbp
movq %r13, %rdi
leaq 0x100(%rsp), %rsi
callq 0x424a
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x6ff5
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7169
movq 0x20(%rsp), %rsi
jmp 0x7161
movq (%r13), %rcx
movl $0x10, %esi
movl $0x1, %edx
leaq 0x64be(%rip), %rdi      # 0xd4f5
callq 0x33e0
movq %r13, %rbx
movq (%r13), %rdi
callq 0x32b0
movq %r15, %rdi
movq %rbp, %rsi
callq 0x7dc6
movq 0x88(%rsp), %rbp
movq 0x90(%rsp), %rax
movq %rax, 0xf8(%rsp)
cmpq %rax, %rbp
movq %rbx, %r12
je 0x70cd
movq (%r12), %r13
movq %r14, %rdi
movq %rbp, %rsi
callq 0x52c8
movq 0x10(%rsp), %rdx
movq %r13, %rdi
leaq 0x6025(%rip), %rsi      # 0xd0b6
xorl %eax, %eax
callq 0x3320
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x70b4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3240
movq %rbx, %r12
movq (%rbx), %rdi
callq 0x32b0
addq $0x8, %rbp
cmpq 0xf8(%rsp), %rbp
jne 0x7073
movq (%r12), %rsi
movl $0xa, %edi
callq 0x32d0
movq (%r12), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %r13
leaq 0x118(%rsp), %rdi
movq %r15, %rsi
callq 0x4626
leaq 0x38(%rsp), %r12
leaq 0x48(%rsp), %rbp
movq %r13, %rdi
leaq 0x118(%rsp), %rsi
callq 0x41bc
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x7137
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x7169
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
movq 0xbe60(%rip), %r13      # 0x12fd0
jmp 0x6d1b
movq (%r13), %rcx
movl $0x10, %esi
movl $0x1, %edx
leaq 0x637c(%rip), %rdi      # 0xd506
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
callq 0x4244
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
jmp 0x6d1b
movq (%r13), %rcx
movl $0x16, %esi
movl $0x1, %edx
leaq 0x63b3(%rip), %rdi      # 0xd58b
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rbx
movq 0x2028(%rbx), %rdi
callq 0x423e
movzbl %al, %edi
movq %r14, %rsi
callq 0x3884
movq (%r13), %rdi
callq 0x32b0
movq $0x1, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movl 0x201c(%rbx), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
jmp 0x6d1b
movq (%r13), %rcx
leaq 0x6386(%rip), %rdi      # 0xd5bf
movl $0x15, %esi
movl $0x1, %edx
callq 0x33e0
movq (%r13), %rdi
callq 0x32b0
movq 0x8(%rsp), %rax
movl 0x201c(%rax), %esi
leaq 0x30(%rsp), %rdi
callq 0x7e2a
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7287
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72a2
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3240
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x631a(%rip), %rdi      # 0xd5d5
callq 0x3340
leaq 0x630e(%rip), %rdi      # 0xd5d5
callq 0x3340
jmp 0x74bd
jmp 0x7366
movq %rax, %r14
movb $0x1, %bpl
jmp 0x7392
movq %rax, %r14
movl $0x98, %esi
jmp 0x7311
jmp 0x734e
movq %rax, %r14
movl $0xc8, %esi
jmp 0x7311
jmp 0x734e
jmp 0x7309
jmp 0x734e
movq %rax, %r14
movl $0xb8, %esi
jmp 0x7311
jmp 0x734e
movq %rax, %r14
movl $0xe8, %esi
movq %r12, %rdi
jmp 0x74dc
jmp 0x734e
movq %rax, %r14
movb $0x1, %bpl
jmp 0x7428
movq %rax, %r14
jmp 0x7395
jmp 0x734e
movq %rax, %r14
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x74e1
movq 0x178(%rsp), %rsi
jmp 0x74d9
movq %rax, %r14
jmp 0x74e1
movq %rax, %r14
jmp 0x742b
movq %rax, %r14
jmp 0x74fc
movq %rax, %r14
testq %r12, %r12
je 0x7392
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
movb $0x1, %bpl
cmpq %rax, %rdi
je 0x7392
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3240
testb %bpl, %bpl
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x74e1
movq 0x20(%rsp), %rsi
jmp 0x74d9
movq %rax, %r14
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x74a4
movq 0x110(%rsp), %rsi
jmp 0x7471
movq %rax, %r14
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x7486
movq 0x128(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
jmp 0x7486
jmp 0x74bd
movq %rax, %r14
testq %r12, %r12
je 0x7428
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
movb $0x1, %bpl
cmpq %rax, %rdi
je 0x7428
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x3240
testb %bpl, %bpl
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x74fc
movq 0xd0(%rsp), %rsi
jmp 0x74f4
jmp 0x74bd
jmp 0x7483
jmp 0x74bd
jmp 0x74bd
jmp 0x74bd
jmp 0x74bd
jmp 0x74bd
jmp 0x74bd
movq %rax, %r14
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x74a4
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
jmp 0x74a4
jmp 0x74bd
jmp 0x74bd
jmp 0x74bd
jmp 0x74a1
movq %rax, %r14
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x74c0
movq 0x98(%rsp), %rsi
jmp 0x74b3
jmp 0x74a1
jmp 0x74bd
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x74c0
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3240
jmp 0x74c0
movq %rax, %r14
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74e1
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3240
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74fc
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x8(%rsp), %rax
movq 0x2028(%rax), %rdi
testq %rdi, %rdi
je 0x7513
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x2028(%rax)
movq (%rax), %rdi
testq %rdi, %rdi
je 0x7537
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x3240
movq %r14, %rdi
callq 0x33a0
nop