// File: /workspace/github_c_makefile_star2_O3/erikdubbelboer[P]discnt/src/server.c
// Function: replicationFeedMonitors
void replicationFeedMonitors(client *c, list *monitors, robj **argv, int argc) {
    listNode *ln;
    listIter li;
    int j;
    sds cmdrepr = sdsnew("+");
    robj *cmdobj;
    struct timeval tv;

    gettimeofday(&tv,NULL);
    cmdrepr = sdscatprintf(cmdrepr,"%ld.%06ld ",(long)tv.tv_sec,(long)tv.tv_usec);
    if (c->flags & CLIENT_UNIX_SOCKET) {
        cmdrepr = sdscatprintf(cmdrepr,"[unix:%s] ",server.unixsocket);
    } else {
        cmdrepr = sdscatprintf(cmdrepr,"[%s] ",getClientPeerId(c));
    }

    for (j = 0; j < argc; j++) {
        if (argv[j]->encoding == OBJ_ENCODING_INT) {
            cmdrepr = sdscatprintf(cmdrepr, "\"%ld\"", (long)argv[j]->ptr);
        } else {
            cmdrepr = sdscatrepr(cmdrepr,(char*)argv[j]->ptr,
                        sdslen(argv[j]->ptr));
        }
        if (j != argc-1)
            cmdrepr = sdscatlen(cmdrepr," ",1);
    }
    cmdrepr = sdscatlen(cmdrepr,"\r\n",2);
    cmdobj = createObject(OBJ_STRING,cmdrepr);

    listRewind(monitors,&li);
    while((ln = listNext(&li))) {
        client *monitor = ln->value;
        addReply(monitor,cmdobj);
    }
    decrRefCount(cmdobj);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r15d
movq %rdx, %r14
movq %rsi, (%rsp)
movq %rdi, %r12
leaq 0x36e5c(%rip), %rdi     # 0x52afd
callq 0x1dba5
movq %rax, %r13
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x12340
movq (%rbp), %rdx
movq 0x8(%rbp), %rcx
leaq 0x37407(%rip), %rsi     # 0x530ce
movq %r13, %rdi
xorl %eax, %eax
callq 0x1e826
movq %rax, %r13
testb $0x8, 0x89(%r12)
jne 0x1bcf6
movq %r12, %rdi
callq 0x23efe
leaq 0x373f6(%rip), %rsi     # 0x530e4
movq %r13, %rdi
movq %rax, %rdx
jmp 0x1bd07
movq 0x534d3(%rip), %rdx     # 0x6f1d0
leaq 0x373d5(%rip), %rsi     # 0x530d9
movq %r13, %rdi
xorl %eax, %eax
callq 0x1e826
testl %r15d, %r15d
jle 0x1bdb9
leal -0x1(%r15), %r13d
movl %r15d, %ebp
movl $0xf0, %ebx
leaq 0x36722(%rip), %r15     # 0x5244c
xorl %r12d, %r12d
movq (%r14,%r12,8), %rcx
movl (%rcx), %esi
andl %ebx, %esi
movq 0x8(%rcx), %rdx
cmpl $0x10, %esi
jne 0x1bd51
movq %rax, %rdi
leaq 0x373a2(%rip), %rsi     # 0x530ea
xorl %eax, %eax
callq 0x1e826
jmp 0x1bd94
movzbl -0x1(%rdx), %ecx
movl %ecx, %esi
andl $0x7, %esi
cmpl $0x4, %esi
ja 0x1bd84
movslq (%r15,%rsi,4), %rsi
addq %r15, %rsi
jmpq *%rsi
shrl $0x3, %ecx
jmp 0x1bd86
movq -0x11(%rdx), %rcx
jmp 0x1bd86
movzwl -0x5(%rdx), %ecx
jmp 0x1bd86
movl -0x9(%rdx), %ecx
jmp 0x1bd86
movzbl -0x3(%rdx), %ecx
jmp 0x1bd86
xorl %ecx, %ecx
movq %rax, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x1f52f
cmpq %r12, %r13
je 0x1bdad
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3a02e(%rip), %rsi     # 0x55dd6
callq 0x1e3ca
incq %r12
cmpq %r12, %rbp
jne 0x1bd2d
leaq 0x397e7(%rip), %rsi     # 0x555a7
movl $0x2, %edx
movq %rax, %rdi
callq 0x1e3ca
xorl %edi, %edi
movq %rax, %rsi
callq 0x2564c
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x16717
movq %r15, %rdi
callq 0x16734
testq %rax, %rax
je 0x1be16
leaq 0x8(%rsp), %rbx
movq 0x10(%rax), %rdi
movq %r14, %rsi
callq 0x21c5a
movq %rbx, %rdi
callq 0x16734
testq %rax, %rax
jne 0x1bdfd
movq %r14, %rdi
callq 0x25945
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq