// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/src/replication.c
// Function: replicationFeedMonitors
void replicationFeedMonitors(client *c, list *monitors, int dictid, 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_LUA) {
        cmdrepr = sdscatprintf(cmdrepr,"[%d lua] ",dictid);
    } else if (c->flags & CLIENT_UNIX_SOCKET) {
        cmdrepr = sdscatprintf(cmdrepr,"[%d unix:%s] ",dictid,server.unixsocket);
    } else {
        cmdrepr = sdscatprintf(cmdrepr,"[%d %s] ",dictid,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 $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
leaq 0xe9f4d(%rip), %rdi     # 0x137f82
callq 0x38510
movq %rax, -0x50(%rbp)
leaq -0x68(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x26310
movq -0x50(%rbp), %rdi
movq -0x68(%rbp), %rdx
movq -0x60(%rbp), %rcx
leaq 0xedb05(%rip), %rsi     # 0x13bb63
movb $0x0, %al
callq 0x395b0
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movl 0x98(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x4e098
movq -0x50(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0xedae3(%rip), %rsi     # 0x13bb6e
movb $0x0, %al
callq 0x395b0
movq %rax, -0x50(%rbp)
jmp 0x4e10a
movq -0x8(%rbp), %rax
movl 0x98(%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x4e0d5
movq -0x50(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x12a11e(%rip), %rax    # 0x1781d8
movq 0x130(%rax), %rcx
leaq 0xedab0(%rip), %rsi     # 0x13bb78
movb $0x0, %al
callq 0x395b0
movq %rax, -0x50(%rbp)
jmp 0x4e108
movq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x74(%rbp)
movq -0x8(%rbp), %rdi
callq 0x45c10
movq -0x80(%rbp), %rdi
movl -0x74(%rbp), %edx
movq %rax, %rcx
leaq 0xeda89(%rip), %rsi     # 0x13bb86
movb $0x0, %al
callq 0x395b0
movq %rax, -0x50(%rbp)
jmp 0x4e10a
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x4e1e5
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x1, %eax
jne 0x4e15e
movq -0x50(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdx
leaq 0xeda3e(%rip), %rsi     # 0x13bb8f
movb $0x0, %al
callq 0x395b0
movq %rax, -0x50(%rbp)
jmp 0x4e1af
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdi
callq 0x4dc30
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rax, %rdx
callq 0x3a2c0
movq %rax, -0x50(%rbp)
movl -0x44(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
je 0x4e1d5
movq -0x50(%rbp), %rdi
leaq 0xf0f82(%rip), %rsi     # 0x13f149
movl $0x1, %edx
callq 0x39040
movq %rax, -0x50(%rbp)
jmp 0x4e1d7
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x4e111
movq -0x50(%rbp), %rdi
leaq 0xf0098(%rip), %rsi     # 0x13e288
movl $0x2, %edx
callq 0x39040
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rsi
xorl %edi, %edi
callq 0x48480
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x27320
leaq -0x40(%rbp), %rdi
callq 0x27380
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x4e248
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x42cc0
jmp 0x4e21a
movq -0x58(%rbp), %rdi
callq 0x48f70
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)