// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/src/server.c
// Function: addReplyCommand
void addReplyCommand(client *c, struct serverCommand *cmd) {
    if (!cmd) {
        addReply(c, shared.nullbulk);
    } else {
        /* We are adding: command name, arg count, flags, first, last, offset */
        addReplyMultiBulkLen(c, 6);
        addReplyBulkCString(c, cmd->name);
        addReplyLongLong(c, cmd->arity);

        int flagcount = 0;
        void *flaglen = addDeferredMultiBulkLength(c);
        flagcount += addReplyCommandFlag(c,cmd,CMD_WRITE, "write");
        flagcount += addReplyCommandFlag(c,cmd,CMD_READONLY, "readonly");
        flagcount += addReplyCommandFlag(c,cmd,CMD_DENYOOM, "denyoom");
        flagcount += addReplyCommandFlag(c,cmd,CMD_ADMIN, "admin");
        flagcount += addReplyCommandFlag(c,cmd,CMD_PUBSUB, "pubsub");
        flagcount += addReplyCommandFlag(c,cmd,CMD_RANDOM, "random");
        flagcount += addReplyCommandFlag(c,cmd,CMD_LOADING, "loading");
        flagcount += addReplyCommandFlag(c,cmd,CMD_SKIP_MONITOR, "skip_monitor");
        flagcount += addReplyCommandFlag(c,cmd,CMD_FAST, "fast");
        setDeferredMultiBulkLength(c, flaglen, flagcount);

        addReplyLongLong(c, cmd->firstkey);
        addReplyLongLong(c, cmd->lastkey);
        addReplyLongLong(c, cmd->keystep);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x1c79a
movq %rsi, %r14
movl $0x6, %esi
movq %rbx, %rdi
callq 0x22976
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x22791
movslq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x22941
movq %rbx, %rdi
callq 0x225ef
movq %rax, %r15
testb $0x1, 0x20(%r14)
jne 0x1c7b2
xorl %r13d, %r13d
jmp 0x1c7c7
movq 0x53047(%rip), %rsi     # 0x6f7e8
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x21f58
leaq 0x3c40f(%rip), %rsi     # 0x58bc8
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %r13d
testb $0x2, 0x20(%r14)
jne 0x1c7d3
xorl %r12d, %r12d
jmp 0x1c7e8
leaq 0x36acb(%rip), %rsi     # 0x532a5
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %r12d
addq %r13, %r12
testb $0x4, 0x20(%r14)
jne 0x1c7f6
xorl %eax, %eax
jmp 0x1c80a
leaq 0x36ab1(%rip), %rsi     # 0x532ae
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addq %rax, %r12
testb $0x10, 0x20(%r14)
jne 0x1c818
xorl %eax, %eax
jmp 0x1c82c
leaq 0x36a97(%rip), %rsi     # 0x532b6
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addq %rax, %r12
testb $0x20, 0x20(%r14)
jne 0x1c83a
xorl %eax, %eax
jmp 0x1c84e
leaq 0x36a7b(%rip), %rsi     # 0x532bc
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addq %rax, %r12
testb $-0x80, 0x20(%r14)
jne 0x1c85c
xorl %eax, %eax
jmp 0x1c870
leaq 0x38997(%rip), %rsi     # 0x551fa
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addq %rax, %r12
testb $0x2, 0x21(%r14)
jne 0x1c87e
xorl %eax, %eax
jmp 0x1c892
leaq 0x36a3e(%rip), %rsi     # 0x532c3
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addq %rax, %r12
testb $0x8, 0x21(%r14)
jne 0x1c8a0
xorl %eax, %eax
jmp 0x1c8b4
leaq 0x36a24(%rip), %rsi     # 0x532cb
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addq %rax, %r12
testb $0x20, 0x21(%r14)
jne 0x1c8c2
xorl %eax, %eax
jmp 0x1c8d6
leaq 0x36a0f(%rip), %rsi     # 0x532d8
movq %rbx, %rdi
callq 0x224d1
movl $0x1, %eax
addl %eax, %r12d
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x22615
movslq 0x24(%r14), %rsi
movq %rbx, %rdi
callq 0x22941
movslq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x22941
movslq 0x2c(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x22941