// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: redisReaderGetReply
int redisReaderGetReply(redisReader *r, void **reply) {
    /* Default target pointer to NULL. */
    if (reply != NULL)
        *reply = NULL;

    /* Return early when this reader is in an erroneous state. */
    if (r->err)
        return REDIS_ERR;

    /* When the buffer is empty, there will never be a reply. */
    if (r->len == 0)
        return REDIS_OK;

    /* Set first item to process when the stack is empty. */
    if (r->ridx == -1) {
        r->rstack[0].type = -1;
        r->rstack[0].elements = -1;
        r->rstack[0].idx = -1;
        r->rstack[0].obj = NULL;
        r->rstack[0].parent = NULL;
        r->rstack[0].privdata = r->privdata;
        r->ridx = 0;
    }

    /* Process items in reply. */
    while (r->ridx >= 0)
        if (processItem(r) != REDIS_OK)
            break;

    /* Return ASAP when an error occurred. */
    if (r->err)
        return REDIS_ERR;

    /* Discard part of the buffer when we've consumed at least 1k, to avoid
     * doing unnecessary calls to memmove() in sds.c. */
    if (r->pos >= 1024) {
        sdsrange(r->buf,r->pos,-1);
        r->pos = 0;
        r->len = sdslen(r->buf);
    }

    /* Emit a reply when there is one. */
    if (r->ridx == -1) {
        if (reply != NULL)
            *reply = r->reply;
        r->reply = NULL;
    }
    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
testq %rsi, %rsi
je 0x83b4
movq $0x0, (%rsi)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, (%rdi)
jne 0x8955
cmpq $0x0, 0x98(%rdi)
je 0x8953
movq %rsi, 0x28(%rsp)
movl 0x210(%rdi), %r14d
cmpl $-0x1, %r14d
movq %rdi, 0x10(%rsp)
je 0x83f1
testl %r14d, %r14d
jns 0x842b
jmp 0x88de
movq $-0x1, 0xa8(%rdi)
movl $0xffffffff, 0xb0(%rdi) # imm = 0xFFFFFFFF
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rdi)
movq 0x228(%rdi), %rax
movq %rax, 0xc8(%rdi)
movl $0x0, 0x210(%rdi)
xorl %r14d, %r14d
movq 0x10(%rsp), %rax
addq $0xa8, %rax
movq %rax, 0x20(%rsp)
movl %r14d, %eax
leaq (%rax,%rax,4), %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
movl (%r15), %eax
testl %eax, %eax
js 0x8491
decl %eax
cmpl $0x5, %eax
movq 0x10(%rsp), %r12
ja 0x8967
leaq 0x1393(%rip), %rcx      # 0x97fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, 0x18(%rsp)
movq 0x88(%r12), %r13
movq 0x90(%r12), %rbp
movq 0x98(%r12), %r12
jmp 0x84ff
movq %r15, 0x18(%rsp)
movq 0x10(%rsp), %rcx
movq 0x90(%rcx), %rax
movq 0x98(%rcx), %r12
cmpq %rax, %r12
je 0x88de
movq 0x10(%rsp), %rcx
movq 0x88(%rcx), %r13
leaq 0x1(%rax), %rbp
movq %rbp, 0x90(%rcx)
testq %r13, %r13
je 0x88de
movzbl (%r13,%rax), %eax
leal -0x24(%rax), %ecx
cmpl $0x9, %ecx
ja 0x857b
leaq 0x1329(%rip), %rdx      # 0x9814
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x18(%rsp), %rax
movl $0x1, (%rax)
addq %rbp, %r13
movq %r12, %rsi
subq %rbp, %rsi
movq %r13, %rdi
callq 0x8b96
testq %rax, %rax
je 0x88de
movq %rax, %rbx
movq %rax, %r15
subq %r13, %r15
movq %r13, %rdi
callq 0x8a90
testq %rax, %rax
js 0x858b
movq %rax, %rdx
addq %r15, %rax
addq %rbp, %rax
addq $0x4, %rax
cmpq %r12, %rax
ja 0x88de
addq %rdx, %r15
addq $0x4, %r15
movq 0x10(%rsp), %r12
movq 0x220(%r12), %rcx
movl $0x1, %eax
testq %rcx, %rcx
je 0x85cf
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x85cf
addq $0x2, %rbx
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq *%rcx
jmp 0x85b6
cmpl $0x3a, %eax
jne 0x87dd
movl $0x3, %eax
jmp 0x85f4
addq $0x2, %r15
movq 0x10(%rsp), %r12
movq 0x220(%r12), %rcx
movl $0x4, %eax
testq %rcx, %rcx
je 0x85cf
movq 0x18(%rcx), %rcx
testq %rcx, %rcx
je 0x85cf
movq 0x18(%rsp), %rdi
callq *%rcx
testq %rax, %rax
je 0x87b5
movq 0x90(%r12), %rbp
movl 0x210(%r12), %r14d
addq %r15, %rbp
movq %rbp, 0x90(%r12)
testl %r14d, %r14d
jne 0x8684
jmp 0x867c
movl $0x6, %eax
jmp 0x85f4
movl $0x5, %eax
movq 0x18(%rsp), %r15
movl %eax, (%r15)
movq 0x10(%rsp), %r12
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
callq 0x8a2c
testq %rax, %rax
je 0x88de
movq %rax, %rsi
movslq (%r15), %rax
movq 0x220(%r12), %rcx
cmpq $0x3, %rax
jne 0x8651
movl $0x3, %eax
testq %rcx, %rcx
je 0x8671
movq 0x10(%rcx), %r14
testq %r14, %r14
je 0x8671
movq %rsi, %rdi
callq 0x8a90
movq %r15, %rdi
movq %rax, %rsi
callq *%r14
jmp 0x8668
testq %rcx, %rcx
je 0x8668
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x8668
movslq 0x30(%rsp), %rdx
movq %r15, %rdi
callq *%rcx
testq %rax, %rax
je 0x87b5
cmpl $0x0, 0x210(%r12)
jne 0x8684
movq %rax, 0x218(%r12)
movq %r12, %rdi
callq 0x8aed
movl 0x210(%r12), %r14d
testl %r14d, %r14d
jns 0x843b
jmp 0x88de
movq 0x18(%rsp), %r15
movl $0x2, (%r15)
movq 0x10(%rsp), %r12
cmpl $0x8, %r14d
je 0x87c9
movq %r15, %r14
movq %r12, %rdi
xorl %esi, %esi
callq 0x8a2c
testq %rax, %rax
je 0x88de
movq %rax, %rdi
callq 0x8a90
movq %rax, %r15
movq 0x10(%rsp), %r12
movl 0x210(%r12), %ebp
movq 0x220(%r12), %rax
cmpq $-0x1, %r15
je 0x8777
movl $0x2, %r13d
testq %rax, %rax
je 0x8721
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x8721
movq %r14, %rdi
movl %r15d, %esi
callq *%rax
movq %rax, %r13
testq %rax, %rax
je 0x87b5
testq %r15, %r15
jle 0x8798
movl %r15d, 0x4(%r14)
movq %r13, 0x10(%r14)
movslq 0x210(%r12), %rax
incq %rax
movl %eax, 0x210(%r12)
leaq (%rax,%rax,4), %rax
movq 0x20(%rsp), %rdx
movq $-0x1, (%rdx,%rax,8)
movl $0x0, 0x8(%rdx,%rax,8)
movq $0x0, 0x10(%rdx,%rax,8)
movq %r14, 0x18(%rdx,%rax,8)
movq 0x228(%r12), %rcx
movq %rcx, 0x20(%rdx,%rax,8)
jmp 0x87a0
movl $0x4, %r13d
testq %rax, %rax
je 0x8798
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x8798
movq %r14, %rdi
callq *%rax
movq %rax, %r13
testq %rax, %rax
je 0x87b5
movq %r12, %rdi
callq 0x8aed
testl %ebp, %ebp
jne 0x868c
movq %r13, 0x218(%r12)
jmp 0x868c
leaq 0xac6(%rip), %rdx       # 0x9282
movq %r12, %rdi
movl $0x5, %esi
jmp 0x88d9
leaq 0x11a8(%rip), %rdx      # 0x9978
movq %r12, %rdi
movl $0x4, %esi
jmp 0x88d9
movsbl %al, %r15d
movzbl %r15b, %ecx
leal -0x7(%rcx), %edx
cmpl $0x6, %edx
ja 0x8814
leaq 0x1048(%rip), %rcx      # 0x983c
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
movq 0x10(%rsp), %rbx
jmpq *%rdx
movb $0x0, 0xc(%rsp)
movl $0x22615c22, 0x8(%rsp)  # imm = 0x22615C22
jmp 0x88ae
cmpl $0x5c, %ecx
movq 0x10(%rsp), %rbx
je 0x8823
cmpl $0x22, %ecx
jne 0x882c
leaq 0x10c6(%rip), %rdx      # 0x98f0
jmp 0x889a
movsbq %al, %r14
callq 0x3520
movq (%rax), %rax
testb $0x40, 0x1(%rax,%r14,2)
jne 0x8893
movzbl %r14b, %ecx
leaq 0x10c9(%rip), %rdx      # 0x9914
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
jmp 0x88a7
movb $0x0, 0xc(%rsp)
movl $0x22625c22, 0x8(%rsp)  # imm = 0x22625C22
jmp 0x88ae
movb $0x0, 0xc(%rsp)
movl $0x22745c22, 0x8(%rsp)  # imm = 0x22745C22
jmp 0x88ae
movb $0x0, 0xc(%rsp)
movl $0x226e5c22, 0x8(%rsp)  # imm = 0x226E5C22
jmp 0x88ae
movb $0x0, 0xc(%rsp)
movl $0x22725c22, 0x8(%rsp)  # imm = 0x22725C22
jmp 0x88ae
leaq 0x1075(%rip), %rdx      # 0x990f
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3180
leaq 0x1011(%rip), %rdx      # 0x98c6
leaq 0x30(%rsp), %r15
leaq 0x8(%rsp), %rcx
movl $0x80, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3180
movq %rbx, %rdi
movl $0x4, %esi
movq %r15, %rdx
callq 0x8986
movq 0x10(%rsp), %rbx
cmpl $0x0, (%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x8955
movq 0x90(%rbx), %rsi
cmpq $0x400, %rsi            # imm = 0x400
jb 0x892b
movq 0x88(%rbx), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3220
movq $0x0, 0x90(%rbx)
movq 0x88(%rbx), %rax
movslq -0x8(%rax), %rax
movq %rax, 0x98(%rbx)
cmpl $-0x1, 0x210(%rbx)
jne 0x8953
movq 0x28(%rsp), %rcx
testq %rcx, %rcx
je 0x8948
movq 0x218(%rbx), %rax
movq %rax, (%rcx)
movq $0x0, 0x218(%rbx)
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xef4(%rip), %rdi       # 0x9862
leaq 0xef2(%rip), %rsi       # 0x9867
leaq 0xf2b(%rip), %rcx       # 0x98a7
movl $0x19b, %edx            # imm = 0x19B
callq 0x31b0