LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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
cmpq $0x0, 0x8(%rsi)
je 0x83cb
xorl %r12d, %r12d
cmpq $0x0, 0x18(%rbx)
je 0x83cb
movq (%rbx), %rax
movq (%rax,%r12,8), %r15
testq %r15, %r15
je 0x83c2
movq 0x20(%r15), %r13
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x8394
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq *%rax
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x83aa
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 0x837b
incq %r12
cmpq 0x8(%rbx), %r12
jb 0x8368
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_O1/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
movl $0x30, %esi
callq 0x5290
movq %rbx, (%rax)
movq $-0x1, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x845d
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_O1/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), %rcx
leaq 0x48(%rcx), %rdx
leaq 0x68(%rcx), %rsi
cmpq $0x0, 0x18(%rdi)
je 0x8476
leaq 0x20(%rdi), %r8
jmp 0x84dd
movq 0x8(%rdi), %r8
movq %r8, %rax
shlq $0x5, %rax
addq %rdx, %rax
cmpb $0x0, 0x28(%rdi)
je 0x849d
movq 0x10(%rdi), %r9
notq %r9
orq %r8, %r9
jne 0x849d
incq 0x90(%rcx)
movq 0x10(%rdi), %r9
incq %r9
movq %r9, 0x10(%rdi)
cmpq 0x8(%rax), %r9
jl 0x84d2
xorl %eax, %eax
cmpq $-0x1, 0x88(%rcx)
je 0x84f3
testq %r8, %r8
jne 0x84f3
movq $0x1, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movq %rsi, %rax
movq 0x10(%rdi), %r8
shlq $0x3, %r8
addq (%rax), %r8
movq (%r8), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0x8476
movq 0x20(%rax), %rax
movq %rax, 0x20(%rdi)
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O1/redis-force[P]rpm/module/rpm_hashmap.c
// Function: hash_map_expand
static int32_t
hash_map_expand(hash_map *map, size_t size)
{
  size_t realsize = hash_map_expand_get_aligned_size(map, size);
  size_t memsize = realsize * sizeof(hash_map_entry);
  hash_table new_table;
  if (HASH_MAP_IS_REHASHING(map) || map->tables[0].used > size) {
    return -1;
  }

  new_table.size = realsize;
  new_table.size_mask = realsize - 1;
  new_table.buckets = HASH_MAP_CALLOC(map, memsize);
  new_table.used = 0;

  if (map->tables[0].buckets == NULL) {
    /* this is the first call after initialization */
    map->tables[0] = new_table;
    return 0;
  }

  map->tables[1] = new_table;
  map->rehash_index = 0;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $-0x1, %rsi
je 0x8590
movq 0x40(%rbx), %rax
movq %rax, %r14
addq %rax, %rax
cmpq %rsi, %r14
jb 0x8583
jmp 0x8597
movq $-0x1, %r14
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $-0x1, 0x88(%rbx)
jne 0x85fa
cmpq %rsi, 0x60(%rbx)
ja 0x85fa
leaq (,%r14,8), %rax
leaq (%rax,%rax,4), %rsi
leaq -0x1(%r14), %r15
movq 0x30(%rbx), %rdi
callq 0x5290
cmpq $0x0, 0x48(%rbx)
je 0x85e4
movq %rax, 0x68(%rbx)
movq %r14, 0x70(%rbx)
movq %r15, 0x78(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
jmp 0x85f8
movq %rax, 0x48(%rbx)
movq %r14, 0x50(%rbx)
movq %r15, 0x58(%rbx)
movq $0x0, 0x60(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x8839
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8814
cmpl $0x1, %eax
je 0x8814
cmpl $0x2, %eax
jne 0x8826
cmpq $0x0, 0x10(%rbx)
je 0x8826
cmpq $0x0, 0x18(%rbx)
je 0x880a
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x8801
callq 0x5250
incq %r14
cmpq 0x18(%rbx), %r14
jb 0x87ef
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
jmp 0x8821
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x8826
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_O1/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 0x889a
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)
jmp 0x889c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x89ae
movl %edx, %r15d
movq %rsi, %r14
testq %rsi, %rsi
sete %al
testl %edx, %edx
setle %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x89ae
movq %rdi, %rbx
cmpq $0x0, 0xa8(%rdi)
jne 0x8931
movq 0x98(%rbx), %rax
cmpq 0xb0(%rbx), %rax
jbe 0x8931
leal (%r15,%r15), %eax
cmpl $0x1001, %r15d          # imm = 0x1001
movl $0x1000, %edx           # imm = 0x1000
cmovgel %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 0x8998
movq 0x98(%rbx), %rdx
movq %rdx, %rax
subq 0xa8(%rbx), %rax
movl %r15d, %r15d
cmpq %r15, %rax
jae 0x8976
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 0x8998
movq 0x90(%rbx), %rdi
addq 0xa8(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5210
addq %r15, 0xa8(%rbx)
jmp 0x89ae
leaq 0x2961(%rip), %rdx      # 0xb300
movq %rbx, %rdi
movl $0x3, %esi
callq 0x90ce
movl (%rbx), %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x90a6
callq 0x5250
movq 0x90(%rbx), %rsi
testq %rsi, %rsi
je 0x90be
movq 0x88(%rbx), %rdi
callq 0x5040
movq 0x88(%rbx), %rdi
movq %rbx, %rsi
popq %rbx
jmp 0x5040
// File: /workspace/github_c_makefile_star2_O1/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 0x90f9
callq 0x5250
movq $0x0, 0x1e0(%rbx)
movq 0x90(%rbx), %rsi
testq %rsi, %rsi
je 0x9124
leaq 0x90(%rbx), %r15
movq 0x88(%rbx), %rdi
callq 0x5040
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
movl $0xffffffff, 0x1d8(%rbx) # imm = 0xFFFFFFFF
movl %ebp, (%rbx)
movq %r14, %rdi
callq 0x50b0
cmpq $0x7f, %rax
movl $0x7f, %r15d
cmovbq %rax, %r15
leaq 0x4(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5210
movb $0x0, 0x4(%rbx,%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x93c5
testq %rax, %rax
je 0x91b9
subq %rbx, %rax
leal 0x2(%rax), %ecx
movslq %ecx, %rcx
addq %r12, %rcx
movq %rcx, 0xa0(%r15)
testq %r14, %r14
je 0x91bb
movl %eax, (%r14)
jmp 0x91bb
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %ecx
cmpl $0x2b, %eax
je 0x91e3
cmpl $0x2d, %eax
jne 0x91e6
movq $-0x1, %rcx
incq %rdi
movb (%rdi), %dl
cmpb $0xd, %dl
jne 0x91f1
xorl %eax, %eax
jmp 0x9217
incq %rdi
xorl %eax, %eax
leal -0x30(%rdx), %esi
cmpb $0x9, %sil
ja 0x921c
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 0x91f6
imulq %rcx, %rax
retq
movq $-0x1, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9265
movq %rax, %rbx
movl %ebp, (%rax)
movq 0x88(%r13), %rax
movq %rax, 0x8(%rbx)
jmp 0x9267
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x92d8
movq 0x88(%r13), %rdi
leaq 0x1(%r15), %rsi
callq 0x52c0
testq %rax, %rax
je 0x92d0
movq %rax, %r13
movl (%r14), %eax
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
jb 0x9294
cmpl $0x1, %eax
jne 0x930b
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 0x92da
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x92ec
movq 0x10(%rax), %rax
movslq 0x8(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
jmp 0x92da
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 0x20be(%rip), %rdi      # 0xb3b1
leaq 0x2014(%rip), %rsi      # 0xb30e
leaq 0x21bf(%rip), %rcx      # 0xb4c0
movl $0xa5, %edx
callq 0x50f0
leaq 0x213d(%rip), %rdi      # 0xb44f
leaq 0x1ff5(%rip), %rsi      # 0xb30e
leaq 0x21a0(%rip), %rcx      # 0xb4c0
movl $0x9c, %edx
callq 0x50f0
// File: /workspace/github_c_makefile_star2_O1/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 0x9385
je 0x9368
leaq 0xb8(%rdi), %rcx
movl %eax, %edx
shlq $0x5, %rdx
cmpl $0x2, -0x20(%rcx,%rdx)
jne 0x9387
addq %rcx, %rdx
movl -0x1c(%rdx), %r8d
movl 0x8(%rdx), %esi
leal -0x1(%r8), %r9d
cmpl %r9d, %esi
jne 0x9374
decl %eax
movl %eax, 0x1d8(%rdi)
jne 0x933e
movl $0xffffffff, 0x1d8(%rdi) # imm = 0xFFFFFFFF
jmp 0x9385
cmpl %r8d, %esi
jge 0x93a6
movq $-0x1, (%rdx)
incl %esi
movl %esi, 0x8(%rdx)
popq %rax
retq
leaq 0x21af(%rip), %rdi      # 0xb53d
leaq 0x1f79(%rip), %rsi      # 0xb30e
leaq 0x21c3(%rip), %rcx      # 0xb55f
movl $0x1a6, %edx            # imm = 0x1A6
callq 0x50f0
leaq 0x21f0(%rip), %rdi      # 0xb59d
leaq 0x1f5a(%rip), %rsi      # 0xb30e
leaq 0x21a4(%rip), %rcx      # 0xb55f
movl $0x1aa, %edx            # imm = 0x1AA
callq 0x50f0
// File: /workspace/github_c_makefile_star2_O1/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:
decl %esi
movslq %esi, %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpl %esi, %edx
jge 0x9411
movslq %edx, %r9
leaq (%rdi,%r9), %r8
movq %rcx, %r10
subq %r9, %r10
xorl %r9d, %r9d
cmpb $0xd, (%r8,%r9)
je 0x93f5
incq %r9
cmpq %r9, %r10
jne 0x93e2
movl %esi, %edx
jmp 0x93f8
addl %r9d, %edx
cmpl %esi, %edx
je 0x9411
movslq %edx, %r8
leaq 0x1(%r8), %rdx
cmpb $0xa, 0x1(%rdi,%r8)
jne 0x93ce
addq %r8, %rdi
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9445
movl $0x4, (%rax)
movq 0x88(%r14), %rcx
movq %rcx, 0x8(%rax)
jmp 0x9447
xorl %eax, %eax
testq %rax, %rax
je 0x946c
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x946e
movq 0x10(%rcx), %rcx
cmpl $0x2, (%rcx)
jne 0x9476
movq 0x10(%rcx), %rcx
movslq 0x8(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
jmp 0x946e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1f34(%rip), %rdi      # 0xb3b1
leaq 0x1e8a(%rip), %rsi      # 0xb30e
leaq 0x212b(%rip), %rcx      # 0xb5b6
movl $0xda, %edx
callq 0x50f0
// File: /workspace/github_c_makefile_star2_O1/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 0xe5be(%rip), %r14      # 0x111a8
movq %r14, %rdi
callq 0x22b0
incq 0xe5d7(%rip)            # 0x111d0
movq %r14, %rdi
callq 0x2190
incq (%rbx)
jmp 0x2bea
// File: /workspace/github_c_makefile_star2_O1/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 0x35ad(%rip), %rdi      # 0x478c
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_O1/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, 0xc408(%rip)    # 0xf111
movsd 0xc417(%rip), %xmm0     # 0xf128
je 0x2d25
movsd %xmm0, 0xc3fd(%rip)     # 0xf118
movsd 0xc40d(%rip), %xmm0     # 0xf130
jmp 0x2d64
pushq %rax
mulsd 0x12f2(%rip), %xmm0     # 0x4020
callq 0x1080
movsd 0x12e5(%rip), %xmm1     # 0x4020
divsd %xmm1, %xmm0
movsd %xmm0, 0xc3d1(%rip)     # 0xf118
movsd 0xc3e1(%rip), %xmm0     # 0xf130
mulsd %xmm1, %xmm0
callq 0x1080
divsd 0x12c0(%rip), %xmm0     # 0x4020
addq $0x8, %rsp
movsd %xmm0, 0xc3f4(%rip)     # 0xf160
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x426b(%rip), %rbx      # 0x6fe0
movq (%rbx), %rdi
leaq 0x152a(%rip), %rsi      # 0x42a9
leaq 0x1553(%rip), %rdx      # 0x42d9
xorl %eax, %eax
callq 0x1130
movq (%rbx), %rcx
leaq 0x1546(%rip), %rdi      # 0x42dd
movl $0x92, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x15c0(%rip), %rdi      # 0x4370
movl $0x3b, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x15e3(%rip), %rdi      # 0x43ac
movl $0x2c, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x15f7(%rip), %rdi      # 0x43d9
movl $0x32, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1611(%rip), %rdi      # 0x440c
movl $0x2e, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1627(%rip), %rdi      # 0x443b
movl $0x38, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1647(%rip), %rdi      # 0x4474
movl $0x47, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x1676(%rip), %rdi      # 0x44bc
movl $0x42, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16a0(%rip), %rdi      # 0x44ff
movl $0x35, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16bd(%rip), %rdi      # 0x4535
movl $0x33, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16d8(%rip), %rdi      # 0x4569
movl $0x30, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rcx
leaq 0x16f0(%rip), %rdi      # 0x459a
movl $0x30, %esi
movl $0x1, %edx
callq 0x11a0
movq (%rbx), %rdi
leaq 0x1708(%rip), %rsi      # 0x45cb
movl $0xa, %edx
xorl %eax, %eax
callq 0x1130
movl $0x1, %edi
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O1/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
movl %esi, %r14d
movq %rdi, %r15
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%rdx)
movq $0x0, 0x8(%rdx)
movl %esi, %r12d
testl %esi, %esi
jle 0x2f1e
leaq 0x10(%rbx), %rdi
movq %r12, %rdx
shlq $0x4, %rdx
xorl %esi, %esi
callq 0x1070
movq %r14, 0x10(%rsp)
testl %r14d, %r14d
jle 0x2fe2
leaq 0x1(%r12), %rax
movq %rax, 0x20(%rsp)
movq %r12, %rax
shlq $0x4, %rax
addq %rbx, %rax
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
movq %r14, %rax
shlq $0x4, %rax
xorpd %xmm0, %xmm0
subsd (%r15,%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
subsd 0x8(%r15,%rax), %xmm0
movsd %xmm0, (%rsp)
movq 0x18(%rsp), %rbp
movq 0x20(%rsp), %r13
movsd (%rbp), %xmm2
movsd 0x8(%rbp), %xmm3
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x34e1
addsd -0x10(%rbp), %xmm0
addsd -0x8(%rbp), %xmm1
movsd %xmm0, (%rbp)
movsd %xmm1, 0x8(%rbp)
addq $-0x10, %rbp
decq %r13
cmpq $0x1, %r13
jg 0x2f79
movsd (%rbx), %xmm2
movsd 0x8(%rbx), %xmm3
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x34e1
movsd %xmm0, (%rbx)
movsd %xmm1, 0x8(%rbx)
incq %r14
cmpq %r12, %r14
jne 0x2f48
movq 0x10(%rsp), %rax
testl %eax, %eax
js 0x301d
incl %eax
addq $0x8, %rbx
xorl %edi, %edi
movapd 0x1085(%rip), %xmm0     # 0x4080
movsd 0x1055(%rip), %xmm1     # 0x4058
movsd (%rbx), %xmm2
andpd %xmm0, %xmm2
ucomisd %xmm1, %xmm2
ja 0x302c
incq %rdi
addq $0x10, %rbx
cmpq %rdi, %rax
jne 0x3003
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x12a1
// File: /workspace/github_c_makefile_star2_O1/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:
cmpq $0x0, (%rdi)
je 0x3081
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x3f7c(%rip), %r15      # 0x6fc8
testq %r14, %r14
je 0x305b
movl $0x20, %edi
callq 0x1100
leaq 0x1(%r14), %r12
movq (%rbx,%r14,8), %rdi
movq (%r15), %rsi
callq 0x10c0
cmpq $0x0, 0x8(%rbx,%r14,8)
movq %r12, %r14
jne 0x304c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
movl $0xa, %edi
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O1/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 0x1834(%rip), %rdi      # 0x4946
movq %rbx, %rsi
movb $0x1, %al
callq 0x1030
movsd 0x18(%rsp), %xmm0
ucomisd 0xf2e(%rip), %xmm0      # 0x4058
jbe 0x3153
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0x1040
divsd 0xedb(%rip), %xmm0      # 0x4020
leaq 0x1815(%rip), %rdi      # 0x4961
movb $0x1, %al
callq 0x1030
movl $0xa, %edi
addq $0x20, %rsp
popq %rbx
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O1/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 0x3242
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 0x17ba(%rip), %rdi      # 0x4981
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 0x320f
movsd -0x8(%rbp), %xmm0
incl %r12d
ucomisd (%rbx), %xmm0
jne 0x3212
jp 0x3212
movsd (%rbp), %xmm0
incq %r14
addq $0x10, %rbp
ucomisd 0x8(%rbx), %xmm0
jne 0x3212
jnp 0x31e3
jmp 0x3212
movl %eax, %r12d
movl %r12d, %esi
subl %r15d, %esi
cmpl $0x2, %esi
jl 0x322b
leaq 0x1753(%rip), %rdi      # 0x4977
xorl %eax, %eax
callq 0x1030
movl $0xa, %edi
callq 0x1100
movl 0x4(%rsp), %esi
cmpl %esi, %r12d
jl 0x3195
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_O1/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       # 0x1880
movl $0x2, %edi
callq 0x10f0
movq 0x2702(%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 0x1967
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 0x1940
movl %ebx, %edi
callq 0x10c0
movl %ebp, %edi
callq 0x183b
xorl %edi, %edi
callq 0x1160
// File: /workspace/github_c_makefile_star2_O1/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 0x2836(%rip), %xmm0     # 0x42e0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps 0x2818(%rip), %xmm0     # 0x42d0
movaps %xmm0, (%rdx)
movq %rbx, %rdi
callq 0x1b8c
movb (%rbx), %al
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2af4
movq %r14, %rdi
callq 0x30e3
movq %r14, %rdi
callq 0x31c8
movl $0xa, %ecx
movq %rbx, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x98, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/oreparaz[P]dudect/examples/donna/curve25519-donna.c
// Function: freduce_degree
static void freduce_degree(limb *output) {
  /* Each of these shifts and adds ends up multiplying the value by 19.
   *
   * For output[0..8], the absolute entry value is < 14*2^54 and we add, at
   * most, 19*14*2^54 thus, on exit, |output[0..8]| < 280*2^54. */
  output[8] += output[18] << 4;
  output[8] += output[18] << 1;
  output[8] += output[18];
  output[7] += output[17] << 4;
  output[7] += output[17] << 1;
  output[7] += output[17];
  output[6] += output[16] << 4;
  output[6] += output[16] << 1;
  output[6] += output[16];
  output[5] += output[15] << 4;
  output[5] += output[15] << 1;
  output[5] += output[15];
  output[4] += output[14] << 4;
  output[4] += output[14] << 1;
  output[4] += output[14];
  output[3] += output[13] << 4;
  output[3] += output[13] << 1;
  output[3] += output[13];
  output[2] += output[12] << 4;
  output[2] += output[12] << 1;
  output[2] += output[12];
  output[1] += output[11] << 4;
  output[1] += output[11] << 1;
  output[1] += output[11];
  output[0] += output[10] << 4;
  output[0] += output[10] << 1;
  output[0] += output[10];
}

// Assembly:
movq 0x90(%rdi), %rax
leaq (%rax,%rax,8), %rcx
addq 0x40(%rdi), %rax
leaq (%rax,%rcx,2), %rax
movq %rax, 0x40(%rdi)
movdqu 0x80(%rdi), %xmm3
movdqu (%rdi), %xmm0
movdqu 0x10(%rdi), %xmm2
movdqu 0x20(%rdi), %xmm4
movdqu 0x30(%rdi), %xmm5
movdqa 0x11e3(%rip), %xmm1     # 0x4300
movdqa %xmm3, %xmm6
pmuludq %xmm1, %xmm6
paddq %xmm3, %xmm5
psrlq $0x20, %xmm3
pmuludq %xmm1, %xmm3
psllq $0x20, %xmm3
paddq %xmm6, %xmm3
paddq %xmm5, %xmm3
movdqu %xmm3, 0x30(%rdi)
movdqu 0x70(%rdi), %xmm3
movdqa %xmm3, %xmm5
pmuludq %xmm1, %xmm5
paddq %xmm3, %xmm4
psrlq $0x20, %xmm3
pmuludq %xmm1, %xmm3
psllq $0x20, %xmm3
paddq %xmm5, %xmm3
paddq %xmm4, %xmm3
movdqu %xmm3, 0x20(%rdi)
movdqu 0x60(%rdi), %xmm3
movdqa %xmm3, %xmm4
pmuludq %xmm1, %xmm4
paddq %xmm3, %xmm2
psrlq $0x20, %xmm3
pmuludq %xmm1, %xmm3
psllq $0x20, %xmm3
paddq %xmm4, %xmm3
paddq %xmm2, %xmm3
movdqu %xmm3, 0x10(%rdi)
movdqu 0x50(%rdi), %xmm2
movdqa %xmm2, %xmm3
pmuludq %xmm1, %xmm3
paddq %xmm2, %xmm0
psrlq $0x20, %xmm2
pmuludq %xmm1, %xmm2
psllq $0x20, %xmm2
paddq %xmm3, %xmm2
paddq %xmm0, %xmm2
movdqu %xmm2, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/oreparaz[P]dudect/examples/donna/curve25519-donna.c
// Function: freduce_coefficients
static void freduce_coefficients(limb *output) {
  unsigned i;

  output[10] = 0;

  for (i = 0; i < 10; i += 2) {
    limb over = div_by_2_26(output[i]);
    /* The entry condition (that |output[i]| < 280*2^54) means that over is, at
     * most, 280*2^28 in the first iteration of this loop. This is added to the
     * next limb and we can approximate the resulting bound of that limb by
     * 281*2^54. */
    output[i] -= over << 26;
    output[i+1] += over;

    /* For the first iteration, |output[i+1]| < 281*2^54, thus |over| <
     * 281*2^29. When this is added to the next limb, the resulting bound can
     * be approximated as 281*2^54.
     *
     * For subsequent iterations of the loop, 281*2^54 remains a conservative
     * bound and no overflow occurs. */
    over = div_by_2_25(output[i+1]);
    output[i+1] -= over << 25;
    output[i+2] += over;
  }
  /* Now |output[10]| < 281*2^29 and all other coefficients are reduced. */
  output[0] += output[10] << 4;
  output[0] += output[10] << 1;
  output[0] += output[10];

  output[10] = 0;

  /* Now output[1..9] are reduced, and |output[0]| < 2^26 + 19*281*2^29
   * So |over| will be no more than 2^16. */
  {
    limb over = div_by_2_26(output[0]);
    output[0] -= over << 26;
    output[1] += over;
  }

  /* Now output[0,2..9] are reduced, and |output[1]| < 2^25 + 2^16 < 2^26. The
   * bound on |output[1]| is sufficient to meet our needs. */
}

// Assembly:
movq $0x0, 0x50(%rdi)
movq $-0x2, %rax
movq 0x10(%rdi,%rax,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
sarl $0x1f, %edx
shrl $0x6, %edx
addq %rcx, %rdx
movq %rdx, %rsi
sarq $0x1a, %rsi
andq $-0x4000000, %rdx       # imm = 0xFC000000
subq %rdx, %rcx
movq %rcx, 0x10(%rdi,%rax,8)
addq 0x18(%rdi,%rax,8), %rsi
movq %rsi, %rcx
shrq $0x20, %rcx
sarl $0x1f, %ecx
shrl $0x7, %ecx
addq %rsi, %rcx
movq %rcx, %rdx
sarq $0x19, %rdx
andq $-0x2000000, %rcx       # imm = 0xFE000000
subq %rcx, %rsi
movq %rsi, 0x18(%rdi,%rax,8)
addq %rdx, 0x20(%rdi,%rax,8)
addq $0x2, %rax
cmpq $0x8, %rax
jb 0x31d7
movq 0x50(%rdi), %rax
leaq (%rax,%rax,8), %rcx
addq (%rdi), %rax
leaq (%rax,%rcx,2), %rax
movq $0x0, 0x50(%rdi)
movq %rax, %rcx
sarq $0x3f, %rcx
shrl $0x6, %ecx
addq %rax, %rcx
movq %rcx, %rdx
sarq $0x1a, %rdx
andq $-0x4000000, %rcx       # imm = 0xFC000000
subq %rcx, %rax
movq %rax, (%rdi)
addq %rdx, 0x8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/silverneko[P]miku/./src/utils.h
// Function: int cast::to<int>() const
T to() const
      {
         T res;
         istringstream in(val);
         in >> res;
         return res;
      }

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x34b0
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x31b0
movl 0xc(%rsp), %ebx
movq 0x942b(%rip), %rsi      # 0xcfb0
leaq 0x10(%rsp), %rdi
callq 0x33a0
leaq 0x88(%rsp), %rdi
callq 0x3100
movl %ebx, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq %rax, %rbx
movq 0x93ff(%rip), %rsi      # 0xcfb0
leaq 0x10(%rsp), %rdi
callq 0x33a0
leaq 0x88(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x34e0
// File: /workspace/github_c_makefile_star2_O1/silverneko[P]miku/./src/sandbox.cpp
// Function: sandboxInit(int)
int sandboxInit(int boxid)
{
   ostringstream sout;
   sout << "isolate --box-id=" << boxid;
   sout << " --cg";
   sout << " --init 2>/dev/null >/dev/null";
   cerr << "[debug] box-" << boxid << " inited" << endl;
   system(sout.str().c_str());
   return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movl %edi, %ebx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x3350
leaq 0x4ce6(%rip), %rsi      # 0x9280
movl $0x11, %edx
movq %r14, %rdi
callq 0x32f0
leaq 0x20(%rsp), %rdi
movl %ebx, %esi
callq 0x34d0
leaq 0x4cd8(%rip), %rsi      # 0x9292
leaq 0x20(%rsp), %rdi
movl $0x5, %edx
callq 0x32f0
leaq 0x4d89(%rip), %rsi      # 0x9359
leaq 0x20(%rsp), %rdi
movl $0x1e, %edx
callq 0x32f0
movq 0x8a02(%rip), %rdi      # 0xcfe8
leaq 0x4d4b(%rip), %rsi      # 0x9338
movl $0xc, %edx
callq 0x32f0
movq 0x89ea(%rip), %rdi      # 0xcfe8
movl %ebx, %esi
callq 0x34d0
movq %rax, %rbx
leaq 0x4d69(%rip), %rsi      # 0x9378
movl $0x7, %edx
movq %rax, %rdi
callq 0x32f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x3430
movq (%rsp), %rdi
callq 0x3240
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4674
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x893d(%rip), %rsi      # 0xcfb8
leaq 0x20(%rsp), %rdi
callq 0x3170
leaq 0x90(%rsp), %rdi
callq 0x3100
xorl %eax, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46c4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x46c4
jmp 0x46c1
movq %rax, %rbx
movq 0x88ed(%rip), %rsi      # 0xcfb8
leaq 0x20(%rsp), %rdi
callq 0x3170
leaq 0x90(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x34e0
// File: /workspace/github_c_makefile_star2_O1/silverneko[P]miku/./src/sandbox.cpp
// Function: sandboxDele(int)
int sandboxDele(int boxid)
{
   ostringstream sout;
   sout << "isolate --box-id=" << boxid;
   sout << " --cg";
   sout << " --cleanup 2>/dev/null >/dev/null";
   cerr << "[debug] box-" << boxid << " cleaned" << endl;
   system(sout.str().c_str());
   return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movl %edi, %ebx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x3350
leaq 0x4b76(%rip), %rsi      # 0x9280
movl $0x11, %edx
movq %r14, %rdi
callq 0x32f0
leaq 0x20(%rsp), %rdi
movl %ebx, %esi
callq 0x34d0
leaq 0x4b68(%rip), %rsi      # 0x9292
leaq 0x20(%rsp), %rdi
movl $0x5, %edx
callq 0x32f0
leaq 0x4c40(%rip), %rsi      # 0x9380
leaq 0x20(%rsp), %rdi
movl $0x21, %edx
callq 0x32f0
movq 0x8892(%rip), %rdi      # 0xcfe8
leaq 0x4bdb(%rip), %rsi      # 0x9338
movl $0xc, %edx
callq 0x32f0
movq 0x887a(%rip), %rdi      # 0xcfe8
movl %ebx, %esi
callq 0x34d0
movq %rax, %rbx
leaq 0x4c23(%rip), %rsi      # 0x93a2
movl $0x8, %edx
movq %rax, %rdi
callq 0x32f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31d0
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x3430
movq (%rsp), %rdi
callq 0x3240
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47e4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x87cd(%rip), %rsi      # 0xcfb8
leaq 0x20(%rsp), %rdi
callq 0x3170
leaq 0x90(%rsp), %rdi
callq 0x3100
xorl %eax, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4834
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4834
jmp 0x4831
movq %rax, %rbx
movq 0x877d(%rip), %rsi      # 0xcfb8
leaq 0x20(%rsp), %rdi
callq 0x3170
leaq 0x90(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x34e0
nop
// File: /workspace/github_c_makefile_star2_O1/silverneko[P]miku/./src/server_io.cpp
// Function: respondValidating(int)
int respondValidating(int submission_id)
{
   ostringstream sout;
   sout << "respond_validating.py " << submission_id;
   system(sout.str().c_str());
   return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movl %edi, %ebx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x3350
leaq 0x1d32(%rip), %rsi      # 0x96a6
movl $0x16, %edx
movq %r14, %rdi
callq 0x32f0
leaq 0x20(%rsp), %rdi
movl %ebx, %esi
callq 0x34d0
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x3430
movq (%rsp), %rdi
callq 0x3240
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79be
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x55f3(%rip), %rsi      # 0xcfb8
leaq 0x20(%rsp), %rdi
callq 0x3170
leaq 0x90(%rsp), %rdi
callq 0x3100
xorl %eax, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a0e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7a0e
jmp 0x7a0b
movq %rax, %rbx
movq 0x55a3(%rip), %rsi      # 0xcfb8
leaq 0x20(%rsp), %rdi
callq 0x3170
leaq 0x90(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x34e0