LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/redis-force[P]rpm/module/rpm_hashmap.c
// Function: rs_hash
uint32_t rs_hash(hash_map *mp, const void *in, size_t len)
{
  (void) mp;
  uint32_t b = 378551;
  uint32_t a = 63689;
  uint32_t hash = 0;
  uint32_t i = 0;
  uint8_t *input = (uint8_t *)in;

  for (i = 0; i < len; input++, i++) {
    hash = hash * a + (*input);
    a = a * b;
  }

  return hash;
}

// Assembly:
testq %rdx, %rdx
je 0x7c83
movl $0xf8c9, %ecx           # imm = 0xF8C9
xorl %edi, %edi
xorl %eax, %eax
imull %ecx, %eax
movzbl (%rsi,%rdi), %r8d
addl %r8d, %eax
imull $0x5c6b7, %ecx, %ecx    # imm = 0x5C6B7
incq %rdi
movl %edi, %r8d
cmpq %rdx, %r8
jb 0x7c66
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5d48(%rip), %r15      # 0xd9e0
cmovneq %rdi, %r15
movq 0x30(%r15), %r14
testq %r14, %r14
jne 0x7caf
movq 0x622c(%rip), %rax      # 0xded8
movq (%rax), %r14
movl $0x98, %esi
movq %r14, %rdi
callq 0x5290
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 0x7cfc
movq 0x619f(%rip), %rcx      # 0xde98
movq %rcx, (%rax)
cmpq $0x10, %rbx
movl $0xf, %ecx
cmovaeq %rbx, %rcx
movq %rcx, 0x40(%rax)
movq $-0x1, 0x88(%rax)
movq $0x0, 0x90(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x83e3
leaq 0x68(%rbx), %rsi
movq %rbx, %rdi
callq 0x83e3
movq $-0x1, 0x88(%rbx)
movq $0x0, 0x90(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7fc0
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x88(%rdi), %r14
cmpq $-0x1, %r14
je 0x80ab
leaq 0x48(%rdi), %rbp
movq 0x60(%rdi), %r12
movq 0x80(%rdi), %r15
testq %r12, %r12
movq %rdi, (%rsp)
je 0x805c
movq 0x78(%rdi), %rbx
movq (%rbp), %rax
movq (%rax,%r14,8), %rbp
incq %r14
testq %rbp, %rbp
je 0x7ffc
movq 0x20(%rbp), %r13
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq (%rsp), %rdi
movq (%rsp), %rax
callq *(%rax)
movq (%rsp), %rdi
andl %ebx, %eax
movq 0x68(%rdi), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, 0x20(%rbp)
movq %rbp, (%rcx,%rax,8)
decq %r12
incq %r15
movq %r13, %rbp
testq %r13, %r13
jne 0x8008
movq 0x48(%rdi), %rax
movq $0x0, -0x8(%rax,%r14,8)
movq %r12, 0x60(%rdi)
movq %r15, 0x80(%rdi)
jmp 0x80a4
leaq 0x68(%rdi), %r14
movq (%rsp), %rax
movq 0x30(%rax), %rdi
movq (%rsp), %rax
movq 0x48(%rax), %rsi
callq 0x5040
movq (%rsp), %rdi
movq %r15, 0x80(%rdi)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbp)
movups %xmm0, (%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x10(%r14)
movq $-0x1, %r14
movq %r14, 0x88(%rdi)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5260
testb %al, %al
je 0x8129
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x813a
movq %rax, %rbp
movq 0x10(%rax), %r12
movq 0x18(%rax), %r13
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x810d
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 0x8129
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_O3/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 0x81e4
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq *(%rdi)
movl %eax, %eax
movq %rax, (%rsp)
cmpq $-0x1, 0x88(%r15)
je 0x8173
movq %r15, %rdi
callq 0x7fb5
leaq 0x48(%r15), %rbp
movb $0x1, %r13b
xorl %eax, %eax
shlq $0x5, %rax
movl 0x10(%rbp,%rax), %ecx
andl (%rsp), %ecx
movq (%rbp,%rax), %rax
movq (%rax,%rcx,8), %r12
testq %r12, %r12
je 0x81c4
movq 0x18(%r15), %rax
movq (%r12), %rcx
testq %rax, %rax
je 0x81b8
movq 0x8(%r12), %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *%rax
testl %eax, %eax
jne 0x81bd
jmp 0x81e7
cmpq %r14, %rcx
je 0x81e7
movq 0x20(%r12), %r12
jmp 0x8190
cmpq $-0x1, 0x88(%r15)
setne %cl
movl $0x1, %eax
xorl %r12d, %r12d
testb %r13b, %cl
movl $0x0, %r13d
jne 0x817c
jmp 0x81e7
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_O3/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:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, 0x50(%rdi)
je 0x8368
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, 0x10(%rsp)
cmpq $-0x1, 0x88(%rdi)
je 0x823d
movq %rbx, %rdi
callq 0x7fb5
leaq 0x48(%rbx), %rax
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *(%rbx)
movl %eax, %eax
movq %rax, 0x20(%rsp)
movb $0x1, %al
xorl %ecx, %ecx
movl %eax, 0x14(%rsp)
shlq $0x5, %rcx
movq 0x18(%rsp), %rax
movl 0x10(%rax,%rcx), %r14d
andl 0x20(%rsp), %r14d
movq %rcx, 0x8(%rsp)
movq (%rax,%rcx), %rax
movq (%rax,%r14,8), %rax
testq %rax, %rax
je 0x82c8
movq 0x18(%rsp), %rcx
addq %rcx, 0x8(%rsp)
xorl %r13d, %r13d
movq %rax, %rbp
movq 0x18(%rbx), %rax
movq (%rbp), %rsi
testq %rax, %rax
je 0x82b7
movq 0x8(%rbp), %rdx
movq %rbx, %rdi
movq %r12, %rcx
movq %r15, %r8
callq *%rax
testl %eax, %eax
jne 0x82bc
jmp 0x82ee
cmpq %r12, %rsi
je 0x82ee
movq 0x20(%rbp), %rax
movq %rbp, %r13
testq %rax, %rax
jne 0x8292
cmpq $-0x1, 0x88(%rbx)
setne %al
movl $0x1, %ecx
testb %al, 0x14(%rsp)
movl $0x0, %eax
jne 0x825c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x835a
movq 0x20(%rbp), %rax
testq %r13, %r13
je 0x82fd
addq $0x20, %r13
jmp 0x830c
shlq $0x3, %r14
movq 0x8(%rsp), %rcx
addq (%rcx), %r14
movq %r14, %r13
movq %rax, (%r13)
cmpb $0x0, 0x10(%rsp)
movq 0x8(%rsp), %r14
je 0x8348
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x8332
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq %rbx, %rdi
callq *%rax
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x8348
movq 0x10(%rbp), %rsi
movq 0x18(%rbp), %rdx
movq %rbx, %rdi
callq *%rax
movq 0x30(%rbx), %rdi
movq %rbp, %rsi
callq 0x5040
decq 0x18(%r14)
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_O3/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 0x813a
testq %rax, %rax
je 0x8396
movq 0x10(%rax), %rcx
movq %rcx, (%r14)
movq 0x18(%rax), %rax
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x839b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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
movq %r8, %rbx
movq %rcx, %r14
callq 0x813a
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x83dd
movq 0x18(%rcx), %r15
cmpq %r15, (%rbx)
jb 0x83dd
movq 0x10(%rcx), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x5210
movq %r15, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x846d
movq 0x18(%rbx), %rax
xorl %r12d, %r12d
testq %rax, %rax
je 0x846d
movq (%rbx), %rdx
movq (%rdx,%r12,8), %r15
testq %r15, %r15
je 0x8465
movq 0x20(%r15), %r13
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x842c
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq *%rax
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x8442
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %r14, %rdi
callq *%rax
movq 0x30(%r14), %rdi
movq %r15, %rsi
callq 0x5040
movq 0x18(%rbx), %rax
decq %rax
movq %rax, 0x18(%rbx)
movq %r13, %r15
testq %r13, %r13
jne 0x8413
movq 0x8(%rbx), %rcx
incq %r12
cmpq %rcx, %r12
jb 0x8402
movq 0x30(%r14), %rdi
movq (%rbx), %rsi
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_O3/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 0x857d
movq 0x8(%rdi), %r9
movq 0x10(%rdi), %rax
movq %r9, %r10
shlq $0x5, %r10
addq %rsi, %r10
cmpb $0x0, 0x28(%rdi)
je 0x8543
movq %rax, %r11
notq %r11
orq %r9, %r11
jne 0x8543
incq 0x90(%rdx)
incq %rax
movq %rax, 0x10(%rdi)
cmpq 0x8(%r10), %rax
jl 0x8576
xorl %eax, %eax
cmpq $-0x1, 0x88(%rdx)
je 0x8592
testq %r9, %r9
jne 0x8592
movq $0x1, 0x8(%rdi)
movq $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 0x8519
movq 0x20(%rax), %rax
movq %rax, (%rcx)
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdx, %rbx
movl %esi, %r13d
movl %esi, %r15d
movl $0x1, %esi
movabsq $0x346dc5d63886594b, %r8 # imm = 0x346DC5D63886594B
cmpl $0xa, %r13d
jb 0x8684
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x867d
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x8682
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x8684
movq %rcx, %rax
mulq %r8
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x8647
addl $-0x3, %esi
jmp 0x8684
addl $-0x2, %esi
jmp 0x8684
decl %esi
addl $0x3, %esi
testl %r13d, %r13d
je 0x86fa
xorl %r9d, %r9d
movq (%r14,%r9,8), %r10
movl $0x1, %r11d
cmpl $0xa, %r10d
jb 0x86e9
movl %r10d, %ecx
movl $0x4, %r11d
cmpq $0x63, %rcx
jbe 0x86e0
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x86e6
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x86e9
movq %rcx, %rax
mulq %r8
shrq $0xb, %rdx
addl $0x4, %r11d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x86a8
addl $-0x3, %r11d
jmp 0x86e9
addl $-0x2, %r11d
jmp 0x86e9
decl %r11d
addl %r10d, %esi
addl %r11d, %esi
addl $0x5, %esi
incq %r9
cmpq %r15, %r9
jne 0x868f
incl %esi
callq 0x5370
testq %rax, %rax
je 0x87bb
movq %rax, 0x8(%rsp)
movq %rax, %r12
addq $0x20, %r12
leaq 0x2bd7(%rip), %rsi      # 0xb2f4
movq %r12, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x5380
movl %eax, %ebp
testl %r13d, %r13d
je 0x87a9
movq %rbx, 0x10(%rsp)
xorl %ebx, %ebx
movq %r14, 0x20(%rsp)
movq %r15, 0x18(%rsp)
movq (%r14,%rbx,8), %r15
movl %r15d, %r14d
movl %ebp, %edi
addq %r12, %rdi
leaq 0x2ba5(%rip), %rsi      # 0xb2fa
movl %r15d, %edx
xorl %eax, %eax
callq 0x5380
movl %eax, %r13d
addl %ebp, %r13d
leaq (%r12,%r13), %rdi
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movq %r14, %rdx
movq 0x20(%rsp), %r14
callq 0x5210
movl %r13d, %eax
addl %r15d, %eax
leal (%r15,%r13), %ecx
incl %ecx
movb $0xd, (%r12,%rax)
leal (%r15,%r13), %ebp
addl $0x2, %ebp
movq 0x18(%rsp), %r15
movb $0xa, (%r12,%rcx)
incq %rbx
cmpq %rbx, %r15
jne 0x8742
movl %ebp, %eax
movq 0x8(%rsp), %rcx
movb $0x0, 0x20(%rcx,%rax)
movq %rcx, %rax
movl %ebp, 0xc(%rcx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x8848
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8823
cmpl $0x1, %eax
je 0x8823
cmpl $0x2, %eax
jne 0x8835
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x8835
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x882c
xorl %r14d, %r14d
movq 0x10(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x8815
callq 0x5250
movq 0x18(%rbx), %rax
incq %r14
cmpq %rax, %r14
jb 0x87ff
movq 0x10(%rbx), %rsi
jmp 0x882c
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x8835
movq 0x8(%rbx), %rdi
callq 0x5040
movq 0x8(%rbx), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5040
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5290
testq %rax, %rax
je 0x88a7
movq %r14, 0x88(%rax)
movl $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_O3/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 0x89c7
movl %edx, %r15d
movq %rsi, %r14
testq %rsi, %rsi
sete %al
testl %edx, %edx
setle %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x89c7
movq %rdi, %rbx
movq 0xa8(%rdi), %rdi
testq %rdi, %rdi
jne 0x8949
movq 0x98(%rbx), %rax
cmpq 0xb0(%rbx), %rax
jbe 0x8947
leal (%r15,%r15), %eax
cmpl $0x1001, %r15d          # imm = 0x1001
movl $0x1000, %edx           # imm = 0x1000
cmovael %eax, %edx
movq %rdx, 0x98(%rbx)
movq $0x0, 0xa0(%rbx)
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %rsi
callq 0x52e0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x89b1
movq 0xa8(%rbx), %rdi
jmp 0x8949
xorl %edi, %edi
movq 0x98(%rbx), %rdx
movq %rdx, %rax
subq %rdi, %rax
movl %r15d, %r15d
cmpq %r15, %rax
jae 0x8993
addq %r15, %rdx
addq %rdx, %rdx
movq %rdx, 0x98(%rbx)
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %rsi
callq 0x52e0
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x89b1
movq 0xa8(%rbx), %rdi
jmp 0x899a
movq 0x90(%rbx), %rax
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5210
addq %r15, 0xa8(%rbx)
jmp 0x89c7
leaq 0x2948(%rip), %rdx      # 0xb300
movq %rbx, %rdi
movl $0x3, %esi
callq 0x90b1
movl (%rbx), %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9089
callq 0x5250
movq 0x90(%rbx), %rsi
testq %rsi, %rsi
je 0x90a1
movq 0x88(%rbx), %rdi
callq 0x5040
movq 0x88(%rbx), %rdi
movq %rbx, %rsi
popq %rbx
jmp 0x5040
// File: /workspace/github_c_makefile_star2_O3/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 0x9399
testq %rax, %rax
je 0x919c
subq %rbx, %rax
leal 0x2(%rax), %ecx
movslq %ecx, %rcx
addq %r12, %rcx
movq %rcx, 0xa0(%r15)
testq %r14, %r14
je 0x919e
movl %eax, (%r14)
jmp 0x919e
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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), %edx
movl $0x1, %ecx
cmpl $0x2b, %edx
je 0x91c6
cmpl $0x2d, %edx
jne 0x91cc
movq $-0x1, %rcx
movb 0x1(%rdi), %dl
incq %rdi
cmpb $0xd, %dl
jne 0x91d5
xorl %eax, %eax
jmp 0x91fb
incq %rdi
xorl %eax, %eax
leal -0x30(%rdx), %esi
cmpb $0x9, %sil
ja 0x9200
leaq (%rax,%rax,4), %rax
andb $0xf, %dl
movzbl %dl, %edx
leaq (%rdx,%rax,2), %rax
movb (%rdi), %dl
incq %rdi
cmpb $0xd, %dl
jne 0x91da
imulq %rcx, %rax
retq
movq $-0x1, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl (%rsi), %ebp
movq 0x88(%rdi), %rdi
movl $0x20, %esi
callq 0x5290
testq %rax, %rax
je 0x92ac
movq %rax, %rbx
movl %ebp, (%rax)
movq 0x88(%r13), %rdi
movq %rdi, 0x8(%rax)
leaq 0x1(%r15), %rsi
callq 0x52c0
testq %rax, %rax
je 0x92a4
movq %rax, %r13
movl (%r14), %eax
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
jb 0x9268
cmpl $0x1, %eax
jne 0x92df
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x5210
movb $0x0, (%r13,%r15)
movq %r13, 0x10(%rbx)
movq %r15, 0x18(%rbx)
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x92ae
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x92c0
movq 0x10(%rax), %rax
movslq 0x8(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
jmp 0x92ae
movq %rbx, %rdi
callq 0x5250
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20ea(%rip), %rdi      # 0xb3b1
leaq 0x2040(%rip), %rsi      # 0xb30e
leaq 0x21eb(%rip), %rcx      # 0xb4c0
movl $0xa5, %edx
callq 0x50f0
leaq 0x2169(%rip), %rdi      # 0xb44f
leaq 0x2021(%rip), %rsi      # 0xb30e
leaq 0x21cc(%rip), %rcx      # 0xb4c0
movl $0x9c, %edx
callq 0x50f0
// File: /workspace/github_c_makefile_star2_O3/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
testl %eax, %eax
js 0x9359
je 0x933c
leaq 0xb8(%rdi), %rcx
movl %eax, %edx
shlq $0x5, %rdx
cmpl $0x2, -0x20(%rcx,%rdx)
jne 0x935b
addq %rcx, %rdx
movl -0x1c(%rdx), %r8d
movl 0x8(%rdx), %esi
leal -0x1(%r8), %r9d
cmpl %r9d, %esi
jne 0x9348
decl %eax
movl %eax, 0x1d8(%rdi)
jne 0x9312
movl $0xffffffff, 0x1d8(%rdi) # imm = 0xFFFFFFFF
jmp 0x9359
cmpl %r8d, %esi
jge 0x937a
movq $-0x1, (%rdx)
incl %esi
movl %esi, 0x8(%rdx)
popq %rax
retq
leaq 0x21db(%rip), %rdi      # 0xb53d
leaq 0x1fa5(%rip), %rsi      # 0xb30e
leaq 0x21ef(%rip), %rcx      # 0xb55f
movl $0x1a6, %edx            # imm = 0x1A6
callq 0x50f0
leaq 0x221c(%rip), %rdi      # 0xb59d
leaq 0x1f86(%rip), %rsi      # 0xb30e
leaq 0x21d0(%rip), %rcx      # 0xb55f
movl $0x1aa, %edx            # imm = 0x1AA
callq 0x50f0
// File: /workspace/github_c_makefile_star2_O3/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 0x9400
movslq %r8d, %r9
leaq (%rdi,%r9), %r11
movq %rcx, %rbx
subq %r9, %rbx
shlq $0x20, %r9
xorl %r10d, %r10d
cmpb $0xd, (%r11,%r10)
je 0x93db
addq %rdx, %r9
incq %r10
cmpq %r10, %rbx
jne 0x93c7
jmp 0x9400
movl %esi, %r11d
subl %r8d, %r11d
cmpl %r10d, %r11d
je 0x9400
addl %r10d, %r8d
incl %r8d
movslq %r8d, %r10
cmpb $0xa, (%rdi,%r10)
jne 0x93ae
sarq $0x20, %r9
addq %r9, %rdi
movq %rdi, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x88(%rdi), %rdi
movl $0x20, %esi
callq 0x5290
testq %rax, %rax
je 0x9451
movl $0x4, (%rax)
movq 0x88(%r14), %rcx
movq %rcx, 0x8(%rax)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x9451
movq 0x10(%rcx), %rcx
cmpl $0x2, (%rcx)
jne 0x9459
movq 0x10(%rcx), %rcx
movslq 0x8(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1f51(%rip), %rdi      # 0xb3b1
leaq 0x1ea7(%rip), %rsi      # 0xb30e
leaq 0x2148(%rip), %rcx      # 0xb5b6
movl $0xda, %edx
callq 0x50f0
// File: /workspace/github_c_makefile_star2_O3/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 0xe526(%rip), %r14      # 0x111a8
movq %r14, %rdi
callq 0x22b0
incq 0xe53f(%rip)            # 0x111d0
movq %r14, %rdi
callq 0x2190
incq (%rbx)
jmp 0x2c82
// File: /workspace/github_c_makefile_star2_O3/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: opterror(char const*, int, int)
static void opterror(const char* msg, int p1, int p2) {
  fprintf(stderr, "mkfilter: ");
  fprintf(stderr, msg, p1, p2);
  putc('\n', stderr);
  optsok = false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movq 0x5e0b(%rip), %r15      # 0x6fe0
movq (%r15), %rcx
leaq 0x35c8(%rip), %rdi      # 0x47a7
pushq $0xa
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
movq (%r15), %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1130
movq (%r15), %rsi
pushq $0xa
popq %rdi
callq 0x1190
movb $0x0, 0xdf4b(%rip)      # 0xf158
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, 0xc3e6(%rip)    # 0xf111
movsd 0xc3f5(%rip), %xmm0     # 0xf128
je 0x2d47
movsd %xmm0, 0xc3db(%rip)     # 0xf118
movsd 0xc3eb(%rip), %xmm0     # 0xf130
jmp 0x2d86
pushq %rax
mulsd 0x12d0(%rip), %xmm0     # 0x4020
callq 0x1080
movsd 0x12c3(%rip), %xmm1     # 0x4020
divsd %xmm1, %xmm0
movsd %xmm0, 0xc3af(%rip)     # 0xf118
movsd 0xc3bf(%rip), %xmm0     # 0xf130
mulsd %xmm1, %xmm0
callq 0x1080
divsd 0x129e(%rip), %xmm0     # 0x4020
addq $0x8, %rsp
movsd %xmm0, 0xc3d2(%rip)     # 0xf160
retq
// File: /workspace/github_c_makefile_star2_O3/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: usage()
static void usage() {
  fprintf(stderr, "Mkfilter V.%s from <fisher@minster.york.ac.uk>\n", VERSION);
  fprintf(stderr,
          "Usage: mkfilter [-Be | -Bu | -Ch <r> | -Pi] [-Lp | -Hp | -Bp | -Bs] "
          "[-p <n1> <n2> ...] [-{lwz}] "
          "[-Z <alphaz>] "
          "-o <order> -a <alpha1> [ <alpha2> ]\n");
  fprintf(stderr,
          "       mkfilter -Re <q> [-Bp | -Bs | -Ap] [-l] -a <alpha>\n\n");
  fprintf(stderr, "  -Be, Bu             = Bessel, Butterworth\n");
  fprintf(stderr, "  -Ch <r>             = Chebyshev (r = dB ripple)\n");
  fprintf(stderr, "  -Pi                 = Proportional-Integral\n");
  fprintf(stderr, "  -Re <q>             = 2-pole resonator (q = Q-factor)\n");
  fprintf(stderr,
          "  -Lp, Hp, Bp, Bs, Ap = lowpass, highpass, bandpass, bandstop, "
          "allpass\n");
  fprintf(
      stderr,
      "  -p                  = use listed poles only (ni = 0 .. order-1)\n");
  fprintf(stderr, "  -l                  = just list <order> parameters\n");
  fprintf(stderr, "  -w                  = don't pre-warp frequencies\n");
  fprintf(stderr, "  -z                  = use matched z-transform\n");
  fprintf(stderr, "  -Z                  = additional z-plane zero\n");
  fprintf(stderr, "  order = 1..%d;  alpha = f(corner)/f(sample)\n\n",
          MAXORDER);
  exit(1);
}

// Assembly:
pushq %rbx
movq 0x4249(%rip), %rbx      # 0x6fe0
movq (%rbx), %rdi
leaq 0x1523(%rip), %rsi      # 0x42c4
leaq 0x154c(%rip), %rdx      # 0x42f4
xorl %eax, %eax
callq 0x1130
movq (%rbx), %rcx
leaq 0x153f(%rip), %rdi      # 0x42f8
movl $0x92, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x15b9(%rip), %rdi      # 0x438b
movl $0x3b, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x15dc(%rip), %rdi      # 0x43c7
movl $0x2c, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x15f0(%rip), %rdi      # 0x43f4
movl $0x32, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x160a(%rip), %rdi      # 0x4427
movl $0x2e, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1620(%rip), %rdi      # 0x4456
movl $0x38, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1640(%rip), %rdi      # 0x448f
movl $0x47, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x166f(%rip), %rdi      # 0x44d7
movl $0x42, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1699(%rip), %rdi      # 0x451a
movl $0x35, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16b6(%rip), %rdi      # 0x4550
movl $0x33, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16d1(%rip), %rdi      # 0x4584
movl $0x30, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16e9(%rip), %rdi      # 0x45b5
movl $0x30, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rdi
leaq 0x1701(%rip), %rsi      # 0x45e6
movl $0xa, %edx
xorl %eax, %eax
callq 0x1130
movl $0x1, %edi
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O3/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: expand(complex*, int, complex*)
static void expand(
    complex pz[],
    int npz,
    complex
        coeffs[]) { /* compute product of poles or zeros as a polynomial of z */
  int i;
  coeffs[0] = 1.0;
  for (i = 0; i < npz; i++)
    coeffs[i + 1] = 0.0;
  for (i = 0; i < npz; i++)
    multin(pz[i], npz, coeffs);
  /* check computed coeffs of z^k are all real */
  for (i = 0; i < npz + 1; i++) {
    if (fabs(coeffs[i].im) > EPS) {
      fprintf(stderr,
              "mkfilter: coeff of z^%d is not real; poles/zeros are not "
              "complex conjugates\n",
              i);
      exit(1);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%rdx)
movq $0x0, 0x8(%rdx)
movq %rsi, (%rsp)
testl %esi, %esi
jle 0x3003
movq %rdi, %r15
leaq 0x10(%rbx), %rdi
movl (%rsp), %r14d
movq %r14, %r13
shlq $0x4, %r13
xorl %ebp, %ebp
xorl %esi, %esi
movq %r13, %rdx
callq 0x1070
movq %r14, 0x20(%rsp)
leaq 0x1(%r14), %rax
movq %rax, 0x18(%rsp)
addq %rbx, %r13
movq %rbp, %rax
shlq $0x4, %rax
xorpd %xmm0, %xmm0
subsd (%r15,%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
xorpd %xmm0, %xmm0
subsd 0x8(%r15,%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r13, %r12
movq 0x18(%rsp), %r14
movsd (%r12), %xmm2
movsd 0x8(%r12), %xmm3
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x34f5
addsd -0x10(%r12), %xmm0
addsd -0x8(%r12), %xmm1
movsd %xmm0, (%r12)
movsd %xmm1, 0x8(%r12)
addq $-0x10, %r12
decq %r14
cmpq $0x1, %r14
ja 0x2f8c
movsd (%rbx), %xmm2
movsd 0x8(%rbx), %xmm3
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x34f5
movsd %xmm0, (%rbx)
movsd %xmm1, 0x8(%rbx)
incq %rbp
cmpq 0x20(%rsp), %rbp
jne 0x2f5c
movq (%rsp), %rax
testl %eax, %eax
js 0x303d
incl %eax
addq $0x8, %rbx
xorl %edi, %edi
movapd 0x1065(%rip), %xmm0     # 0x4080
movsd 0x1035(%rip), %xmm1     # 0x4058
movsd (%rbx), %xmm2
andpd %xmm0, %xmm2
ucomisd %xmm1, %xmm2
ja 0x304c
incq %rdi
addq $0x10, %rbx
cmpq %rdi, %rax
jne 0x3023
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x12a1
// File: /workspace/github_c_makefile_star2_O3/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: printcmdline(char**)
static void printcmdline(char* argv[]) {
  int k = 0;
  until(argv[k] == NULL) {
    if (k > 0)
      putchar(' ');
    fputs(argv[k++], stdout);
  }
  putchar('\n');
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x309a
xorl %r15d, %r15d
movq 0x3f5a(%rip), %r14      # 0x6fc8
testq %r15, %r15
je 0x3081
movl $0x20, %edi
callq 0x1100
movq (%rbx,%r15,8), %rdi
leaq 0x1(%r15), %r12
movq (%r14), %rsi
callq 0x10c0
movq 0x8(%rbx,%r15,8), %rdi
movq %r12, %r15
testq %rdi, %rdi
jne 0x306e
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O3/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: printgain(char const*, complex)
static void printgain(const char* str, complex gain) {
  double r = hypot(gain);
  printf("gain at %s:   mag = %15.9e", str, r);
  if (r > EPS)
    printf("   phase = %14.10f pi", atan2(gain) / PI);
  putchar('\n');
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movaps %xmm1, %xmm2
movaps %xmm0, %xmm1
movq %rdi, %rbx
movsd %xmm2, 0x8(%rsp)
movaps %xmm2, %xmm0
movsd %xmm1, 0x10(%rsp)
callq 0x1060
movsd %xmm0, 0x18(%rsp)
leaq 0x182b(%rip), %rdi      # 0x4961
movq %rbx, %rsi
movb $0x1, %al
callq 0x1030
movsd 0x18(%rsp), %xmm0
ucomisd 0xf0a(%rip), %xmm0      # 0x4058
jbe 0x3177
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0x1040
divsd 0xeb7(%rip), %xmm0      # 0x4020
leaq 0x180c(%rip), %rdi      # 0x497c
movb $0x1, %al
callq 0x1030
movl $0xa, %edi
addq $0x20, %rsp
popq %rbx
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O3/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: printpz(complex*, int)
static void printpz(complex* pzvec, int num) {
  int n1 = 0;
  while (n1 < num) {
    putchar('\t');
    prcomplex(pzvec[n1]);
    int n2 = n1 + 1;
    while (n2 < num && pzvec[n2] == pzvec[n1])
      n2++;
    if (n2 - n1 > 1)
      printf("\t%d times", n2 - n1);
    putchar('\n');
    n1 = n2;
  }
  putchar('\n');
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
testl %esi, %esi
jle 0x3266
movl %esi, %r13d
movq 0x8(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
movl %esi, 0x4(%rsp)
movl %r12d, %r15d
movl $0x9, %edi
callq 0x1100
movslq %r12d, %r14
movq %r14, %rbp
shlq $0x4, %rbp
movq 0x8(%rsp), %rax
leaq (%rax,%rbp), %rbx
movsd (%rax,%rbp), %xmm0
movsd 0x8(%rax,%rbp), %xmm1
leaq 0x17b1(%rip), %rdi      # 0x499c
movb $0x2, %al
callq 0x1030
movl 0x4(%rsp), %ecx
leal 0x1(%r14), %eax
cmpl %eax, %ecx
cmovgl %ecx, %eax
incq %r14
addq 0x10(%rsp), %rbp
cmpq %r13, %r14
jge 0x3233
movsd -0x8(%rbp), %xmm0
incl %r12d
ucomisd (%rbx), %xmm0
jne 0x3236
jp 0x3236
movsd (%rbp), %xmm0
incq %r14
addq $0x10, %rbp
ucomisd 0x8(%rbx), %xmm0
jne 0x3236
jnp 0x3207
jmp 0x3236
movl %eax, %r12d
movl %r12d, %esi
subl %r15d, %esi
cmpl $0x2, %esi
jl 0x324f
leaq 0x174a(%rip), %rdi      # 0x4992
xorl %eax, %eax
callq 0x1030
movl $0xa, %edi
callq 0x1100
movl 0x4(%rsp), %esi
cmpl %esi, %r12d
jl 0x31b9
movl $0xa, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1100
nop
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/socket-backlog.c
// Function: main
int
main(int argc, char** argv)
{
	stress_args_t args = { .b = 0 };

	int listen_fd;
	int conn_fd;
	pid_t child_pid;

	socklen_t client_len;
	struct sockaddr_in client_addr;
	struct sockaddr_in server_addr;

	signal(SIGINT, terminate);
	setbuf(stdout, NULL);

	stress_parse_args(argc, argv, &args);

	listen_fd = socket(AF_INET, SOCK_STREAM, 0);

	memset(&server_addr, sizeof(server_addr), 0);
	server_addr.sin_family = AF_INET;
	server_addr.sin_addr.s_addr = htonl(INADDR_ANY);
	server_addr.sin_port = htons(1337);

	bind(listen_fd, (struct sockaddr*)&server_addr, sizeof(server_addr));
	listen(listen_fd, LISTEN_BACKLOG);

	for (;;) {
		client_len = sizeof(client_addr);
		conn_fd = accept(
		  listen_fd, (struct sockaddr*)&client_addr, &client_len);

		if ((child_pid = fork()) == 0) {
			close(listen_fd);
			str_echo(conn_fd);
			exit(0);
		}

		close(conn_fd);
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2038, %rsp           # imm = 0x2038
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x30(%rsp), %r14
movl $0x2008, %edx           # imm = 0x2008
movq %r14, %rdi
xorl %esi, %esi
callq 0x10b0
leaq -0x35(%rip), %rsi       # 0x1883
movl $0x2, %edi
callq 0x10f0
movq 0x26ff(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1090
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1609
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x11b0
movl %eax, %ebx
leaq 0x20(%rsp), %rsi
movq $0x39050002, (%rsi)     # imm = 0x39050002
movl %eax, %edi
movl $0x10, %edx
callq 0x1120
movl %ebx, %edi
movl $0x400, %esi            # imm = 0x400
callq 0x1110
leaq 0xc(%rsp), %rdx
movl $0x10, (%rdx)
leaq 0x10(%rsp), %rsi
movl %ebx, %edi
callq 0x1140
movl %eax, %ebp
callq 0x1190
testl %eax, %eax
je 0x196a
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %r15
movl %ebp, %edi
callq 0x10c0
movl $0x10, 0xc(%rsp)
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1140
movl %eax, %ebp
callq 0x1190
testl %eax, %eax
jne 0x1943
movl %ebx, %edi
callq 0x10c0
movl %ebp, %edi
callq 0x183e
xorl %edi, %edi
callq 0x1160
// File: /workspace/github_c_makefile_star2_O3/oreparaz[P]dudect/examples/donna/dut_donna.c
// Function: do_one_computation
uint8_t do_one_computation(uint8_t *data) {
  uint8_t out[32] = {0};
  const uint8_t secret[32] = {1,2,3};
  uint8_t ret = 0;
  const uint8_t basepoint[32] = {9};
  curve25519_donna(out, data, basepoint);
  ret ^= out[0];
  return ret;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rsi
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
movaps 0x2860(%rip), %xmm0     # 0x42e0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps 0x2842(%rip), %xmm0     # 0x42d0
movaps %xmm0, (%rdx)
movq %rbx, %rdi
callq 0x1b60
movb (%rbx), %al
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/oreparaz[P]dudect/examples/donna/curve25519-donna.c
// Function: fmul
static void
fmul(limb *output, const limb *in, const limb *in2) {
  limb t[19];
  fproduct(t, in, in2);
  /* |t[i]| < 14*2^54 */
  freduce_degree(t);
  freduce_coefficients(t);
  /* |t[i]| < 2^26 */
  memcpy(output, t, sizeof(limb) * 10);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x2979
movq %r14, %rdi
callq 0x2f68
movq %r14, %rdi
callq 0x304d
movl $0xa, %ecx
movq %rbx, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x98, %rsp
popq %rbx
popq %r14
retq