// File: /workspace/github_c_makefile_star2_O2/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 0x7826
andq $0x0, (%rsi)
pushq $-0x1
popq %rax
cmpl $0x0, (%rdi)
je 0x7840
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x98(%rdi)
je 0x7c17
movq %rsi, 0x28(%rsp)
movl 0x210(%rdi), %r14d
cmpl $-0x1, %r14d
jne 0x7891
orq $-0x1, 0xa8(%rdi)
orl $-0x1, 0xb0(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rdi)
movq 0x228(%rdi), %rax
movq %rax, 0xc8(%rdi)
andl $0x0, 0x210(%rdi)
xorl %r14d, %r14d
movq %rdi, 0x10(%rsp)
leaq 0xa8(%rdi), %rax
movq %rax, 0x20(%rsp)
testl %r14d, %r14d
js 0x7d38
movl %r14d, %eax
imulq $0x28, %rax, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r15
movl (%rcx,%rax), %eax
testl %eax, %eax
js 0x7901
decl %eax
cmpl $0x5, %eax
movq 0x10(%rsp), %r12
ja 0x7db2
leaq 0x1f1b(%rip), %rcx      # 0x97f4
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 0x7972
movq %r15, 0x18(%rsp)
movq 0x10(%rsp), %rcx
movq 0x90(%rcx), %rax
movq 0x98(%rcx), %r12
cmpq %rax, %r12
je 0x7d38
movq 0x10(%rsp), %rcx
movq 0x88(%rcx), %r13
leaq 0x1(%rax), %rbp
movq %rbp, 0x90(%rcx)
testq %r13, %r13
je 0x7d38
movzbl (%r13,%rax), %eax
leal -0x24(%rax), %ecx
cmpl $0x9, %ecx
ja 0x79f2
leaq 0x1eb1(%rip), %rsi      # 0x980c
movslq (%rsi,%rcx,4), %rdx
addq %rsi, %rdx
pushq $0x6
popq %rcx
jmpq *%rdx
movq 0x18(%rsp), %rax
movl $0x1, (%rax)
addq %rbp, %r13
movq %r12, %rsi
subq %rbp, %rsi
movq %r13, %rdi
callq 0x7fbd
testq %rax, %rax
je 0x7d38
movq %rax, %rbx
movq %rax, %r15
subq %r13, %r15
movq %r13, %rdi
callq 0x7ed0
testq %rax, %rax
js 0x79ff
leaq (%r15,%rax), %rcx
addq %rbp, %rcx
addq $0x4, %rcx
cmpq %r12, %rcx
ja 0x7d38
addq %rax, %r15
addq $0x4, %r15
movq 0x10(%rsp), %r12
movq 0x220(%r12), %rcx
testq %rcx, %rcx
je 0x7bbb
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x7bbb
addq $0x2, %rbx
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *%rcx
jmp 0x7a2d
cmpl $0x3a, %eax
jne 0x7c3d
pushq $0x3
jmp 0x7a4d
addq $0x2, %r15
movq 0x10(%rsp), %r12
movq 0x220(%r12), %rax
testq %rax, %rax
je 0x7bfb
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x7bfb
movq 0x18(%rsp), %rdi
callq *%rax
testq %rax, %rax
je 0x7c1e
movq 0x90(%r12), %rbp
movl 0x210(%r12), %r14d
jmp 0x7bfe
pushq $0x5
popq %rcx
movq 0x18(%rsp), %r15
movl %ecx, (%r15)
movq 0x10(%rsp), %r12
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
callq 0x7e6c
testq %rax, %rax
je 0x7d38
movq %rax, %rsi
movslq (%r15), %rax
movq 0x220(%r12), %rcx
cmpq $0x3, %rax
jne 0x7aa9
pushq $0x3
popq %rax
testq %rcx, %rcx
je 0x7ac9
movq 0x10(%rcx), %r14
testq %r14, %r14
je 0x7ac9
movq %rsi, %rdi
callq 0x7ed0
movq %r15, %rdi
movq %rax, %rsi
callq *%r14
jmp 0x7ac0
testq %rcx, %rcx
je 0x7ac0
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x7ac0
movslq 0x30(%rsp), %rdx
movq %r15, %rdi
callq *%rcx
testq %rax, %rax
je 0x7c1e
cmpl $0x0, 0x210(%r12)
jne 0x7adc
movq %rax, 0x218(%r12)
movq %r12, %rdi
callq 0x7f1d
movl 0x210(%r12), %r14d
jmp 0x78a2
movq 0x18(%rsp), %r15
movl $0x2, (%r15)
movq 0x10(%rsp), %r12
cmpl $0x8, %r14d
je 0x7c2b
movq %r15, %r14
movq %r12, %rdi
xorl %esi, %esi
callq 0x7e6c
testq %rax, %rax
je 0x7d38
movq %rax, %rdi
callq 0x7ed0
movq %rax, %r15
movq 0x10(%rsp), %r12
movl 0x210(%r12), %ebp
movq 0x220(%r12), %rax
cmpq $-0x1, %r15
je 0x7bbf
pushq $0x2
popq %r13
testq %rax, %rax
je 0x7b6e
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x7b6e
movq %r14, %rdi
movl %r15d, %esi
callq *%rax
movq %rax, %r13
testq %rax, %rax
je 0x7c1e
testq %r15, %r15
jle 0x7bde
movl %r15d, 0x4(%r14)
movq %r13, 0x10(%r14)
movslq 0x210(%r12), %rax
incq %rax
movl %eax, 0x210(%r12)
imulq $0x28, %rax, %rax
movq 0x20(%rsp), %rdx
orq $-0x1, (%rdx,%rax)
andl $0x0, 0x8(%rdx,%rax)
andq $0x0, 0x10(%rdx,%rax)
movq %r14, 0x18(%rdx,%rax)
movq 0x228(%r12), %rcx
movq %rcx, 0x20(%rdx,%rax)
jmp 0x7be6
pushq $0x1
jmp 0x7bfd
pushq $0x4
popq %r13
testq %rax, %rax
je 0x7bde
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x7bde
movq %r14, %rdi
callq *%rax
movq %rax, %r13
testq %rax, %rax
je 0x7c1e
movq %r12, %rdi
callq 0x7f1d
testl %ebp, %ebp
jne 0x7ae4
movq %r13, 0x218(%r12)
jmp 0x7ae4
pushq $0x4
popq %rax
addq %r15, %rbp
movq %rbp, 0x90(%r12)
testl %r14d, %r14d
jne 0x7adc
jmp 0x7ad4
xorl %eax, %eax
jmp 0x782e
movq %r12, %rdi
callq 0x77fd
jmp 0x7d38
leaq 0x1d3e(%rip), %rdx      # 0x9970
pushq $0x4
popq %rsi
movq %r12, %rdi
jmp 0x7d33
movsbl %al, %r15d
movzbl %r15b, %ecx
leal -0x7(%rcx), %edx
cmpl $0x6, %edx
ja 0x7c74
leaq 0x1be0(%rip), %rcx      # 0x9834
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 0x7d0a
cmpl $0x5c, %ecx
movq 0x10(%rsp), %rbx
je 0x7c83
cmpl $0x22, %ecx
jne 0x7c8c
leaq 0x1c5e(%rip), %rdx      # 0x98e8
jmp 0x7cf8
movsbq %al, %r14
callq 0x3540
movq (%rax), %rax
testb $0x40, 0x1(%rax,%r14,2)
jne 0x7cf1
movzbl %r14b, %ecx
leaq 0x1c61(%rip), %rdx      # 0x990c
leaq 0x8(%rsp), %rdi
pushq $0x8
popq %rsi
jmp 0x7d03
movb $0x0, 0xc(%rsp)
movl $0x22625c22, 0x8(%rsp)  # imm = 0x22625C22
jmp 0x7d0a
movb $0x0, 0xc(%rsp)
movl $0x22745c22, 0x8(%rsp)  # imm = 0x22745C22
jmp 0x7d0a
movb $0x0, 0xc(%rsp)
movl $0x226e5c22, 0x8(%rsp)  # imm = 0x226E5C22
jmp 0x7d0a
movb $0x0, 0xc(%rsp)
movl $0x22725c22, 0x8(%rsp)  # imm = 0x22725C22
jmp 0x7d0a
leaq 0x1c0f(%rip), %rdx      # 0x9907
leaq 0x8(%rsp), %rdi
pushq $0x8
popq %rsi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3190
leaq 0x1bad(%rip), %rdx      # 0x98be
leaq 0x30(%rsp), %r15
leaq 0x8(%rsp), %rcx
movl $0x80, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3190
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x7dd1
movq 0x10(%rsp), %rbx
cmpl $0x0, (%rbx)
pushq $-0x1
popq %rax
jne 0x782e
movq 0x90(%rbx), %rsi
cmpq $0x400, %rsi            # imm = 0x400
jb 0x7d82
movq 0x88(%rbx), %rdi
pushq $-0x1
popq %rdx
callq 0x3230
andq $0x0, 0x90(%rbx)
movq 0x88(%rbx), %rax
movslq -0x8(%rax), %rax
movq %rax, 0x98(%rbx)
xorl %eax, %eax
cmpl $-0x1, 0x210(%rbx)
jne 0x782e
movq 0x28(%rsp), %rcx
testq %rcx, %rcx
je 0x7da5
movq 0x218(%rbx), %rdx
movq %rdx, (%rcx)
andq $0x0, 0x218(%rbx)
jmp 0x782e
leaq 0x1aa1(%rip), %rdi      # 0x985a
leaq 0x1a9f(%rip), %rsi      # 0x985f
leaq 0x1ad8(%rip), %rcx      # 0x989f
movl $0x19b, %edx            # imm = 0x19B
callq 0x31c0