LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm.c
// Function: rpm_worker_suicide
static void rpm_worker_suicide(RedisModuleCtx *ctx, worker_process *worker) {
  int32_t idx;
  for (idx = 0; idx < worker->num_upstreams; ++idx) {
    rpm_worker_close_pipe(ctx, worker->upstreams + idx);
  }
  for (idx = 0; idx < worker->num_downstreams; ++idx) {
    if (worker->downstreams[idx] != 0) {
      close(worker->downstreams[idx]);
      worker->downstreams[idx] = 0;
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movslq 0x88(%rbx), %rax
cmpq %rax, %r12
jge 0x73da
movq 0x90(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x7417
incq %r12
addq $0x38, %r15
jmp 0x73b3
xorl %r14d, %r14d
movslq 0x78(%rbx), %rax
cmpq %rax, %r14
jge 0x740b
movq 0x80(%rbx), %rax
movl (%rax,%r14,4), %edi
testl %edi, %edi
je 0x7406
callq 0x5140
movq 0x80(%rbx), %rax
andl $0x0, (%rax,%r14,4)
incq %r14
jmp 0x73dd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm.c
// Function: rpm_worker_close_pipe
static void rpm_worker_close_pipe(RedisModuleCtx *ctx, worker_pipe *pipe)
{
  if (pipe->pipe[0]) {
    RedisModule_DeleteFileEvent(ctx, pipe->pipe[0], REDISMODULE_READ | (pipe->write_buffer != NULL ? REDISMODULE_WRITE : 0));
    if (pipe->read_buffer != NULL) {
      chained_buffer_destroy(&pipe->read_buffer, pipe->num_buffers);
    }
    if (pipe->pipe[0] != 0) {
      close(pipe->pipe[0]);
      pipe->pipe[0] = 0;
    }
    if (pipe->pipe[1] != 0) {
      close(pipe->pipe[1]);
      pipe->pipe[1] = 0;
    }
  }
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl 0x24(%rsi), %esi
testl %esi, %esi
je 0x7470
movq 0x67e7(%rip), %rax      # 0xdc10
xorl %ecx, %ecx
cmpq $0x0, 0x10(%rbx)
setne %cl
leal 0x1(,%rcx,2), %edx
callq *(%rax)
cmpq $0x0, 0x8(%rbx)
je 0x7450
leaq 0x8(%rbx), %rdi
movslq 0x20(%rbx), %rsi
callq 0x50e0
movl 0x24(%rbx), %edi
testl %edi, %edi
je 0x7460
callq 0x5140
andl $0x0, 0x24(%rbx)
movl 0x28(%rbx), %edi
testl %edi, %edi
je 0x7470
callq 0x5140
andl $0x0, 0x28(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_allocator.c
// Function: chained_buffer_allocator_calloc
void *chained_buffer_allocator_calloc(void *impl, size_t size) {
  chained_buffer_allocator *allocator = impl;
  void *result = chained_buffer_allocate(chained_buffer_check(&allocator->head, &allocator->current,
      &allocator->next, &allocator->buffer_num, size, allocator->chunk_size), size);
  memset(result, 0, size);
  return result;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
leaq 0x8(%rdi), %rsi
leaq 0x10(%rdi), %rdx
leaq 0x18(%rdi), %rcx
movl 0x1c(%rdi), %r9d
movq %rbx, %r8
callq 0x5370
movq %rax, %rdi
movq %rbx, %rsi
callq 0x53c0
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x5110
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_allocator.c
// Function: chained_buffer_allocator_realloc
void *chained_buffer_allocator_realloc(void *impl, void *ptr, size_t size) {
  chained_buffer_allocator *allocator = impl;
  void *result = chained_buffer_allocate(chained_buffer_check(&allocator->head, &allocator->current,
      &allocator->next, &allocator->buffer_num, size, allocator->chunk_size), size);
  memcpy(result, ptr, size);
  return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x8(%rdi), %rsi
leaq 0x10(%rdi), %rdx
leaq 0x18(%rdi), %rcx
movl 0x1c(%rdi), %r9d
movq %rbx, %r8
callq 0x5370
movq %rax, %rdi
movq %rbx, %rsi
callq 0x53c0
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5220
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_allocator.c
// Function: allocator_create
allocator *allocator_create(void *(*amalloc)(void *, size_t), void *(*acalloc)(void *, size_t), 
    void *(*arealloc)(void *, void *, size_t), void (*afree)(void *, void *), 
    void (*adestroy)(void *), void *privdata) {
  allocator *allocator = calloc(1, sizeof(struct allocator));
  allocator->malloc = amalloc;
  allocator->calloc = acalloc;
  allocator->realloc = arealloc;
  allocator->free = afree;
  allocator->destroy = adestroy;
  allocator->impl = privdata;
  return allocator;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x51b0
movq %rbp, (%rax)
movq %r13, 0x10(%rax)
movq %r12, 0x8(%rax)
movq %r15, 0x18(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_allocator.c
// Function: chained_buffer_allocator_create
allocator *chained_buffer_allocator_create(int32_t chunk_size) {
  chained_buffer_allocator *allocator;
  chained_buffer *head = NULL;
  if (chunk_size < MIN_CHUNK_SIZE) {
    chunk_size = MIN_CHUNK_SIZE;
  }
  head = chained_buffer_create(libc_allocator, chunk_size + sizeof(chained_buffer_allocator));
  allocator = chained_buffer_allocate(head, sizeof(chained_buffer_allocator));
  allocator->head = head;
  allocator->current = head;
  allocator->next = &head->next;
  allocator->buffer_num = 1;
  allocator->chunk_size = chunk_size;
  return allocator_create(chained_buffer_allocator_malloc, chained_buffer_allocator_calloc,
    chained_buffer_allocator_realloc, chained_buffer_allocator_free, chained_buffer_allocator_destroy, allocator);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x401, %edi            # imm = 0x401
movl $0x400, %r14d           # imm = 0x400
cmovgel %edi, %r14d
movq 0x66a5(%rip), %rax      # 0xded8
movq (%rax), %rdi
leal 0x20(%r14), %esi
callq 0x5380
movq %rax, %rbx
pushq $0x20
popq %rsi
movq %rax, %rdi
callq 0x53c0
movq %rbx, (%rax)
movq %rbx, 0x8(%rax)
movq %rbx, 0x10(%rax)
movl $0x1, 0x18(%rax)
movl %r14d, 0x1c(%rax)
movq 0x6656(%rip), %rdi      # 0xdec0
movq 0x659f(%rip), %rsi      # 0xde10
movq 0x6590(%rip), %rdx      # 0xde08
movq 0x66c9(%rip), %rcx      # 0xdf48
movq 0x672a(%rip), %r8       # 0xdfb0
movq %rax, %r9
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x51c0
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_chained_buffer.c
// Function: chained_buffer_destroy
void chained_buffer_destroy(chained_buffer **buffer_address, size_t limit) {
  chained_buffer *next;
  chained_buffer *buffer = *buffer_address;
  while (buffer && limit > 0) {
    next = buffer->next;
    allocator_free(buffer->allocator, buffer);
    buffer = next;
    --limit;
  }
  *buffer_address = buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rsi
addq $-0x1, %r14
setb %al
testq %rsi, %rsi
je 0x78fd
testb %al, %al
je 0x78fd
movq (%rsi), %r15
movq 0x18(%rsi), %rdi
callq 0x5040
movq %r15, %rsi
jmp 0x78dc
movq %rsi, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_chained_buffer.c
// Function: chained_buffer_create
chained_buffer *chained_buffer_create(allocator *allocator, int32_t size)
{
  int32_t allocation_size = CHAINED_BUFFER_SIZE(size);
  int32_t capacity = allocation_size - OFFSET_OF(chained_buffer, buffer);
  chained_buffer *new_buffer = allocator_malloc(allocator, allocation_size);
  memset(new_buffer, 0, OFFSET_OF(chained_buffer, buffer));
  new_buffer->capacity = capacity;
  new_buffer->offset = 0;
  new_buffer->allocator = allocator != NULL ? allocator : libc_allocator;
  return new_buffer;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addl $0x27, %esi
andl $-0x8, %esi
movslq %esi, %rsi
leal -0x20(%rsi), %ebp
callq 0x52d0
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movl %ebp, 0x10(%rax)
testq %rbx, %rbx
jne 0x7939
movq 0x65a2(%rip), %rcx      # 0xded8
movq (%rcx), %rbx
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_chained_buffer.c
// Function: chained_buffer_chain
void chained_buffer_chain(chained_buffer **head, chained_buffer **current,
    chained_buffer ***next_address, int32_t *num_buffers, chained_buffer *next) {
  *current = next;
  if (!*head) {
    *head = *current;
  }
  (*num_buffers)++;
  **next_address = next;
  *next_address = &next->next;
}

// Assembly:
movq %r8, (%rsi)
cmpq $0x0, (%rdi)
jne 0x7950
movq %r8, (%rdi)
incl (%rcx)
movq (%rdx), %rax
movq %r8, (%rax)
movq %r8, (%rdx)
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_chained_buffer.c
// Function: chained_buffer_check
chained_buffer *chained_buffer_check(chained_buffer **head, chained_buffer **current,
    chained_buffer ***next_address, int32_t *num_buffers, size_t required, int32_t chunk_size) {
  chained_buffer *current_buffer = *current;
  allocator *allocator = libc_allocator;
  if (!current_buffer || chained_buffer_available(current_buffer) < (int32_t)(required)) {
    if ((int32_t) required < chunk_size) {
      required = chunk_size;
    }
    if (current_buffer != NULL) {
      allocator = current_buffer->allocator;
    }
    chained_buffer_chain(head, current, next_address, num_buffers, current_buffer = chained_buffer_create(allocator, required));
  }
  return current_buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq (%rsi), %rax
testq %rax, %rax
je 0x7996
movl 0x10(%rax), %ecx
subl 0xc(%rax), %ecx
cmpl %r8d, %ecx
jge 0x79c8
cmpl %r9d, %r8d
movl %r9d, %ecx
cmovlq %rcx, %r8
addq $0x18, %rax
movq %r8, %rsi
jmp 0x79a7
cmpl %r9d, %r8d
movl %r9d, %esi
cmovgeq %r8, %rsi
movq 0x6531(%rip), %rax      # 0xded8
movq (%rax), %rdi
callq 0x5380
movq %rax, (%r12)
cmpq $0x0, (%r15)
jne 0x79bc
movq %rax, (%r15)
incl (%r14)
movq (%rbx), %rcx
movq %rax, (%rcx)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_create
hash_map *hash_map_create(const hash_map_type *type, size_t initial_size)
{
  hash_map *hm;
  allocator *allocator = NULL;

  if (type == NULL) {
    type = &hash_map_type_default;
  }
  allocator = type->allocator ? type->allocator : libc_allocator;

  hm = allocator_calloc(allocator, sizeof(hash_map));

  if (initial_size <= DEFAULT_HASH_MAP_INITIAL_SIZE) {
    initial_size = DEFAULT_HASH_MAP_INITIAL_SIZE;
  }

  hash_table_reset(&hm->tables[0]);
  hash_table_reset(&hm->tables[1]);

  memcpy(&hm->type, type, sizeof(hash_map_type));
  hm->type.allocator = allocator;
  if (type->algorithm == NULL) {
    hm->type.algorithm = rs_hash;
  }
  hm->initial_size = initial_size;
  hm->rehash_index = -1;
  hm->iterators = 0;

  return hm;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
leaq 0x5fd2(%rip), %r15      # 0xd9e0
cmovneq %rdi, %r15
movq 0x30(%r15), %r14
testq %r14, %r14
jne 0x7a25
movq 0x64b6(%rip), %rax      # 0xded8
movq (%rax), %r14
movl $0x98, %esi
movq %r14, %rdi
callq 0x52a0
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x58(%rax)
movups %xmm0, 0x68(%rax)
movups %xmm0, 0x78(%rax)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
movups %xmm2, 0x20(%rax)
movq %r14, 0x30(%rax)
cmpq $0x0, (%r15)
jne 0x7a72
movq 0x6429(%rip), %rcx      # 0xde98
movq %rcx, (%rax)
cmpq $0x10, %rbx
pushq $0xf
popq %rcx
cmovaeq %rbx, %rcx
movq %rcx, 0x40(%rax)
orq $-0x1, 0x88(%rax)
andq $0x0, 0x90(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_clear
int32_t hash_map_clear(hash_map *map)
{
  hash_table_clear(map, &map->tables[0]);
  hash_table_clear(map, &map->tables[1]);
  map->rehash_index = -1;
  map->iterators = 0;
  return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x48(%rdi), %rsi
callq 0x8124
leaq 0x68(%rbx), %rsi
movq %rbx, %rdi
callq 0x8124
orq $-0x1, 0x88(%rbx)
andq $0x0, 0x90(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_rehash_step
static void hash_map_rehash_step(hash_map *map, size_t steps)
{
  hash_map_entry *entry, *next_entry;
  hash_table *curr, *next;
  int64_t rehash_index;
  size_t size_mask, hash, curr_used, next_used;

  /* we can't rehash at this time as there is an open iterator */
  if (map->iterators != 0) {
    return;
  }
  if (!HASH_MAP_IS_REHASHING(map)) {
    return;
  }

  curr = &map->tables[0];
  next = &map->tables[1];
  rehash_index = map->rehash_index;
  size_mask = next->size_mask;
  curr_used = curr->used;
  next_used = next->used;

  while (steps--) {
    if (curr_used == 0) {
      /* we are done */
      HASH_MAP_FREE(map, curr->buckets);
      curr->used = curr_used;
      next->used = next_used;
      *curr = *next;
      hash_table_reset(next);
      map->rehash_index = -1;
      return;
    }

    /* rehash index can't overflow */
    while (curr->buckets[rehash_index] == NULL) {
      ++rehash_index;
    }

    entry = curr->buckets[rehash_index];
    while (entry) {
      next_entry = entry->next;
      hash = HASH_MAP_HASH_CODE(map, entry->key, entry->ksize);
      hash = hash & size_mask;
      entry->next = next->buckets[hash];
      next->buckets[hash] = entry;
      curr_used--;
      next_used++;
      entry = next_entry;
    }
    curr->buckets[rehash_index] = NULL;
    rehash_index++;
  }
  curr->used = curr_used;
  next->used = next_used;
  map->rehash_index = rehash_index;
}

// Assembly:
cmpq $0x0, 0x90(%rdi)
je 0x7ceb
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x88(%rdi), %r15
cmpq $-0x1, %r15
je 0x7ded
leaq 0x48(%rbx), %r14
leaq 0x68(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rbx), %rbp
movq 0x78(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0x80(%rbx), %r13
pushq $0x1
popq %rax
movq %r14, 0x10(%rsp)
subq $0x1, %rax
jb 0x7da2
testq %rbp, %rbp
je 0x7daf
movq %rax, 0x18(%rsp)
movq (%r14), %rax
movq (%rax,%r15,8), %r12
incq %r15
testq %r12, %r12
je 0x7d49
jmp 0x7d88
movq 0x20(%r12), %r14
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq *(%rbx)
andl 0x20(%rsp), %eax
movq 0x68(%rbx), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, 0x20(%r12)
movq %r12, (%rcx,%rax,8)
decq %rbp
incq %r13
movq %r14, %r12
testq %r12, %r12
jne 0x7d57
movq 0x10(%rsp), %r14
movq (%r14), %rax
andq $0x0, -0x8(%rax,%r15,8)
movq 0x18(%rsp), %rax
jmp 0x7d36
movq %rbp, 0x60(%rbx)
movq %r13, 0x80(%rbx)
jmp 0x7de6
movq 0x30(%rbx), %rdi
movq 0x48(%rbx), %rsi
callq 0x5040
movq %r13, 0x80(%rbx)
movq 0x8(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
pushq $-0x1
popq %r15
movq %r15, 0x88(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_set
int32_t hash_map_set(hash_map *map, const void *key, size_t ksiz, const void *val, size_t vsiz)
{
  hash_map_entry *entry, saved_entry;
  if (hash_map_set_if_absent(map, key, ksiz, val, vsiz) == 0) {
    return 0;
  }

  entry = hash_map_find_entry(map, key, ksiz);
  saved_entry = *entry;
  HASH_MAP_ENTRY_SET_VALUE(map, entry, val, vsiz);
  HASH_MAP_ENTRY_FREE_VALUE(map, &saved_entry);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
callq 0x5270
testb %al, %al
je 0x7e6b
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x7e7c
movq %rax, %rbp
movq 0x10(%rax), %r12
movq 0x18(%rax), %r13
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x7e4f
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *%rax
movq %rax, %r15
movq %r15, 0x10(%rbp)
movq %r14, 0x18(%rbp)
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x7e6b
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_find_entry
static hash_map_entry *hash_map_find_entry(hash_map *map, const void *key, size_t ksiz)
{
  hash_map_entry *entry;
  size_t hash, idx, table;
  hash_table *hash_table;
  if (map->tables[0].size == 0) {
    /* don't have any data at all */
    return NULL;
  }
  hash = HASH_MAP_HASH_CODE(map, key, ksiz);
  if (HASH_MAP_IS_REHASHING(map)) {
    hash_map_rehash_step(map, 1);
  }

  for (table = 0; table <= 1; ++table) {
    hash_table = &map->tables[table];
    idx = hash & hash_table->size_mask;
    /* Search if this slot does not already contain the given key */
    entry = hash_table->buckets[idx];
    while (entry) {
      if (HASH_MAP_COMPARE_KEYS(map, key, ksiz, entry->key, entry->ksize)) {
        return entry;
      }
      entry = entry->next;
    }
    if (!HASH_MAP_IS_REHASHING(map)) {
      return NULL;
    }
  }
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x50(%rdi)
je 0x7f1f
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq *(%rdi)
movl %eax, %eax
movq %rax, (%rsp)
cmpq $-0x1, 0x88(%r15)
je 0x7eb5
movq %r15, %rdi
callq 0x7ce0
leaq 0x48(%r15), %rbp
xorl %r13d, %r13d
cmpq $0x2, %r13
je 0x7f1f
movq %r13, %rax
shlq $0x5, %rax
movl 0x10(%rbp,%rax), %r12d
andl (%rsp), %r12d
shlq $0x3, %r12
addq (%rbp,%rax), %r12
movq (%r12), %r12
testq %r12, %r12
je 0x7f12
movq 0x18(%r15), %rax
movq (%r12), %rcx
testq %rax, %rax
je 0x7f07
movq 0x8(%r12), %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *%rax
testl %eax, %eax
jne 0x7f0c
jmp 0x7f22
cmpq %r14, %rcx
je 0x7f22
addq $0x20, %r12
jmp 0x7edb
incq %r13
cmpq $-0x1, 0x88(%r15)
jne 0x7ebc
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_remove_internal
static int32_t
hash_map_remove_internal(hash_map *map, const void *key, size_t ksiz, uint8_t call_free)
{
  size_t hash, index, table;
  hash_map_entry *entry, *prev;
  hash_table *hash_table;

  if (map->tables[0].size == 0) {
    return -1;
  }
  if (HASH_MAP_IS_REHASHING(map)) {
    hash_map_rehash_step(map, 1);
  }

  hash = HASH_MAP_HASH_CODE(map, key, ksiz);
  for (table = 0; table <= 1; ++table) {
    hash_table = &map->tables[table];
    index = hash & hash_table->size_mask;
    entry = hash_table->buckets[index];
    prev = NULL;
    while (entry) {
      if (HASH_MAP_COMPARE_KEYS(map, entry->key, entry->ksize, key, ksiz)) {
        if (prev) {
          prev->next = entry->next;
        } else {
          hash_table->buckets[index] = entry->next;
        }

        if (call_free) {
          HASH_MAP_ENTRY_FREE_KEY(map, entry);
          HASH_MAP_ENTRY_FREE_VALUE(map, entry);
        }
        HASH_MAP_FREE(map, entry);
        hash_table->used--;
        return 0;
      }
      prev = entry;
      entry = entry->next;
    }
    if (!HASH_MAP_IS_REHASHING(map)) {
      break;
    }
  }

  return -1;
}

// Assembly:
pushq $-0x1
popq %rax
cmpq $0x0, 0x50(%rdi)
je 0x8096
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl %ecx, 0x4(%rsp)
cmpq $-0x1, 0x88(%rdi)
je 0x7f74
movq %rbx, %rdi
callq 0x7ce0
leaq 0x48(%rbx), %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *(%rbx)
movl %eax, %edx
xorl %eax, %eax
movq %r13, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpq $0x2, %rax
je 0x801b
movq %rax, 0x20(%rsp)
shlq $0x5, %rax
leaq (%rax,%r13), %rcx
movq %rcx, 0x8(%rsp)
movl 0x10(%r13,%rax), %r14d
andl %edx, %r14d
shlq $0x3, %r14
movq (%r13,%rax), %rax
addq %r14, %rax
xorl %ebp, %ebp
movq (%rax), %r13
testq %r13, %r13
je 0x7ffb
movq 0x18(%rbx), %rax
movq (%r13), %rsi
testq %rax, %rax
je 0x7fed
movq 0x8(%r13), %rdx
movq %rbx, %rdi
movq %r12, %rcx
movq %r15, %r8
callq *%rax
testl %eax, %eax
jne 0x7ff2
jmp 0x8020
cmpq %r12, %rsi
je 0x8020
leaq 0x20(%r13), %rax
movq %r13, %rbp
jmp 0x7fc3
movq 0x20(%rsp), %rax
incq %rax
cmpq $-0x1, 0x88(%rbx)
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %rdx
jne 0x7f91
pushq $-0x1
popq %rax
jmp 0x8088
movq 0x20(%r13), %rax
testq %rbp, %rbp
je 0x8034
addq $0x20, %rbp
movq 0x8(%rsp), %r15
jmp 0x803f
movq 0x8(%rsp), %r15
addq (%r15), %r14
movq %r14, %rbp
movq %rax, (%rbp)
cmpb $0x0, 0x4(%rsp)
je 0x8076
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x8060
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %rbx, %rdi
callq *%rax
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x8076
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdx
movq %rbx, %rdi
callq *%rax
movq 0x30(%rbx), %rdi
movq %r13, %rsi
callq 0x5040
decq 0x18(%r15)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_find
int32_t hash_map_find(hash_map *map, const void *key, size_t ksiz, const void **val, size_t *vsiz)
{
  hash_map_entry *entry;

  entry = hash_map_find_entry(map, key, ksiz);
  if (entry) {
    *val = entry->value;
    *vsiz = entry->vsize;
    return 0;
  } else {
    return -1;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
callq 0x7e7c
testq %rax, %rax
je 0x80c4
movq 0x10(%rax), %rcx
movq %rcx, (%r14)
movq 0x18(%rax), %rax
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x80c7
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_get
int32_t hash_map_get(hash_map *map, const void *key, size_t ksiz, void *buff, size_t *bufsiz)
{
  const void *val = NULL;
  size_t vsiz = 0;
  int32_t st = 0;

  st = hash_map_find(map, key, ksiz, &val, &vsiz);
  if (st != 0) {
    return st;
  }
  if (*bufsiz < vsiz) {
    return -1;
  }
  memcpy(buff, val, vsiz);
  *bufsiz = vsiz;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movq %rcx, %r14
leaq 0x8(%rsp), %rcx
andq $0x0, (%rcx)
movq %rsp, %r8
andq $0x0, (%r8)
callq 0x51d0
movl %eax, %ecx
pushq $-0x1
popq %rax
testl %ecx, %ecx
jne 0x811a
movq (%rsp), %r15
cmpq %r15, (%rbx)
jb 0x811a
movq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x5220
movq %r15, (%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_table_clear
int32_t hash_table_clear(hash_map *map, hash_table *table)
{
  size_t idx;
  hash_map_entry *entry = NULL;
  hash_map_entry *next = NULL;

  for (idx = 0; idx < table->size && table->used > 0; ++idx) {
    if ((entry = table->buckets[idx]) == NULL) {
      continue;
    }
    while (entry) {
      next = entry->next;
      HASH_MAP_ENTRY_FREE_KEY(map, entry)
      HASH_MAP_ENTRY_FREE_VALUE(map, entry)
      HASH_MAP_FREE(map, entry);
      --(table->used);
      entry = next;
    }
  }
  HASH_MAP_FREE(map, table->buckets);
  hash_table_reset(table);

  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
cmpq 0x8(%rbx), %r12
jae 0x819b
cmpq $0x0, 0x18(%rbx)
movq (%rbx), %rsi
je 0x819e
movq (%rsi,%r12,8), %r15
testq %r15, %r15
je 0x8196
movq 0x20(%r15), %r13
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x8168
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq *%rax
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x817e
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %r14, %rdi
callq *%rax
movq 0x30(%r14), %rdi
movq %r15, %rsi
callq 0x5040
decq 0x18(%rbx)
movq %r13, %r15
testq %r13, %r13
jne 0x814f
incq %r12
jmp 0x8136
movq (%rbx), %rsi
movq 0x30(%r14), %rdi
callq 0x5040
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_iterator_create
hash_map_iterator *hash_map_iterator_create(hash_map *map)
{
  hash_map_iterator *iterator;
  iterator = HASH_MAP_CALLOC(map, sizeof(hash_map_iterator));
  iterator->map = map;
  iterator->index = -1;
  return iterator;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
pushq $0x30
popq %rsi
callq 0x52a0
movq %rbx, (%rax)
orq $-0x1, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_iterator_get
void hash_map_iterator_get(hash_map_iterator *iterator, const void **key, size_t *ksiz, const void **val, size_t *vsiz)
{
  hash_map_entry *entry = iterator->current;
  if (entry) {
    *key = entry->key;
    *ksiz = entry->ksize;
    *val = entry->value;
    *vsiz = entry->vsize;
  }
}

// Assembly:
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x8211
movq (%rax), %rdi
movq %rdi, (%rsi)
movq 0x8(%rax), %rsi
movq %rsi, (%rdx)
movq 0x10(%rax), %rdx
movq %rdx, (%rcx)
movq 0x18(%rax), %rax
movq %rax, (%r8)
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_iterator_next
uint8_t hash_map_iterator_next(hash_map_iterator *iterator)
{
  hash_table *table;
  hash_map *map = iterator->map;
  while (1) {
    if (iterator->current == NULL) {
      table = &map->tables[iterator->table];
      if (iterator->safe && iterator->index == -1 && iterator->table == 0) {
        iterator->map->iterators++;
      }
      iterator->index++;
      if (iterator->index >= (int64_t)(table->size)) {
        if (HASH_MAP_IS_REHASHING(map) && iterator->table == 0) {
          iterator->table++;
          iterator->index = 0;
          table = &map->tables[1];
        } else {
          break;
        }
      }
      iterator->current = table->buckets[iterator->index];
    } else {
      iterator->current = iterator->next;
    }
    if (iterator->current) {
      /* save next entry */
      iterator->next = iterator->current->next;
      return 1;
    }
  }
  return 0;
}

// Assembly:
movq (%rdi), %rdx
leaq 0x20(%rdi), %rcx
leaq 0x48(%rdx), %rsi
leaq 0x68(%rdx), %r8
cmpq $0x0, 0x18(%rdi)
movq %rcx, %rax
jne 0x828c
movq 0x8(%rdi), %r9
movq 0x10(%rdi), %rax
movq %r9, %r10
shlq $0x5, %r10
addq %rsi, %r10
cmpb $0x0, 0x28(%rdi)
je 0x8255
movq %rax, %r11
notq %r11
orq %r9, %r11
jne 0x8255
incq 0x90(%rdx)
incq %rax
movq %rax, 0x10(%rdi)
cmpq 0x8(%r10), %rax
jl 0x8285
xorl %eax, %eax
cmpq $-0x1, 0x88(%rdx)
je 0x82a1
testq %r9, %r9
jne 0x82a1
movq $0x1, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
xorl %eax, %eax
movq %r8, %r10
shlq $0x3, %rax
addq (%r10), %rax
movq (%rax), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0x822b
movq 0x20(%rax), %rax
movq %rax, (%rcx)
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_format_command
chained_buffer *redis_format_command(allocator *allocator, uint32_t argc, const char **argv, const size_t *argvlen) {
  uint32_t wr, total, idx, len;
  char *realbuffer;
  chained_buffer *buffer;

  total = 1 + redis_integer_digits(argc) + 2;
  for (idx = 0; idx < argc; idx++) {
    total += redis_bulk_length(argvlen[idx]);
  }

  if ((buffer = chained_buffer_create(allocator, total + 1)) == NULL) {
    return NULL;
  }
  realbuffer = (char *) buffer->buffer;

  wr = sprintf(realbuffer, "*%d\r\n", argc);
  for (idx = 0; idx < argc; idx++) {
    len = argvlen[idx];
    wr += sprintf(realbuffer + wr, "$%u\r\n", len);
    memcpy(realbuffer + wr, argv[idx], len);
    wr += len;
    realbuffer[wr++] = '\r';
    realbuffer[wr++] = '\n';
  }
  realbuffer[wr] = '\0';
  buffer->size = wr;

  return buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, 0x20(%rsp)
movl %esi, %ebp
movq %rdi, %r12
movl %esi, %edi
movq %rdi, 0x8(%rsp)
callq 0x8435
movl %eax, %r13d
addl $0x3, %r13d
xorl %ebx, %ebx
cmpq %rbx, 0x8(%rsp)
je 0x8372
movq (%r15,%rbx,8), %r14
movl %r14d, %edi
callq 0x8435
addl %r14d, %r13d
addl %eax, %r13d
addl $0x5, %r13d
incq %rbx
jmp 0x8350
incl %r13d
movq %r12, %rdi
movl %r13d, %esi
callq 0x5380
testq %rax, %rax
je 0x8426
movq %r15, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq %rax, %r13
addq $0x20, %r13
leaq 0x2f53(%rip), %rsi      # 0xb2f4
movq %r13, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x5390
movl %eax, %r12d
xorl %r15d, %r15d
movl %r12d, %edi
cmpq %r15, 0x8(%rsp)
je 0x8418
movq 0x18(%rsp), %rax
movq (%rax,%r15,8), %rbp
movl %ebp, %r14d
addq %r13, %rdi
leaq 0x2f27(%rip), %rsi      # 0xb2fa
movl %ebp, %edx
xorl %eax, %eax
callq 0x5390
movl %eax, %ebx
addl %r12d, %ebx
leaq (%rbx,%r13), %rdi
movq 0x20(%rsp), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdx
callq 0x5220
movl %ebx, %eax
addl %ebp, %eax
leal (%rbx,%rbp), %ecx
incl %ecx
movb $0xd, (%r13,%rax)
leal (%rbx,%rbp), %r12d
addl $0x2, %r12d
movb $0xa, (%r13,%rcx)
incq %r15
jmp 0x83b3
movq 0x10(%rsp), %rax
movb $0x0, 0x20(%rax,%rdi)
movl %r12d, 0xc(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_integer_digits
static inline uint32_t redis_integer_digits(uint64_t integer) {
  uint32_t len = 1;
  while (1) {
    if (integer < 10) return len;
    if (integer < 100) return len + 1;
    if (integer < 1000) return len + 2;
    if (integer < 10000) return len + 3;
    integer /= 10000U;
    len += 4;
  }
}

// Assembly:
movq %rdi, %rax
pushq $0x4
popq %rcx
movl $0x2710, %esi           # imm = 0x2710
cmpq $0xa, %rax
jb 0x8466
cmpq $0x63, %rax
jbe 0x846b
cmpq $0x3e7, %rax            # imm = 0x3E7
jbe 0x8470
cmpq $0x2710, %rax           # imm = 0x2710
jb 0x8472
xorl %edx, %edx
divq %rsi
addl $0x4, %ecx
jmp 0x8440
addl $-0x3, %ecx
jmp 0x8472
addl $-0x2, %ecx
jmp 0x8472
decl %ecx
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_free_response
void redis_response_reader_free_response(redis_response *resp) {
  size_t idx;
  if (resp == NULL) {
    return;
  }

  switch(resp->type) {
  case REDIS_RESPONSE_INTEGER:
    break;
  case REDIS_RESPONSE_ARRAY:
    if (resp->payload.array.array != NULL) {
      for (idx = 0; idx < resp->payload.array.length; idx++) {
        if (resp->payload.array.array[idx] != NULL) {
          redis_response_reader_free_response(resp->payload.array.array[idx]);
        }
      }
      allocator_free(resp->allocator, resp->payload.array.array);
    }
    break;
  case REDIS_RESPONSE_ERROR:
  case REDIS_RESPONSE_STATUS:
  case REDIS_RESPONSE_STRING:
    if (resp->payload.string.str != NULL) {
      allocator_free(resp->allocator, resp->payload.string.str);
    }
    break;
  default:
    break;
  }
  allocator_free(resp->allocator, resp);
}

// Assembly:
testq %rdi, %rdi
je 0x84cb
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
jb 0x84bc
cmpl $0x1, %eax
je 0x84bc
cmpl $0x2, %eax
jne 0x84d9
cmpq $0x0, 0x10(%rbx)
je 0x84d9
xorl %r14d, %r14d
cmpq 0x18(%rbx), %r14
jae 0x84cc
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x84b7
callq 0x5260
incq %r14
jmp 0x849f
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x84d9
movq 0x8(%rbx), %rdi
jmp 0x84d4
retq
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
callq 0x5040
movq 0x8(%rbx), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5040
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_create
redis_response_reader *redis_response_reader_create(allocator *allocator, int32_t max_buf) {
  redis_response_reader *reader;

  if ((reader = allocator_calloc(allocator, sizeof(redis_response_reader))) == NULL) {
    return NULL;
  }

  reader->allocator = allocator;
  reader->err = 0;
  reader->errstr[0] = '\0';
  reader->buf = NULL;
  reader->capacity = 0;
  reader->max_buf = max_buf < SIZE_16KB ? SIZE_16KB : max_buf;
  reader->task_idx = -1;
  reader->max_task_idx = (sizeof(reader->tasks) / sizeof(reader->tasks[0])) - 1;
  if (reader->max_task_idx >= 15) {
    reader->max_task_idx = 15;
  }
  return reader;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x1e8, %esi            # imm = 0x1E8
callq 0x52a0
testq %rax, %rax
je 0x8547
movq %r14, 0x88(%rax)
andl $0x0, (%rax)
movb $0x0, 0x4(%rax)
cmpl $0x4001, %ebx           # imm = 0x4001
movl $0x4000, %ecx           # imm = 0x4000
cmovgel %ebx, %ecx
xorps %xmm0, %xmm0
movups %xmm0, 0x90(%rax)
movq %rcx, 0xb0(%rax)
movabsq $0x8ffffffff, %rcx      # imm = 0x8FFFFFFFF
movq %rcx, 0x1d8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_feed
redis_response_status redis_response_reader_feed(redis_response_reader *reader, const char *buf, int32_t size) {
  REDIS_RESPONSE_READER_CHECK_ERROR(reader);

  if (buf != NULL && size >= 1) {
    if (reader->len == 0 && reader->capacity > reader->max_buf) {
      reader->capacity = SIZE_4KB < size ? size * 2 : SIZE_4KB;
      reader->pos = 0;
      if ((reader->buf = allocator_realloc(reader->allocator, reader->buf, reader->capacity)) == NULL) {
        redis_response_reader_set_error_oom(reader);
        return reader->err;
      }
    }

    if (reader->capacity - reader->len < (uint32_t) size) {
      reader->capacity = 2 * (reader->capacity + size);
      if ((reader->buf = allocator_realloc(reader->allocator, reader->buf, reader->capacity)) == NULL) {
        redis_response_reader_set_error_oom(reader);
        return reader->err;
      }
    }
    memcpy(reader->buf + reader->len, buf, size);
    reader->len += size;
  }

  return REDIS_RESPONSE_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl (%rdi), %ebp
testl %ebp, %ebp
jne 0x8658
movl %edx, %r15d
movq %rsi, %r14
testq %rsi, %rsi
sete %al
testl %edx, %edx
setle %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x8658
movq %rdi, %rbx
movq 0xa8(%rdi), %rdi
testq %rdi, %rdi
jne 0x85e6
movq 0x98(%rbx), %rax
cmpq 0xb0(%rbx), %rax
jbe 0x85e4
leal (%r15,%r15), %eax
cmpl $0x1001, %r15d          # imm = 0x1001
movl $0x1000, %edx           # imm = 0x1000
cmovael %eax, %edx
movq %rdx, 0x98(%rbx)
andq $0x0, 0xa0(%rbx)
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %rsi
callq 0x52f0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x864e
movq 0xa8(%rbx), %rdi
jmp 0x85e6
xorl %edi, %edi
movq 0x98(%rbx), %rdx
movq %rdx, %rax
subq %rdi, %rax
movl %r15d, %r15d
cmpq %r15, %rax
jae 0x8630
addq %r15, %rdx
addq %rdx, %rdx
movq %rdx, 0x98(%rbx)
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %rsi
callq 0x52f0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x864e
movq 0xa8(%rbx), %rdi
jmp 0x8637
movq 0x90(%rbx), %rax
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5220
addq %r15, 0xa8(%rbx)
jmp 0x8658
movq %rbx, %rdi
callq 0x8665
movl (%rbx), %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_free
void redis_response_reader_free(redis_response_reader *reader) {
  if (reader->response != NULL) {
    redis_response_reader_free_response(reader->response);
  }
  if (reader->buf != NULL) {
    allocator_free(reader->allocator, reader->buf);
  }
  allocator_free(reader->allocator, reader);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x1e0(%rdi), %rdi
testq %rdi, %rdi
je 0x8cc6
callq 0x5260
movq 0x90(%rbx), %rsi
testq %rsi, %rsi
je 0x8cde
movq 0x88(%rbx), %rdi
callq 0x5040
movq 0x88(%rbx), %rdi
movq %rbx, %rsi
popq %rbx
jmp 0x5040
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_set_error
static void redis_response_reader_set_error(redis_response_reader *reader, int32_t type, const char *str) {
  size_t len;

  if (reader->response != NULL) {
    redis_response_reader_free_response(reader->response);
    reader->response = NULL;
  }

  if (reader->buf != NULL) {
    allocator_free(reader->allocator, reader->buf);
    reader->buf = NULL;
    reader->capacity = 0;
    reader->pos = reader->len = 0;
  }

  reader->task_idx = -1;

  reader->err = type;
  len = strlen(str);
  len = len < (sizeof(reader->errstr) - 1) ? len : (sizeof(reader->errstr) - 1);
  memcpy(reader->errstr, str, len);
  reader->errstr[len] = '\0';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq 0x1e0(%rdi), %rdi
testq %rdi, %rdi
je 0x8d16
callq 0x5260
andq $0x0, 0x1e0(%rbx)
movq 0x90(%rbx), %rsi
testq %rsi, %rsi
je 0x8d41
leaq 0x90(%rbx), %r15
movq 0x88(%rbx), %rdi
callq 0x5040
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
orl $-0x1, 0x1d8(%rbx)
movl %ebp, (%rbx)
movq %r14, %rdi
callq 0x50c0
cmpq $0x7f, %rax
pushq $0x7f
popq %r15
cmovbq %rax, %r15
leaq 0x4(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5220
movb $0x0, 0x4(%rbx,%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_read_line
static char *redis_response_reader_read_line(redis_response_reader *reader, int32_t *len) {
  char *p, *s;
  int32_t real_len;

  p = reader->buf + reader->pos;
  s = redis_response_reader_seek_crlf(p, (reader->len - reader->pos));
  if (s != NULL) {
    real_len = s - (reader->buf + reader->pos);
    reader->pos += real_len + 2;
    if (len) {
      *len = real_len;
    }
    return p;
  }
  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq 0xa0(%rdi), %r12
movq 0xa8(%rdi), %rsi
movq 0x90(%rdi), %rbx
addq %r12, %rbx
subq %r12, %rsi
movq %rbx, %rdi
callq 0x8f9c
testq %rax, %rax
je 0x8dd1
subq %rbx, %rax
leal 0x2(%rax), %ecx
movslq %ecx, %rcx
addq %r12, %rcx
movq %rcx, 0xa0(%r15)
testq %r14, %r14
je 0x8dd3
movl %eax, (%r14)
jmp 0x8dd3
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_read_integer
static int64_t redis_response_reader_read_integer(char *buffer) {
  int64_t val = 0;
  int32_t digit, sign = 1;
  char ch;

  switch (*buffer) {
    case '-':
      sign = -1;
      /* FALL THROUGH */
    case '+':
      buffer++;
      /* FALL THROUGH */
    default:
      break;
  }

  while ((ch = *(buffer++)) != '\r') {
    digit = ch - '0';
    if (digit >= 0 && digit < 10) {
      val *= 10;
      val += digit;
    } else {
      return -1;
    }
  }

  return sign * val;
}

// Assembly:
movzbl (%rdi), %eax
pushq $0x1
popq %rcx
cmpl $0x2b, %eax
je 0x8df5
cmpl $0x2d, %eax
jne 0x8df8
pushq $-0x1
popq %rcx
incq %rdi
xorl %edx, %edx
pushq $-0x1
popq %rax
movzbl (%rdi), %esi
cmpq $0xd, %rsi
je 0x8e22
leal -0x30(%rsi), %r8d
cmpb $0x9, %r8b
ja 0x8e29
incq %rdi
imulq $0xa, %rdx, %rdx
andl $0xf, %esi
addq %rdx, %rsi
movq %rsi, %rdx
jmp 0x8dfd
imulq %rcx, %rdx
movq %rdx, %rax
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_create_string
static void *redis_response_reader_create_string(const redis_response_reader *reader, const redis_response_reader_task *task, char *str, size_t len) {
  redis_response *resp, *parent;
  char *buf;
  if ((resp = redis_response_reader_create_response(reader, task->type)) == NULL) {
    return NULL;
  }
  if ((buf = allocator_malloc(reader->allocator, len + 1)) == NULL) {
    redis_response_reader_free_response(resp);
    return NULL;
  }

  assert(task->type == REDIS_RESPONSE_ERROR  ||
         task->type == REDIS_RESPONSE_STATUS ||
         task->type == REDIS_RESPONSE_STRING);

  memcpy(buf, str, len);
  buf[len] = '\0';
  resp->payload.string.str = buf;
  resp->payload.string.length = len;

  if (task->parent) {
    parent = task->parent->obj;
    assert(parent->type == REDIS_RESPONSE_ARRAY);
    parent->payload.array.array[task->idx] = resp;
  }
  return resp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl (%rsi), %esi
callq 0x9007
testq %rax, %rax
je 0x8eba
movq %rax, %rbx
movq 0x88(%r13), %rdi
leaq 0x1(%r15), %rsi
callq 0x52d0
testq %rax, %rax
je 0x8eb2
movq %rax, %r13
movl (%r14), %eax
cmpl $0x6, %eax
ja 0x8ee8
pushq $0x62
popq %rcx
btl %eax, %ecx
jae 0x8ee8
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x5220
movb $0x0, (%r13,%r15)
movq %r13, 0x10(%rbx)
movq %r15, 0x18(%rbx)
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x8ebc
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x8ec9
movq 0x10(%rax), %rax
movslq 0x8(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
jmp 0x8ebc
movq %rbx, %rdi
callq 0x5260
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x24e1(%rip), %rdi      # 0xb3b1
leaq 0x2437(%rip), %rsi      # 0xb30e
leaq 0x25e2(%rip), %rcx      # 0xb4c0
movl $0xa5, %edx
callq 0x5100
leaq 0x2560(%rip), %rdi      # 0xb44f
leaq 0x2418(%rip), %rsi      # 0xb30e
leaq 0x25c3(%rip), %rcx      # 0xb4c0
movl $0x9c, %edx
callq 0x5100
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_next_task
static void redis_response_reader_next_task(redis_response_reader *reader) {
  redis_response_reader_task *cur, *prv;
  while (reader->task_idx >= 0) {
    if (reader->task_idx == 0) {
      reader->task_idx--;
      return;
    }

    cur = reader->tasks + reader->task_idx;
    prv = cur - 1;
    assert(prv->type == REDIS_RESPONSE_ARRAY);
    if (cur->idx == prv->elements - 1) {
      reader->task_idx--;
    } else {
      assert(cur->idx < prv->elements);
      cur->type = -1;
      cur->elements = -1;
      cur->idx++;
      return;
    }
  }
}

// Assembly:
pushq %rax
movl 0x1d8(%rdi), %eax
leaq 0xb8(%rdi), %rcx
testl %eax, %eax
js 0x8f5c
je 0x8f45
movl %eax, %edx
shlq $0x5, %rdx
cmpl $0x2, -0x20(%rcx,%rdx)
jne 0x8f5e
addq %rcx, %rdx
movl -0x1c(%rdx), %r8d
movl 0x8(%rdx), %esi
leal -0x1(%r8), %r9d
cmpl %r9d, %esi
jne 0x8f4e
decl %eax
movl %eax, 0x1d8(%rdi)
jmp 0x8f15
orl $-0x1, 0x1d8(%rdi)
jmp 0x8f5c
cmpl %r8d, %esi
jge 0x8f7d
orq $-0x1, (%rdx)
incl %esi
movl %esi, 0x8(%rdx)
popq %rax
retq
leaq 0x25d8(%rip), %rdi      # 0xb53d
leaq 0x23a2(%rip), %rsi      # 0xb30e
leaq 0x25ec(%rip), %rcx      # 0xb55f
movl $0x1a6, %edx            # imm = 0x1A6
callq 0x5100
leaq 0x2619(%rip), %rdi      # 0xb59d
leaq 0x2383(%rip), %rsi      # 0xb30e
leaq 0x25cd(%rip), %rcx      # 0xb55f
movl $0x1aa, %edx            # imm = 0x1AA
callq 0x5100
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_seek_crlf
static char *redis_response_reader_seek_crlf(char *buffer, size_t len) {
  int32_t rd = 0;
  int32_t scanlen = len - 1;

  while (rd < scanlen) {
    while (rd < scanlen && buffer[rd] != '\r') rd++;
    if (rd == scanlen) {
      return NULL;
    } else {
      if (buffer[rd + 1] == '\n') {
        return buffer + rd;
      } else {
        rd++;
      }
    }
  }
  return NULL;
}

// Assembly:
pushq %rbx
decl %esi
movslq %esi, %rcx
xorl %eax, %eax
movabsq $0x100000000, %rdx      # imm = 0x100000000
xorl %r8d, %r8d
cmpl %esi, %r8d
jge 0x9005
movslq %r8d, %r11
movq %r11, %r9
shlq $0x20, %r9
movq %rcx, %rbx
subq %r11, %rbx
addq %rdi, %r11
xorl %r10d, %r10d
cmpq %r10, %rbx
je 0x9005
cmpb $0xd, (%r11,%r10)
je 0x8fe0
addq %rdx, %r9
incq %r10
jmp 0x8fcc
movl %esi, %r11d
subl %r8d, %r11d
cmpl %r10d, %r11d
je 0x9005
addl %r10d, %r8d
incl %r8d
movslq %r8d, %r10
cmpb $0xa, (%rdi,%r10)
jne 0x8fb1
sarq $0x20, %r9
addq %r9, %rdi
movq %rdi, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_create_response
static redis_response *redis_response_reader_create_response(const redis_response_reader *reader, int type) {
  redis_response *resp;
  if ((resp = allocator_calloc(reader->allocator, sizeof(*resp))) == NULL) {
    return NULL;
  }

  resp->type = type;
  resp->allocator = reader->allocator;
  return resp;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x88(%rdi), %rdi
pushq $0x20
popq %rsi
callq 0x52a0
testq %rax, %rax
je 0x9030
movl %ebp, (%rax)
movq 0x88(%rbx), %rcx
movq %rcx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/redis-force[P]rpm/module/rpm_redis.c
// Function: redis_response_reader_create_nil
static void *redis_response_reader_create_nil(const redis_response_reader *reader, const redis_response_reader_task *task) {
  redis_response *resp, *parent;

  if ((resp = redis_response_reader_create_response(reader, REDIS_RESPONSE_NIL)) == NULL) {
    return NULL;
  }

  if (task->parent) {
    parent = task->parent->obj;
    assert(parent->type == REDIS_RESPONSE_ARRAY);
    parent->payload.array.array[task->idx] = resp;
  }
  return resp;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
pushq $0x4
popq %rsi
callq 0x9007
testq %rax, %rax
je 0x9066
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x9066
movq 0x10(%rcx), %rcx
cmpl $0x2, (%rcx)
jne 0x9068
movq 0x10(%rcx), %rcx
movslq 0x8(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
popq %rbx
retq
leaq 0x2342(%rip), %rdi      # 0xb3b1
leaq 0x2298(%rip), %rsi      # 0xb30e
leaq 0x2539(%rip), %rcx      # 0xb5b6
movl $0xda, %edx
callq 0x5100
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/pthread_mutex3.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	while (1) {
		pthread_mutex_lock(&mutex);
		val++;
		pthread_mutex_unlock(&mutex);

		(*iterations)++;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xe66a(%rip), %r14      # 0x111a8
movq %r14, %rdi
callq 0x22b0
incq 0xe683(%rip)            # 0x111d0
movq %r14, %rdi
callq 0x2190
incq (%rbx)
jmp 0x2b3e
// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: prewarp()
static void
prewarp() { /* for bilinear transform, perform pre-warp on alpha values */
  if (options & (opt_w | opt_z)) {
    warped_alpha1 = raw_alpha1;
    warped_alpha2 = raw_alpha2;
  } else {
    warped_alpha1 = tan(PI * raw_alpha1) / PI;
    warped_alpha2 = tan(PI * raw_alpha2) / PI;
  }
}

// Assembly:
testb $-0x40, 0xc7f8(%rip)    # 0xf101
movsd 0xc80f(%rip), %xmm0     # 0xf120
je 0x2925
movsd %xmm0, 0xc7ed(%rip)     # 0xf108
movsd 0xc805(%rip), %xmm0     # 0xf128
jmp 0x2964
pushq %rax
mulsd 0x16f2(%rip), %xmm0     # 0x4020
callq 0x1070
movsd 0x16e5(%rip), %xmm1     # 0x4020
divsd %xmm1, %xmm0
movsd %xmm0, 0xc7c1(%rip)     # 0xf108
movsd 0xc7d9(%rip), %xmm0     # 0xf128
mulsd %xmm1, %xmm0
callq 0x1070
divsd 0x16c0(%rip), %xmm0     # 0x4020
addq $0x8, %rsp
movsd %xmm0, 0xc7ec(%rip)     # 0xf158
retq