// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
leaq 0x883dc(%rip), %rdi     # 0xa3acd
callq 0x1e2b0
movq %rax, -0x48(%rbp)
leaq -0x60(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x12330
movq -0x48(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq -0x58(%rbp), %rcx
leaq 0x88984(%rip), %rsi     # 0xa409e
movb $0x0, %al
callq 0x1f350
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movl 0x88(%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x1b758
movq -0x48(%rbp), %rdi
movq 0xa3aec(%rip), %rdx     # 0xbf230
leaq 0x8895e(%rip), %rsi     # 0xa40a9
movb $0x0, %al
callq 0x1f350
movq %rax, -0x48(%rbp)
jmp 0x1b782
movq -0x48(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rdi
callq 0x26b10
movq -0x70(%rbp), %rdi
movq %rax, %rdx
leaq 0x8893d(%rip), %rsi     # 0xa40b4
movb $0x0, %al
callq 0x1f350
movq %rax, -0x48(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x1b851
movq -0x18(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x1, %eax
jne 0x1b7d6
movq -0x48(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdx
leaq 0x888f1(%rip), %rsi     # 0xa40ba
movb $0x0, %al
callq 0x1f350
movq %rax, -0x48(%rbp)
jmp 0x1b81b
movq -0x48(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdi
callq 0x18f50
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
callq 0x20060
movq %rax, -0x48(%rbp)
movl -0x3c(%rbp), %eax
movl -0x1c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
je 0x1b841
movq -0x48(%rbp), %rdi
leaq 0x8af5b(%rip), %rsi     # 0xa678e
movl $0x1, %edx
callq 0x1ede0
movq %rax, -0x48(%rbp)
jmp 0x1b843
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x1b789
movq -0x48(%rbp), %rdi
leaq 0x8a703(%rip), %rsi     # 0xa5f5f
movl $0x2, %edx
callq 0x1ede0
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rsi
xorl %edi, %edi
callq 0x29150
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x13000
leaq -0x38(%rbp), %rdi
callq 0x13060
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x1b8b4
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x24050
jmp 0x1b886
movq -0x50(%rbp), %rdi
callq 0x296f0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)