// File: /workspace/github_c_makefile_star2_O1/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 $0xa8, %rsp
testq %rsi, %rsi
je 0x85f2
movq $0x0, (%rsi)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, (%rdi)
jne 0x8a53
cmpq $0x0, 0x98(%rdi)
je 0x8a51
movq %rsi, 0x18(%rsp)
cmpl $-0x1, 0x210(%rdi)
jne 0x8653
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)
movq %rdi, (%rsp)
movl 0x210(%rdi), %eax
testl %eax, %eax
js 0x89dd
movq (%rsp), %rcx
addq $0xa8, %rcx
movq %rcx, 0x10(%rsp)
movl %eax, %ecx
leaq (%rcx,%rcx,4), %rcx
movq 0x10(%rsp), %rdx
leaq (%rdx,%rcx,8), %r12
cmpl $0x0, (%r12)
movq (%rsp), %r14
jns 0x870d
movq 0x90(%r14), %rdx
cmpq %rdx, 0x98(%r14)
jne 0x86a3
xorl %ecx, %ecx
jmp 0x86b7
movq 0x88(%r14), %rcx
addq %rdx, %rcx
incq %rdx
movq %rdx, 0x90(%r14)
testq %rcx, %rcx
je 0x89dd
movzbl (%rcx), %ecx
leal -0x24(%rcx), %edx
cmpl $0x9, %edx
ja 0x86e2
leaq 0x111a(%rip), %rsi      # 0x97ec
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl $0x1, %ecx
jmp 0x8705
cmpl $0x3a, %ecx
jne 0x8a89
movl $0x3, %ecx
jmp 0x8705
movl $0x6, %ecx
jmp 0x8705
movl $0x5, %ecx
jmp 0x8705
movl $0x2, %ecx
movq (%rsp), %r14
movl %ecx, (%r12)
movl (%r12), %ecx
decl %ecx
cmpl $0x5, %ecx
ja 0x8b86
leaq 0x10f1(%rip), %rdx      # 0x9814
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x8c4b
testq %rax, %rax
je 0x89dd
movq %rax, %rsi
movslq (%r12), %rax
cmpq $0x3, %rax
jne 0x877b
movq 0x220(%r14), %rcx
movl $0x3, %eax
testq %rcx, %rcx
je 0x8799
movq 0x10(%rcx), %rbx
testq %rbx, %rbx
je 0x8799
movq %rsi, %rdi
callq 0x8caf
movq %r12, %rdi
movq %rax, %rsi
callq *%rbx
jmp 0x8799
movq 0x220(%r14), %rcx
testq %rcx, %rcx
je 0x8799
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x8799
movslq 0x20(%rsp), %rdx
movq %r12, %rdi
callq *%rcx
testq %rax, %rax
je 0x89c9
cmpl $0x0, 0x210(%r14)
jne 0x87b3
movq %rax, 0x218(%r14)
movq %r14, %rdi
callq 0x8d0e
movl 0x210(%r14), %eax
testl %eax, %eax
jns 0x8675
jmp 0x89dd
cmpl $0x8, %eax
je 0x8a65
movq %r14, %rdi
xorl %esi, %esi
callq 0x8c4b
testq %rax, %rax
je 0x89dd
movq %rax, %rdi
callq 0x8caf
movq (%rsp), %r14
movl 0x210(%r14), %ebx
cmpq $-0x1, %rax
je 0x892a
movq %rax, %r15
movq 0x220(%r14), %rax
movl $0x2, %r13d
testq %rax, %rax
je 0x8831
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x8831
movq %r12, %rdi
movl %r15d, %esi
callq *%rax
movq %rax, %r13
testq %r13, %r13
je 0x89c9
testq %r15, %r15
jle 0x8952
movl %r15d, 0x4(%r12)
movq %r13, 0x10(%r12)
movslq 0x210(%r14), %rax
incq %rax
movl %eax, 0x210(%r14)
leaq (%rax,%rax,4), %rax
movq 0x10(%rsp), %rdx
movq $-0x1, (%rdx,%rax,8)
movl $0x0, 0x8(%rdx,%rax,8)
movq $0x0, 0x10(%rdx,%rax,8)
movq %r12, 0x18(%rdx,%rax,8)
movq 0x228(%r14), %rcx
movq %rcx, 0x20(%rdx,%rax,8)
jmp 0x895a
movq 0x90(%r14), %rbp
movq 0x98(%r14), %rbx
movq 0x88(%r14), %r13
addq %rbp, %r13
movq %rbx, %rsi
subq %rbp, %rsi
movq %r13, %rdi
callq 0x8db7
testq %rax, %rax
je 0x89dd
movq %rax, %r15
movq %rax, %r14
subq %r13, %r14
movq %r13, %rdi
callq 0x8caf
testq %rax, %rax
js 0x88ff
movq %rax, %rdx
leaq (%r14,%rax), %r13
addq $0x4, %r13
addq %rax, %r14
leaq (%r14,%rbp), %rax
addq $0x4, %rax
cmpq %rbx, %rax
jbe 0x896e
movb $0x1, %cl
xorl %eax, %eax
jmp 0x8999
addq $0x2, %r14
movq (%rsp), %rax
movq 0x220(%rax), %rcx
movl $0x4, %eax
testq %rcx, %rcx
je 0x8926
movq 0x18(%rcx), %rcx
testq %rcx, %rcx
je 0x8926
movq %r12, %rdi
callq *%rcx
xorl %ecx, %ecx
jmp 0x899c
movq 0x220(%r14), %rax
movl $0x4, %r13d
testq %rax, %rax
je 0x894d
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x894d
movq %r12, %rdi
callq *%rax
movq %rax, %r13
testq %r13, %r13
je 0x89c9
movq %r14, %rdi
callq 0x8d0e
testl %ebx, %ebx
jne 0x87bb
movq %r13, 0x218(%r14)
jmp 0x87bb
movq (%rsp), %rax
movq 0x220(%rax), %rcx
movl $0x1, %eax
testq %rcx, %rcx
je 0x8997
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x8997
addq $0x2, %r15
movq %r12, %rdi
movq %r15, %rsi
callq *%rcx
xorl %ecx, %ecx
movq %r13, %r14
testb %cl, %cl
jne 0x89dd
testq %rax, %rax
je 0x8a79
movq (%rsp), %rcx
addq %r14, 0x90(%rcx)
movq %rcx, %r14
cmpl $0x0, 0x210(%rcx)
jne 0x87b3
jmp 0x87ac
leaq 0x8b2(%rip), %rdx       # 0x9282
movq %r14, %rdi
movl $0x5, %esi
callq 0x8ba5
movq (%rsp), %rbx
cmpl $0x0, (%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x8a53
movq 0x90(%rbx), %rsi
cmpq $0x400, %rsi            # imm = 0x400
jb 0x8a29
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 0x8a51
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
je 0x8a46
movq 0x218(%rbx), %rax
movq %rax, (%rcx)
movq $0x0, 0x218(%rbx)
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xefc(%rip), %rdx       # 0x9968
movq %r14, %rdi
movl $0x4, %esi
jmp 0x89d8
leaq 0x802(%rip), %rdx       # 0x9282
movq (%rsp), %rdi
jmp 0x89d3
movsbl %cl, %r15d
movzbl %r15b, %eax
leal -0x7(%rax), %edx
cmpl $0x6, %edx
ja 0x8abf
leaq 0xd8c(%rip), %rax       # 0x982c
movslq (%rax,%rdx,4), %rdx
addq %rax, %rdx
movq (%rsp), %r14
jmpq *%rdx
movb $0x0, 0xc(%rsp)
movl $0x22615c22, 0x8(%rsp)  # imm = 0x22615C22
jmp 0x8b56
cmpl $0x5c, %eax
movq (%rsp), %r14
je 0x8acd
cmpl $0x22, %eax
jne 0x8ad6
leaq 0xe0c(%rip), %rdx       # 0x98e0
jmp 0x8b42
movsbq %cl, %rbx
callq 0x3520
movq (%rax), %rax
testb $0x40, 0x1(%rax,%rbx,2)
jne 0x8b3b
movzbl %bl, %ecx
leaq 0xe11(%rip), %rdx       # 0x9904
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
jmp 0x8b4f
movb $0x0, 0xc(%rsp)
movl $0x22625c22, 0x8(%rsp)  # imm = 0x22625C22
jmp 0x8b56
movb $0x0, 0xc(%rsp)
movl $0x22745c22, 0x8(%rsp)  # imm = 0x22745C22
jmp 0x8b56
movb $0x0, 0xc(%rsp)
movl $0x226e5c22, 0x8(%rsp)  # imm = 0x226E5C22
jmp 0x8b56
movb $0x0, 0xc(%rsp)
movl $0x22725c22, 0x8(%rsp)  # imm = 0x22725C22
jmp 0x8b56
leaq 0xdbd(%rip), %rdx       # 0x98ff
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3180
leaq 0xd59(%rip), %rdx       # 0x98b6
leaq 0x20(%rsp), %r15
leaq 0x8(%rsp), %rcx
movl $0x80, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3180
movq %r14, %rdi
movl $0x4, %esi
movq %r15, %rdx
jmp 0x89d8
leaq 0xcc5(%rip), %rdi       # 0x9852
leaq 0xcc3(%rip), %rsi       # 0x9857
leaq 0xcfc(%rip), %rcx       # 0x9897
movl $0x19b, %edx            # imm = 0x19B
callq 0x31b0