// File: /workspace/github_c_makefile_star2_O1/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_next
redis_response_status redis_response_reader_next(redis_response_reader *reader, redis_response **response) {
  *response = NULL;
  REDIS_RESPONSE_READER_CHECK_ERROR(reader);
  if (reader->len == 0) {
    return REDIS_RESPONSE_OK;
  }

  if (reader->task_idx == -1) {
    redis_response_reader_task_init(NULL, reader->tasks, -1);
    reader->task_idx = 0;
  }

  while (reader->task_idx >= 0) {
    if (redis_response_process_item(reader) != REDIS_RESPONSE_OK) {
      break;
    }
  }

  REDIS_RESPONSE_READER_CHECK_ERROR(reader);

  if (reader->pos >= 1024) {
    memmove(reader->buf, reader->buf + reader->pos, reader->len - reader->pos);
    reader->len -= reader->pos;
    reader->pos = 0;
  }

  if (reader->task_idx == -1) {
    *response = reader->response;
    reader->response = NULL;
  }
  return REDIS_RESPONSE_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq $0x0, (%rsi)
movl (%rdi), %eax
testl %eax, %eax
je 0x89eb
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
cmpq $0x0, 0xa8(%rdi)
je 0x902d
movq %rsi, 0x20(%rsp)
cmpl $-0x1, 0x1d8(%rbx)
jne 0x8a33
movq $-0x1, 0xb8(%rbx)
movl $0xffffffff, 0xc0(%rbx) # imm = 0xFFFFFFFF
movl $0x0, 0x1d8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xc8(%rbx)
movl %eax, 0x14(%rsp)
leaq 0xb8(%rbx), %r12
movq %rsp, %r14
leaq 0x2878(%rip), %r15      # 0xb2c0
movq %r12, 0x18(%rsp)
movslq 0x1d8(%rbx), %rax
testq %rax, %rax
js 0x8fa8
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r12,%rcx), %rbp
cmpl $0x0, (%r12,%rcx)
jns 0x8b1d
movq 0xa0(%rbx), %rdx
cmpq %rdx, 0xa8(%rbx)
jne 0x8a87
xorl %ecx, %ecx
jmp 0x8a9b
movq 0x90(%rbx), %rcx
addq %rdx, %rcx
incq %rdx
movq %rdx, 0xa0(%rbx)
testq %rcx, %rcx
je 0x8cc4
movzbl (%rcx), %ecx
leal -0x24(%rcx), %edx
cmpl $0x9, %edx
ja 0x8ac6
leaq 0x27e2(%rip), %rsi      # 0xb298
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl $0x1, %ecx
jmp 0x8b1a
cmpl $0x3a, %ecx
jne 0x8ad2
movl $0x3, %ecx
jmp 0x8b1a
movsbl %cl, %r15d
movzbl %r15b, %eax
leal -0x7(%rax), %edx
cmpl $0x6, %edx
ja 0x8dcb
leaq 0x27eb(%rip), %rsi      # 0xb2d8
movslq (%rsi,%rdx,4), %rax
addq %rsi, %rax
jmpq *%rax
movb $0x0, 0x4(%rsp)
movl $0x22615c22, (%rsp)     # imm = 0x22615C22
jmp 0x8f69
movl $0x5, %ecx
jmp 0x8b1a
movl $0x6, %ecx
jmp 0x8b1a
movl $0x2, %ecx
movl %ecx, (%rbp)
movl (%rbp), %ecx
decl %ecx
cmpl $0x5, %ecx
ja 0x9034
movslq (%r15,%rcx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0x9166
testq %rax, %rax
je 0x8cc4
cmpl $0x3, (%rbp)
jne 0x8c4b
movq %rax, %rdi
callq 0x91ca
movq %rax, %r15
movq 0x88(%rbx), %rdi
movl $0x20, %esi
callq 0x5290
testq %rax, %rax
je 0x8cdb
movl $0x3, (%rax)
movq 0x88(%rbx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x8cdd
movl 0x1dc(%rbx), %ecx
cmpl %ecx, %eax
jne 0x8c63
movl $0x40, %esi
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x2a6f(%rip), %rdx      # 0xb620
xorl %eax, %eax
callq 0x50e0
movq %rbx, %rdi
movl $0x2, %esi
movq %r15, %rdx
leaq 0x26f6(%rip), %r15      # 0xb2c0
jmp 0x8da3
movq %rbp, 0x8(%rsp)
movq 0xa0(%rbx), %r14
movq 0xa8(%rbx), %rsi
movq 0x90(%rbx), %r13
addq %r14, %r13
movq %rsi, 0x28(%rsp)
subq %r14, %rsi
movq %r13, %rdi
callq 0x93c5
movl $0x1, %ebp
testq %rax, %rax
je 0x8cce
movq %rax, %r12
movq %rax, %r15
subq %r13, %r15
movq %r13, %rdi
callq 0x91ca
testq %rax, %rax
js 0x8d3e
leaq (%r15,%rax), %r13
addq $0x4, %r13
addq %rax, %r15
leaq (%r14,%r15), %rcx
addq $0x4, %rcx
cmpq 0x28(%rsp), %rcx
jbe 0x8d56
movb $0x1, %cl
xorl %eax, %eax
jmp 0x8d6f
movslq 0x30(%rsp), %rcx
movq %rbx, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x9224
jmp 0x8d1a
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9166
testq %rax, %rax
je 0x8cc4
movq %rax, %rdi
callq 0x91ca
movq %rax, %r15
movl 0x1d8(%rbx), %eax
movl %eax, 0x8(%rsp)
cmpq $-0x1, %r15
je 0x8daf
movq 0x88(%rbx), %rdi
movl $0x20, %esi
callq 0x5290
testq %rax, %rax
je 0x8de9
movq %rax, %r13
movl $0x2, (%rax)
movq 0x88(%rbx), %rax
movq %rax, 0x8(%r13)
jmp 0x8dec
movl $0x1, %ebp
jmp 0x8fa0
movq 0x18(%rsp), %r12
movq %rsp, %r14
jmp 0x8fa0
xorl %eax, %eax
testq %rax, %rax
je 0x8d11
movq %r15, 0x10(%rax)
movq 0x18(%rbp), %rcx
testq %rcx, %rcx
je 0x8d13
movq 0x10(%rcx), %rcx
cmpl $0x2, (%rcx)
leaq 0x25c3(%rip), %r15      # 0xb2c0
jne 0x9053
movq 0x10(%rcx), %rcx
movslq 0x8(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
jmp 0x8d1a
xorl %eax, %eax
leaq 0x25a6(%rip), %r15      # 0xb2c0
testq %rax, %rax
je 0x8d94
cmpl $0x0, 0x1d8(%rbx)
jne 0x8d2f
movq %rax, 0x1e0(%rbx)
movq %rbx, %rdi
callq 0x932a
xorl %ebp, %ebp
jmp 0x8fa0
addq $0x2, %r15
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x9412
xorl %ecx, %ecx
movq %r15, %r13
jmp 0x8d6f
addq $0x2, %r12
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x9224
xorl %ecx, %ecx
movq %rsp, %r14
leaq 0x2547(%rip), %r15      # 0xb2c0
testb %cl, %cl
movq 0x18(%rsp), %r12
jne 0x8fa0
testq %rax, %rax
je 0x8d94
addq %r13, 0xa0(%rbx)
jmp 0x8d1f
movq %rbx, %rdi
movl $0x3, %esi
leaq 0x255d(%rip), %rdx      # 0xb300
callq 0x90ce
movl (%rbx), %ebp
jmp 0x8fa0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x9412
testq %rax, %rax
je 0x8f3c
movq %rax, %r13
jmp 0x8f1b
cmpl $0x5c, %eax
je 0x8dd5
cmpl $0x22, %eax
jne 0x8e52
movl $0x8, %esi
movq %r14, %rdi
leaq 0x25a0(%rip), %rdx      # 0xb384
jmp 0x8f5f
xorl %r13d, %r13d
testq %r13, %r13
je 0x8ed1
testl %r15d, %r15d
jle 0x8e20
movq 0x88(%rbx), %rdi
movl %r15d, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
shlq $0x3, %rsi
callq 0x5290
movq %rax, 0x10(%r13)
testq %rax, %rax
je 0x8ec9
movslq %r15d, %rax
movq %rax, 0x18(%r13)
movq 0x18(%rbp), %rax
testq %rax, %rax
je 0x8ed4
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x9072
movq 0x10(%rax), %rax
movslq 0x8(%rbp), %rcx
movq %r13, (%rax,%rcx,8)
jmp 0x8ed4
movsbq %cl, %r14
callq 0x5410
movq (%rax), %rax
testb $0x40, 0x1(%rax,%r14,2)
jne 0x8f4d
movzbl %r14b, %ecx
movl $0x8, %esi
movq %rsp, %r14
movq %r14, %rdi
leaq 0x2528(%rip), %rdx      # 0xb3a8
jmp 0x8f62
movb $0x0, 0x4(%rsp)
movl $0x22625c22, (%rsp)     # imm = 0x22625C22
jmp 0x8f69
movb $0x0, 0x4(%rsp)
movl $0x22745c22, (%rsp)     # imm = 0x22745C22
jmp 0x8f69
movb $0x0, 0x4(%rsp)
movl $0x226e5c22, (%rsp)     # imm = 0x226E5C22
jmp 0x8f69
movb $0x0, 0x4(%rsp)
movl $0x22725c22, (%rsp)     # imm = 0x22725C22
jmp 0x8f69
movq %r13, %rdi
callq 0x5250
xorl %r13d, %r13d
testq %r13, %r13
je 0x8f3c
testq %r15, %r15
jle 0x8f1b
movl %r15d, 0x4(%rbp)
movq %r13, 0x10(%rbp)
movslq 0x1d8(%rbx), %rax
incq %rax
movl %eax, 0x1d8(%rbx)
shlq $0x5, %rax
movq $-0x1, (%r12,%rax)
movl $0x0, 0x8(%r12,%rax)
movq $0x0, 0x10(%r12,%rax)
movq %rbp, 0x18(%r12,%rax)
jmp 0x8f23
movq %rbx, %rdi
callq 0x932a
leaq 0x2396(%rip), %r15      # 0xb2c0
xorl %ebp, %ebp
cmpl $0x0, 0x8(%rsp)
jne 0x8fa0
movq %r13, 0x1e0(%rbx)
jmp 0x8fa0
movq %rbx, %rdi
movl $0x3, %esi
leaq 0x23b5(%rip), %rdx      # 0xb300
jmp 0x8f92
movl $0x8, %esi
movq %rsp, %r14
movq %r14, %rdi
leaq 0x2444(%rip), %rdx      # 0xb3a3
movl %r15d, %ecx
xorl %eax, %eax
callq 0x50e0
movl $0x80, %esi
leaq 0x30(%rsp), %r15
movq %r15, %rdi
leaq 0x23da(%rip), %rdx      # 0xb357
movq %r14, %rcx
xorl %eax, %eax
callq 0x50e0
movq %rbx, %rdi
movl $0x2, %esi
movq %r15, %rdx
callq 0x90ce
movl (%rbx), %ebp
leaq 0x2320(%rip), %r15      # 0xb2c0
testl %ebp, %ebp
je 0x8a4d
movl (%rbx), %eax
testl %eax, %eax
movl 0x14(%rsp), %ecx
cmovnel %eax, %ecx
movl %ecx, %eax
jne 0x89d9
movq 0xa0(%rbx), %rax
cmpq $0x400, %rax            # imm = 0x400
jb 0x8ffd
movq 0x90(%rbx), %rdi
movq 0xa8(%rbx), %rdx
leaq (%rdi,%rax), %rsi
subq %rax, %rdx
callq 0x52d0
movq 0xa0(%rbx), %rax
subq %rax, 0xa8(%rbx)
movq $0x0, 0xa0(%rbx)
xorl %eax, %eax
cmpl $-0x1, 0x1d8(%rbx)
jne 0x89d9
movq 0x1e0(%rbx), %rax
movq 0x20(%rsp), %rcx
movq %rax, (%rcx)
xorl %eax, %eax
movq $0x0, 0x1e0(%rbx)
jmp 0x89d9
xorl %eax, %eax
jmp 0x89d9
leaq 0x1e47(%rip), %rdi      # 0xae82
leaq 0x22cc(%rip), %rsi      # 0xb30e
leaq 0x22d1(%rip), %rcx      # 0xb31a
movl $0x251, %edx            # imm = 0x251
callq 0x50f0
leaq 0x2357(%rip), %rdi      # 0xb3b1
leaq 0x22ad(%rip), %rsi      # 0xb30e
leaq 0x236e(%rip), %rcx      # 0xb3d6
movl $0xcb, %edx
callq 0x50f0
leaq 0x2338(%rip), %rdi      # 0xb3b1
leaq 0x228e(%rip), %rsi      # 0xb30e
leaq 0x25d6(%rip), %rcx      # 0xb65d
movl $0xbc, %edx
callq 0x50f0