LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_add_at_head
void obdeque_add_at_head(obdeque *deque, obj *to_add){

  obdeque_node *new_node;

  assert(deque);
  assert(to_add);

  /* creating deque node with to_add ob_retains to account for the deque's
   * reference */
  new_node = obdeque_new_node(to_add);

  /* set node data */
  new_node->next = deque->head;

  /* update deque data */
  /* if a head aleady exists update head prev */
  if(deque->head) deque->head->prev = new_node;
  else deque->tail = new_node; /* else set tail, which should not be NULL
                                 anymore*/
  deque->head = new_node;
  deque->length++;

  return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x2084
testq %rsi, %rsi
je 0x209d
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20ba
movq 0x8(%rbx), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbx), %rdx
leaq 0x18(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rbx)
incq 0x18(%rbx)
popq %rbx
retq
leaq 0x26e1(%rip), %rdi      # 0x476c
leaq 0x2586(%rip), %rsi      # 0x4618
leaq 0x271b(%rip), %rcx      # 0x47b4
pushq $0x78
jmp 0x20b4
leaq 0x273b(%rip), %rdi      # 0x47df
leaq 0x256d(%rip), %rsi      # 0x4618
leaq 0x2702(%rip), %rcx      # 0x47b4
pushq $0x79
popq %rdx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_new_node
obdeque_node * obdeque_new_node(obj *to_store){

  static const char classname[] = "obdeque_node";
  obdeque_node *new_instance;

  assert(to_store != NULL);

  new_instance = malloc(sizeof(obdeque_node));
  assert(new_instance != NULL);

  /* initialize base class data */
  ob_init_base((obj *)new_instance, &obdeque_destroy_node, NULL, NULL, NULL,
               classname);

  ob_retain(to_store);
  new_instance->stored = to_store;
  new_instance->next = NULL;
  new_instance->prev = NULL;

  return new_instance;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2112
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x10b0
testq %rax, %rax
je 0x2131
movq %rax, %r14
leaq 0x81c(%rip), %rsi       # 0x28f9
leaq 0x2cec(%rip), %r9       # 0x4dd0
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2f98
movq %rbx, %rdi
callq 0x319f
movq %rbx, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x29b2(%rip), %rdi      # 0x4acb
leaq 0x24f8(%rip), %rsi      # 0x4618
leaq 0x29b5(%rip), %rcx      # 0x4adc
movl $0x1b1, %edx            # imm = 0x1B1
callq 0x1050
leaq 0x29ca(%rip), %rdi      # 0x4b02
leaq 0x24d9(%rip), %rsi      # 0x4618
leaq 0x2996(%rip), %rcx      # 0x4adc
movl $0x1b4, %edx            # imm = 0x1B4
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_add_at_iterator
void obdeque_add_at_iterator(obdeque *deque, obdeque_iterator *it, obj *to_add){

  obdeque_node *new_node;

  assert(deque);
  assert(it);
  assert(it->deque == deque);
  assert(to_add);

  if(!it->node){
    obdeque_add_at_head(deque, to_add);
    it->node = deque->head;
  }

  /* creating deque node with to_add ob_retains to account for the deque's
   * reference */
  new_node = obdeque_new_node(to_add);

  /* set node data */
  new_node->prev = it->node->prev;
  new_node->next = it->node;
  if(it->node->prev) it->node->prev->next = new_node;
  it->node->prev = new_node;

  deque->length++;

  /* update deque data if the iterator is pointing at the head (added node
   * cannot be the new tail) */
  if(it->node == deque->head) deque->head = new_node;

  /* update iterator to newly inserted node */
  assert(obdeque_iterate_prev(deque, it));

  return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x21e9
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2208
movq %rdi, %r14
cmpq %rdi, 0x8(%rbx)
jne 0x2227
movq %rdx, %r15
testq %rdx, %rdx
je 0x2246
cmpq $0x0, 0x10(%rbx)
jne 0x219d
movq %r14, %rdi
movq %r15, %rsi
callq 0x204a
movq 0x8(%r14), %rax
movq %rax, 0x10(%rbx)
movq %r15, %rdi
callq 0x20ba
movq 0x10(%rbx), %rcx
movq 0x18(%rcx), %rdx
movq %rdx, 0x18(%rax)
movq %rcx, 0x10(%rax)
testq %rdx, %rdx
je 0x21be
movq %rax, 0x10(%rdx)
movq %rax, 0x18(%rcx)
incq 0x18(%r14)
cmpq 0x8(%r14), %rcx
jne 0x21d0
movq %rax, 0x8(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1fb3
testb %al, %al
je 0x2265
popq %rbx
popq %r14
popq %r15
retq
leaq 0x257c(%rip), %rdi      # 0x476c
leaq 0x2421(%rip), %rsi      # 0x4618
leaq 0x2613(%rip), %rcx      # 0x4811
movl $0xac, %edx
callq 0x1050
leaq 0x254d(%rip), %rdi      # 0x475c
leaq 0x2402(%rip), %rsi      # 0x4618
leaq 0x25f4(%rip), %rcx      # 0x4811
movl $0xad, %edx
callq 0x1050
leaq 0x2531(%rip), %rdi      # 0x475f
leaq 0x23e3(%rip), %rsi      # 0x4618
leaq 0x25d5(%rip), %rcx      # 0x4811
movl $0xae, %edx
callq 0x1050
leaq 0x2592(%rip), %rdi      # 0x47df
leaq 0x23c4(%rip), %rsi      # 0x4618
leaq 0x25b6(%rip), %rcx      # 0x4811
movl $0xaf, %edx
callq 0x1050
leaq 0x25e8(%rip), %rdi      # 0x4854
leaq 0x23a5(%rip), %rsi      # 0x4618
leaq 0x2597(%rip), %rcx      # 0x4811
movl $0xc7, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_join
obdeque * obdeque_join(const obdeque *d1, const obdeque *d2){

  obdeque *joined;
  obdeque_iterator *it;
  obj *element;

  assert(d1);
  assert(d2);

  joined = obdeque_copy(d1);

  it = obdeque_head_iterator(d2);

  if(!it) return joined; /* if the list is empty, return joined list */

  /* while there are elements in the deque to copy add to the tail of the
   * deque */
  do{
    element = obdeque_obj_at_iterator(d2, it);
    obdeque_add_at_tail(joined, element);
  } while(obdeque_iterate_next(d2, it));

  ob_release((obj *)it);

  return joined;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x22e4
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2303
callq 0x1c75
movq %rax, %r14
movq %rbx, %rdi
callq 0x1ced
testq %rax, %rax
je 0x22db
movq %rax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d19
movq %r14, %rdi
movq %rax, %rsi
callq 0x1d9a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1e12
testb %al, %al
jne 0x22ae
movq %r15, %rdi
callq 0x316a
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2589(%rip), %rdi      # 0x4874
leaq 0x2326(%rip), %rsi      # 0x4618
leaq 0x257e(%rip), %rcx      # 0x4877
movl $0xd3, %edx
callq 0x1050
leaq 0x25a5(%rip), %rdi      # 0x48af
leaq 0x2307(%rip), %rsi      # 0x4618
leaq 0x255f(%rip), %rcx      # 0x4877
movl $0xd4, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_find_obj
uint8_t obdeque_find_obj(const obdeque *deque, const obj *to_find){

  obdeque_iterator *it;
  uint8_t retval = 0;

  assert(deque);
  assert(to_find);

  it = obdeque_head_iterator(deque);
  if(!it) return 0; /* obj is not in an empty list */

  do{
    if(ob_compare(obdeque_obj_at_iterator(deque, it), to_find) == OB_EQUAL_TO){
      retval = 1;
      break;
    }
  } while(obdeque_iterate_next(deque, it));

  ob_release((obj *)it);

  return retval;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2387
movq %rsi, %rbx
testq %rsi, %rsi
je 0x23a6
movq %rdi, %r14
callq 0x1ced
testq %rax, %rax
je 0x2371
movq %rax, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d19
movq %rax, %rdi
movq %rbx, %rsi
callq 0x30b3
testb %al, %al
je 0x2375
movq %r14, %rdi
movq %r15, %rsi
callq 0x1e12
testb %al, %al
jne 0x2344
xorl %ebx, %ebx
jmp 0x2377
xorl %ebx, %ebx
jmp 0x237f
movb $0x1, %bl
movq %r15, %rdi
callq 0x316a
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x23de(%rip), %rdi      # 0x476c
leaq 0x2283(%rip), %rsi      # 0x4618
leaq 0x2516(%rip), %rcx      # 0x48b2
movl $0xed, %edx
callq 0x1050
leaq 0x253c(%rip), %rdi      # 0x48e9
leaq 0x2264(%rip), %rsi      # 0x4618
leaq 0x24f7(%rip), %rcx      # 0x48b2
movl $0xee, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_sort_with_funct
void obdeque_sort_with_funct(obdeque *deque, int8_t order, ob_compare_fptr funct){

  obdeque sorted; /* stack variable to remove internal memory management
                     burden */

  assert(deque);
  assert(order == OB_LEAST_TO_GREATEST || order == OB_GREATEST_TO_LEAST);
  assert(funct);

  sorted = obdeque_recursive_sort(*deque, order, funct);

  /* connect head and tail of newly sorted list to deque */
  deque->head = sorted.head;
  deque->tail = sorted.tail;

  return;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x2421
movq %rdi, %rbx
movsbl %sil, %esi
cmpl $-0x1, %esi
je 0x23ee
cmpl $0x1, %esi
jne 0x245f
testq %rdx, %rdx
je 0x2440
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x247e
movups 0x8(%r14), %xmm0
movups %xmm0, 0x8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x2344(%rip), %rdi      # 0x476c
leaq 0x21e9(%rip), %rsi      # 0x4618
leaq 0x24bb(%rip), %rcx      # 0x48f1
movl $0x10a, %edx            # imm = 0x10A
callq 0x1050
leaq 0x252a(%rip), %rdi      # 0x4971
leaq 0x21ca(%rip), %rsi      # 0x4618
leaq 0x249c(%rip), %rcx      # 0x48f1
movl $0x10c, %edx            # imm = 0x10C
callq 0x1050
leaq 0x24cc(%rip), %rdi      # 0x4932
leaq 0x21ab(%rip), %rsi      # 0x4618
leaq 0x247d(%rip), %rcx      # 0x48f1
movl $0x10b, %edx            # imm = 0x10B
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_remove_head
void obdeque_remove_head(obdeque *deque){

  obdeque_node *temp_node;

  assert(deque);

  /* return if the list is empty */
  if(!(temp_node = deque->head)) return;

  /* repair deque after removal */
  deque->head = deque->head->next;
  if(deque->head) deque->head->prev = NULL;
  else deque->tail = NULL;

  deque->length--;

  /* set temp_node next and prev to null, to separate the node completely from
   * the deque if it lives on through a reference in an iterator */
  temp_node->next = NULL;
  temp_node->prev = NULL;

  ob_release((obj *)temp_node);

  return;
}

// Assembly:
testq %rdi, %rdi
je 0x2708
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x2707
movq 0x10(%rax), %rcx
leaq 0x10(%rdi), %rdx
leaq 0x18(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq %rcx, 0x8(%rdi)
andq $0x0, (%rsi)
decq 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, %rdi
jmp 0x316a
retq
pushq %rax
leaq 0x205c(%rip), %rdi      # 0x476c
leaq 0x1f01(%rip), %rsi      # 0x4618
leaq 0x22f5(%rip), %rcx      # 0x4a13
movl $0x135, %edx            # imm = 0x135
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_remove_tail
void obdeque_remove_tail(obdeque *deque){

  obdeque_node *temp_node;

  assert(deque);

  /* return NULL if the list is empty */
  if(!(temp_node = deque->tail)) return;

  /* repair deque after removal */
  deque->tail = deque->tail->prev;
  if(deque->tail) deque->tail->next = NULL;
  else deque->head = NULL;

  deque->length--;

  /* set temp_node next and prev to null, to separate the node completely from
   * the deque if it lives on through a reference in an iterator */
  temp_node->next = NULL;
  temp_node->prev = NULL;

  ob_release((obj *)temp_node);

  return;
}

// Assembly:
testq %rdi, %rdi
je 0x2765
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x2764
movq 0x18(%rax), %rcx
leaq 0x8(%rdi), %rdx
leaq 0x10(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq %rcx, 0x10(%rdi)
andq $0x0, (%rsi)
decq 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, %rdi
jmp 0x316a
retq
pushq %rax
leaq 0x1fff(%rip), %rdi      # 0x476c
leaq 0x1ea4(%rip), %rsi      # 0x4618
leaq 0x22bc(%rip), %rcx      # 0x4a37
movl $0x150, %edx            # imm = 0x150
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_remove_at_iterator
void obdeque_remove_at_iterator(obdeque *deque, obdeque_iterator *it){

  obdeque_node *temp_node;

  assert(deque);
  assert(it);
  assert(deque == it->deque); /* ensure that iterator is associated with given
                                 deque */
  if(!it->node) return; /* if iterator points to no node (an empty deque)
                           do nothing */

  if(it->node == deque->head) deque->head = it->node->next;
  if(it->node == deque->tail) deque->tail = it->node->prev;
  if(it->node->prev) it->node->prev->next = it->node->next;
  if(it->node->next) it->node->next->prev = it->node->prev;

  deque->length--;

  temp_node = it->node;

  /* advance iterator to next valid node */
  if(!obdeque_iterate_next(deque, it) && !obdeque_iterate_prev(deque, it))
    it->node = NULL;

  /* set temp_node next and prev to null, to separate the node completely from
   * the deque if it lives on through a reference in an iterator */
  temp_node->next = NULL;
  temp_node->prev = NULL;

  ob_release((obj *)temp_node); /* ob_release reference that deque holds on node */

  return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x283c
movq %rsi, %rbx
testq %rsi, %rsi
je 0x285b
movq %rdi, %r15
cmpq %rdi, 0x8(%rbx)
jne 0x287a
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x2830
cmpq 0x8(%r15), %r14
jne 0x27c6
movq 0x10(%r14), %rax
movq %rax, 0x8(%r15)
movq 0x18(%r14), %rax
cmpq 0x10(%r15), %r14
jne 0x27d4
movq %rax, 0x10(%r15)
movq 0x10(%r14), %rcx
testq %rax, %rax
je 0x27e1
movq %rcx, 0x10(%rax)
testq %rcx, %rcx
je 0x27ea
movq %rax, 0x18(%rcx)
leaq 0x10(%r14), %r12
decq 0x18(%r15)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1e12
testb %al, %al
jne 0x2815
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1fb3
testb %al, %al
jne 0x2815
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x316a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1f29(%rip), %rdi      # 0x476c
leaq 0x1dce(%rip), %rsi      # 0x4618
leaq 0x220a(%rip), %rcx      # 0x4a5b
movl $0x16b, %edx            # imm = 0x16B
callq 0x1050
leaq 0x1efa(%rip), %rdi      # 0x475c
leaq 0x1daf(%rip), %rsi      # 0x4618
leaq 0x21eb(%rip), %rcx      # 0x4a5b
movl $0x16c, %edx            # imm = 0x16C
callq 0x1050
leaq 0x2219(%rip), %rdi      # 0x4a9a
leaq 0x1d90(%rip), %rsi      # 0x4618
leaq 0x21cc(%rip), %rcx      # 0x4a5b
movl $0x16d, %edx            # imm = 0x16D
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_clear
void obdeque_clear(obdeque *deque){

  obdeque_node *tmp, *next;

  assert(deque);

  tmp = deque->head;

  while(tmp){

    next = tmp->next;

    /* remove references to other nodes, individual nodes may live on due to
     * references from iterators */
    tmp->next = NULL;
    tmp->prev = NULL;

    ob_release((obj *)tmp);
    tmp = next;
  }

  deque->head = NULL;
  deque->tail = NULL;
  deque->length = 0;

  return;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x28da
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
je 0x28c7
movq 0x10(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
callq 0x316a
movq %r14, %rdi
jmp 0x28ad
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1e8b(%rip), %rdi      # 0x476c
leaq 0x1d30(%rip), %rsi      # 0x4618
leaq 0x21be(%rip), %rcx      # 0x4aad
movl $0x18e, %edx            # imm = 0x18E
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_destroy_node
void obdeque_destroy_node(obj *to_dealloc){

  /* cast generic obj to obdeque_node */
  obdeque_node *instance = (obdeque_node *)to_dealloc;

  assert(to_dealloc);
  assert(ob_has_class(to_dealloc, "obdeque_node"));

  ob_release(instance->stored);

  return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x291c
movq %rdi, %rbx
leaq 0x24c7(%rip), %rsi      # 0x4dd0
callq 0x31e2
testb %al, %al
je 0x293b
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x316a
leaq 0x21f4(%rip), %rdi      # 0x4b17
leaq 0x1cee(%rip), %rsi      # 0x4618
leaq 0x21f1(%rip), %rcx      # 0x4b22
movl $0x1c8, %edx            # imm = 0x1C8
callq 0x1050
leaq 0x2201(%rip), %rdi      # 0x4b43
leaq 0x1ccf(%rip), %rsi      # 0x4618
leaq 0x21d2(%rip), %rcx      # 0x4b22
movl $0x1c9, %edx            # imm = 0x1C9
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_destroy_iterator
void obdeque_destroy_iterator(obj *to_dealloc){

  /* cast generic obj to obdeque_node */
  obdeque_iterator *instance = (obdeque_iterator *)to_dealloc;

  assert(to_dealloc);
  assert(ob_has_class(to_dealloc, "obdeque_iterator"));

  ob_release((obj *)instance->node);

  return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x297d
movq %rdi, %rbx
leaq 0x2476(%rip), %rsi      # 0x4de0
callq 0x31e2
testb %al, %al
je 0x299c
movq 0x10(%rbx), %rdi
popq %rbx
jmp 0x316a
leaq 0x2193(%rip), %rdi      # 0x4b17
leaq 0x1c8d(%rip), %rsi      # 0x4618
leaq 0x2230(%rip), %rcx      # 0x4bc2
movl $0x1ef, %edx            # imm = 0x1EF
callq 0x1050
leaq 0x2244(%rip), %rdi      # 0x4be7
leaq 0x1c6e(%rip), %rsi      # 0x4618
leaq 0x2211(%rip), %rcx      # 0x4bc2
movl $0x1f0, %edx            # imm = 0x1F0
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_destroy
void obdeque_destroy(obj *to_dealloc){

  /* cast generic obj to obdeque */
  obdeque *instance = (obdeque *)to_dealloc;

  assert(to_dealloc);
  assert(ob_has_class(to_dealloc, "obdeque"));

  obdeque_clear(instance);

  return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x29dd
movq %rdi, %rbx
leaq 0x2426(%rip), %rsi      # 0x4df1
callq 0x31e2
testb %al, %al
je 0x29fc
movq %rbx, %rdi
popq %rbx
jmp 0x2899
leaq 0x2133(%rip), %rdi      # 0x4b17
leaq 0x1c2d(%rip), %rsi      # 0x4618
leaq 0x238f(%rip), %rcx      # 0x4d81
movl $0x2cf, %edx            # imm = 0x2CF
callq 0x1050
leaq 0x239a(%rip), %rdi      # 0x4d9d
leaq 0x1c0e(%rip), %rsi      # 0x4618
leaq 0x2370(%rip), %rcx      # 0x4d81
movl $0x2d0, %edx            # imm = 0x2D0
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_hash
ob_hash_t obdeque_hash(const obj *to_hash){

  static int8_t init = 0;
  ob_hash_t value;
  static ob_hash_t seed = 0;
  obdeque *instance = (obdeque *)to_hash;
  obdeque_iterator *it;

  assert(to_hash);
  assert(ob_has_class(to_hash, "obdeque"));

  if(init == 0){
    srand(time(NULL));
    seed = rand();
    init = 1;
  }

  value = seed;

  it = obdeque_head_iterator(instance);
  if(!it) return value;

  do{
    value += ob_hash(obdeque_obj_at_iterator(instance, it));
    value += value << 10;
    value ^= value >> 6;
  }while(obdeque_iterate_next(instance, it));

  ob_release((obj *)it);

  value += value << 3;
  value ^= value >> 11;
  value += value << 15;

  return value;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2ae2
movq %rdi, %rbx
leaq 0x23be(%rip), %rsi      # 0x4df1
callq 0x31e2
testb %al, %al
je 0x2b01
cmpb $0x1, 0x4641(%rip)      # 0x7088
jne 0x2a52
movq 0x4640(%rip), %r14      # 0x7090
jmp 0x2a76
xorl %edi, %edi
callq 0x10a0
movl %eax, %edi
callq 0x1070
callq 0x10d0
movslq %eax, %r14
movq %r14, 0x4621(%rip)      # 0x7090
movb $0x1, 0x4612(%rip)      # 0x7088
movq %rbx, %rdi
callq 0x1ced
testq %rax, %rax
je 0x2ad9
movq %rax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d19
movq %rax, %rdi
callq 0x307a
addq %r14, %rax
imulq $0x401, %rax, %rax      # imm = 0x401
movq %rax, %r14
shrq $0x6, %r14
xorq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1e12
testb %al, %al
jne 0x2a86
movq %r15, %rdi
callq 0x316a
leaq (%r14,%r14,8), %rax
movq %rax, %rcx
shrq $0xb, %rcx
xorq %rax, %rcx
imulq $0x8001, %rcx, %r14     # imm = 0x8001
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2151(%rip), %rdi      # 0x4c3a
leaq 0x1b28(%rip), %rsi      # 0x4618
leaq 0x214b(%rip), %rcx      # 0x4c42
movl $0x26b, %edx            # imm = 0x26B
callq 0x1050
leaq 0x215e(%rip), %rdi      # 0x4c66
leaq 0x1b09(%rip), %rsi      # 0x4618
leaq 0x212c(%rip), %rcx      # 0x4c42
movl $0x26c, %edx            # imm = 0x26C
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_compare
int8_t obdeque_compare(const obj *a, const obj *b){

  int8_t retval = OB_EQUAL_TO; /* assume equality and disprove if not */
  const obdeque *comp_a = (obdeque *)a;
  const obdeque *comp_b = (obdeque *)b;
  obdeque_iterator *a_it, *b_it;

  assert(a);
  assert(b);
  assert(ob_has_class(a, "obdeque"));
  assert(ob_has_class(b, "obdeque"));

  if(comp_a->length != comp_b->length) return OB_NOT_EQUAL;

  a_it = obdeque_head_iterator(comp_a);
  b_it = obdeque_head_iterator(comp_b);

  if(!a_it && !b_it) return OB_EQUAL_TO;

  if(a_it && b_it){
    do{
      if(ob_compare(obdeque_obj_at_iterator(comp_a, a_it),
                    obdeque_obj_at_iterator(comp_b, b_it)) !=
       OB_EQUAL_TO){
      retval = OB_NOT_EQUAL;
      break;
    }
    }while(obdeque_iterate_next(comp_a, a_it) &&
           obdeque_iterate_next(comp_b, b_it));
  }
  else retval = OB_NOT_EQUAL;

  ob_release((obj *)a_it);
  ob_release((obj *)b_it);

  return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2c1d
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2c3c
movq %rdi, %r14
leaq 0x22a7(%rip), %rsi      # 0x4df1
callq 0x31e2
testb %al, %al
je 0x2c5b
leaq 0x2293(%rip), %rsi      # 0x4df1
movq %rbx, %rdi
callq 0x31e2
testb %al, %al
je 0x2c7a
movq 0x18(%r14), %rax
movb $0x2, %bpl
cmpq 0x18(%rbx), %rax
jne 0x2c0c
movq %r14, %rdi
callq 0x1ced
movq %rax, %r15
movq %rbx, %rdi
callq 0x1ced
movq %rax, %r12
movq %r15, %rax
orq %r12, %rax
je 0x2c0a
testq %r12, %r12
sete %al
testq %r15, %r15
sete %cl
movb $0x2, %bpl
orb %al, %cl
jne 0x2bf8
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d19
movq %rax, %r13
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1d19
movq %r13, %rdi
movq %rax, %rsi
callq 0x30b3
testb %al, %al
jne 0x2bf8
movq %r14, %rdi
movq %r15, %rsi
callq 0x1e12
testb %al, %al
je 0x2bf6
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1e12
testb %al, %al
jne 0x2bb0
xorl %ebp, %ebp
movq %r15, %rdi
callq 0x316a
movq %r12, %rdi
callq 0x316a
jmp 0x2c0c
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2063(%rip), %rdi      # 0x4c87
leaq 0x19ed(%rip), %rsi      # 0x4618
leaq 0x2057(%rip), %rcx      # 0x4c89
movl $0x290, %edx            # imm = 0x290
callq 0x1050
leaq 0x2077(%rip), %rdi      # 0x4cba
leaq 0x19ce(%rip), %rsi      # 0x4618
leaq 0x2038(%rip), %rcx      # 0x4c89
movl $0x291, %edx            # imm = 0x291
callq 0x1050
leaq 0x205a(%rip), %rdi      # 0x4cbc
leaq 0x19af(%rip), %rsi      # 0x4618
leaq 0x2019(%rip), %rcx      # 0x4c89
movl $0x292, %edx            # imm = 0x292
callq 0x1050
leaq 0x2056(%rip), %rdi      # 0x4cd7
leaq 0x1990(%rip), %rsi      # 0x4618
leaq 0x1ffa(%rip), %rcx      # 0x4c89
movl $0x293, %edx            # imm = 0x293
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_display
void obdeque_display(const obj *to_print){

  obdeque *d = (obdeque *)to_print;
  obdeque_iterator *it;

  assert(to_print != NULL);
  assert(ob_has_class(to_print, "obdeque"));
  fprintf(stderr, "obdeque with %llu elements\n"
                  "  [deque head]", obdeque_length(d));

  it = obdeque_head_iterator(d);

  if(!it) return;

  do{
    ob_display(obdeque_obj_at_iterator(d, it));
    fprintf(stderr, "\n");
  }while(obdeque_iterate_next(d, it));

  ob_release((obj *)it);

  fprintf(stderr, "  [deque tail]\n");

  return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2d4d
movq %rdi, %rbx
leaq 0x213e(%rip), %rsi      # 0x4df1
callq 0x31e2
testb %al, %al
je 0x2d6c
movq 0x4331(%rip), %r15      # 0x6ff8
movq (%r15), %rdi
movq 0x18(%rbx), %rdx
leaq 0x2072(%rip), %rsi      # 0x4d47
xorl %eax, %eax
callq 0x1090
movq %rbx, %rdi
callq 0x1ced
testq %rax, %rax
jne 0x2cf4
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
pushq $0xa
popq %rbp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d19
movq %rax, %rdi
callq 0x3115
movq (%r15), %rsi
movl %ebp, %edi
callq 0x1060
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1e12
testb %al, %al
jne 0x2cfa
movq %r14, %rdi
callq 0x316a
movq (%r15), %rcx
leaq 0x2039(%rip), %rdi      # 0x4d71
pushq $0xf
popq %rsi
pushq $0x1
popq %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x10c0
leaq 0x1f9e(%rip), %rdi      # 0x4cf2
leaq 0x18bd(%rip), %rsi      # 0x4618
leaq 0x1fa1(%rip), %rcx      # 0x4d03
movl $0x2b4, %edx            # imm = 0x2B4
callq 0x1050
leaq 0x1fb2(%rip), %rdi      # 0x4d25
leaq 0x189e(%rip), %rsi      # 0x4618
leaq 0x1f82(%rip), %rcx      # 0x4d03
movl $0x2b5, %edx            # imm = 0x2B5
callq 0x1050
nop
// File: /workspace/github_c_makefile_star2_O2/svpv[P]rpmset/./base64unpack-simd.h
// Function: unpack9x10c15
static inline bool unpack9x10c15(const char *s, uint32_t *v, unsigned *e)
{
    V32x4 x, y;
    if (!unpack24(s - 1, &x)) return false;
    y = VSHUF8(x, V8x16_C(
	    -1, -1, 0, 1, -1, -1, 1, 2,
	    -1, -1, 4, 5, -1, -1, 5, 6));
    y = VSHLV32(y, 1, 0, 7, 6);
    y = VSHR32(y, 23);
    VSTORE(v, y);
    y = VSHUF8(x, V8x16_C(
	    -1, -1, 6,  8, -1, -1,  8,  9,
	    -1, -1, 9, 10, -1, -1, 10, 12));
    y = VSHLV32(y, 5, 4, 3, 2);
    y = VSHR32(y, 23);
    VSTORE(v + 4, y);
    y = VSHUF8(x, V8x16_C(
	    -1, -1, 12, 13, -1, -1, 13, 14,
	    -1, -1, -1, -1, -1, -1, -1, -1));
#if VSHLV32_COST >= 2
    x = VSHL32(y, 1);
    y = VBLEND16(y, x, 0x33);
#else
    y = VSHLV32(y, 1, 0, 0, 0);
#endif
    y = VSHR32(y, 23);
    VSTORE64(v + 8, y);
    return (void) e, true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
decq %rdi
movq %rsp, %rsi
callq 0x71ab
testb %al, %al
je 0x1758
movdqa (%rsp), %xmm0
movdqa %xmm0, %xmm1
pshufb 0x7994(%rip), %xmm1     # 0x9040
movdqa %xmm1, %xmm2
psrld $0x11, %xmm2
movdqa %xmm1, %xmm3
psrld $0x17, %xmm3
pblendw $0xf0, %xmm2, %xmm3     # xmm3 = xmm3[0,1,2,3],xmm2[4,5,6,7]
movdqa %xmm1, %xmm2
psrld $0x10, %xmm2
psrld $0x16, %xmm1
pblendw $0xf0, %xmm2, %xmm1     # xmm1 = xmm1[0,1,2,3],xmm2[4,5,6,7]
pblendw $0xcc, %xmm3, %xmm1     # xmm1 = xmm1[0,1],xmm3[2,3],xmm1[4,5],xmm3[6,7]
pmovsxwd 0x7d69(%rip), %xmm2     # 0x9450
pand %xmm2, %xmm1
movdqa %xmm0, %xmm3
pshufb 0x7968(%rip), %xmm3     # 0x9060
movdqu %xmm1, (%rbx)
movdqa %xmm3, %xmm1
psrld $0x15, %xmm1
movdqa %xmm3, %xmm4
psrld $0x13, %xmm4
pblendw $0xf0, %xmm1, %xmm4     # xmm4 = xmm4[0,1,2,3],xmm1[4,5,6,7]
movdqa %xmm3, %xmm1
psrld $0x14, %xmm1
psrld $0x12, %xmm3
pblendw $0xf0, %xmm1, %xmm3     # xmm3 = xmm3[0,1,2,3],xmm1[4,5,6,7]
pblendw $0xcc, %xmm4, %xmm3     # xmm3 = xmm3[0,1],xmm4[2,3],xmm3[4,5],xmm4[6,7]
pand %xmm2, %xmm3
movdqu %xmm3, 0x10(%rbx)
pshufb 0x7930(%rip), %xmm0     # 0x9070
movdqa %xmm0, %xmm1
paddd %xmm0, %xmm1
pblendw $0xc, %xmm0, %xmm1      # xmm1 = xmm1[0,1],xmm0[2,3],xmm1[4,5,6,7]
psrld $0x17, %xmm1
movq %xmm1, 0x20(%rbx)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/svpv[P]rpmset/./base64unpack-simd.h
// Function: unpack10x8c14e4
static inline bool unpack10x8c14e4(const char *s, uint32_t *v, unsigned *e)
{
    V32x4 x, y;
    if (!unpack6(s - 2, &x)) return false;
#if 0
    *e = VEXTR32(x, 0) >> 26;
    x = glue24(glue12(x));
    y = VSHUF8(x, V8x16_C(
	    -1, -1, 1, 4, -1, -1, 4, 5,
	    -1, -1, 6, 8, -1, -1, 8, 9));
    y = VSHLV32(y, 2, 0, 6, 4);
    y = VSHR32(y, 22);
    VSTORE(v, y);
    y = VSHUF8(x, V8x16_C(
	    -1, -1,  9, 10, -1, -1, 10, 12,
	    -1, -1, 13, 14, -1, -1, 14,  2));
    y = VSHLV32(y, 2, 0, 6, 4);
#else
    *e = VEXTR16(x, 1) & Mask(4);
    x = glue24(glue12(x));
    y = VSHUF8(x, V8x16_C(
	    -1, -1, 2, 4, -1, -1, 4, 5,
	    -1, -1, 5, 6, -1, -1, 6, 8));
    y = VSHLV32(y, 6, 4, 2, 0);
    y = VSHR32(y, 22);
    VSTORE(v, y);
    y = VSHUF8(x, V8x16_C(
	    -1, -1,  9, 10, -1, -1, 10, 12,
	    -1, -1, 12, 13, -1, -1, 13, 14));
    y = VSHLV32(y, 6, 4, 2, 0);
#endif
    y = VSHR32(y, 22);
    VSTORE(v + 4, y);
    return true;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
addq $-0x2, %rdi
movq %rsp, %rsi
callq 0x7146
testb %al, %al
je 0x19ce
movdqa (%rsp), %xmm0
pextrw $0x1, %xmm0, %ecx
pmaddubsw 0x7624(%rip), %xmm0 # 0x8f50
pmaddwd 0x762c(%rip), %xmm0     # 0x8f60
andl $0xf, %ecx
movdqa %xmm0, %xmm1
pshufb 0x773c(%rip), %xmm1     # 0x9080
movl %ecx, (%r14)
movdqa %xmm1, %xmm2
psrld $0x16, %xmm2
movdqa %xmm1, %xmm3
psrld $0x12, %xmm3
pblendw $0xf0, %xmm2, %xmm3     # xmm3 = xmm3[0,1,2,3],xmm2[4,5,6,7]
movdqa %xmm1, %xmm2
psrld $0x14, %xmm2
psrld $0x10, %xmm1
pblendw $0xf0, %xmm2, %xmm1     # xmm1 = xmm1[0,1,2,3],xmm2[4,5,6,7]
pblendw $0xcc, %xmm3, %xmm1     # xmm1 = xmm1[0,1],xmm3[2,3],xmm1[4,5],xmm3[6,7]
pmovsxwd 0x7ad6(%rip), %xmm2     # 0x9458
pand %xmm2, %xmm1
movdqu %xmm1, (%rbx)
pshufb 0x770d(%rip), %xmm0     # 0x90a0
movdqa %xmm0, %xmm1
psrld $0x16, %xmm1
movdqa %xmm0, %xmm3
psrld $0x12, %xmm3
pblendw $0xf0, %xmm1, %xmm3     # xmm3 = xmm3[0,1,2,3],xmm1[4,5,6,7]
movdqa %xmm0, %xmm1
psrld $0x14, %xmm1
psrld $0x10, %xmm0
pblendw $0xf0, %xmm1, %xmm0     # xmm0 = xmm0[0,1,2,3],xmm1[4,5,6,7]
pblendw $0xcc, %xmm3, %xmm0     # xmm0 = xmm0[0,1],xmm3[2,3],xmm0[4,5],xmm3[6,7]
pand %xmm2, %xmm0
movdqu %xmm0, 0x10(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/svpv[P]rpmset/./base64unpack-simd.h
// Function: unpack13x6c13o1
static inline bool unpack13x6c13o1(const char *s, uint32_t *v, unsigned *e)
{
    V32x4 x, y;
    if (!unpack24(s - 2, &x)) return false;
    y = VSHUF8(x, V8x16_C(
	    -1, 1, 2, 4, -1, -1, 4, 5,
	    -1, 5, 6, 8, -1, -1, 8, 9));
    y = VSHLV32(y, 7, 2, 5, 0);
    y = VSHR32(y, 19);
    VSTORE(v, y);
    y = VSHUF8(x, V8x16_C(
	    -1, -1, 10, 12, -1, 12, 13, 14,
	    -1, -1, -1, -1, -1, -1, -1, -1));
#if VSHLV32_COST >= 3
    x = VSHL32(y, 3);
    y = VSHL32(y, 6);
    y = VBLEND16(y, x, 0x33);
#else
    y = VSHLV32(y, 3, 6, 0, 0);
#endif
    y = VSHR32(y, 19);
    VSTORE64(v + 4, y);
    return (void) e, true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
addq $-0x2, %rdi
movq %rsp, %rsi
callq 0x71ab
testb %al, %al
je 0x23bf
movdqa (%rsp), %xmm0
movdqa %xmm0, %xmm1
pshufb 0x6e96(%rip), %xmm1     # 0x91f0
movdqa %xmm1, %xmm2
psrld $0x13, %xmm2
movdqa %xmm1, %xmm3
psrld $0x11, %xmm3
pblendw $0xf0, %xmm2, %xmm3     # xmm3 = xmm3[0,1,2,3],xmm2[4,5,6,7]
movdqa %xmm1, %xmm2
psrld $0xe, %xmm2
psrld $0xc, %xmm1
pblendw $0xf0, %xmm2, %xmm1     # xmm1 = xmm1[0,1,2,3],xmm2[4,5,6,7]
pblendw $0xcc, %xmm3, %xmm1     # xmm1 = xmm1[0,1],xmm3[2,3],xmm1[4,5],xmm3[6,7]
pand 0x6e3c(%rip), %xmm1     # 0x91d0
movdqu %xmm1, (%rbx)
pshufb 0x6e5f(%rip), %xmm0     # 0x9200
movdqa %xmm0, %xmm1
pslld $0x6, %xmm1
pslld $0x3, %xmm0
pblendw $0xc, %xmm1, %xmm0      # xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5,6,7]
psrld $0x13, %xmm0
movq %xmm0, 0x10(%rbx)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/svpv[P]rpmset/./base64unpack-simd.h
// Function: unpack21x4c14
static inline bool unpack21x4c14(const char *s, uint32_t *v, unsigned *e)
{
    V32x4 x;
#if VSHLV32_COST >= 2
    if (!unpack6(s - 2, &x)) return false;
    x = VSHUF8(x, V8x16_C(
	    2,  3,  4,  5,  5,  6,  7,  8,
	    9, 10, 11, 12, 12, 13, 14, 15));
    x = glue24(glue12(x));
    x = VBLEND16(VSHR32(x, 3), x, 0x33);
    VSTORE(v, VAND(x, VDUP32(Mask(21))));
#else
    if (!unpack24(s - 2, &x)) return false;
    x = VSHUF8(x, V8x16_C(
	    1, 2,  4,  5,  5,  6,  8, -1,
	    8, 9, 10, 12, 12, 13, 14, 15));
    x = VSHLV32(x, 7, 10, 5, 8);
    VSTORE(v, VSHR32(x, 11));
#endif
    return (void) e, true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
addq $-0x2, %rdi
movq %rsp, %rsi
callq 0x7146
testb %al, %al
je 0x2ab8
movdqa (%rsp), %xmm0
pshufb 0x6574(%rip), %xmm0     # 0x9000
pmaddubsw 0x64bb(%rip), %xmm0 # 0x8f50
pmaddwd 0x64c3(%rip), %xmm0     # 0x8f60
movdqa %xmm0, %xmm1
psrld $0x3, %xmm1
pblendw $0x33, %xmm0, %xmm1     # xmm1 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7]
pand 0x686c(%rip), %xmm1     # 0x9320
movdqu %xmm1, (%rbx)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/waywardgeek[P]sonic/sonic_lite.c
// Function: sonicFlushStream
void sonicFlushStream(void) {
  int maxRequired = 2 * SONIC_MAX_PERIOD;
  int remainingSamples = sonicStream.numInputSamples;
  float speed = sonicStream.speed;
  int expectedOutputSamples = sonicStream.numOutputSamples + (int)((remainingSamples / speed) + 0.5f);

  memset(sonicStream.inputBuffer + remainingSamples, 0,
      sizeof(short) * (SONIC_INPUT_BUFFER_SIZE - remainingSamples));
  sonicStream.numInputSamples += 2 * maxRequired;
  sonicWriteShortToStream(NULL, 0);
  /* Throw away any extra samples we generated due to the silence we added */
  if (sonicStream.numOutputSamples > expectedOutputSamples) {
    sonicStream.numOutputSamples = expectedOutputSamples;
  }
  /* Empty input buffer */
  sonicStream.numInputSamples = 0;
  sonicStream.remainingInputToCopy = 0;
}

// Assembly:
pushq %rbx
movslq 0x4347(%rip), %rax      # 0x562c
leaq 0x3dc8(%rip), %rcx      # 0x50b4
cvtsi2ss %eax, %xmm0
divss 0x432c(%rip), %xmm0     # 0x5624
addss 0x1d20(%rip), %xmm0     # 0x3020
cvttss2si %xmm0, %ebx
addl 0x4326(%rip), %ebx      # 0x5630
leaq (%rcx,%rax,2), %rdi
movl $0x146, %edx            # imm = 0x146
subq %rax, %rdx
addq %rdx, %rdx
xorl %esi, %esi
callq 0x1090
addl $0x1ec, 0x4302(%rip)    # imm = 0x1EC
xorl %edi, %edi
xorl %esi, %esi
callq 0x1351
cmpl %ebx, 0x42f7(%rip)      # 0x5630
jle 0x1341
movl %ebx, 0x42ef(%rip)      # 0x5630
andl $0x0, 0x42e4(%rip)      # 0x562c
andl $0x0, 0x42e5(%rip)      # 0x5634
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/vi[P]simple_cbor_stream_parse/extract_strings.cpp
// Function: main
int main() {
    // Note; on Windows you should also set std::cin to binary mode
    std::ios::sync_with_stdio(false);
    
    MyHandler mh;
    if (!scsp::parse_from_istream(std::cin, mh)) {
        std::cerr << "Error" << std::endl;
        return 1;
    }
    return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x2040
leaq 0x39b7(%rip), %rax      # 0x5c18
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x3d68(%rip), %rdi      # 0x5fd8
callq 0x2334
testb %al, %al
jne 0x2297
movq 0x3d70(%rip), %rdi      # 0x5ff0
leaq 0x1d7d(%rip), %rsi      # 0x4004
callq 0x2080
movq %rax, %rdi
callq 0x2050
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: AVI_open_output_file
avi_t* AVI_open_output_file(char * filename)
{
   avi_t *AVI;
   int i;

   int mask;

   unsigned char AVI_header[HEADERBYTES];

   /* Allocate the avi_t struct and zero it */

   AVI = (avi_t *) malloc(sizeof(avi_t));
   if(AVI==0)
   {
      AVI_errno = AVI_ERR_NO_MEM;
      return 0;
   }
   memset((void *)AVI,0,sizeof(avi_t));

   /* Since Linux needs a long time when deleting big files,
      we do not truncate the file when we open it.
      Instead it is truncated when the AVI file is closed */

   mask = umask (0);
   umask (mask);

#ifdef WIN32
   AVI->fdes = open(filename, O_RDWR|O_CREAT|O_BINARY, (S_IRUSR | S_IWUSR) &~ mask);
#else
   AVI->fdes = open(filename, O_RDWR|O_CREAT, (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) &~ mask);
#endif
   if (AVI->fdes < 0)
   {
      AVI_errno = AVI_ERR_OPEN;
      free(AVI);
      return 0;
   }

   /* Write out HEADERBYTES bytes, the header will go here
      when we are finished with writing */

   for (i=0;i<HEADERBYTES;i++) AVI_header[i] = 0;
   i = avi_write(AVI->fdes,(char *)AVI_header,HEADERBYTES);
   if (i != HEADERBYTES)
   {
      close(AVI->fdes);
      AVI_errno = AVI_ERR_WRITE;
      free(AVI);
      return 0;
   }

   AVI->pos  = HEADERBYTES;
   AVI->mode = AVI_MODE_WRITE; /* open for writing */

   //init
   AVI->anum = 0;
   AVI->aptr = 0;

   return AVI;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x800, %rsp            # imm = 0x800
movq %rdi, %r14
pushq $0x1
popq %rdi
movl $0x488, %esi            # imm = 0x488
callq 0x4435b0
testq %rax, %rax
je 0x401980
movq %rax, %rbx
xorl %edi, %edi
callq 0x47ed30
movl %eax, %ebp
notl %ebp
movl %eax, %edi
callq 0x47ed30
andl $0x1a4, %ebp            # imm = 0x1A4
pushq $0x42
popq %rsi
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x47ed70
movl %eax, %ebp
cltq
movq %rax, (%rbx)
testl %ebp, %ebp
js 0x40198d
xorl %eax, %eax
cmpq $0x800, %rax            # imm = 0x800
je 0x401950
movb $0x0, (%rsp,%rax)
incq %rax
jmp 0x40193f
movq %rsp, %rsi
movl $0x800, %edx            # imm = 0x800
movl %ebp, %edi
callq 0x4019c5
cmpl $0x800, %eax            # imm = 0x800
jne 0x40199a
movq $0x800, 0x3e0(%rbx) # imm = 0x800
andq $0x0, 0x8(%rbx)
andq $0x0, 0x438(%rbx)
jmp 0x4019b6
movq $0x8, 0x116ba5(%rip) # 0x518530
jmp 0x4019b4
movq $0x2, 0x116b98(%rip) # 0x518530
jmp 0x4019ac
movl %ebp, %edi
callq 0x47f140
movq $0x4, 0x116b84(%rip) # 0x518530
movq %rbx, %rdi
callq 0x4424a0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x800, %rsp            # imm = 0x800
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: avi_write
static size_t avi_write (int fd, char *buf, size_t len)
{
   size_t n = 0;
   size_t r = 0;

   while (r < len) {
      n = write (fd, buf + r, len - r);
      if ((ssize_t)n < 0)
         return n;

      r += n;
   }
   return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
xorl %ebx, %ebx
movq %r14, %rdx
subq %rbx, %rdx
jbe 0x4019f6
leaq (%r15,%rbx), %rsi
movl %ebp, %edi
callq 0x47ef40
testq %rax, %rax
js 0x4019f3
addq %rax, %rbx
jmp 0x4019d6
movq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: AVI_set_video
void AVI_set_video(avi_t *AVI, int width, int height, double fps, const char *compressor)
{
   /* may only be called if file is open for writing */

   if(AVI->mode==AVI_MODE_READ) return;

   AVI->width  = width;
   AVI->height = height;
   AVI->fps    = fps;

   if(strncmp(compressor, "RGB", 3)==0) {
     memset(AVI->compressor, 0, 4);
   } else {
     memcpy(AVI->compressor,compressor,4);
   }

   AVI->compressor[4] = 0;

   avi_update_header(AVI);
}

// Assembly:
cmpq $0x1, 0x8(%rdi)
jne 0x401a0c
retq
movslq %esi, %rax
movq %rax, 0x10(%rdi)
movslq %edx, %rax
movq %rax, 0x18(%rdi)
movsd %xmm0, 0x20(%rdi)
cmpb $0x52, (%rcx)
jne 0x401a32
cmpb $0x47, 0x1(%rcx)
jne 0x401a32
xorl %eax, %eax
cmpb $0x42, 0x2(%rcx)
je 0x401a34
movl (%rcx), %eax
movl %eax, 0x28(%rdi)
movb $0x0, 0x2c(%rdi)
jmp 0x401a40
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: AVI_set_audio
void AVI_set_audio(avi_t *AVI, int channels, long rate, int bits, int format, long mp3rate)
{
   /* may only be called if file is open for writing */

   if(AVI->mode==AVI_MODE_READ) return;

   //inc audio tracks
   AVI->aptr=AVI->anum;
   ++AVI->anum;

   if(AVI->anum > AVI_MAX_TRACKS) {
     fprintf(stderr, "error - only %d audio tracks supported\n", AVI_MAX_TRACKS);
     exit(1);
   }

   AVI->track[AVI->aptr].a_chans = channels;
   AVI->track[AVI->aptr].a_rate  = rate;
   AVI->track[AVI->aptr].a_bits  = bits;
   AVI->track[AVI->aptr].a_fmt   = format;
   AVI->track[AVI->aptr].mp3rate = mp3rate;

   avi_update_header(AVI);
}

// Assembly:
cmpq $0x1, 0x8(%rdi)
jne 0x402199
retq
movslq 0x438(%rdi), %rax
leal 0x1(%rax), %r10d
movl %eax, 0x43c(%rdi)
movl %r10d, 0x438(%rdi)
cmpq $0x8, %rax
jge 0x4021e5
movslq %esi, %rsi
imulq $0x70, %rax, %rax
movq %rsi, 0x68(%rdi,%rax)
movq %rdx, 0x70(%rdi,%rax)
movslq %ecx, %rcx
movq %rcx, 0x78(%rdi,%rax)
movslq %r8d, %rcx
movq %rcx, 0x60(%rdi,%rax)
movq %r9, 0x80(%rdi,%rax)
jmp 0x401a40
pushq %rax
movq $0x516868, %rax         # imm = 0x516868
movq (%rax), %rdi
leaq 0xcfe49(%rip), %rsi     # 0x4d2040
pushq $0x8
popq %rdx
xorl %eax, %eax
callq 0x424b10
pushq $0x1
popq %rdi
callq 0x4239b0
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: AVI_write_frame
int AVI_write_frame(avi_t *AVI, char *data, long bytes, int keyframe)
{
  unsigned long pos;

  if(AVI->mode==AVI_MODE_READ) { AVI_errno = AVI_ERR_NOT_PERM; return -1; }

  pos = AVI->pos;

  if(avi_write_data(AVI,data,bytes,0,keyframe)) return -1;

  AVI->last_pos = pos;
  AVI->last_len = bytes;
  AVI->video_frames++;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x1, 0x8(%rdi)
jne 0x402225
movq $0x7, 0x11630d(%rip) # 0x518530
jmp 0x402242
movl %ecx, %r8d
movq %rdx, %r14
movq %rdi, %r15
movq 0x3e0(%rdi), %r12
xorl %ebx, %ebx
xorl %ecx, %ecx
callq 0x402267
testl %eax, %eax
je 0x402253
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r12, 0x418(%r15)
movq %r14, 0x420(%r15)
incq 0x40(%r15)
jmp 0x402245
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: avi_write_data
static int avi_write_data(avi_t *AVI, char *data, unsigned long length, int audio, int keyframe)
{
   int n;

   unsigned char astr[5];

   /* Check for maximum file length */

   if ( (AVI->pos + 8 + length + 8 + (AVI->n_idx+1)*16) > AVI_MAX_LEN ) {
     AVI_errno = AVI_ERR_SIZELIM;
     return -1;
   }

   /* Add index entry */

   //set tag for current audio track
   sprintf((char *)astr, "0%1dwb", (int)(AVI->aptr+1));

   if(audio)
     n = avi_add_index_entry(AVI,astr,0x00,AVI->pos,length);
   else
     n = avi_add_index_entry(AVI,(unsigned char *)"00db",((keyframe)?0x10:0x0),AVI->pos,length);

   if(n) return -1;

   /* Output tag and data */

   if(audio)
     n = avi_add_chunk(AVI,astr,(unsigned char *)data,length);
   else
     n = avi_add_chunk(AVI,(unsigned char *)"00db",(unsigned char *)data,length);

   if (n) return -1;

   return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %r12d
movq 0x3e8(%rdi), %rax
shlq $0x4, %rax
movq 0x3e0(%rdi), %rcx
addq %rdx, %rcx
addq %rax, %rcx
movabsq $-0xfefff800, %rax      # imm = 0xFFFFFFFF01000800
addq %rax, %rcx
addq $0x20, %rcx
cmpq %rax, %rcx
jae 0x4022b1
movq $0x1, 0x116281(%rip) # 0x518530
jmp 0x402328
movl %r8d, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x43c(%rdi), %edx
incl %edx
leaq 0xd0042(%rip), %rsi     # 0x4d230e
leaq 0xb(%rsp), %rdi
xorl %eax, %eax
callq 0x424d60
testl %r12d, %r12d
je 0x402301
movq 0x3e0(%r15), %rcx
leaq 0xb(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
movq %rbx, %r8
callq 0x4023ba
testl %eax, %eax
jne 0x402328
leaq 0xb(%rsp), %rsi
jmp 0x40233f
xorl %edx, %edx
testl %ebp, %ebp
setne %dl
shll $0x4, %edx
movq 0x3e0(%r15), %rcx
leaq 0xcfdb0(%rip), %rsi     # 0x4d20c9
movq %r15, %rdi
movq %rbx, %r8
callq 0x4023ba
testl %eax, %eax
je 0x402338
pushq $-0x1
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcfd8a(%rip), %rsi     # 0x4d20c9
movq %r15, %rdi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x404490
movl %eax, %ecx
xorl %eax, %eax
negl %ecx
sbbl %eax, %eax
jmp 0x40232b
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: AVI_dup_frame
int AVI_dup_frame(avi_t *AVI)
{
   if(AVI->mode==AVI_MODE_READ) { AVI_errno = AVI_ERR_NOT_PERM; return -1; }

   if(AVI->last_pos==0) return 0; /* No previous real frame */
   if(avi_add_index_entry(AVI,(unsigned char *)"00db",0x10,AVI->last_pos,AVI->last_len)) return -1;
   AVI->video_frames++;
   AVI->must_use_index = 1;
   return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x1, 0x8(%rdi)
jne 0x40236e
movq $0x7, 0x1161c4(%rip) # 0x518530
jmp 0x40239c
movq %rdi, %r14
movq 0x418(%rdi), %rcx
xorl %ebx, %ebx
testq %rcx, %rcx
je 0x40239f
movq 0x420(%r14), %r8
leaq 0xcfd3c(%rip), %rsi     # 0x4d20c9
pushq $0x10
popq %rdx
movq %r14, %rdi
callq 0x4023ba
testl %eax, %eax
je 0x4023a9
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
incq 0x40(%r14)
movl $0x1, 0x428(%r14)
jmp 0x40239f
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: avi_add_index_entry
static int avi_add_index_entry(avi_t *AVI, unsigned char *tag, long flags, unsigned long pos, unsigned long len)
{
   void *ptr;

   if(AVI->n_idx>=AVI->max_idx) {
     ptr = realloc((void *)AVI->idx,(AVI->max_idx+4096)*16);

     if(ptr == 0) {
       AVI_errno = AVI_ERR_NO_MEM;
       return -1;
     }
     AVI->max_idx += 4096;
     AVI->idx = (unsigned char((*)[16]) ) ptr;
   }

   /* Add index entry */

   //   fprintf(stderr, "INDEX %s %ld %lu %lu\n", tag, flags, pos, len);

   memcpy(AVI->idx[AVI->n_idx],tag,4);
   long2str(AVI->idx[AVI->n_idx]+ 4,flags);
   long2str(AVI->idx[AVI->n_idx]+ 8, pos);
   long2str(AVI->idx[AVI->n_idx]+12, len);

   /* Update counter */

   AVI->n_idx++;

   if(len>AVI->max_len) AVI->max_len=len;

   return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
movq 0x3e8(%rdi), %rcx
movq 0x3f0(%rdi), %rsi
movq 0x408(%rdi), %rax
cmpq %rsi, %rcx
jl 0x40241d
shlq $0x4, %rsi
addq $0x10000, %rsi          # imm = 0x10000
movq %rax, %rdi
callq 0x4427f0
testq %rax, %rax
je 0x402481
addq $0x1000, 0x3f0(%r14) # imm = 0x1000
movq %rax, 0x408(%r14)
movq 0x3e8(%r14), %rcx
shlq $0x4, %rcx
movl (%r13), %edx
movl %edx, (%rax,%rcx)
movq 0x3e8(%r14), %rax
movq 0x408(%r14), %rcx
shlq $0x4, %rax
movl %r12d, 0x4(%rcx,%rax)
movq 0x3e8(%r14), %rax
movq 0x408(%r14), %rcx
shlq $0x4, %rax
movl %r15d, 0x8(%rcx,%rax)
movq 0x3e8(%r14), %rax
movq 0x408(%r14), %rcx
shlq $0x4, %rax
movl %ebx, 0xc(%rcx,%rax)
incq 0x3e8(%r14)
xorl %eax, %eax
cmpq %rbx, 0x58(%r14)
jae 0x40248f
movq %rbx, 0x58(%r14)
jmp 0x40248f
movq $0x8, 0x1160a4(%rip) # 0x518530
pushq $-0x1
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/archer1357[P]Offline-Raytracer/avilib.c
// Function: AVI_append_audio
int AVI_append_audio(avi_t *AVI, char *data, long bytes)
{

  long i, length, pos;
  unsigned char c[4];

  if(AVI->mode==AVI_MODE_READ) { AVI_errno = AVI_ERR_NOT_PERM; return -1; }

  // update last index entry:

  --AVI->n_idx;
  length = str2ulong(AVI->idx[AVI->n_idx]+12);
  pos    = str2ulong(AVI->idx[AVI->n_idx]+8);

  //update;
  long2str(AVI->idx[AVI->n_idx]+12,length+bytes);

  ++AVI->n_idx;

  AVI->track[AVI->aptr].audio_bytes += bytes;

  //update chunk header
  lseek(AVI->fdes, pos+4, SEEK_SET);
  long2str(c, length+bytes);
  avi_write(AVI->fdes, (char *)c, 4);

  lseek(AVI->fdes, pos+8+length, SEEK_SET);

  i=PAD_EVEN(length + bytes);

  bytes = i - length;
  avi_write(AVI->fdes, data, bytes);
  AVI->pos = pos + 8 + i;

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpq $0x1, 0x8(%rdi)
jne 0x402511
movq $0x7, 0x116027(%rip) # 0x518530
pushq $-0x1
popq %rbp
jmp 0x4025c4
movq %rdx, %r15
movq %rdi, %rbx
movq 0x3e8(%rdi), %rax
movq 0x408(%rdi), %rcx
decq %rax
movq %rax, 0x3e8(%rdi)
shlq $0x4, %rax
movslq 0xc(%rcx,%rax), %r13
movslq 0x8(%rcx,%rax), %r12
leaq (%rdx,%r13), %r14
movl %r14d, 0xc(%rcx,%rax)
incq 0x3e8(%rdi)
movslq 0x43c(%rdi), %rax
imulq $0x70, %rax, %rax
addq %rdx, 0x90(%rdi,%rax)
movl (%rdi), %edi
movq %rsi, 0x8(%rsp)
leaq 0x4(%r12), %rsi
xorl %ebp, %ebp
xorl %edx, %edx
callq 0x47efe0
leaq 0x14(%rsp), %rsi
movl %r14d, (%rsi)
movl (%rbx), %edi
pushq $0x4
popq %rdx
callq 0x4019c5
movl (%rbx), %edi
leaq (%r12,%r13), %rsi
addq $0x8, %rsi
xorl %edx, %edx
callq 0x47efe0
leaq (%r15,%r13), %r14
incq %r14
andq $-0x2, %r14
movq %r14, %rdx
subq %r13, %rdx
movl (%rbx), %edi
movq 0x8(%rsp), %rsi
callq 0x4019c5
leaq (%r14,%r12), %rax
addq $0x8, %rax
movq %rax, 0x3e0(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq