// File: tonymuu[P]distributed-kv-store/MP2Node.cpp
// Function: MP2Node::handleDeleteMessage(Message)
void MP2Node::handleDeleteMessage(Message msg) {
    Message reply(msg.transID, memberNode->addr, REPLY, msg.key, msg.value, msg.replica);
    if (!deletekey(msg.key)) {
        log->logDeleteFail(&msg.fromAddr, false, msg.transID, msg.key);
        reply.success = false;
    } else {
        log->logDeleteSuccess(&msg.fromAddr, false, msg.transID, msg.key);
        reply.success = true;
    }
    sendMessage(msg.fromAddr, reply);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rsi, -0x1c8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movl 0x50(%rsi), %ecx
movl %ecx, -0x1cc(%rbp)
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq -0x8e(%rbp), %rdi
callq 0x18e40
movq -0x1c8(%rbp), %rsi
addq $0x8, %rsi
leaq -0xb0(%rbp), %rdi
callq 0x4160
movq -0x1c8(%rbp), %rsi
addq $0x28, %rsi
leaq -0xd0(%rbp), %rdi
callq 0x4160
jmp 0x21472
movl -0x1cc(%rbp), %esi
movq -0x1c8(%rbp), %rax
movl 0x4(%rax), %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x88(%rbp), %rdi
leaq -0x8e(%rbp), %rdx
movl $0x4, %ecx
leaq -0xb0(%rbp), %r8
leaq -0xd0(%rbp), %r9
callq 0x2a410
jmp 0x214af
leaq -0xd0(%rbp), %rdi
callq 0x4200
leaq -0xb0(%rbp), %rdi
callq 0x4200
movq -0x1c8(%rbp), %rsi
addq $0x8, %rsi
leaq -0x100(%rbp), %rdi
callq 0x4160
jmp 0x214e0
movq -0x1d8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x20360
movb %al, -0x1d9(%rbp)
jmp 0x214fb
movb -0x1d9(%rbp), %al
xorb $-0x1, %al
movb %al, -0x1da(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x4200
movb -0x1da(%rbp), %al
testb $0x1, %al
jne 0x21524
jmp 0x2163f
movq -0x1c8(%rbp), %rsi
movq -0x1d8(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x1f0(%rbp)
movq %rsi, %rax
addq $0x48, %rax
movq %rax, -0x1e8(%rbp)
movl 0x50(%rsi), %eax
movl %eax, -0x1e0(%rbp)
addq $0x8, %rsi
leaq -0x120(%rbp), %rdi
callq 0x4160
jmp 0x21566
movl -0x1e0(%rbp), %ecx
movq -0x1e8(%rbp), %rsi
movq -0x1f0(%rbp), %rdi
xorl %edx, %edx
leaq -0x120(%rbp), %r8
callq 0x188b0
jmp 0x2158a
leaq -0x120(%rbp), %rdi
callq 0x4200
movb $0x0, -0x34(%rbp)
jmp 0x216da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x215d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x4200
leaq -0xb0(%rbp), %rdi
callq 0x4200
jmp 0x2176f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x21763
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x4200
jmp 0x21763
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x4200
jmp 0x21763
movq -0x1c8(%rbp), %rsi
movq -0x1d8(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x208(%rbp)
movq %rsi, %rax
addq $0x48, %rax
movq %rax, -0x200(%rbp)
movl 0x50(%rsi), %eax
movl %eax, -0x1f4(%rbp)
addq $0x8, %rsi
leaq -0x140(%rbp), %rdi
callq 0x4160
jmp 0x21681
movl -0x1f4(%rbp), %ecx
movq -0x200(%rbp), %rsi
movq -0x208(%rbp), %rdi
xorl %edx, %edx
leaq -0x140(%rbp), %r8
callq 0x183f0
jmp 0x216a5
leaq -0x140(%rbp), %rdi
callq 0x4200
movb $0x1, -0x34(%rbp)
jmp 0x216da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x4200
jmp 0x21763
movq -0x1c8(%rbp), %rsi
addq $0x48, %rsi
leaq -0x146(%rbp), %rdi
callq 0x18e40
jmp 0x216f3
leaq -0x1c0(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x2a530
jmp 0x21708
movq -0x1d8(%rbp), %rdi
leaq -0x146(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
callq 0x1f440
jmp 0x21724
leaq -0x1c0(%rbp), %rdi
callq 0x21f90
leaq -0x88(%rbp), %rdi
callq 0x21f90
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x21f90
leaq -0x88(%rbp), %rdi
callq 0x21f90
movq -0xd8(%rbp), %rdi
callq 0x45b0
nopl (%rax,%rax)