// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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;
    }

    /* 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 disque 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 %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x122b0
testq %rax, %rax
je 0x235ad
movq %rax, %r15
cmpq %r14, %rax
je 0x234aa
leaq -0x1(%r15), %rax
cmpb $0xd, -0x1(%r15)
cmoveq %rax, %r15
subq %r14, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x1dd2c
movq %rax, %r12
leaq 0xc(%rsp), %rsi
movq %rax, %rdi
callq 0x1f99c
movq %rax, %r14
movq %r12, %rdi
callq 0x1ded3
testq %r14, %r14
je 0x235d1
movq 0x18(%rbx), %rdi
addl $0x2, %r15d
movl %r15d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1f352
cmpl $0x0, 0xc(%rsp)
je 0x23518
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x23506
callq 0x1ffff
movslq 0xc(%rsp), %rdi
shlq $0x3, %rdi
callq 0x1fea5
movq %rax, 0x30(%rbx)
movl $0x0, 0x28(%rbx)
cmpl $0x0, 0xc(%rsp)
jle 0x2359e
xorl %r15d, %r15d
leaq 0x31590(%rip), %r12     # 0x54ac0
movq (%r14,%r15,8), %rsi
movzbl -0x1(%rsi), %eax
movl %eax, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
ja 0x23567
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
shrl $0x3, %eax
jmp 0x23569
movq -0x11(%rsi), %rax
jmp 0x23569
movzwl -0x5(%rsi), %eax
jmp 0x23569
movl -0x9(%rsi), %eax
jmp 0x23569
movzbl -0x3(%rsi), %eax
jmp 0x23569
xorl %eax, %eax
testq %rax, %rax
je 0x23589
xorl %edi, %edi
callq 0x25a2c
movq 0x30(%rbx), %rcx
movslq 0x28(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
leal 0x1(%rdx), %eax
movl %eax, 0x28(%rbx)
jmp 0x23591
movq %rsi, %rdi
callq 0x1ded3
incq %r15
movslq 0xc(%rsp), %rax
cmpq %rax, %r15
jl 0x23530
movq %r14, %rdi
callq 0x1ffff
xorl %ebp, %ebp
jmp 0x2363d
movzbl -0x1(%r14), %eax
movl %eax, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
ja 0x23610
leaq 0x31511(%rip), %rdx     # 0x54ad4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
shrl $0x3, %eax
jmp 0x23612
leaq 0x31730(%rip), %rsi     # 0x54d08
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x222c4
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2364c
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x2363d
movq -0x11(%r14), %rax
jmp 0x23612
movzwl -0x5(%r14), %eax
jmp 0x23612
movl -0x9(%r14), %eax
jmp 0x23612
movzbl -0x3(%r14), %eax
jmp 0x23612
xorl %eax, %eax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x10001, %rax          # imm = 0x10001
jb 0x2363d
leaq 0x316bb(%rip), %rsi     # 0x54ce1
movl $0x26, %edx
movq %rbx, %rdi
callq 0x222c4
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2364c
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq