// File: /workspace/github_c_makefile_star2_O3/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 0x1c48d
movq %rsi, %r14
movl $0x6, %esi
movq %rbx, %rdi
callq 0x22676
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x22491
movslq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x22641
movq %rbx, %rdi
callq 0x222ef
movq %rax, %r15
movl 0x20(%r14), %eax
testb $0x1, %al
jne 0x1c4a5
xorl %r13d, %r13d
jmp 0x1c4be
movq 0x53354(%rip), %rsi     # 0x6f7e8
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x21c5a
leaq 0x3c6fc(%rip), %rsi     # 0x58ba8
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %r13d
testb $0x2, %al
jne 0x1c4c7
xorl %r12d, %r12d
jmp 0x1c4e0
leaq 0x36e27(%rip), %rsi     # 0x532f5
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %r12d
addq %r13, %r12
testb $0x4, %al
jne 0x1c4eb
xorl %ecx, %ecx
jmp 0x1c503
leaq 0x36e0c(%rip), %rsi     # 0x532fe
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %ecx
addq %rcx, %r12
testb $0x10, %al
jne 0x1c50e
xorl %ecx, %ecx
jmp 0x1c526
leaq 0x36df1(%rip), %rsi     # 0x53306
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %ecx
addq %rcx, %r12
testb $0x20, %al
jne 0x1c531
xorl %ecx, %ecx
jmp 0x1c549
leaq 0x36dd4(%rip), %rsi     # 0x5330c
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %ecx
addq %rcx, %r12
testb %al, %al
js 0x1c554
xorl %ecx, %ecx
jmp 0x1c56c
leaq 0x38cb7(%rip), %rsi     # 0x55212
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %ecx
addq %rcx, %r12
btl $0x9, %eax
jb 0x1c579
xorl %ecx, %ecx
jmp 0x1c591
leaq 0x36d93(%rip), %rsi     # 0x53313
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %ecx
addq %rcx, %r12
btl $0xb, %eax
jb 0x1c59e
xorl %ecx, %ecx
jmp 0x1c5b6
leaq 0x36d76(%rip), %rsi     # 0x5331b
movq %rbx, %rdi
callq 0x221d1
movl 0x20(%r14), %eax
movl $0x1, %ecx
addq %rcx, %r12
btl $0xd, %eax
jb 0x1c5c3
xorl %eax, %eax
jmp 0x1c5d7
leaq 0x36d5e(%rip), %rsi     # 0x53328
movq %rbx, %rdi
callq 0x221d1
movl $0x1, %eax
addq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x22315
movslq 0x24(%r14), %rsi
movq %rbx, %rdi
callq 0x22641
movslq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x22641
movslq 0x2c(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x22641