// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/networking.c
// Function: processInlineBuffer
int processInlineBuffer(client *c) {
    char *newline;
    int argc, j;
    sds *argv, aux;
    size_t querylen;

    /* Search for end of line */
    newline = strchr(c->querybuf,'\n');

    /* Nothing to do without a \r\n */
    if (newline == NULL) {
        if (sdslen(c->querybuf) > PROTO_INLINE_MAX_SIZE) {
            addReplyError(c,"Protocol error: too big inline request");
            setProtocolError(c,0);
        }
        return C_ERR;
    }

    /* Handle the \r\n case. */
    if (newline && newline != c->querybuf && *(newline-1) == '\r')
        newline--;

    /* Split the input buffer up to the \r\n */
    querylen = newline-(c->querybuf);
    aux = sdsnewlen(c->querybuf,querylen);
    argv = sdssplitargs(aux,&argc);
    sdsfree(aux);
    if (argv == NULL) {
        addReplyError(c,"Protocol error: unbalanced quotes in request");
        setProtocolError(c,0);
        return C_ERR;
    }

    /* Newline from slaves can be used to refresh the last ACK time.
     * This is useful for a slave to ping back while loading a big
     * RDB file. */
    if (querylen == 0 && c->flags & CLIENT_SLAVE)
        c->repl_ack_time = server.unixtime;

    /* Leave data after the first line of the query in the buffer */
    sdsrange(c->querybuf,querylen+2,-1);

    /* Setup argv array on client structure */
    if (argc) {
        if (c->argv) zfree(c->argv);
        c->argv = zmalloc(sizeof(robj*)*argc);
    }

    /* Create redis objects for all arguments. */
    for (c->argc = 0, j = 0; j < argc; j++) {
        if (sdslen(argv[j])) {
            c->argv[c->argc] = createObject(OBJ_STRING,argv[j]);
            c->argc++;
        } else {
            sdsfree(argv[j]);
        }
    }
    zfree(argv);
    return C_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x267f0
testq %rax, %rax
je 0x3e0ea
movq %r15, %rbp
cmpq %r15, %rax
je 0x3dfc7
leaq -0x1(%rax), %rbp
cmpb $0xd, -0x1(%rax)
cmovneq %rax, %rbp
movq %rbp, %r12
subq %r15, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x36178
movq %rax, %r13
leaq 0x4(%rsp), %rsi
movq %rax, %rdi
callq 0x37e0a
movq %rax, %r14
movq %r13, %rdi
callq 0x36330
testq %r14, %r14
je 0x3e107
cmpq %r15, %rbp
jne 0x3e01f
testb $0x1, 0x98(%rbx)
je 0x3e01f
leaq 0xc3897(%rip), %rax     # 0x1018a8
movq 0x978(%rax), %rax
movq %rax, 0xd8(%rbx)
movq 0x28(%rbx), %rdi
addl $0x2, %r12d
movl %r12d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x377b2
movl 0x4(%rsp), %eax
testl %eax, %eax
je 0x3e12c
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x3e052
callq 0x38413
movl 0x4(%rsp), %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x382d1
movq %rax, 0x40(%rbx)
cmpl $0x0, 0x4(%rsp)
movl $0x0, 0x38(%rbx)
jle 0x3e133
xorl %r15d, %r15d
leaq 0x81db2(%rip), %r12     # 0xbfe30
movq (%r14,%r15,8), %rsi
movzbl -0x1(%rsi), %eax
movl %eax, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
ja 0x3e0d3
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
shrl $0x3, %eax
jmp 0x3e0b3
movq -0x11(%rsi), %rax
jmp 0x3e0b3
movzwl -0x5(%rsi), %eax
jmp 0x3e0b3
movl -0x9(%rsi), %eax
jmp 0x3e0b3
movzbl -0x3(%rsi), %eax
testq %rax, %rax
je 0x3e0d3
xorl %edi, %edi
callq 0x40650
movq 0x40(%rbx), %rcx
movslq 0x38(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
leal 0x1(%rdx), %eax
movl %eax, 0x38(%rbx)
jmp 0x3e0db
movq %rsi, %rdi
callq 0x36330
incq %r15
movslq 0x4(%rsp), %rax
cmpq %rax, %r15
jl 0x3e07e
jmp 0x3e133
movzbl -0x1(%r15), %eax
andl $0x7, %eax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x4, %eax
je 0x3e13f
cmpl $0x3, %eax
jne 0x3e169
movl -0x9(%r15), %eax
jmp 0x3e143
leaq 0x81f80(%rip), %rsi     # 0xc008e
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x3cbc0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3e17a
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x3e169
movl $0x0, 0x38(%rbx)
movq %r14, %rdi
callq 0x38413
xorl %ebp, %ebp
jmp 0x3e169
movq -0x11(%r15), %rax
cmpq $0x10001, %rax          # imm = 0x10001
jb 0x3e169
leaq 0x81f15(%rip), %rsi     # 0xc0067
movl $0x26, %edx
movq %rbx, %rdi
callq 0x3cbc0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3e17a
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq