// File: /workspace/github_c_makefile_star2_O1/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 0x36ab7(%rip), %rdi     # 0x52aad
callq 0x1de62
movq %rax, %r13
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x12340
movq (%rbp), %rdx
movq 0x8(%rbp), %rcx
leaq 0x37062(%rip), %rsi     # 0x5307e
movq %r13, %rdi
xorl %eax, %eax
callq 0x1eace
movq %rax, %r13
testb $0x8, 0x89(%r12)
jne 0x1c04b
movq %r12, %rdi
callq 0x2422b
leaq 0x37051(%rip), %rsi     # 0x53094
movq %r13, %rdi
movq %rax, %rdx
jmp 0x1c05c
movq 0x5317e(%rip), %rdx     # 0x6f1d0
leaq 0x37030(%rip), %rsi     # 0x53089
movq %r13, %rdi
xorl %eax, %eax
callq 0x1eace
testl %r15d, %r15d
jle 0x1c10e
leal -0x1(%r15), %r13d
movl %r15d, %ebp
movl $0xf0, %ebx
leaq 0x36381(%rip), %r15     # 0x52400
xorl %r12d, %r12d
movq (%r14,%r12,8), %rcx
movl (%rcx), %esi
andl %ebx, %esi
movq 0x8(%rcx), %rdx
cmpl $0x10, %esi
jne 0x1c0a6
movq %rax, %rdi
leaq 0x36ffd(%rip), %rsi     # 0x5309a
xorl %eax, %eax
callq 0x1eace
jmp 0x1c0e9
movzbl -0x1(%rdx), %ecx
movl %ecx, %esi
andl $0x7, %esi
cmpl $0x4, %esi
ja 0x1c0d9
movslq (%r15,%rsi,4), %rsi
addq %r15, %rsi
jmpq *%rsi
shrl $0x3, %ecx
jmp 0x1c0db
movq -0x11(%rdx), %rcx
jmp 0x1c0db
movzwl -0x5(%rdx), %ecx
jmp 0x1c0db
movl -0x9(%rdx), %ecx
jmp 0x1c0db
movzbl -0x3(%rdx), %ecx
jmp 0x1c0db
xorl %ecx, %ecx
movq %rax, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x1f7c8
cmpq %r12, %r13
je 0x1c102
movl $0x1, %edx
movq %rax, %rdi
leaq 0x39cdd(%rip), %rsi     # 0x55dda
callq 0x1e66d
incq %r12
cmpq %r12, %rbp
jne 0x1c082
leaq 0x39496(%rip), %rsi     # 0x555ab
movl $0x2, %edx
movq %rax, %rdi
callq 0x1e66d
xorl %edi, %edi
movq %rax, %rsi
callq 0x25a2c
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x16c72
movq %r15, %rdi
callq 0x16c8f
testq %rax, %rax
je 0x1c16b
leaq 0x8(%rsp), %rbx
movq 0x10(%rax), %rdi
movq %r14, %rsi
callq 0x21f58
movq %rbx, %rdi
callq 0x16c8f
testq %rax, %rax
jne 0x1c152
movq %r14, %rdi
callq 0x25d25
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq