// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq 0x50(%rdi), %rdi
movq 0xa8(%rdi), %rax
cmpq %rax, 0xc8(%rdi)
je 0x1204a
leaq 0x318(%rsp), %r15
leaq 0x2d8(%rsp), %rbp
leaq 0x278(%rsp), %r13
addq $0x98, %rdi
movq (%rax), %r14
movslq 0x8(%rax), %r12
callq 0x6a8c
addq %r14, %r12
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6810
movl $0x78, %edi
callq 0x3270
movq %rax, %r12
leaq 0x328(%rsp), %rax
movq %rax, 0x318(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x6810
movq %r12, %rdi
movq %r15, %rsi
callq 0x1582c
movq 0x318(%rsp), %rdi
leaq 0x328(%rsp), %rax
cmpq %rax, %rdi
je 0x11c2e
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x3280
movl 0x50(%r12), %r14d
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0x6810
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x6810
movq %r12, %rsi
addq $0x48, %rsi
leaq 0x5a(%rsp), %rdi
callq 0xd170
movl (%r12), %eax
cmpq $0x5, %rax
ja 0x11fde
leaq 0x5fd5(%rip), %rcx      # 0x17c70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x92(%rsp), %rdi
leaq 0x5a(%rsp), %rsi
callq 0xd170
leaq 0x308(%rsp), %rax
movq %rax, 0x2f8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2f8(%rsp), %rdi
callq 0x6810
leaq 0x2e8(%rsp), %rax
movq %rax, 0x2d8(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %r12
movq %rbp, %rdi
callq 0x6810
movq %rbx, %rdi
leaq 0x92(%rsp), %rsi
leaq 0x2f8(%rsp), %rdx
movq %r12, %rcx
movl %r14d, %r9d
callq 0x10d7a
movq 0x2d8(%rsp), %rdi
leaq 0x2e8(%rsp), %rax
cmpq %rax, %rdi
je 0x11d4b
movq 0x2e8(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x2f8(%rsp), %rdi
leaq 0x308(%rsp), %rcx
jmp 0x11fcb
movzbl 0x54(%r12), %edx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x10cea
jmp 0x11fde
leaq 0x86(%rsp), %rdi
leaq 0x5a(%rsp), %rsi
callq 0xd170
leaq 0x2a8(%rsp), %rax
movq %rax, 0x298(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x298(%rsp), %rdi
callq 0x6810
leaq 0x288(%rsp), %rax
movq %rax, 0x278(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %r12
movq %r13, %rdi
callq 0x6810
movq %rbx, %rdi
leaq 0x86(%rsp), %rsi
leaq 0x298(%rsp), %rdx
movq %r12, %rcx
movl %r14d, %r9d
callq 0x11478
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x11e1d
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rcx
jmp 0x11fcb
movl $0x19, %edx
movq 0xd192(%rip), %rdi      # 0x1efd0
leaq 0x5e63(%rip), %rsi      # 0x17ca8
callq 0x32d0
movq 0xd17f(%rip), %rcx      # 0x1efd0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq 0xd161(%rip), %rdi      # 0x1efd0
callq 0x3030
movq %rax, %rdi
callq 0x31a0
leaq 0x80(%rsp), %rdi
leaq 0x5a(%rsp), %rsi
callq 0xd170
leaq 0x268(%rsp), %rax
movq %rax, 0x258(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x258(%rsp), %rdi
callq 0x6810
movq %rbx, %rdi
leaq 0x80(%rsp), %rsi
leaq 0x258(%rsp), %rdx
movl %r14d, %ecx
callq 0x11894
movq 0x258(%rsp), %rdi
leaq 0x268(%rsp), %rcx
jmp 0x11fcb
leaq 0x8c(%rsp), %rdi
leaq 0x5a(%rsp), %rsi
callq 0xd170
leaq 0x2c8(%rsp), %rax
movq %rax, 0x2b8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2b8(%rsp), %rdi
callq 0x6810
leaq 0x348(%rsp), %rdi
movq %rbx, %rsi
leaq 0x8c(%rsp), %rdx
leaq 0x2b8(%rsp), %rcx
movl %r14d, %r8d
callq 0x1105a
movq 0x348(%rsp), %rdi
leaq 0x358(%rsp), %rax
cmpq %rax, %rdi
je 0x11f6c
movq 0x358(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x2b8(%rsp), %rdi
leaq 0x2c8(%rsp), %rcx
jmp 0x11fcb
leaq 0x248(%rsp), %rax
movq %rax, 0x238(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x238(%rsp), %rdi
callq 0x6810
movq %rbx, %rdi
leaq 0x238(%rsp), %rsi
movl %r14d, %edx
callq 0x10d1c
movq 0x238(%rsp), %rdi
leaq 0x248(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x11fde
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x11ffa
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x12016
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x12032
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x50(%rbx), %rdi
movq 0xa8(%rdi), %rax
cmpq %rax, 0xc8(%rdi)
jne 0x11b9c
movq 0xa8(%rbx), %r15
movq %rbx, 0x10(%rsp)
leaq 0x98(%rbx), %rax
movq %rax, 0x340(%rsp)
cmpq %rax, %r15
je 0x126e4
movq 0x10(%rsp), %rax
addq $0x90, %rax
movq %rax, 0x338(%rsp)
leaq 0x178(%rsp), %rbx
movq 0x28(%r15), %rax
movl 0x4(%rax), %ecx
addl (%rax), %ecx
cmpl $0x3, %ecx
je 0x120a3
movl 0x50(%rax), %ecx
cmpl $0x5, %ecx
jl 0x122aa
movl 0x20(%r15), %ebp
movl 0x8(%rax), %r12d
leaq 0x48(%rsp), %rcx
movq %rcx, 0x38(%rsp)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x6810
movq 0x28(%r15), %rax
leaq 0x28(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq 0x30(%rax), %rsi
movq 0x38(%rax), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0x6810
movq 0x28(%r15), %rax
cmpl $0x2, (%rax)
movl %r12d, %eax
jl 0x121d1
cmpl $0x3, %r12d
ja 0x12645
leaq 0x5b8a(%rip), %rcx      # 0x17c98
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x1a8(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0x6810
leaq 0x188(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %r14
movq %rbx, %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x198(%rsp), %r8
movq %r14, %r9
callq 0xc8a8
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x121bc
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rcx
jmp 0x12632
cmpl $0x3, %r12d
ja 0x12645
leaq 0x5aa6(%rip), %rcx      # 0x17c88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x6810
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0xd8(%rsp), %r8
movq %r14, %r9
callq 0xcc62
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x12295
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rcx
jmp 0x12632
incl %ecx
movl %ecx, 0x50(%rax)
movq %r15, %rdi
callq 0x31b0
movq %rax, %r15
jmp 0x126d6
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x1e8(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x6810
leaq 0x1c8(%rsp), %rax
movq %rax, 0x1b8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %r14
movq %r14, %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x1d8(%rsp), %r8
movq %r14, %r9
callq 0xca8c
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x12369
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rcx
jmp 0x12632
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0x6810
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x118(%rsp), %r8
movq %r14, %r9
callq 0xce38
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x12428
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rcx
jmp 0x12632
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x168(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x158(%rsp), %r8
callq 0xcb7e
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rcx
jmp 0x12632
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x98(%rsp), %r8
callq 0xcf2a
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rcx
jmp 0x12632
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x228(%rsp), %rax
movq %rax, 0x218(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rdi
callq 0x6810
leaq 0x208(%rsp), %rax
movq %rax, 0x1f8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %r14
movq %r14, %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x218(%rsp), %r8
movq %r14, %r9
callq 0xc99a
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x125bb
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rcx
jmp 0x12632
movq 0x10(%rsp), %rax
movq 0x50(%rax), %r12
movq 0x68(%rax), %r13
leaq 0x148(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x6810
addq $0x8, %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0x1, %edx
movl %ebp, %ecx
leaq 0x138(%rsp), %r8
callq 0xcd54
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x12645
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x28(%r15), %rbp
testq %rbp, %rbp
je 0x1268b
movq 0x30(%rbp), %rdi
leaq 0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x12666
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x10(%rbp), %rdi
leaq 0x20(%rbp), %rax
cmpq %rax, %rdi
je 0x1267e
movq (%rax), %rsi
incq %rsi
callq 0x3280
movl $0x58, %esi
movq %rbp, %rdi
callq 0x3280
movq 0x338(%rsp), %rdi
movq %r15, %rsi
callq 0x14018
movq %rax, %r15
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x126ba
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x126d6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
cmpq 0x340(%rsp), %r15
jne 0x12089
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x12723
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12723
movq %rax, %rbx
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x1a8(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x12776
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12776
movq %rax, %rbx
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x228(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x127c9
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x127c9
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x1e8(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x168(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x12845
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12845
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0xe8(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x148(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x128c1
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x128c1
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x128(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0xa8(%rsp), %rsi
jmp 0x12a96
movq %rax, %rbx
movq 0x2b8(%rsp), %rdi
leaq 0x2c8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a82
movq 0x2c8(%rsp), %rsi
jmp 0x12a22
movq %rax, %rbx
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x12966
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12966
movq %rax, %rbx
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a82
movq 0x2a8(%rsp), %rsi
jmp 0x12a22
movq %rax, %rbx
movq 0x258(%rsp), %rdi
leaq 0x268(%rsp), %rax
cmpq %rax, %rdi
je 0x12a82
movq 0x268(%rsp), %rsi
jmp 0x12a22
movq %rax, %rbx
movq 0x238(%rsp), %rdi
leaq 0x248(%rsp), %rax
cmpq %rax, %rdi
je 0x12a82
movq 0x248(%rsp), %rsi
jmp 0x12a22
movq %rax, %rbx
movq 0x2d8(%rsp), %rdi
leaq 0x2e8(%rsp), %rax
cmpq %rax, %rdi
je 0x12a05
movq 0x2e8(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12a05
movq %rax, %rbx
movq 0x2f8(%rsp), %rdi
leaq 0x308(%rsp), %rax
cmpq %rax, %rdi
je 0x12a82
movq 0x308(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x12a82
jmp 0x12a78
jmp 0x12a78
jmp 0x12a73
movq %rax, %rbx
jmp 0x12ad6
jmp 0x12a73
movq %rax, %rbx
jmp 0x12a69
movq %rax, %rbx
movq 0x318(%rsp), %rdi
leaq 0x328(%rsp), %rax
cmpq %rax, %rdi
je 0x12a69
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x3280
movl $0x78, %esi
movq %r12, %rdi
jmp 0x12ab5
movq %rax, %rbx
jmp 0x12aba
movq %rax, %rbx
jmp 0x12a9e
jmp 0x12a7f
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x12a9e
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x12aba
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x12ad6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x3450