// File: /workspace/github_cpp_makefile_star2_O3/zkl94[P]distributed-key-value-store/MP2Node.cpp
// Function: MP2Node::checkMessages()
void MP2Node::checkMessages() {
    char *data;
    int size;

    /*
     * Declare your local variables here
     */

    // dequeue all messages and handle them
    while ( !memberNode->mp2q.empty() ) {
        /*
         * Pop a message from the queue
         */
        data = (char *)memberNode->mp2q.front().elt;
        size = memberNode->mp2q.front().size;
        memberNode->mp2q.pop();

        string message(data, data + size);

        /*
         * Handle the message types here
         */

        Message *msg = new Message(message);
        int transID = msg->transID;
        ReplicaType replica = msg->replica;
        string key = msg->key;
        string value = msg->value;
        Address fromAddr = msg->fromAddr;
        MessageType t = msg->type;
        bool success = msg->success;

        // MessageType {CREATE, READ, UPDATE, DELETE, REPLY, READREPLY};
        switch(msg->type) {
        case CREATE:
            // cout << "received a CREATE message" << endl;
            createKeyValue(fromAddr, key, value, replica, transID, t);
            break;
        case READ:
            readKey(fromAddr, key, transID, t);
            break;
        case UPDATE:
            updateKeyValue(fromAddr, key, value, replica, transID, t);
            break;
        case DELETE:
            cout << "received a DELETE message" << endl;
            deletekey(fromAddr, key, transID, t);
            break;
        case REPLY:
            handleReply(transID, success);
            break;
        case READREPLY:
            handleReadReply(value, transID);
            break;
        }
    }

    /*
     * This function should also ensure all READ and UPDATE operation
     * get QUORUM replies
     */

#define PROPOGATE_ITERATION_LIMIT 5

    std::map<int, Bundle *>::iterator it = this->transID2Bundle.begin();

    while(it != this->transID2Bundle.end()) {
        if (((it->second->success_responses + it->second->failure_responses) == 3) || (it->second->iteration >= PROPOGATE_ITERATION_LIMIT)) {
            int transID = it->first;
            MessageType t = it->second->t;
            string key = it->second->key;
            string value = it->second->value;

            // static char s[1024];
            // sprintf(s, "successful response %d\n", it->second->success_responses);
            // log->LOG(&memberNode->addr, s);
            // sprintf(s, "failure response %d\n", it->second->failure_responses);
            // log->LOG(&memberNode->addr, s);

            // 2 (out of 3) is quorum
            if (it->second->success_responses >= 2) {
                if (t == READ) {
                    // read
                    // @TODO: need to aggregate read return values, can't just use handleReply
                    log->logReadSuccess(&(this->memberNode->addr), true, transID, key, value);
                } else if (t == UPDATE) {
                    log->logUpdateSuccess(&(this->memberNode->addr), true, transID, key, value);
                } else if (t == CREATE) {
                    log->logCreateSuccess(&(this->memberNode->addr), true, transID, key, value);
                } else if (t == DELETE) {
                    log->logDeleteSuccess(&(this->memberNode->addr), true, transID, key);
                }
            } else {
                if (t == READ) {
                    // read
                    log->logReadFail(&(this->memberNode->addr), true, transID, key);
                } else if (t == UPDATE) {
                    log->logUpdateFail(&(this->memberNode->addr), true, transID, key, value);
                } else if (t == CREATE) {
                    log->logCreateFail(&(this->memberNode->addr), true, transID, key, value);
                } else if (t == DELETE) {
                    log->logDeleteFail(&(this->memberNode->addr), true, transID, key);
                }
            }

            delete it->second;
            it = this->transID2Bundle.erase(it);
        } else {
            it->second->iteration++;
            ++it;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x368, %rsp            # imm = 0x368
movq %rdi, 0x8(%rsp)
movq 0x50(%rdi), %rdi
movq 0xa8(%rdi), %rax
cmpq %rax, 0xc8(%rdi)
je 0x11d71
leaq 0x338(%rsp), %rbp
movq 0x8(%rsp), %rcx
addq $0x90, %rcx
movq %rcx, 0x58(%rsp)
leaq 0x328(%rsp), %r12
leaq 0x300(%rsp), %rbx
leaq 0x2e0(%rsp), %r14
addq $0x98, %rdi
movq (%rax), %r15
movslq 0x8(%rax), %r13
callq 0x6a16
addq %r15, %r13
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x6790
movl $0x78, %edi
callq 0x3270
movq %rax, %r13
movq %rbp, 0x328(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6790
movq %r13, %rdi
movq %r12, %rsi
callq 0x15584
movq 0x328(%rsp), %rdi
cmpq %rbp, %rdi
je 0x118ed
movq 0x338(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x50(%r13), %r15d
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%r13), %rsi
movq 0x10(%r13), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x6790
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x28(%r13), %rsi
movq 0x30(%r13), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x6790
movq %r13, %rsi
addq $0x48, %rsi
leaq 0x52(%rsp), %rdi
callq 0xd01c
movl (%r13), %eax
cmpq $0x5, %rax
ja 0x11cf9
leaq 0x62bf(%rip), %rcx      # 0x17c14
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x9a(%rsp), %rdi
leaq 0x52(%rsp), %rsi
callq 0xd01c
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rdi
callq 0x6790
leaq 0x310(%rsp), %rax
movq %rax, 0x300(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %r13
movq %rbx, %rdi
callq 0x6790
movq 0x8(%rsp), %rdi
leaq 0x9a(%rsp), %rsi
leaq 0x120(%rsp), %rdx
movq %r13, %rcx
movl %r15d, %r9d
callq 0x10a2e
movq 0x300(%rsp), %rdi
leaq 0x310(%rsp), %rax
cmpq %rax, %rdi
je 0x11a07
movq 0x310(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x11cf9
movq 0x130(%rsp), %rsi
jmp 0x11cf1
movb 0x54(%r13), %r13b
movl %r15d, 0x64(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x64(%rsp), %rsi
callq 0x12d7a
movq (%rax), %rax
testb %r13b, %r13b
je 0x11d6c
incl (%rax)
jmp 0x11cf9
leaq 0x8e(%rsp), %rdi
leaq 0x52(%rsp), %rsi
callq 0xd01c
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0x6790
leaq 0x2f0(%rsp), %rax
movq %rax, 0x2e0(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
movq %r14, %r13
movq %r14, %rdi
callq 0x6790
movq 0x8(%rsp), %rdi
leaq 0x8e(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
movq %r13, %rcx
movl %r15d, %r9d
callq 0x1112c
movq 0x2e0(%rsp), %rdi
leaq 0x2f0(%rsp), %rax
cmpq %rax, %rdi
je 0x11b01
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x11cf9
movq 0xf0(%rsp), %rsi
jmp 0x11cf1
movl $0x19, %edx
movq 0xd49d(%rip), %rdi      # 0x1efd0
leaq 0x6112(%rip), %rsi      # 0x17c4c
callq 0x32d0
movq 0xd48a(%rip), %rcx      # 0x1efd0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq 0xd46c(%rip), %rdi      # 0x1efd0
callq 0x3030
movq %rax, %rdi
callq 0x31a0
leaq 0x88(%rsp), %rdi
leaq 0x52(%rsp), %rsi
callq 0xd01c
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x6790
movq 0x8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
movl %r15d, %ecx
callq 0x11548
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x11cf9
movq 0xd0(%rsp), %rsi
jmp 0x11cf1
leaq 0x94(%rsp), %rdi
leaq 0x52(%rsp), %rsi
callq 0xd01c
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0x6790
leaq 0x348(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0x94(%rsp), %rdx
leaq 0x100(%rsp), %rcx
movl %r15d, %r8d
callq 0x10d0e
movq 0x348(%rsp), %rdi
leaq 0x358(%rsp), %rax
cmpq %rax, %rdi
je 0x11c76
movq 0x358(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x11cf9
movq 0x110(%rsp), %rsi
jmp 0x11cf1
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x6790
movq 0x8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movl %r15d, %edx
callq 0x109d0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x11cf9
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x11d15
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x11d31
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x11d4d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0xa8(%rdi), %rax
cmpq %rax, 0xc8(%rdi)
jne 0x1186b
jmp 0x11d71
incl 0x4(%rax)
jmp 0x11cf9
movq 0x8(%rsp), %rax
movq 0xa8(%rax), %r15
addq $0x98, %rax
movq %rax, 0x58(%rsp)
cmpq %rax, %r15
je 0x1240d
movq 0x8(%rsp), %rax
addq $0x90, %rax
movq %rax, 0x320(%rsp)
leaq 0x40(%rsp), %r12
movq 0x28(%r15), %rax
movl 0x4(%rax), %ecx
addl (%rax), %ecx
cmpl $0x3, %ecx
je 0x11dc3
movl 0x50(%rax), %ecx
cmpl $0x5, %ecx
jl 0x11fcf
movl 0x20(%r15), %ebp
movl 0x8(%rax), %r13d
movq %r12, %r14
movq %r12, 0x30(%rsp)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x6790
movq 0x28(%r15), %rax
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x30(%rax), %rsi
movq 0x38(%rax), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x6790
movq 0x28(%r15), %r12
cmpl $0x2, (%r12)
movl %r13d, %eax
jl 0x11ef6
cmpl $0x3, %r13d
ja 0x12373
leaq 0x5e0e(%rip), %rcx      # 0x17c3c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x250(%rsp), %rax
movq %rax, 0x240(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x240(%rsp), %rdi
callq 0x6790
leaq 0x230(%rsp), %rax
movq %rax, 0x220(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x220(%rsp), %rbx
movq %rbx, %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x240(%rsp), %r8
movq %rbx, %r9
callq 0xc754
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x11ee1
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rcx
jmp 0x12357
cmpl $0x3, %r13d
ja 0x12373
leaq 0x5d25(%rip), %rcx      # 0x17c2c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x190(%rsp), %rax
movq %rax, 0x180(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0x6790
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x180(%rsp), %r8
movq %rbx, %r9
callq 0xcb0e
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x11fba
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rcx
jmp 0x12357
incl %ecx
movl %ecx, 0x50(%rax)
movq %r15, %rdi
callq 0x31b0
movq %rax, %r15
jmp 0x12402
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x290(%rsp), %rax
movq %rax, 0x280(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x280(%rsp), %rdi
callq 0x6790
leaq 0x270(%rsp), %rax
movq %rax, 0x260(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x280(%rsp), %r8
movq %rbx, %r9
callq 0xc938
movq 0x260(%rsp), %rdi
leaq 0x270(%rsp), %rax
cmpq %rax, %rdi
je 0x1208e
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x280(%rsp), %rdi
leaq 0x290(%rsp), %rcx
jmp 0x12357
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x1d0(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1c0(%rsp), %rdi
callq 0x6790
leaq 0x1b0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a0(%rsp), %rbx
movq %rbx, %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x1c0(%rsp), %r8
movq %rbx, %r9
callq 0xcce4
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x1214d
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rcx
jmp 0x12357
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x210(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x200(%rsp), %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x200(%rsp), %r8
callq 0xca2a
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rcx
jmp 0x12357
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x140(%rsp), %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x140(%rsp), %r8
callq 0xcdd6
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rcx
jmp 0x12357
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x2d0(%rsp), %rax
movq %rax, 0x2c0(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2c0(%rsp), %rdi
callq 0x6790
leaq 0x2b0(%rsp), %rax
movq %rax, 0x2a0(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2a0(%rsp), %rbx
movq %rbx, %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x2c0(%rsp), %r8
movq %rbx, %r9
callq 0xc846
movq 0x2a0(%rsp), %rdi
leaq 0x2b0(%rsp), %rax
cmpq %rax, %rdi
je 0x122e0
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x2c0(%rsp), %rdi
leaq 0x2d0(%rsp), %rcx
jmp 0x12357
movq 0x8(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x1f0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1e0(%rsp), %rdi
callq 0x6790
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x1e0(%rsp), %r8
callq 0xcc00
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x1236a
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x28(%r15), %r12
testq %r12, %r12
je 0x123a9
movq 0x30(%r12), %rdi
leaq 0x40(%r12), %rax
cmpq %rax, %rdi
je 0x1238d
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x10(%r12), %rdi
leaq 0x20(%r12), %rax
cmpq %rax, %rdi
je 0x123ac
movq (%rax), %rsi
incq %rsi
callq 0x3280
jmp 0x123ac
xorl %r12d, %r12d
movl $0x58, %esi
movq %r12, %rdi
callq 0x3280
movq 0x320(%rsp), %rdi
movq %r15, %rsi
callq 0x13d7a
movq %rax, %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
movq %r14, %r12
je 0x123eb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x12402
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
cmpq 0x58(%rsp), %r15
jne 0x11da9
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x1244c
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x1244c
movq %rax, %rbx
movq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x250(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x2a0(%rsp), %rdi
leaq 0x2b0(%rsp), %rax
cmpq %rax, %rdi
je 0x1249f
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x1249f
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
leaq 0x2d0(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x2d0(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x260(%rsp), %rdi
leaq 0x270(%rsp), %rax
cmpq %rax, %rdi
je 0x124f2
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x124f2
movq %rax, %rbx
movq 0x280(%rsp), %rdi
leaq 0x290(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x290(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x210(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1256e
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x1256e
movq %rax, %rbx
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x190(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x1f0(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x125e7
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x125e7
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x1d0(%rsp), %rsi
jmp 0x1262e
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x12763
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12763
movq %rax, %rbx
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x127df
movq 0x110(%rsp), %rsi
jmp 0x12751
movq %rax, %rbx
movq 0x2e0(%rsp), %rdi
leaq 0x2f0(%rsp), %rax
cmpq %rax, %rdi
je 0x12691
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12691
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x127df
movq 0xf0(%rsp), %rsi
jmp 0x12751
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x127df
movq 0xd0(%rsp), %rsi
jmp 0x12751
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x127df
movq 0xb0(%rsp), %rsi
jmp 0x12751
movq %rax, %rbx
movq 0x300(%rsp), %rdi
leaq 0x310(%rsp), %rax
cmpq %rax, %rdi
je 0x12730
movq 0x310(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12730
movq %rax, %rbx
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x127df
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x127df
jmp 0x12760
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x12784
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12784
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
jne 0x12826
jmp 0x12833
movq %rax, %rbx
jmp 0x12833
jmp 0x127d0
movq %rax, %rbx
jmp 0x127c6
movq %rax, %rbx
movq 0x328(%rsp), %rdi
cmpq %rbp, %rdi
je 0x127c6
movq 0x338(%rsp), %rsi
incq %rsi
callq 0x3280
movl $0x78, %esi
movq %r13, %rdi
jmp 0x12812
movq %rax, %rbx
jmp 0x12817
movq %rax, %rbx
jmp 0x127fb
jmp 0x127dc
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x127fb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x12817
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x12833
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3450
nop