LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/vc.c
// Function: ruleset_vc_dimension_discrete
int ruleset_vc_dimension_discrete(Datasetptr current_dataset, Rulesetptr ruleset)
{
 int *condition_counts;
 int i = 0, vc, d;
 Decisionruleptr rule;
 d = current_dataset->featurecount - 1;
 rule = ruleset->start;
 condition_counts = safemalloc(ruleset->rulecount * sizeof(int), "ruleset_vc_dimension_discrete", 6);
 while (rule)
  {
   condition_counts[i] = rule->decisioncount;
   rule = rule->next;
   i++;
  }
 vc = ruleset_vc_dimension_discrete_recursive(condition_counts, ruleset->rulecount, d);
 safe_free(condition_counts);
 return vc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl 0x1bc(%rdi), %ebx
movq (%rsi), %r12
movslq 0x10(%rsi), %rdi
shlq $0x2, %rdi
leaq 0xef60(%rip), %rsi      # 0xaf59f
movl $0x6, %edx
callq 0x390f5
movq %rax, %r15
testq %r12, %r12
je 0xa0669
movq %r15, %rax
movl 0x28(%r12), %ecx
movl %ecx, (%rax)
movq 0x30(%r12), %r12
addq $0x4, %rax
testq %r12, %r12
jne 0xa0654
decl %ebx
movl 0x10(%r14), %esi
movq %r15, %rdi
movl %ebx, %edx
callq 0xa04a7
movl %eax, %ebx
movq %r15, %rdi
callq 0x39194
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/vc.c
// Function: ruleset_vc_dimension_continuous
int ruleset_vc_dimension_continuous(Datasetptr current_dataset, Rulesetptr ruleset)
{
 int sum = 0, d;
 Decisionruleptr rule;
 d = current_dataset->featurecount - 1;
 rule = ruleset->start;
 while (rule)
  {
   if (rule->decisioncount < 2)
     sum += 2;
   else
     sum += (int) (log2(binomdouble(d - 1, rule->decisioncount - 2) + 1) + 1);
   rule = rule->next;
  }
 return sum;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq (%rsi), %r14
testq %r14, %r14
je 0xa06ea
movl 0x1bc(%rdi), %ebp
addl $-0x2, %ebp
xorl %ebx, %ebx
movl 0x28(%r14), %esi
movl $0x2, %eax
cmpl $0x2, %esi
jl 0xa06dd
addl $-0x2, %esi
movl %ebp, %edi
callq 0x38f93
movsd 0x1e58(%rip), %xmm1     # 0xa2520
addsd %xmm1, %xmm0
callq 0x38e99
addsd 0x1e47(%rip), %xmm0     # 0xa2520
cvttsd2si %xmm0, %eax
addl %eax, %ebx
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0xa06a8
jmp 0xa06ec
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/vc.c
// Function: ruleset_vc_dimension
int ruleset_vc_dimension(Datasetptr current_dataset, Rulesetptr ruleset)
{
 if (number_of_symbolic_features(current_dataset->name) == current_dataset->featurecount - 1)
   return ruleset_vc_dimension_discrete(current_dataset, ruleset);
 else
    if (number_of_numeric_features(current_dataset->name) == current_dataset->featurecount - 1)
      return ruleset_vc_dimension_continuous(current_dataset, ruleset);
    else
      return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x15038
movl 0x1bc(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
jne 0xa0725
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa061c
movq 0x8(%r14), %rdi
callq 0x15149
movl 0x1bc(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
jne 0xa074d
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa0691
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_document
Xmldocumentptr xml_document(char* filename)
{
 Xmldocumentptr xml;
 if (!fileexists(filename))
   return NULL;
 xml = safemalloc(sizeof(Xmldocument), "xml_document", 2);
 xml->filename = strcopy(xml->filename, filename);
 xml->root = NULL;
 return xml;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x37fcf
testl %eax, %eax
je 0xa079d
leaq 0xee71(%rip), %rsi      # 0xaf5e4
movl $0x10, %edi
movl $0x2, %edx
callq 0x390f5
movq %rax, %r14
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x3a404
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
jmp 0xa07a0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_read_token
char* xml_read_token(FILE* infile, char prevchar, char* nextchar, int space_allowed)
{
 char buffer[MAXTOKENLENGTH];
 char* token = NULL;
 int i;
 char ch = prevchar;
 i = 0;
 while ((ch != '\'') && (ch != '\"') && (ch != '=') && (ch != ' ' || space_allowed) && (ch != '/') && (ch != EOF) && (ch != '<') && (ch != '>'))
  {
   buffer[i] = ch;
   i++;
   ch = fgetc(infile);
  }
 buffer[i] = '\0';
 *nextchar = ch;
 token = strcopy(token, buffer);
 return token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movl %esi, %eax
movq %rdi, %r14
xorl %r15d, %r15d
movabsq $0x5000800000000000, %r12 # imm = 0x5000800000000000
movabsq $0x2000008400000000, %r13 # imm = 0x2000008400000000
movzbl %al, %ecx
cmpb $0x3d, %cl
ja 0xa07e8
btq %rcx, %r13
jb 0xa081b
testl %ebp, %ebp
sete %dl
cmpb $0x20, %al
sete %sil
testb %sil, %dl
jne 0xa081b
cmpb $0x3e, %al
ja 0xa0802
btq %rcx, %r12
jb 0xa081b
cmpl $0xff, %ecx
je 0xa081b
movb %al, (%rsp,%r15)
incq %r15
movq %r14, %rdi
callq 0x41c0
jmp 0xa07da
movl %r15d, %ecx
movb $0x0, (%rsp,%rcx)
movb %al, (%rbx)
movq %rsp, %rsi
xorl %edi, %edi
callq 0x3a404
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_parse_tag
char* xml_parse_tag(FILE* infile, XML_TOKEN_TYPE* tokentype)
{
 char* token;
 char ch;
 ch = fgetc(infile);
 if (ch == '/')
  {
   *tokentype = XML_CLOSING_TAG_WITHOUT_ATTRIBUTES;
   ch = fgetc(infile);
  }
 else
   *tokentype = XML_OPENING_TAG_WITH_ATTRIBUTES;
 token = xml_read_token(infile, ch, &ch, BOOLEAN_FALSE);
 if (ch == '>' && *tokentype == XML_OPENING_TAG_WITH_ATTRIBUTES)
   *tokentype = XML_OPENING_TAG_WITHOUT_ATTRIBUTES;
 if (*tokentype == XML_CLOSING_TAG_WITHOUT_ATTRIBUTES && ch != '>')
  {
   printf(x1001);
   *tokentype = XML_END;
   return NULL;
  }
 else
   return token;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x41c0
movb %al, 0xf(%rsp)
cmpb $0x2f, %al
jne 0xa086d
movl $0x4, (%rbx)
movq %r14, %rdi
callq 0x41c0
movb %al, 0xf(%rsp)
jmp 0xa0873
movl $0x0, (%rbx)
leaq 0xf(%rsp), %r15
movsbl (%r15), %esi
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xa07ab
movb (%r15), %cl
cmpb $0x3e, %cl
jne 0xa089c
cmpl $0x0, (%rbx)
jne 0xa089c
movl $0x1, (%rbx)
cmpb $0x3e, %cl
je 0xa08ba
cmpl $0x4, (%rbx)
jne 0xa08ba
leaq 0xeda7(%rip), %rdi      # 0xaf654
callq 0x4090
movl $0x8, (%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_parse_attribute_value
char* xml_parse_attribute_value(FILE* infile, XML_TOKEN_TYPE* tokentype)
{
 char* token;
 char ch;
 ch = fgetc(infile);
 if (ch == '\'' || ch == '\"')
  {
   *tokentype = XML_ATTRIBUTE_VALUE;
   return NULL;
  }
 token = xml_read_token(infile, ch, &ch, BOOLEAN_TRUE);
 if (ch != '\'' && ch != '\"')
  {
   printf(x1002);
   *tokentype = XML_END;
   return NULL;
  }
 *tokentype = XML_ATTRIBUTE_VALUE;
 return token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x41c0
movl %eax, %ecx
movb %cl, 0x7(%rsp)
movl $0x5, %ebp
xorl %eax, %eax
cmpb $0x22, %cl
je 0xa0929
movzbl %cl, %edx
cmpl $0x27, %edx
je 0xa0929
movsbl %cl, %esi
leaq 0x7(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
movl $0x1, %ecx
callq 0xa07ab
movzbl (%r15), %ecx
cmpl $0x22, %ecx
je 0xa0929
cmpl $0x27, %ecx
je 0xa0929
leaq 0xecff(%rip), %rdi      # 0xaf61c
callq 0x4090
movl $0x8, %ebp
xorl %eax, %eax
movl %ebp, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_parse_empty_tag
char* xml_parse_empty_tag(FILE* infile, XML_TOKEN_TYPE* tokentype)
{
 char ch;
 ch = fgetc(infile);
 if (ch != '>')
  {
   printf(x1001);
   *tokentype = XML_END;
  }
 else
   *tokentype = XML_CLOSING_TAG_WITH_ATTRIBUTES;
 return NULL;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
callq 0x41c0
movl $0x3, %ecx
cmpb $0x3e, %al
je 0xa0959
leaq 0xed05(%rip), %rdi      # 0xaf654
callq 0x4090
movl $0x8, %ecx
movl %ecx, (%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_get_next_token
char* xml_get_next_token(FILE* infile, XML_TOKEN_TYPE* tokentype)
{
 char ch;
 char* token;
 /*Skip spaces*/
 ch = fgetc(infile);
 while (ch == ' ' || ch == '\t' || ch == '\n')
   ch = fgetc(infile);
 switch (ch){
   case  '<':return xml_parse_tag(infile, tokentype);
             break;
   case '\"':
   case '\'':return xml_parse_attribute_value(infile, tokentype);
             break;
   case  '/':return xml_parse_empty_tag(infile, tokentype);
             break;
   case  '=':*tokentype = XML_EQUAL;             
             break;
   case  '>':*tokentype = XML_OPENING_TAG_FINISH;
             return NULL;
             break;
   case  EOF:*tokentype = XML_END;
             return NULL;
   default  :token = xml_read_token(infile, ch, &ch, BOOLEAN_TRUE);
             *tokentype = XML_TEXT;
             ungetc(ch, infile);
             return token;
             break;
 }
 return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %r14, %rdi
callq 0x41c0
movl %eax, %ecx
shll $0x18, %ecx
cmpl $0x9000000, %ecx        # imm = 0x9000000
je 0xa096d
cmpl $0xa000000, %ecx        # imm = 0xA000000
je 0xa096d
cmpl $0x20000000, %ecx       # imm = 0x20000000
je 0xa096d
movb %al, 0x7(%rsp)
sarl $0x18, %ecx
cmpl $0x2e, %ecx
jle 0xa09c7
cmpl $0x3c, %ecx
jg 0xa09ec
cmpl $0x2f, %ecx
je 0xa0a36
cmpl $0x3c, %ecx
jne 0xa0a06
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xa083d
cmpl $-0x1, %ecx
je 0xa09fe
cmpl $0x22, %ecx
je 0xa09d6
cmpl $0x27, %ecx
jne 0xa0a06
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xa08c4
cmpl $0x3d, %ecx
je 0xa0a43
cmpl $0x3e, %ecx
jne 0xa0a06
movl $0x2, (%rbx)
jmp 0xa0a49
movl $0x8, (%rbx)
jmp 0xa0a49
movsbl %al, %esi
leaq 0x7(%rsp), %r12
movq %r14, %rdi
movq %r12, %rdx
movl $0x1, %ecx
callq 0xa07ab
movq %rax, %r15
movl $0x7, (%rbx)
movsbl (%r12), %edi
movq %r14, %rsi
callq 0x4140
jmp 0xa0a4c
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa0936
jmp 0xa0a49
movl $0x6, (%rbx)
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xmlelement
Xmlelementptr xmlelement(char* name, Xmlelementptr parent, int has_attributes)
{
 Xmlelementptr element;
 element = safemalloc(sizeof(Xmlelement), "xmlelement", 2);
 if (has_attributes)
   element->attributes = link_list();
 else
   element->attributes = NULL;
 element->parent = parent;
 element->sibling = NULL;
 element->child = NULL;
 element->pcdata = NULL;
 element->name = strcopy(element->name, name);
 return element;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xeb80(%rip), %rsi      # 0xaf5f1
movl $0x30, %edi
movl $0x2, %edx
callq 0x390f5
movq %rax, %r14
testl %ebp, %ebp
je 0xa0a90
xorl %eax, %eax
callq 0x1b64f
jmp 0xa0a92
xorl %eax, %eax
movq %rax, 0x10(%r14)
movq %r15, 0x18(%r14)
movq $0x0, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x3a404
movq %rax, (%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_set_attribute_value
void xml_set_attribute_value(Xmlelementptr element, char* attribute_name, char* attribute_value)
{
 Listitemptr listnode;
 Xmlattributeptr att;
 if (element->attributes)
  {
   listnode = element->attributes->head;
   while (listnode && strIcmp(attribute_name, ((Xmlattributeptr)(listnode->item))->name) != 0)
     listnode = listnode->next;
   if (listnode)
    {
     att = (Xmlattributeptr)(listnode->item);
     safe_free(att->value);
     att->value = strcopy(att->value, attribute_value);
    }
  }
}

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0xa0b20
pushq %r15
pushq %r14
pushq %rbx
movq (%rax), %r15
testq %r15, %r15
je 0xa0b1b
movq %rdx, %rbx
movq %rsi, %r14
movq (%r15), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x3a318
testl %eax, %eax
je 0xa0aff
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0xa0ae2
jmp 0xa0b1b
movq (%r15), %r14
movq 0x8(%r14), %rdi
callq 0x39194
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x3a404
movq %rax, 0x8(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_get_attribute_value
char* xml_get_attribute_value(Xmlelementptr element, char* attribute_name)
{
 Listitemptr listnode;
 if (element->attributes)
  {
   listnode = element->attributes->head;
   while (listnode && strIcmp(attribute_name, ((Xmlattributeptr)(listnode->item))->name) != 0)
     listnode = listnode->next;
   if (listnode)
     return ((Xmlattributeptr)(listnode->item))->value;
  }
 return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0xa0b59
movq (%rax), %r15
testq %r15, %r15
je 0xa0b59
movq %rsi, %r14
xorl %ebx, %ebx
movq (%r15), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x3a318
testl %eax, %eax
je 0xa0b5d
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0xa0b3c
jmp 0xa0b64
xorl %ebx, %ebx
jmp 0xa0b64
movq (%r15), %rax
movq 0x8(%rax), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_print_element
void xml_print_element(FILE* handle, Xmlelementptr element, int level)
{
 int i;
 Listitemptr listnode;
 Xmlattributeptr attribute;
 for (i = 0; i < level; i++)
   fprintf(handle, "\t");
 fprintf(handle, "<");
 fprintf(handle, "%s", element->name);
 if (element->attributes != NULL)
  {
   listnode = element->attributes->head;
   while (listnode)
    {
     attribute = (Xmlattributeptr) listnode->item;
     fprintf(handle, " %s=\"%s\"", attribute->name, attribute->value);
     listnode = listnode->next;
    }
  }
 if (element->child == NULL)
   if (element->pcdata == NULL)
     fprintf(handle, "/>\n");
   else
     fprintf(handle, ">%s</%s>\n", element->pcdata, element->name);
 else
  { 
   fprintf(handle, ">\n");
   xml_print_element(handle, element->child, level + 1);
   for (i = 0; i < level; i++)
     fprintf(handle, "\t");
   fprintf(handle, "</%s>\n", element->name);
  }
 if (element->sibling)
   xml_print_element(handle, element->sibling, level);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leal 0x1(%rbx), %r12d
leaq 0xea45(%rip), %rbp      # 0xaf609
testl %ebx, %ebx
jle 0xa0bdd
movl %ebx, %r13d
movl $0x9, %edi
movq %r15, %rsi
callq 0x4150
decl %r13d
jne 0xa0bcb
movl $0x3c, %edi
movq %r15, %rsi
callq 0x4150
movq (%r14), %rdi
movq %r15, %rsi
callq 0x41f0
movq 0x10(%r14), %rax
testq %rax, %rax
je 0xa0c24
movq (%rax), %r13
testq %r13, %r13
je 0xa0c24
movq (%r13), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x42e0
movq 0x8(%r13), %r13
jmp 0xa0c01
cmpq $0x0, 0x20(%r14)
je 0xa0c82
movl $0x2, %esi
movl $0x1, %edx
leaq 0xd2cd(%rip), %rdi      # 0xadf09
movq %r15, %rcx
callq 0x42c0
movq 0x20(%r14), %rsi
movq %r15, %rdi
movl %r12d, %edx
callq 0xa0ba6
testl %ebx, %ebx
jle 0xa0c6c
movl %ebx, %r13d
movl $0x9, %edi
movq %r15, %rsi
callq 0x4150
decl %r13d
jne 0xa0c5a
movq (%r14), %rdx
movq %r15, %rdi
leaq 0xe99c(%rip), %rsi      # 0xaf615
xorl %eax, %eax
callq 0x42e0
jmp 0xa0cba
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0xa0ca1
movq (%r14), %rcx
movq %r15, %rdi
leaq 0xe97a(%rip), %rsi      # 0xaf612
xorl %eax, %eax
callq 0x42e0
jmp 0xa0cba
movl $0x3, %esi
movl $0x1, %edx
leaq 0xd1bc(%rip), %rdi      # 0xade6e
movq %r15, %rcx
callq 0x42c0
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0xa0bc4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_number_of_children_with_specific_attribute_value
int xml_number_of_children_with_specific_attribute_value(Xmlelementptr element, char* attribute_name, char* attribute_value)
{
 int result = 0;
 Xmlelementptr childnode = element->child;
 while (childnode)
  {
   if (strIcmp(xml_get_attribute_value(childnode, attribute_name), attribute_value) == 0)
     result++;
   childnode = childnode->sibling;
  }
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x20(%rdi), %r15
testq %r15, %r15
je 0xa0d62
movq %rdx, %rbx
movq %rsi, %r14
xorl %ebp, %ebp
movq %r15, %rdi
movq %r14, %rsi
callq 0xa0b21
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3a318
cmpl $0x1, %eax
adcl $0x0, %ebp
movq 0x28(%r15), %r15
testq %r15, %r15
jne 0xa0d3b
jmp 0xa0d64
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/xmlparser.c
// Function: xml_free_element
void xml_free_element(Xmlelementptr element)
{
 if (element->attributes != NULL)
   free_link_list(element->attributes, xml_free_attribute);
 if (element->pcdata != NULL)
   safe_free(element->pcdata);
 if (element->child != NULL)
   xml_free_element(element->child);
 if (element->sibling != NULL)
   xml_free_element(element->sibling);
 safe_free(element->name);
 safe_free(element);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0xa0e1f
leaq -0x32(%rip), %rsi       # 0xa0de8
callq 0x1b7c4
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xa0e2d
callq 0x39194
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xa0e3b
callq 0xa0e06
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xa0e49
callq 0xa0e06
movq (%rbx), %rdi
callq 0x39194
movq %rbx, %rdi
popq %rbx
jmp 0x39194
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/main.c
// Function: cubehash256
void cubehash256(char* input, char* output) {
    
    uint32_t result[8];
    sph_cubehash256_context ctx_cubehash;
    
    sph_cubehash256_init(&ctx_cubehash);
    sph_cubehash256(&ctx_cubehash, input, 32);
    sph_cubehash256_close(&ctx_cubehash, result);
    
    memcpy(output, result, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xe8(%rbp), %r15
movq %r15, %rdi
callq 0x1b261
movl $0x20, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1b285
leaq -0x40(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x1b28f
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/main.c
// Function: blake256
void blake256(char* input, char* output) {
    
    uint32_t result[8];
    sph_blake256_context ctx_blake;
    
    sph_blake256_init(&ctx_blake);
    sph_blake256(&ctx_blake, input, 32);
    sph_blake256_close(&ctx_blake, result);	
    
    memcpy(output, result, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
callq 0xe891
movl $0x20, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0xe8be
leaq -0x40(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xe8c8
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/main.c
// Function: keccak256
void keccak256(char* input, char* output) {
    
    uint32_t result[8];
    sph_keccak256_context ctx_keccak;
    
    sph_keccak256_init(&ctx_keccak);
    sph_keccak256(&ctx_keccak, input, 32); 
    sph_keccak256_close(&ctx_keccak, result);
    
    memcpy(output, result, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x1a8(%rbp), %r15
movq %r15, %rdi
callq 0x1ec56
movl $0x20, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1ecbe
leaq -0x40(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x1eccd
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/main.c
// Function: skein256
void skein256(char* input, char* output) {
    
    uint32_t result[8];
    sph_skein256_context ctx_skein;
    
    sph_skein256_init(&ctx_skein);
    sph_skein256(&ctx_skein, input, 32); 
    sph_skein256_close(&ctx_skein, result);
    
    memcpy(output, result, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xd0(%rbp), %r15
movq %r15, %rdi
callq 0x2186f
movl $0x20, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x218f5
leaq -0x40(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x218ff
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/main.c
// Function: bmw256
void bmw256(char* input, char* output) {
    
    uint32_t result[8];
    sph_bmw256_context ctx_bmw;
    
    sph_bmw256_init(&ctx_bmw);
    sph_bmw256(&ctx_bmw, input, 32);
    sph_bmw256_close(&ctx_bmw, result);
    
    memcpy(output, result, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xd0(%rbp), %r15
movq %r15, %rdi
callq 0x121df
movl $0x20, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1221e
leaq -0x40(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x12228
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/main.c
// Function: main
int main(int argc, char *argv[]) {
    
    char* algorithm;
    char* input;
    char input_hex[32];
    char output[32];
    bool all = false;
    
    if (argc <= 1) {
        printf("Arguments is missing\n");
        exit(1);
    }

    all = argc == 2;

    if (all) {

        input = argv[1];

        for (size_t count = 0; count < sizeof(input_hex) / sizeof(*input_hex); count++) {
            sscanf(input, "%2hhx", &input_hex[count]);
            input += 2;
        }

        for(int i = 0; i < sizeof(algorithms) / sizeof(*algorithms); i++) {
            print_hash(algorithms[i], input_hex, output);
        }

    } else {

        algorithm = argv[1];
        input = argv[2];

        for (size_t count = 0; count < sizeof(input_hex) / sizeof(*input_hex); count++) {
            sscanf(input, "%2hhx", &input_hex[count]);
            input += 2;
        }

        print_hash(algorithm, input_hex, output);
    }
    
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
cmpl $0x1, %edi
jle 0x164f
movq 0x8(%rsi), %rbx
cmpl $0x2, %edi
jne 0x1600
leaq 0x20a98(%rip), %r14     # 0x22046
xorl %r15d, %r15d
leaq (%r15,%rbp), %rdx
addq $-0x40, %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x10c0
addq $0x2, %rbx
incq %r15
cmpq $0x20, %r15
jne 0x15b1
xorl %r15d, %r15d
leaq 0x28aa3(%rip), %r12     # 0x2a080
leaq -0x40(%rbp), %rbx
leaq -0x60(%rbp), %r14
movq (%r15,%r12), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x13c6
addq $0x8, %r15
cmpq $0x30, %r15
jne 0x15e5
jmp 0x1640
movq 0x10(%rsi), %r14
leaq 0x20a3b(%rip), %r15     # 0x22046
xorl %r12d, %r12d
leaq (%r12,%rbp), %rdx
addq $-0x40, %rdx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x10c0
addq $0x2, %r14
incq %r12
cmpq $0x20, %r12
jne 0x160e
leaq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movq %rbx, %rdi
callq 0x13c6
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20a0b(%rip), %rdi     # 0x22061
callq 0x1050
movl $0x1, %edi
callq 0x10d0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Lyra2RE.c
// Function: lyra2re_hash
void lyra2re_hash(const char* input, char* output)
{
    sph_blake256_context     ctx_blake;
    sph_groestl256_context   ctx_groestl;
    sph_keccak256_context    ctx_keccak;
    sph_skein256_context     ctx_skein;

    uint32_t hashA[8], hashB[8];

    sph_blake256_init(&ctx_blake);
    sph_blake256 (&ctx_blake, input, 80);
    sph_blake256_close (&ctx_blake, hashA);	
	
    sph_keccak256_init(&ctx_keccak);
    sph_keccak256 (&ctx_keccak,hashA, 32); 
    sph_keccak256_close(&ctx_keccak, hashB);
	
	LYRA2_old(hashA, 32, hashB, 32, hashB, 32, 1, 8, 8);
	
	sph_skein256_init(&ctx_skein);
    sph_skein256 (&ctx_skein, hashA, 32); 
    sph_skein256_close(&ctx_skein, hashB); 

    sph_groestl256_init(&ctx_groestl);
    sph_groestl256 (&ctx_groestl, hashB, 32); 
    sph_groestl256_close(&ctx_groestl, hashA); 

	memcpy(output, hashA, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x350, %rsp            # imm = 0x350
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xe0(%rbp), %r15
movq %r15, %rdi
callq 0xe891
movl $0x50, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0xe8be
leaq -0x60(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xe8c8
leaq -0x368(%rbp), %r12
movq %r12, %rdi
callq 0x1ec56
movl $0x20, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x1ecbe
leaq -0x40(%rbp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1eccd
subq $0x8, %rsp
movl $0x8, %eax
movl $0x20, %esi
movl $0x20, %ecx
movl $0x20, %r9d
movq %r14, %rdi
movq %r15, %rdx
movq %r15, %r8
pushq %rax
pushq %rax
pushq $0x1
callq 0x1c14
addq $0x20, %rsp
leaq -0x170(%rbp), %r12
movq %r12, %rdi
callq 0x2186f
movl $0x20, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x218f5
movq %r12, %rdi
movq %r15, %rsi
callq 0x218ff
leaq -0x200(%rbp), %r12
movq %r12, %rdi
callq 0x6cf7
movl $0x20, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6d2c
movq %r12, %rdi
movq %r14, %rsi
callq 0x6d36
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0x350, %rsp            # imm = 0x350
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Lyra2RE.c
// Function: lyra2re2_hash
void lyra2re2_hash(const char* input, char* output)
{
	sph_blake256_context ctx_blake;
	sph_cubehash256_context ctx_cubehash;
	sph_keccak256_context ctx_keccak;
	sph_skein256_context ctx_skein;
	sph_bmw256_context ctx_bmw;
	
	uint32_t hashA[8], hashB[8];
	
	sph_blake256_init(&ctx_blake);
    sph_blake256(&ctx_blake, input, 80);
    sph_blake256_close (&ctx_blake, hashA);	
	
    sph_keccak256_init(&ctx_keccak);
    sph_keccak256(&ctx_keccak, hashA, 32); 
    sph_keccak256_close(&ctx_keccak, hashB);
    
    sph_cubehash256_init(&ctx_cubehash);
    sph_cubehash256(&ctx_cubehash, hashB, 32);
    sph_cubehash256_close(&ctx_cubehash, hashA);
    
    LYRA2(hashB, 32, hashA, 32, hashA, 32, 1, 4, 4);
    
   	sph_skein256_init(&ctx_skein);
    sph_skein256(&ctx_skein, hashB, 32); 
    sph_skein256_close(&ctx_skein, hashA);
    
    sph_cubehash256_init(&ctx_cubehash);
    sph_cubehash256(&ctx_cubehash, hashA, 32);
    sph_cubehash256_close(&ctx_cubehash, hashB);
    
    sph_bmw256_init(&ctx_bmw);
    sph_bmw256(&ctx_bmw, hashB, 32);
    sph_bmw256_close(&ctx_bmw, hashA);
    
   	memcpy(output, hashA, 32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3f8, %rsp            # imm = 0x3F8
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xf0(%rbp), %r15
movq %r15, %rdi
callq 0xe891
movl $0x50, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0xe8be
leaq -0x70(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xe8c8
leaq -0x420(%rbp), %r12
movq %r12, %rdi
callq 0x1ec56
movl $0x20, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x1ecbe
leaq -0x50(%rbp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1eccd
leaq -0x2b8(%rbp), %r12
movq %r12, %rdi
callq 0x1b261
movl $0x20, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b285
movq %r12, %rdi
movq %r14, %rsi
callq 0x1b28f
subq $0x8, %rsp
movl $0x4, %eax
movl $0x20, %esi
movl $0x20, %ecx
movl $0x20, %r9d
movq %r15, %rdi
movq %r14, %rdx
movq %r14, %r8
pushq %rax
pushq %rax
pushq $0x1
callq 0x18e8
addq $0x20, %rsp
leaq -0x210(%rbp), %r13
movq %r13, %rdi
callq 0x2186f
movl $0x20, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x218f5
movq %r13, %rdi
movq %r14, %rsi
callq 0x218ff
movq %r12, %rdi
callq 0x1b261
movl $0x20, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x1b285
movq %r12, %rdi
movq %r15, %rsi
callq 0x1b28f
leaq -0x180(%rbp), %r12
movq %r12, %rdi
callq 0x121df
movl $0x20, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x1221e
movq %r12, %rdi
movq %r14, %rsi
callq 0x12228
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Sponge.c
// Function: initState
inline void initState(uint64_t state[/*16*/]) {
    //First 512 bis are zeros
    memset(state, 0, 64);
    //Remainder BLOCK_LEN_BLAKE2_SAFE_BYTES are reserved to the IV
    state[8] = blake2b_IV[0];
    state[9] = blake2b_IV[1];
    state[10] = blake2b_IV[2];
    state[11] = blake2b_IV[3];
    state[12] = blake2b_IV[4];
    state[13] = blake2b_IV[5];
    state[14] = blake2b_IV[6];
    state[15] = blake2b_IV[7];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movabsq $0x6a09e667f3bcc908, %rax # imm = 0x6A09E667F3BCC908
movq %rax, 0x40(%rdi)
movabsq $-0x4498517a7b3558c5, %rax # imm = 0xBB67AE8584CAA73B
movq %rax, 0x48(%rdi)
movabsq $0x3c6ef372fe94f82b, %rax # imm = 0x3C6EF372FE94F82B
movq %rax, 0x50(%rdi)
movabsq $-0x5ab00ac5a0e2c90f, %rax # imm = 0xA54FF53A5F1D36F1
movq %rax, 0x58(%rdi)
movabsq $0x510e527fade682d1, %rax # imm = 0x510E527FADE682D1
movq %rax, 0x60(%rdi)
movabsq $-0x64fa9773d4c193e1, %rax # imm = 0x9B05688C2B3E6C1F
movq %rax, 0x68(%rdi)
movabsq $0x1f83d9abfb41bd6b, %rax # imm = 0x1F83D9ABFB41BD6B
movq %rax, 0x70(%rdi)
movabsq $0x5be0cd19137e2179, %rax # imm = 0x5BE0CD19137E2179
movq %rax, 0x78(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Sponge.c
// Function: squeeze
inline void squeeze(uint64_t *state, byte *out, unsigned int len) {
    int fullBlocks = len / BLOCK_LEN_BYTES;
    byte *ptr = out;
    int i;
    //Squeezes full blocks
    for (i = 0; i < fullBlocks; i++) {
	memcpy(ptr, state, BLOCK_LEN_BYTES);
	blake2bLyra(state);
	ptr += BLOCK_LEN_BYTES;
    }

    //Squeezes remaining bytes
    memcpy(ptr, state, (len % BLOCK_LEN_BYTES));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, %eax
movl $0xaaaaaaab, %r15d      # imm = 0xAAAAAAAB
imulq %rax, %r15
shrq $0x26, %r15
movl %r15d, %eax
shll $0x5, %eax
leal (%rax,%rax,2), %eax
movl %edx, %r12d
subl %eax, %r12d
cmpl $0x60, %edx
jb 0x2022
movl $0x60, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x10a0
movq %rbx, %rdi
callq 0x2038
addq $0x60, %r14
decl %r15d
jne 0x2001
movl %r12d, %edx
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x10a0
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Sponge.c
// Function: absorbBlock
inline void absorbBlock(uint64_t *state, const uint64_t *in) {
    //XORs the first BLOCK_LEN_INT64 words of "in" with the current state
    state[0] ^= in[0];
    state[1] ^= in[1];
    state[2] ^= in[2];
    state[3] ^= in[3];
    state[4] ^= in[4];
    state[5] ^= in[5];
    state[6] ^= in[6];
    state[7] ^= in[7];
    state[8] ^= in[8];
    state[9] ^= in[9];
    state[10] ^= in[10];
    state[11] ^= in[11];

    //Applies the transformation f to the sponge's state
    blake2bLyra(state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rax
xorq %rax, (%rdi)
movq 0x8(%rsi), %rax
xorq %rax, 0x8(%rdi)
movq 0x10(%rsi), %rax
xorq %rax, 0x10(%rdi)
movq 0x18(%rsi), %rax
xorq %rax, 0x18(%rdi)
movq 0x20(%rsi), %rax
xorq %rax, 0x20(%rdi)
movq 0x28(%rsi), %rax
xorq %rax, 0x28(%rdi)
movq 0x30(%rsi), %rax
xorq %rax, 0x30(%rdi)
movq 0x38(%rsi), %rax
xorq %rax, 0x38(%rdi)
movq 0x40(%rsi), %rax
xorq %rax, 0x40(%rdi)
movq 0x48(%rsi), %rax
xorq %rax, 0x48(%rdi)
movq 0x50(%rsi), %rax
xorq %rax, 0x50(%rdi)
movq 0x58(%rsi), %rax
xorq %rax, 0x58(%rdi)
popq %rbp
jmp 0x2038
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Sponge.c
// Function: absorbBlockBlake2Safe
inline void absorbBlockBlake2Safe(uint64_t *state, const uint64_t *in) {
    //XORs the first BLOCK_LEN_BLAKE2_SAFE_INT64 words of "in" with the current state

	state[0] ^= in[0];
    state[1] ^= in[1];
    state[2] ^= in[2];
    state[3] ^= in[3];
    state[4] ^= in[4];
    state[5] ^= in[5];
    state[6] ^= in[6];
    state[7] ^= in[7];


    //Applies the transformation f to the sponge's state
    blake2bLyra(state);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rax
xorq %rax, (%rdi)
movq 0x8(%rsi), %rax
xorq %rax, 0x8(%rdi)
movq 0x10(%rsi), %rax
xorq %rax, 0x10(%rdi)
movq 0x18(%rsi), %rax
xorq %rax, 0x18(%rdi)
movq 0x20(%rsi), %rax
xorq %rax, 0x20(%rdi)
movq 0x28(%rsi), %rax
xorq %rax, 0x28(%rdi)
movq 0x30(%rsi), %rax
xorq %rax, 0x30(%rdi)
movq 0x38(%rsi), %rax
xorq %rax, 0x38(%rdi)
popq %rbp
jmp 0x2038
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Sponge.c
// Function: reducedSqueezeRow0
inline void reducedSqueezeRow0(uint64_t* state, uint64_t* rowOut, uint64_t nCols) {
    uint64_t* ptrWord = rowOut + (nCols-1)*BLOCK_LEN_INT64; //In Lyra2: pointer to M[0][C-1]
    int i;
    //M[row][C-1-col] = H.reduced_squeeze()
    for (i = 0; i < nCols; i++) {
	ptrWord[0] = state[0];
	ptrWord[1] = state[1];
	ptrWord[2] = state[2];
	ptrWord[3] = state[3];
	ptrWord[4] = state[4];
	ptrWord[5] = state[5];
	ptrWord[6] = state[6];
	ptrWord[7] = state[7];
	ptrWord[8] = state[8];
	ptrWord[9] = state[9];
	ptrWord[10] = state[10];
	ptrWord[11] = state[11];

	//Goes to next block (column) that will receive the squeezed data
	ptrWord -= BLOCK_LEN_INT64;

	//Applies the reduced-round transformation f to the sponge's state
	reducedBlake2bLyra(state);
    }
}

// Assembly:
testq %rdx, %rdx
je 0x3f22
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
leaq (%rdx,%rdx,2), %rax
shlq $0x5, %rax
leaq (%rax,%rsi), %r15
addq $-0x8, %r15
movq (%r14), %rax
movq %rax, -0x58(%r15)
movq 0x8(%r14), %rax
movq %rax, -0x50(%r15)
movq 0x10(%r14), %rax
movq %rax, -0x48(%r15)
movq 0x18(%r14), %rax
movq %rax, -0x40(%r15)
movq 0x20(%r14), %rax
movq %rax, -0x38(%r15)
movq 0x28(%r14), %rax
movq %rax, -0x30(%r15)
movq 0x30(%r14), %rax
movq %rax, -0x28(%r15)
movq 0x38(%r14), %rax
movq %rax, -0x20(%r15)
movq 0x40(%r14), %rax
movq %rax, -0x18(%r15)
movq 0x48(%r14), %rax
movq %rax, -0x10(%r15)
movq 0x50(%r14), %rax
movq %rax, -0x8(%r15)
movq 0x58(%r14), %rax
movq %rax, (%r15)
movq %r14, %rdi
callq 0x3f23
addq $-0x60, %r15
decq %rbx
jne 0x3ea9
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/Sponge.c
// Function: printArray
void printArray(unsigned char *array, unsigned int size, char *name) {
    int i;
    printf("%s: ", name);
    for (i = 0; i < size; i++) {
	printf("%2x|", array[i]);
    }
    printf("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x1d985(%rip), %rdi     # 0x22076
movq %rdx, %rsi
xorl %eax, %eax
callq 0x1070
testl %r14d, %r14d
je 0x4724
movl %r14d, %r15d
leaq 0x1d971(%rip), %r14     # 0x2207b
xorl %r12d, %r12d
movzbl (%rbx,%r12), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1070
incq %r12
cmpq %r12, %r15
jne 0x470d
movl $0xa, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1040
nop
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/bmw.c
// Function: bmw32
static void
bmw32(sph_bmw_small_context *sc, const void *data, size_t len)
{
	unsigned char *buf;
	size_t ptr;
	sph_u32 htmp[16];
	sph_u32 *h1, *h2;
#if !SPH_64
	sph_u32 tmp;
#endif

#if SPH_64
	sc->bit_count += (sph_u64)len << 3;
#else
	tmp = sc->bit_count_low;
	sc->bit_count_low = SPH_T32(tmp + ((sph_u32)len << 3));
	if (sc->bit_count_low < tmp)
		sc->bit_count_high ++;
	sc->bit_count_high += len >> 29;
#endif
	buf = sc->buf;
	ptr = sc->ptr;
	h1 = sc->H;
	h2 = htmp;
	while (len > 0) {
		size_t clen;

		clen = (sizeof sc->buf) - ptr;
		if (clen > len)
			clen = len;
		memcpy(buf + ptr, data, clen);
		data = (const unsigned char *)data + clen;
		len -= clen;
		ptr += clen;
		if (ptr == sizeof sc->buf) {
			sph_u32 *ht;

			compress_small(buf, h1, h2);
			ht = h1;
			h1 = h2;
			h2 = ht;
			ptr = 0;
		}
	}
	sc->ptr = ptr;
	if (h1 != sc->H)
		memcpy(sc->H, h1, sizeof sc->H);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
leaq (,%rdx,8), %rax
addq %rax, 0x88(%rdi)
movq 0x40(%rdi), %r12
leaq 0x48(%rdi), %r13
testq %rdx, %rdx
movq %r13, -0x40(%rbp)
je 0x11fd9
movq %rdx, %r14
movq %rsi, %r15
leaq -0x90(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %r13, -0x30(%rbp)
movq %rdi, -0x48(%rbp)
movl $0x40, %ebx
subq %r12, %rbx
cmpq %r14, %rbx
cmovaeq %r14, %rbx
movq %rdi, %r13
addq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x10a0
addq %rbx, %r12
cmpq $0x40, %r12
jne 0x11fc9
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %r13
movq %r13, %rdx
callq 0x12645
xorl %r12d, %r12d
movq -0x30(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq %r13, -0x30(%rbp)
jmp 0x11fcd
movq -0x30(%rbp), %r13
addq %rbx, %r15
subq %rbx, %r14
movq -0x48(%rbp), %rdi
jne 0x11f7c
movq %r12, 0x40(%rdi)
movq -0x40(%rbp), %rcx
cmpq %rcx, %r13
je 0x12009
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups 0x30(%r13), %xmm3
movups %xmm3, 0x30(%rcx)
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/bmw.c
// Function: bmw32_close
static void
bmw32_close(sph_bmw_small_context *sc, unsigned ub, unsigned n,
	void *dst, size_t out_size_w32)
{
	unsigned char *buf, *out;
	size_t ptr, u, v;
	unsigned z;
	sph_u32 h1[16], h2[16], *h;

	buf = sc->buf;
	ptr = sc->ptr;
	z = 0x80 >> n;
	buf[ptr ++] = ((ub & -z) | z) & 0xFF;
	h = sc->H;
	if (ptr > (sizeof sc->buf) - 8) {
		memset(buf + ptr, 0, (sizeof sc->buf) - ptr);
		compress_small(buf, h, h1);
		ptr = 0;
		h = h1;
	}
	memset(buf + ptr, 0, (sizeof sc->buf) - 8 - ptr);
#if SPH_64
	sph_enc64le_aligned(buf + (sizeof sc->buf) - 8,
		SPH_T64(sc->bit_count + n));
#else
	sph_enc32le_aligned(buf + (sizeof sc->buf) - 8,
		sc->bit_count_low + n);
	sph_enc32le_aligned(buf + (sizeof sc->buf) - 4,
		SPH_T32(sc->bit_count_high));
#endif
	compress_small(buf, h, h2);
	for (u = 0; u < 16; u ++)
		sph_enc32le_aligned(buf + 4 * u, h2[u]);
	compress_small(buf, final_s, h1);
	out = dst;
	for (u = 0, v = 16 - out_size_w32; u < out_size_w32; u ++, v ++)
		sph_enc32le(out + 4 * u, h1[v]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, %rbx
movq %rcx, -0x30(%rbp)
movl %edx, %r12d
movq %rdi, %r15
movq 0x40(%rdi), %rax
movl $0x80, %edx
movl %r12d, %ecx
shrl %cl, %edx
movl %edx, %ecx
negl %ecx
andl %esi, %ecx
orl %edx, %ecx
leaq 0x1(%rax), %rdi
movb %cl, (%r15,%rax)
leaq 0x48(%r15), %r13
cmpq $0x39, %rdi
jb 0x12139
addq %r15, %rdi
movl $0x3f, %edx
subq %rax, %rdx
xorl %esi, %esi
callq 0x1080
leaq -0x70(%rbp), %r14
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x12645
xorl %edi, %edi
movq %r14, %r13
leaq (%r15,%rdi), %rax
movl $0x38, %edx
subq %rdi, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1080
movl %r12d, %eax
addq 0x88(%r15), %rax
movq %rax, 0x38(%r15)
leaq -0xb0(%rbp), %r14
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x12645
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movaps 0x20(%r14), %xmm2
movaps 0x30(%r14), %xmm3
movups %xmm3, 0x30(%r15)
movups %xmm2, 0x20(%r15)
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
leaq 0x14121(%rip), %rsi     # 0x262c0
leaq -0x70(%rbp), %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x12645
testq %rbx, %rbx
je 0x121cd
shlq $0x2, %rbx
subq %rbx, %r12
addq $0x40, %r12
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x10a0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/bmw.c
// Function: bmw64
static void
bmw64(sph_bmw_big_context *sc, const void *data, size_t len)
{
	unsigned char *buf;
	size_t ptr;
	sph_u64 htmp[16];
	sph_u64 *h1, *h2;

	sc->bit_count += (sph_u64)len << 3;
	buf = sc->buf;
	ptr = sc->ptr;
	h1 = sc->H;
	h2 = htmp;
	while (len > 0) {
		size_t clen;

		clen = (sizeof sc->buf) - ptr;
		if (clen > len)
			clen = len;
		memcpy(buf + ptr, data, clen);
		data = (const unsigned char *)data + clen;
		len -= clen;
		ptr += clen;
		if (ptr == sizeof sc->buf) {
			sph_u64 *ht;

			compress_big(buf, h1, h2);
			ht = h1;
			h1 = h2;
			h2 = ht;
			ptr = 0;
		}
	}
	sc->ptr = ptr;
	if (h1 != sc->H)
		memcpy(sc->H, h1, sizeof sc->H);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
leaq (,%rdx,8), %rax
addq %rax, 0x108(%rdi)
movq 0x80(%rdi), %rbx
leaq 0x88(%rdi), %r13
testq %rdx, %rdx
movq %r13, -0x40(%rbp)
je 0x123c1
movq %rdx, %r15
movq %rsi, %r12
leaq -0xd0(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %r13, -0x30(%rbp)
movq %rdi, -0x48(%rbp)
movl $0x80, %r14d
subq %rbx, %r14
cmpq %r15, %r14
cmovaeq %r15, %r14
movq %rdi, %r13
addq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x10a0
addq %r14, %rbx
movl $0x80, %eax
cmpq %rax, %rbx
jne 0x123b1
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %r13
movq %r13, %rdx
callq 0x13e00
xorl %ebx, %ebx
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %r13, -0x30(%rbp)
jmp 0x123b5
movq -0x30(%rbp), %r13
addq %r14, %r12
subq %r14, %r15
movq -0x48(%rbp), %rdi
jne 0x12360
movq %rbx, 0x80(%rdi)
movq -0x40(%rbp), %rdi
cmpq %rdi, %r13
je 0x123dc
movl $0x10, %ecx
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/bmw.c
// Function: bmw64_close
static void
bmw64_close(sph_bmw_big_context *sc, unsigned ub, unsigned n,
	void *dst, size_t out_size_w64)
{
	unsigned char *buf, *out;
	size_t ptr, u, v;
	unsigned z;
	sph_u64 h1[16], h2[16], *h;

	buf = sc->buf;
	ptr = sc->ptr;
	z = 0x80 >> n;
	buf[ptr ++] = ((ub & -z) | z) & 0xFF;
	h = sc->H;
	if (ptr > (sizeof sc->buf) - 8) {
		memset(buf + ptr, 0, (sizeof sc->buf) - ptr);
		compress_big(buf, h, h1);
		ptr = 0;
		h = h1;
	}
	memset(buf + ptr, 0, (sizeof sc->buf) - 8 - ptr);
	sph_enc64le_aligned(buf + (sizeof sc->buf) - 8,
		SPH_T64(sc->bit_count + n));
	compress_big(buf, h, h2);
	for (u = 0; u < 16; u ++)
		sph_enc64le_aligned(buf + 8 * u, h2[u]);
	compress_big(buf, final_b, h1);
	out = dst;
	for (u = 0, v = 16 - out_size_w64; u < out_size_w64; u ++, v ++)
		sph_enc64le(out + 8 * u, h1[v]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %rbx
movq %rcx, -0x30(%rbp)
movl %edx, %r12d
movq %rdi, %r15
movq 0x80(%rdi), %rax
movl $0x80, %edx
movl %r12d, %ecx
shrl %cl, %edx
movl %edx, %ecx
negl %ecx
andl %esi, %ecx
orl %edx, %ecx
leaq 0x1(%rax), %rdi
movb %cl, (%r15,%rax)
leaq 0x88(%r15), %r13
cmpq $0x79, %rdi
jb 0x124f2
addq %r15, %rdi
movl $0x7f, %edx
subq %rax, %rdx
xorl %esi, %esi
callq 0x1080
leaq -0xb0(%rbp), %r14
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x13e00
xorl %edi, %edi
movq %r14, %r13
leaq (%r15,%rdi), %rax
movl $0x78, %edx
subq %rdi, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1080
movl %r12d, %eax
addq 0x108(%r15), %rax
movq %rax, 0x78(%r15)
leaq -0x130(%rbp), %r14
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x13e00
movl $0x10, %ecx
movq %r15, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x13dc0(%rip), %rsi     # 0x26300
leaq -0xb0(%rbp), %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x13e00
testq %rbx, %rbx
je 0x12571
shlq $0x3, %rbx
subq %rbx, %r12
subq $-0x80, %r12
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x10a0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aescopav2/ref/aes-core.c
// Function: aesc_keyexp
void aesc_keyexp(const uint8_t key[], uint8_t key_sched[])
{
	uint8_t key_sched_0, key_sched_1, key_sched_2, key_sched_3, tmp;
	
	unsigned int i;
	
	block_copy(key_sched, key);
	
	for (i = 16; i < 176; i += 4) {		
		key_sched_0 = key_sched[i - 4];
		key_sched_1 = key_sched[i - 3];
		key_sched_2 = key_sched[i - 2];
		key_sched_3 = key_sched[i - 1];
		
		if (!(i & 0x0f)) {
			tmp = key_sched_0;
			key_sched_0 = sbox(key_sched_1) ^ rcon(i >> 4);
			key_sched_1 = sbox(key_sched_2);
			key_sched_2 = sbox(key_sched_3);
			key_sched_3 = sbox(tmp);
		}
		
		key_sched[i] = key_sched[i - 16] ^ key_sched_0;
		key_sched[i + 1] = key_sched[i - 15] ^ key_sched_1;
		key_sched[i + 2] = key_sched[i - 14] ^ key_sched_2;
		key_sched[i + 3] = key_sched[i - 13] ^ key_sched_3;
	}
}

// Assembly:
vmovdqu (%rdi), %xmm0
vmovdqu %xmm0, (%rsi)
movl $0x10, %ecx
leaq 0x1e40(%rip), %rax      # 0x3020
leaq 0x1f39(%rip), %rdx      # 0x3120
vmovd -0x4(%rsi,%rcx), %xmm0
testb $0xc, %cl
jne 0x1233
vpextrb $0x1, %xmm0, %edi
movl %ecx, %r8d
shrl $0x4, %r8d
movb (%r8,%rdx), %r8b
xorb (%rdi,%rax), %r8b
vpextrb $0x2, %xmm0, %edi
vpextrb $0x3, %xmm0, %r9d
vpextrb $0x0, %xmm0, %r10d
vmovd %r8d, %xmm0
vpinsrb $0x1, (%rdi,%rax), %xmm0, %xmm0
vpinsrb $0x2, (%r9,%rax), %xmm0, %xmm0
vpinsrb $0x3, (%r10,%rax), %xmm0, %xmm0
vmovd -0x10(%rsi,%rcx), %xmm1
vpxor %xmm0, %xmm1, %xmm0
vmovd %xmm0, (%rsi,%rcx)
leaq 0x4(%rcx), %rdi
cmpq $0xac, %rcx
movq %rdi, %rcx
jb 0x11e7
retq