// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/src/networking.c
// Function: addReplyObjectToList
void _addReplyObjectToList(client *c, robj *o) {
    robj *tail;

    if (c->flags & CLIENT_CLOSE_AFTER_REPLY) return;

    if (listLength(c->reply) == 0) {
        incrRefCount(o);
        listAddNodeTail(c->reply,o);
        c->reply_bytes += getStringObjectSdsUsedMemory(o);
    } else {
        tail = listNodeValue(listLast(c->reply));

        /* Append to this object when possible. */
        if (tail->ptr != NULL &&
            tail->encoding == OBJ_ENCODING_RAW &&
            sdslen(tail->ptr)+sdslen(o->ptr) <= PROTO_REPLY_CHUNK_BYTES)
        {
            c->reply_bytes -= sdsZmallocSize(tail->ptr);
            tail = dupLastObjectIfNeeded(c->reply);
            tail->ptr = sdscatlen(tail->ptr,o->ptr,sdslen(o->ptr));
            c->reply_bytes += sdsZmallocSize(tail->ptr);
        } else {
            incrRefCount(o);
            listAddNodeTail(c->reply,o);
            c->reply_bytes += getStringObjectSdsUsedMemory(o);
        }
    }
    asyncCloseClientOnOutputBufferLimitReached(c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x98(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x42687
jmp 0x42804
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rax
cmpq $0x0, 0x28(%rax)
jne 0x426cd
movq -0x10(%rbp), %rdi
callq 0x487b0
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x27000
movq -0x10(%rbp), %rdi
callq 0x41ca0
movq %rax, %rcx
movq -0x8(%rbp), %rax
addq 0x70(%rax), %rcx
movq %rcx, 0x70(%rax)
jmp 0x427fb
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x427c7
movq -0x18(%rbp), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x0, %eax
jne 0x427c7
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x42810
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x42810
movq %rax, %rcx
movq -0x20(%rbp), %rax
addq %rcx, %rax
cmpq $0x4000, %rax           # imm = 0x4000
ja 0x427c7
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x41c70
movq %rax, %rdx
movq -0x8(%rbp), %rax
movq 0x70(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x70(%rax)
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rdi
callq 0x42510
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x42810
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq %rax, %rdx
callq 0x39040
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x41c70
movq %rax, %rcx
movq -0x8(%rbp), %rax
addq 0x70(%rax), %rcx
movq %rcx, 0x70(%rax)
jmp 0x427f9
movq -0x10(%rbp), %rdi
callq 0x487b0
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x27000
movq -0x10(%rbp), %rdi
callq 0x41ca0
movq %rax, %rcx
movq -0x8(%rbp), %rax
addq 0x70(%rax), %rcx
movq %rcx, 0x70(%rax)
jmp 0x427fb
movq -0x8(%rbp), %rdi
callq 0x428a0
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)