// File: /workspace/github_cpp_makefile_star2_O3/zkl94[P]distributed-key-value-store/MP2Node.cpp
// Function: MP2Node::deletekey(Address, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, MessageType)
bool MP2Node::deletekey(Address fromAddr, string key, int transID, MessageType t) {
    // Delete the key from the local hash table
    bool success = this->ht->deleteKey(key);
    Message *message;
    if (success) {
        log->logDeleteSuccess(&(this->memberNode->addr), false, transID, key);
        message = new Message(transID, this->memberNode->addr, REPLY, true);
    } else {
        log->logDeleteFail(&(this->memberNode->addr), false, transID, key);
        message = new Message(transID, this->memberNode->addr, REPLY, false);
    }

    string _string = message->toString();
    emulNet->ENsend(&(this->memberNode->addr), &fromAddr, (char *)_string.c_str(), _string.size());

    delete message;

    return success;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
movq 0x48(%rdi), %rbx
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x6790
movq %rbx, %rdi
movq %r14, %rsi
callq 0x14346
movl %eax, %ebx
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x115ae
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x50(%r15), %r13
movq 0x68(%r15), %r14
addq $0x8, %r13
movb %bl, 0x3(%rsp)
testb %bl, %bl
je 0x11653
leaq 0x48(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x6790
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
movl %ebp, %ecx
movq %r12, %r8
callq 0xca2a
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x11611
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3280
movl $0x78, %edi
callq 0x3270
movq %rax, %r12
movq 0x50(%r15), %rsi
addq $0x8, %rsi
leaq 0xa(%rsp), %rdi
callq 0xd01c
movb 0x3(%rsp), %bl
leaq 0xa(%rsp), %rdx
movq %r12, %rdi
movl %ebp, %esi
movl $0x4, %ecx
movl $0x1, %r8d
callq 0x15f04
jmp 0x116d8
leaq 0x28(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x6790
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
movl %ebp, %ecx
movq %r12, %r8
callq 0xcdd6
movq 0x18(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1169e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movl $0x78, %edi
callq 0x3270
movq %rax, %r12
movq 0x50(%r15), %rsi
addq $0x8, %rsi
leaq 0x4(%rsp), %rdi
callq 0xd01c
movb 0x3(%rsp), %bl
leaq 0x4(%rsp), %rdx
movq %r12, %rdi
movl %ebp, %esi
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0x15f04
leaq 0x78(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x160dc
movq 0x50(%r15), %rsi
movq 0x60(%r15), %rdi
addq $0x8, %rsi
movq (%r14), %rcx
movl 0x8(%r14), %r8d
movq 0x10(%rsp), %rdx
callq 0x6e4c
movq 0x58(%r12), %rdi
leaq 0x68(%r12), %rax
cmpq %rax, %rdi
je 0x1171f
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x28(%r12), %rdi
leaq 0x38(%r12), %rax
cmpq %rax, %rdi
je 0x11739
movq (%rax), %rsi
incq %rsi
callq 0x3280
movq 0x8(%r12), %rdi
leaq 0x18(%r12), %rax
cmpq %rax, %rdi
je 0x11753
movq (%rax), %rsi
incq %rsi
callq 0x3280
movl $0x78, %esi
movq %r12, %rdi
callq 0x3280
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11781
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3280
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x18(%rsp), %rdi
cmpq %rbx, %rdi
je 0x11804
movq 0x28(%rsp), %rsi
jmp 0x117fc
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x11804
movq 0x48(%rsp), %rsi
jmp 0x117fc
movq %rax, %r14
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11804
movq 0x88(%rsp), %rsi
jmp 0x117fc
jmp 0x117dd
movq %rax, %r14
movl $0x78, %esi
movq %r12, %rdi
jmp 0x117ff
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x11804
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3280
movq %r14, %rdi
callq 0x3450