// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/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 0x26800
testq %rax, %rax
je 0x41496
movq %rax, %r12
cmpq %r15, %rax
je 0x4136d
leaq -0x1(%r12), %rax
cmpb $0xd, -0x1(%r12)
cmoveq %rax, %r12
movq %r12, %r13
subq %r15, %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x3910c
movq %rax, %rbp
leaq 0x4(%rsp), %rsi
movq %rax, %rdi
callq 0x3ad85
movq %rax, %r14
movq %rbp, %rdi
callq 0x392b6
testq %r14, %r14
je 0x414ba
cmpq %r15, %r12
jne 0x413c5
testb $0x1, 0x98(%rbx)
je 0x413c5
leaq 0xc54a1(%rip), %rax     # 0x106858
movq 0x968(%rax), %rax
movq %rax, 0xd8(%rbx)
movq 0x28(%rbx), %rdi
addl $0x2, %r13d
movl %r13d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3a73b
cmpl $0x0, 0x4(%rsp)
je 0x41401
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x413ef
callq 0x3b3df
movslq 0x4(%rsp), %rdi
shlq $0x3, %rdi
callq 0x3b29d
movq %rax, 0x40(%rbx)
movl $0x0, 0x38(%rbx)
cmpl $0x0, 0x4(%rsp)
jle 0x41487
xorl %r15d, %r15d
leaq 0x81993(%rip), %r12     # 0xc2dac
movq (%r14,%r15,8), %rsi
movzbl -0x1(%rsi), %eax
movl %eax, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
ja 0x41450
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
shrl $0x3, %eax
jmp 0x41452
movq -0x11(%rsi), %rax
jmp 0x41452
movzwl -0x5(%rsi), %eax
jmp 0x41452
movl -0x9(%rsi), %eax
jmp 0x41452
movzbl -0x3(%rsi), %eax
jmp 0x41452
xorl %eax, %eax
testq %rax, %rax
je 0x41472
xorl %edi, %edi
callq 0x43ab4
movq 0x40(%rbx), %rcx
movslq 0x38(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
leal 0x1(%rdx), %eax
movl %eax, 0x38(%rbx)
jmp 0x4147a
movq %rsi, %rdi
callq 0x392b6
incq %r15
movslq 0x4(%rsp), %rax
cmpq %rax, %r15
jl 0x41419
movq %r14, %rdi
callq 0x3b3df
xorl %ebp, %ebp
jmp 0x41526
movzbl -0x1(%r15), %eax
movl %eax, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
ja 0x414f9
leaq 0x81914(%rip), %rdx     # 0xc2dc0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
shrl $0x3, %eax
jmp 0x414fb
leaq 0x81b85(%rip), %rsi     # 0xc3046
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x3ff85
movq %rbx, %rdi
xorl %esi, %esi
callq 0x41537
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x41526
movq -0x11(%r15), %rax
jmp 0x414fb
movzwl -0x5(%r15), %eax
jmp 0x414fb
movl -0x9(%r15), %eax
jmp 0x414fb
movzbl -0x3(%r15), %eax
jmp 0x414fb
xorl %eax, %eax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x10001, %rax          # imm = 0x10001
jb 0x41526
leaq 0x81b10(%rip), %rsi     # 0xc301f
movl $0x26, %edx
movq %rbx, %rdi
callq 0x3ff85
movq %rbx, %rdi
xorl %esi, %esi
callq 0x41537
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq