LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Yamsman[P]scc/src/util/vector.c
// Function: vector_remove
void vector_remove(vector *v, int index) {
	//Shift all entries if neccesary
	for (int i=index; i<v->len-1; i++)
		v->table[i] = v->table[i+1];
	v->table[v->len-1] = NULL;
	v->len--;

	return;
}

// Assembly:
movslq 0x8(%rdi), %rax
leal -0x1(%rax), %ecx
cmpl %esi, %ecx
jle 0xca81
movslq %esi, %rdx
incq %rdx
movq (%rdi), %rsi
movq (%rsi,%rdx,8), %r8
movq %r8, -0x8(%rsi,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0xca6d
movq (%rdi), %rdx
movq $0x0, -0x8(%rdx,%rax,8)
movl %ecx, 0x8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/Yamsman[P]scc/src/util/vector.c
// Function: vector_pop
void *vector_pop(vector *v) {
	if (v->len == 0) return NULL;
	void *val = v->table[v->len-1];
	vector_remove(v, v->len-1);
	return val;
}

// Assembly:
movslq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0xcab8
movq (%rdi), %rdx
leaq -0x1(%rcx), %rsi
movq -0x8(%rdx,%rcx,8), %rax
movq $0x0, -0x8(%rdx,%rcx,8)
movl %esi, 0x8(%rdi)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: save
void save() {
  FILE *fp;
  if ((fp = fopen("ngaImage", "wb")) == NULL) {
    printf("Unable to save the image!\n");
    exit(2);
  }
  fwrite(&target, sizeof(CELL), here, fp);
  fclose(fp);
}

// Assembly:
pushq %rbx
leaq 0xcc2(%rip), %rdi       # 0x2006
leaq 0xcc4(%rip), %rsi       # 0x200f
callq 0x1090
testq %rax, %rax
je 0x137c
movq %rax, %rbx
movslq 0x82df1(%rip), %rdx     # 0x84150
leaq 0x2dea(%rip), %rdi      # 0x4150
movl $0x4, %esi
movq %rax, %rcx
callq 0x10c0
movq %rbx, %rdi
popq %rbx
jmp 0x1040
leaq 0xd3c(%rip), %rdi       # 0x20bf
callq 0x1030
movl $0x2, %edi
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: lookup
CELL lookup(char *name) {
  CELL slice = -1;
  CELL n = np;
  while (n > 0) {
    n--;
    if (strcmp(Labels[n], name) == 0) {
      slice = Pointers[n];
    }
  }
  return slice;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq 0x82db3(%rip), %rax     # 0x84154
testq %rax, %rax
jle 0x13ef
movq %rdi, %rbx
leaq 0x1(%rax), %r15
shlq $0x6, %rax
leaq 0x82da8(%rip), %rcx     # 0x84160
leaq (%rax,%rcx), %r14
addq $-0x40, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0xc2d94(%rip), %r12     # 0xc4160
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1070
testl %eax, %eax
jne 0x13e0
movl -0x8(%r12,%r15,4), %ebp
decq %r15
addq $-0x40, %r14
cmpq $0x1, %r15
jg 0x13cc
jmp 0x13f4
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: add_label
void add_label(char *name, CELL slice) {
  if (lookup(name) == -1) {
    bsd_strlcpy(Labels[np], name, STRING_LEN);
    Pointers[np] = slice;
    np++;
  } else {
    printf("Fatal error: %s already defined\n", name);
    exit(0);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x1392
cmpl $-0x1, %eax
jne 0x1475
movslq 0x82d3b(%rip), %rcx     # 0x84154
shlq $0x6, %rcx
leaq 0x82d3c(%rip), %rax     # 0x84160
addq %rcx, %rax
xorl %edx, %edx
movq %rdx, %rcx
cmpq $0x3f, %rdx
je 0x1448
movb (%r14,%rcx), %sil
movb %sil, (%rax,%rcx)
leaq 0x1(%rcx), %rdx
testb %sil, %sil
jne 0x1429
addq %rdx, %rax
jmp 0x144b
addq %rcx, %rax
cmpq $0x3f, %rcx
jne 0x1454
movb $0x0, (%rax)
movslq 0x82cf9(%rip), %rax     # 0x84154
leaq 0xc2cfe(%rip), %rcx     # 0xc4160
movl %ebx, (%rcx,%rax,4)
incl %eax
movl %eax, 0x82ce7(%rip)     # 0x84154
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xb96(%rip), %rdi       # 0x2012
movq %r14, %rsi
xorl %eax, %eax
callq 0x1060
xorl %edi, %edi
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: pass1
void pass1(char *buffer) {
  switch (buffer[0]) {
    case 'i': here++;                             break;
    case 'r': here++;                             break;
    case 'd': here++;                             break;
    case 's': here = here + strlen(buffer) - 1;   break;
    case ':': add_label(buffer+2, here);          break;
  }
}

// Assembly:
movzbl (%rdi), %eax
cmpl $0x68, %eax
jle 0x151d
cmpl $0x73, %eax
je 0x152e
cmpl $0x72, %eax
je 0x1527
cmpl $0x69, %eax
je 0x1527
retq
cmpl $0x3a, %eax
je 0x1546
cmpl $0x64, %eax
jne 0x151c
incl 0x82c23(%rip)           # 0x84150
retq
pushq %rbx
movl 0x82c1b(%rip), %ebx     # 0x84150
callq 0x1050
addl %ebx, %eax
decl %eax
movl %eax, 0x82c0c(%rip)     # 0x84150
popq %rbx
retq
addq $0x2, %rdi
movl 0x82c00(%rip), %esi     # 0x84150
jmp 0x13ff
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: pass2
void pass2(char *buffer) {
  unsigned int opcode;
  char inst[3];
  inst[2] = '\0';
  switch (buffer[0]) {
    case 'i': memcpy(inst, buffer + 8, 2);
              opcode = opcode_for(inst);
              opcode = opcode << 8;
              memcpy(inst, buffer + 6, 2);
              opcode += opcode_for(inst);
              opcode = opcode << 8;
              memcpy(inst, buffer + 4, 2);
              opcode += opcode_for(inst);
              opcode = opcode << 8;
              memcpy(inst, buffer + 2, 2);
              opcode += opcode_for(inst);
              target[here++] = opcode;
              break;
    case 'r': here++;                             break;
    case 'd': here++;                             break;
    case 's': here = here + strlen(buffer) - 1;   break;
    case ':':                                     break;
  }
}

// Assembly:
pushq %rbx
movzbl (%rdi), %eax
cmpl $0x71, %eax
jg 0x1629
cmpl $0x64, %eax
je 0x164a
cmpl $0x69, %eax
jne 0x1650
movzwl 0x8(%rdi), %eax
leaq 0xab4(%rip), %rdx       # 0x2033
xorl %ecx, %ecx
cmpw (%rdx), %ax
je 0x159c
addq $0x10000, %rcx          # imm = 0x10000
addq $0x2, %rdx
cmpq $0x1f0000, %rcx         # imm = 0x1F0000
jne 0x1581
xorl %ecx, %ecx
movzwl 0x6(%rdi), %edx
leaq 0xa8c(%rip), %rsi       # 0x2033
xorl %eax, %eax
cmpw (%rsi), %dx
je 0x15c2
addq $0x100, %rax            # imm = 0x100
addq $0x2, %rsi
cmpq $0x1f00, %rax           # imm = 0x1F00
jne 0x15a9
xorl %eax, %eax
addl %ecx, %eax
movzwl 0x4(%rdi), %edx
leaq 0xa64(%rip), %rsi       # 0x2033
xorl %ecx, %ecx
cmpw (%rsi), %dx
je 0x15e5
incq %rcx
addq $0x2, %rsi
cmpq $0x1f, %rcx
jne 0x15d1
xorl %ecx, %ecx
addl %ecx, %eax
shll $0x8, %eax
movzwl 0x2(%rdi), %edx
leaq 0xa3e(%rip), %rsi       # 0x2033
xorl %ecx, %ecx
cmpw (%rsi), %dx
je 0x160b
incq %rcx
addq $0x2, %rsi
cmpq $0x1f, %rcx
jne 0x15f7
xorl %ecx, %ecx
addl %eax, %ecx
movslq 0x82b3c(%rip), %rax     # 0x84150
leal 0x1(%rax), %edx
movl %edx, 0x82b33(%rip)     # 0x84150
leaq 0x2b2c(%rip), %rdx      # 0x4150
movl %ecx, (%rdx,%rax,4)
jmp 0x1650
cmpl $0x72, %eax
je 0x164a
cmpl $0x73, %eax
jne 0x1650
movl 0x82b17(%rip), %ebx     # 0x84150
callq 0x1050
addl %ebx, %eax
decl %eax
movl %eax, 0x82b08(%rip)     # 0x84150
jmp 0x1650
incl 0x82b00(%rip)           # 0x84150
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: pass3
void pass3(char *buffer) {
  switch (buffer[0]) {
    case 'i': here++;                             break;
    case 'r': here++;                             break;
    case 'd': target[here++] = atoi(buffer+2);    break;
    case 's': here = here + strlen(buffer) - 1;   break;
    case ':':                                     break;
  }
}

// Assembly:
pushq %rbx
movzbl (%rdi), %eax
cmpl $0x71, %eax
jg 0x1667
cmpl $0x64, %eax
je 0x1690
cmpl $0x69, %eax
je 0x1688
jmp 0x16b3
cmpl $0x72, %eax
je 0x1688
cmpl $0x73, %eax
jne 0x16b3
movl 0x82ad9(%rip), %ebx     # 0x84150
callq 0x1050
addl %ebx, %eax
decl %eax
movl %eax, 0x82aca(%rip)     # 0x84150
jmp 0x16b3
incl 0x82ac2(%rip)           # 0x84150
jmp 0x16b3
addq $0x2, %rdi
callq 0x10a0
movslq 0x82ab0(%rip), %rcx     # 0x84150
leal 0x1(%rcx), %edx
movl %edx, 0x82aa7(%rip)     # 0x84150
leaq 0x2aa0(%rip), %rdx      # 0x4150
movl %eax, (%rdx,%rcx,4)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: pass4
void pass4(char *buffer) {
  unsigned int opcode;
  switch (buffer[0]) {
    case 'i': here++;                             break;
    case 'r': here++;                             break;
    case 'd': here++;                             break;
    case 's': opcode = 2;
              while (opcode < strlen(buffer)) {
                target[here++] = buffer[opcode++];
              }
              target[here++] = 0;
                                                  break;
    case ':':                                     break;
  }
}

// Assembly:
movzbl (%rdi), %eax
cmpl $0x71, %eax
jg 0x16d0
cmpl $0x64, %eax
je 0x176e
cmpl $0x69, %eax
je 0x176e
retq
cmpl $0x72, %eax
je 0x176e
cmpl $0x73, %eax
jne 0x16cf
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1050
cmpq $0x3, %rax
jb 0x1741
movslq 0x82a52(%rip), %r15     # 0x84150
leal 0x1(%r15), %r14d
shlq $0x2, %r15
movl $0x2, %ebp
xorl %r12d, %r12d
leaq 0x2a3b(%rip), %r13      # 0x4150
movsbl (%rbx,%rbp), %eax
leal (%r14,%r12), %ecx
leal 0x3(%r12), %ebp
movl %ecx, 0x82a28(%rip)     # 0x84150
leaq (%r15,%r12,4), %rcx
movl %eax, (%r13,%rcx)
movq %rbx, %rdi
callq 0x1050
incq %r12
cmpq %rbp, %rax
ja 0x1715
movslq 0x82a08(%rip), %rax     # 0x84150
leal 0x1(%rax), %ecx
movl %ecx, 0x829ff(%rip)     # 0x84150
leaq 0x29f8(%rip), %rcx      # 0x4150
movl $0x0, (%rcx,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incl 0x829dc(%rip)           # 0x84150
retq
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: pass5
void pass5(char *buffer) {
  switch (buffer[0]) {
    case 'i': here++;                             break;
    case 'r': target[here++] = lookup(buffer+2);
              if (lookup(buffer+2) == -1)
                printf("Lookup failed: '%s'\n", buffer+2);
                                                  break;
    case 'd': here++;                             break;
    case 's': here = here + strlen(buffer) - 1;   break;
    case ':':                                     break;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movzbl (%rdi), %eax
cmpl $0x71, %eax
jg 0x1793
cmpl $0x64, %eax
je 0x178b
cmpl $0x69, %eax
jne 0x17ef
incl 0x829bf(%rip)           # 0x84150
jmp 0x17ef
movq %rdi, %rbx
cmpl $0x72, %eax
je 0x17bc
cmpl $0x73, %eax
jne 0x17ef
movl 0x829a9(%rip), %r14d    # 0x84150
movq %rbx, %rdi
callq 0x1050
addl %r14d, %eax
decl %eax
movl %eax, 0x82996(%rip)     # 0x84150
jmp 0x17ef
addq $0x2, %rbx
movq %rbx, %rdi
callq 0x1392
movslq 0x82981(%rip), %rcx     # 0x84150
leal 0x1(%rcx), %edx
movl %edx, 0x82978(%rip)     # 0x84150
leaq 0x2971(%rip), %rdx      # 0x4150
movl %eax, (%rdx,%rcx,4)
movq %rbx, %rdi
callq 0x1392
cmpl $-0x1, %eax
je 0x17f7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x872(%rip), %rdi       # 0x2070
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1060
// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-muri.c
// Function: main
int main(int argc, char **argv) {
  bsd_strlcpy(code_start, "~~~", 32);
  bsd_strlcpy(code_end,   "~~~", 32);
  bsd_strlcpy(test_start, "```", 32);
  bsd_strlcpy(test_end,   "```", 32);
  np = 0;
  if (argc > 1) {
    here = 0; unu(argv[1], 0, &pass1);
    here = 0; unu(argv[1], 0, &pass2);
    here = 0; unu(argv[1], 0, &pass3);
    here = 0; unu(argv[1], 0, &pass4);
    here = 0; unu(argv[1], 0, &pass5);
    save();
    printf("Wrote %lld cells to ngaImage\n", (long long)here);
  }
  else {
    printf("No file specified.\n");
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
xorl %edx, %edx
leaq 0x2872(%rip), %rcx      # 0x4090
leaq 0x860(%rip), %rax       # 0x2085
movb (%rdx,%rax), %sil
movb %sil, (%rdx,%rcx)
leaq 0x1(%rdx), %rsi
movq %rsi, %rdx
cmpq $0x4, %rsi
jne 0x1825
xorl %edx, %edx
leaq 0x287d(%rip), %rcx      # 0x40c0
movb (%rdx,%rax), %sil
movb %sil, (%rdx,%rcx)
leaq 0x1(%rdx), %rsi
movq %rsi, %rdx
cmpq $0x4, %rsi
jne 0x1843
xorl %edx, %edx
leaq 0x288f(%rip), %rcx      # 0x40f0
leaq 0x821(%rip), %rax       # 0x2089
movb (%rdx,%rax), %sil
movb %sil, (%rdx,%rcx)
leaq 0x1(%rdx), %rsi
movq %rsi, %rdx
cmpq $0x4, %rsi
jne 0x1868
xorl %edx, %edx
leaq 0x289a(%rip), %rcx      # 0x4120
movb (%rdx,%rax), %sil
movb %sil, (%rdx,%rcx)
leaq 0x1(%rdx), %rsi
movq %rsi, %rdx
cmpq $0x4, %rsi
jne 0x1886
movl $0x0, 0x828af(%rip)     # 0x84154
cmpl $0x2, %edi
jl 0x1944
xorl %ebp, %ebp
movl %ebp, 0x8289a(%rip)     # 0x84150
movq 0x8(%rbx), %rdi
leaq -0x3bc(%rip), %rdx      # 0x1505
xorl %esi, %esi
callq 0x128a
movl %ebp, 0x82882(%rip)     # 0x84150
movq 0x8(%rbx), %rdi
leaq -0x384(%rip), %rdx      # 0x1555
xorl %esi, %esi
callq 0x128a
movl %ebp, 0x8286a(%rip)     # 0x84150
movq 0x8(%rbx), %rdi
leaq -0x29f(%rip), %rdx      # 0x1652
xorl %esi, %esi
callq 0x128a
movl %ebp, 0x82852(%rip)     # 0x84150
movq 0x8(%rbx), %rdi
leaq -0x254(%rip), %rdx      # 0x16b5
xorl %esi, %esi
callq 0x128a
movl %ebp, 0x8283a(%rip)     # 0x84150
movq 0x8(%rbx), %rdi
leaq -0x1ac(%rip), %rdx      # 0x1775
xorl %esi, %esi
callq 0x128a
callq 0x133c
movslq 0x8281c(%rip), %rsi     # 0x84150
leaq 0x752(%rip), %rdi       # 0x208d
xorl %eax, %eax
callq 0x1060
jmp 0x1950
leaq 0x78e(%rip), %rdi       # 0x20d9
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/radekh[P]palbart/palbart-2.5.c
// Function: defineSymbol
SYM_T *defineSymbol( char *name, WORD16 val, SYMTYP type, WORD16 start )
{
  SYM_T  *sym;
  int     xref_count;

  if( strlen( name ) < 1 )
  {
    return( &sym_undefined );   /* Protect against non-existent names.        */
  }
  sym = lookup( name );
  if( M_FIXED( sym->type ))
  {
      return( sym );            /* Can't modify permanent symbols.            */
  }

  xref_count = 0;               /* Set concordance for normal defintion.      */

  if( M_DEFINED( sym->type ))
  {
    if( pass == 2 && sym->val != val )
    {
      /* Generate diagnostic if redefining a symbol.                          */
      if( M_REDEFINED( sym->type ))
      {
        errorSymbol( &redefined_symbol, sym->name, start );
      }
      type = type | REDEFINED;
      sym->xref_count++;      /* Referenced suymbol, count it.                */
      xref_count = sym->xref_count;
    }
  }

  if( pass == 2 && xref )
  {
    /* Put the definition line number in the concordance table.               */
    /* Defined symbols are not counted as references.                         */
    xreftab[sym->xref_index] = lineno;
    /* Put the line number in the concordance table.                          */
    xreftab[sym->xref_index + xref_count] = lineno;
  }

  /* Now set the value and the type.                                          */
  sym->val = ( type == LABEL) ? val : val & 07777;
  sym->type = ( pass == 1 ) ? ( type | CONDITION ) : type;
  return( sym );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, (%rdi)
je 0x2c45
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
callq 0x3be6
movq %rax, %rbx
movl (%rax), %ecx
testb $0x2, %cl
jne 0x2c4c
xorl %eax, %eax
testb $0x1, %cl
je 0x2bee
cmpl $0x2, 0x8644(%rip)      # 0xb200
jne 0x2bee
cmpw %r14w, 0xc(%rbx)
je 0x2bee
notl %ecx
testb $0x11, %cl
jne 0x2be3
movq %rbx, %rsi
addq $0x4, %rsi
movswl %r15w, %edx
leaq 0x8422(%rip), %rdi      # 0xb000
callq 0x3d8a
orl $0x11, %ebp
movl 0x14(%rbx), %eax
incl %eax
movl %eax, 0x14(%rbx)
movl 0x860c(%rip), %ecx      # 0xb200
cmpl $0x2, %ecx
jne 0x2c21
cmpb $0x0, 0x855e(%rip)      # 0xb15e
je 0x2c21
movzwl 0x8a7b(%rip), %edx      # 0xb684
movq 0x8750(%rip), %rsi      # 0xb360
movslq 0x10(%rbx), %rdi
movw %dx, (%rsi,%rdi,2)
cltq
addq %rdi, %rax
movw %dx, (%rsi,%rax,2)
movl %r14d, %eax
andl $0xfff, %eax            # imm = 0xFFF
cmpl $0x9, %ebp
cmovel %r14d, %eax
movw %ax, 0xc(%rbx)
movl %ebp, %eax
orl $0x81, %eax
cmpl $0x1, %ecx
cmovnel %ebp, %eax
movl %eax, (%rbx)
jmp 0x2c4c
leaq 0x84f4(%rip), %rbx      # 0xb140
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/radekh[P]palbart/palbart-2.5.c
// Function: endOfBinary
void endOfBinary()
{
  /* Points to end of page for () operands.                                   */
  punchLiteralPool( &cp, clc - 1 );
  /* Points to end of page zero for [] operands.                              */
  punchLiteralPool( &pz, 0 );
  if( error_in_line )
  {
    listed = TRUE;
    clc = ( clc & 070000 ) + (( clc - 1 ) & 07777 );
    errorMessage( &end_of_file, -1 );
    clc = ( clc & 070000 ) + (( clc + 1 ) & 07777 );
  }
  else
  {
    listLine();             /* List line if not done yet.                     */
  }
  return;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movzwl 0x7d2e(%rip), %eax      # 0xb470
decl %eax
movswl %ax, %esi
leaq 0x7d2a(%rip), %rdi      # 0xb478
callq 0x3a09
leaq 0x7e22(%rip), %rdi      # 0xb57c
xorl %esi, %esi
callq 0x3a09
cmpb $0x0, 0x7f9c(%rip)      # 0xb704
je 0x37c1
movb $0x1, 0x7f0f(%rip)      # 0xb680
movzwl 0x7cf8(%rip), %eax      # 0xb470
movl $0x7000, %ebx           # imm = 0x7000
movl %eax, %ecx
andl %ebx, %ecx
decl %eax
movl $0xfff, %ebp            # imm = 0xFFF
andl %ebp, %eax
orl %ecx, %eax
movw %ax, 0x7cdd(%rip)       # 0xb470
leaq 0x78d6(%rip), %rdi      # 0xb070
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5084
movzwl 0x7cc5(%rip), %eax      # 0xb470
andl %eax, %ebx
incl %eax
andl %ebp, %eax
orl %ebx, %eax
movw %ax, 0x7cb6(%rip)       # 0xb470
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5d47
// File: /workspace/github_c_makefile_star2_O1/radekh[P]palbart/palbart-2.5.c
// Function: punchLiteralPool
void punchLiteralPool( LPOOL_T *p, WORD16 lpool_page )
{
  WORD16  loc;
  WORD16  tmplc;

  lpool_page &= 07600;

  if( p->loc < 00200 )
  {
    if( !rim_mode )
    {
      /* Put out origin if not in rim mode.                                   */
      punchOrigin( p->loc | lpool_page );
    }
    /* Put the literals in the object file.                                    */
    for( loc = p->loc; loc < 00200; loc++ )
    {
      tmplc = loc + lpool_page;
      printLine( line, (field | tmplc), p->pool[loc], LOC_VAL );
      punchLocObject( tmplc, p->pool[loc] );
    }
    p->error = FALSE;
    p->loc = 00200;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movzwl 0x2(%rdi), %r14d
cmpw $0x7f, %r14w
jg 0x3ab6
movl %esi, %ebp
movq %rdi, %rbx
andl $0xf80, %ebp            # imm = 0xF80
cmpb $0x0, 0x7729(%rip)      # 0xb15c
jne 0x3a55
movzwl %bp, %edi
orl %r14d, %edi
shrl $0x6, %edi
andl $0x3f, %edi
orl $0x40, %edi
callq 0x5ff2
andl $0x3f, %r14d
movl %r14d, %edi
callq 0x5ff2
movswq 0x2(%rbx), %r15
cmpq $0x7f, %r15
jg 0x3aad
movzwl %bp, %r12d
addl %r15d, %r12d
leaq 0x7c32(%rip), %r14      # 0xb6a0
movzwl 0x79fd(%rip), %eax      # 0xb472
orw %r12w, %ax
movswl 0x4(%rbx,%r15,2), %edx
movswl %ax, %esi
movq %r14, %rdi
movl $0x3, %ecx
callq 0x3adb
movswl 0x4(%rbx,%r15,2), %esi
movswl %r12w, %edi
callq 0x5fad
incq %r15
incl %r12d
cmpq $0x80, %r15
jne 0x3a6e
movb $0x0, (%rbx)
movw $0x80, 0x2(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/radekh[P]palbart/palbart-2.5.c
// Function: printLine
void printLine( char *line, WORD16 loc, WORD16 val, LINESTYLE_T linestyle )
{
  if( listfile == NULL )
  {
    save_error_count = 0;
    return;
  }

  printPageBreak();

  list_lineno++;
  page_lineno++;
  switch( linestyle )
  {
  default:
  case LINE:
    fprintf(listfile, "%5d             ", lineno );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_VAL:
    fprintf(listfile, "%5d       %4.4o  ", lineno, val );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_LOC_VAL:
    if( !listed )
    {
      if( indirect_generated )
      {
        fprintf( listfile, "%5d %5.5o %4.4o@ ", lineno, loc, val );
      }
      else
      {
        fprintf( listfile, "%5d %5.5o %4.4o  ", lineno, loc, val );
      }
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o %4.4o\n", loc, val );
    }
    break;

  case LOC_VAL:
    fprintf( listfile, "      %5.5o %4.4o\n", loc, val );
    break;
  }
  printErrorMessages();
}

// Assembly:
cmpq $0x0, 0x786d(%rip)      # 0xb350
je 0x3b3a
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
callq 0x5d6d
incl 0x7b8a(%rip)            # 0xb68c
incl 0x771c(%rip)            # 0xb224
cmpl $0x1, %r15d
je 0x3b6c
cmpl $0x2, %r15d
je 0x3b45
cmpl $0x3, %r15d
je 0x3b4e
movq 0x782f(%rip), %rdi      # 0xb350
movl 0x7b5d(%rip), %edx      # 0xb684
leaq 0x3be3(%rip), %rsi      # 0x7711
xorl %eax, %eax
callq 0x2110
jmp 0x3bc1
movl $0x0, 0x76b8(%rip)      # 0xb1fc
retq
cmpb $0x0, 0x7b34(%rip)      # 0xb680
je 0x3b8c
movq 0x77fb(%rip), %rdi      # 0xb350
movswl %r14w, %edx
movswl %bp, %ecx
leaq 0x3bf5(%rip), %rsi      # 0x7758
xorl %eax, %eax
callq 0x2110
jmp 0x3bd7
movq 0x77dd(%rip), %rdi      # 0xb350
movl 0x7b0b(%rip), %edx      # 0xb684
movswl %bp, %ecx
leaq 0x3b9f(%rip), %rsi      # 0x7722
xorl %eax, %eax
callq 0x2110
jmp 0x3bc1
cmpb $0x0, 0x7b81(%rip)      # 0xb714
movq 0x77b6(%rip), %rdi      # 0xb350
movl 0x7ae4(%rip), %edx      # 0xb684
movswl %r14w, %ecx
movswl %bp, %r8d
leaq 0x3b97(%rip), %rax      # 0x7746
leaq 0x3b7e(%rip), %rsi      # 0x7734
cmoveq %rax, %rsi
xorl %eax, %eax
callq 0x2110
movq 0x7788(%rip), %rsi      # 0xb350
movq %rbx, %rdi
callq 0x20b0
movb $0x1, 0x7aa9(%rip)      # 0xb680
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5eb2
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: CloseAGG
void CloseAGG(struct aggfile *agg)
{
	if (!agg)
		return;
	if (agg->filename)
		free(agg->filename);
	if (agg->buf)
		free(agg->buf);
	if (agg->allentry)
		free(agg->allentry);
	fclose(agg->fin);
	free(agg);
}

// Assembly:
testq %rdi, %rdi
je 0x12a0
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x1272
callq 0x1030
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x1280
callq 0x1030
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x128e
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1070
movq %rbx, %rdi
popq %rbx
jmp 0x1030
retq
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: HashFilename
unsigned short HashFilename(char *filename)
{
	unsigned char actual;
	unsigned short result = 0;

	while (*filename)
	{
		actual = *filename++ & 0x7F;
		if (actual >= 0x60)
			actual = actual - 32;
		result = ROL16((result >> 8) | ((result & 0xFF) << 8), 1) - actual;
	}
	return result;
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0x12d1
incq %rdi
xorl %eax, %eax
andb $0x7f, %cl
leal -0x20(%rcx), %edx
cmpb $0x60, %cl
movzbl %cl, %ecx
movzbl %dl, %edx
cmovbl %ecx, %edx
rolw $0x9, %ax
movzbl %dl, %ecx
subl %ecx, %eax
movb (%rdi), %cl
incq %rdi
testb %cl, %cl
jne 0x12ac
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: fillentry
void fillentry(struct aggfile *agg)
{
	struct aggentry *aggentry = NULL;
	char *bufname = NULL;
	unsigned int i;

	agg->numentry = *(unsigned short*)agg->buf;
	if (!(agg->allentry = malloc(sizeof (struct entry) * agg->numentry)))
	{
		perror("malloc()");
		return;
	}
	printf("NUM_ENTRY = %X\n", agg->numentry);
	bufname = (char*)(agg->buf + agg->bufsize - (agg->numentry * 15));
	aggentry = (struct aggentry*)(agg->buf + 2);
	for (i = 0; i < agg->numentry; i++)
	{
		agg->allentry[i].hash = aggentry->hash;
		agg->allentry[i].buf = agg->buf + aggentry->off;
		agg->allentry[i].size = aggentry->size;
		strncpy(agg->allentry[i].filename, bufname, 15 - 1);
		bufname += 15;
		aggentry++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movzwl (%rax), %ebp
movw %bp, 0x1c(%rdi)
movl %ebp, %edi
shll $0x5, %edi
callq 0x10c0
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x139d
leaq 0xd02(%rip), %rdi       # 0x200d
movl %ebp, %esi
xorl %eax, %eax
callq 0x1080
movzwl 0x1c(%rbx), %r14d
testq %r14, %r14
je 0x138e
movq 0x10(%rbx), %rax
leaq 0x2(%rax), %r15
movl 0x18(%rbx), %ecx
addq %rax, %rcx
movl %r14d, %eax
shll $0x4, %eax
subq %rax, %r14
addq %rcx, %r14
movl $0xe, %r12d
xorl %r13d, %r13d
movzwl (%r15), %eax
movq 0x20(%rbx), %rcx
movw %ax, -0x2(%rcx,%r12)
movl 0x2(%r15), %eax
addq 0x10(%rbx), %rax
leaq (%rcx,%r12), %rdi
movq %rax, -0xe(%rcx,%r12)
movl 0x6(%r15), %eax
movl %eax, -0x6(%rcx,%r12)
movl $0xe, %edx
movq %r14, %rsi
callq 0x1040
addq $0xf, %r14
addq $0xe, %r15
incq %r13
movzwl 0x1c(%rbx), %eax
addq $0x20, %r12
cmpq %rax, %r13
jb 0x1341
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc60(%rip), %rdi       # 0x2004
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: dump_to_file
void dump_to_file(char *filename, unsigned char *buf, size_t size)
{
	FILE *fout;

	if (!(fout = fopen(filename, "wb")))
	{
		perror("fopen()");
		return;
	}
	fwrite(buf, 1, size, fout);
	fclose(fout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
leaq 0xc14(%rip), %rsi       # 0x201d
callq 0x10f0
testq %rax, %rax
je 0x1436
movq %rax, %r15
movl $0x1, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x1120
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1070
leaq 0xbe3(%rip), %rdi       # 0x2020
popq %rbx
popq %r14
popq %r15
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: extractall
void extractall(struct aggfile *agg, char *outputdir)
{
	char output_name[4096];
	unsigned int i;

	if (!direxists(outputdir))
		return;
	for (i = 0; i < agg->numentry; i++)
	{
		strcpy(output_name, outputdir);
  		strcat(output_name, agg->allentry[i].filename);
		dump_to_file(output_name, agg->allentry[i].buf, agg->allentry[i].size);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x13b7
testl %eax, %eax
je 0x14bc
cmpw $0x0, 0x1c(%r14)
je 0x14bc
movl $0xe, %r12d
xorl %r13d, %r13d
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1050
movq 0x20(%r14), %rbp
leaq (%r12,%rbp), %rsi
movq %r15, %rdi
callq 0x1110
movq -0xe(%rbp,%r12), %rsi
movl -0x6(%rbp,%r12), %edx
movq %r15, %rdi
callq 0x13f7
incq %r13
movzwl 0x1c(%r14), %eax
addq $0x20, %r12
cmpq %rax, %r13
jb 0x147e
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: InfoAGG
void InfoAGG(struct aggfile *agg)
{
	unsigned int i;

	printf("Filename = %s\n", agg->filename);
	printf("NumEntry = %X\n", agg->numentry);
	for (i = 0; i < agg->numentry; i++)
	{
		printf("Hash = %X\n", agg->allentry[i].hash);
		printf("Name = %s\n", agg->allentry[i].filename);
		printf("Size = %X\n", agg->allentry[i].size);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rsi
leaq 0xb42(%rip), %rdi       # 0x2028
xorl %eax, %eax
callq 0x1080
movzwl 0x1c(%rbx), %esi
leaq 0xb3f(%rip), %rdi       # 0x2037
xorl %eax, %eax
callq 0x1080
cmpw $0x0, 0x1c(%rbx)
je 0x156b
movl $0xe, %r13d
leaq 0xb33(%rip), %r14       # 0x2046
leaq 0xb37(%rip), %r15       # 0x2051
leaq 0xb3b(%rip), %r12       # 0x205c
xorl %ebp, %ebp
movq 0x20(%rbx), %rax
movzwl -0x2(%rax,%r13), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1080
movq 0x20(%rbx), %rsi
addq %r13, %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x1080
movq 0x20(%rbx), %rax
movl -0x6(%rax,%r13), %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x1080
incq %rbp
movzwl 0x1c(%rbx), %eax
addq $0x20, %r13
cmpq %rax, %rbp
jb 0x1523
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/agg.c
// Function: OpenAGG
struct aggfile *OpenAGG(char *filename)
{
	struct aggfile *newagg = NULL;

	if (!(newagg = malloc(sizeof (struct aggfile))))
	{
		perror("malloc()");
		return NULL;
	}
	newagg->filename = strdup(filename);
	if (!(newagg->fin = fopen(filename, "rb")))
	{
		perror("fopen()");
		CloseAGG(newagg);
		return NULL;
	}
        fseek(newagg->fin,0, SEEK_END);
        newagg->bufsize = ftell(newagg->fin);
        fseek(newagg->fin, 0, SEEK_SET);
	if (!(newagg->buf = malloc(sizeof (char) * newagg->bufsize)))
	{
		perror("fopen()");
		CloseAGG(newagg);
		return NULL;
	}
	if (fread(newagg->buf, 1, newagg->bufsize, newagg->fin) != newagg->bufsize)
	{
		perror("fread()");
		CloseAGG(newagg);
		return NULL;
	}
	return newagg;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x28, %edi
callq 0x10c0
testq %rax, %rax
je 0x1632
movq %rax, %rbx
movq %r14, %rdi
callq 0x1130
movq %rax, (%rbx)
leaq 0xabe(%rip), %rsi       # 0x2067
movq %r14, %rdi
callq 0x10f0
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x161c
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x10d0
movq 0x8(%rbx), %rdi
callq 0x10a0
movl %eax, 0x18(%rbx)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10d0
movl 0x18(%rbx), %r14d
movq %r14, %rdi
callq 0x10c0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x161c
movq 0x8(%rbx), %rcx
movl $0x1, %esi
movq %rax, %rdi
movq %r14, %rdx
callq 0x1060
movl 0x18(%rbx), %ecx
cmpq %rcx, %rax
je 0x1640
leaq 0xa50(%rip), %rdi       # 0x206a
jmp 0x1623
leaq 0x9fd(%rip), %rdi       # 0x2020
callq 0x1100
movq %rbx, %rdi
callq 0x125c
jmp 0x163e
leaq 0x9cb(%rip), %rdi       # 0x2004
callq 0x1100
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/w4kfu[P]HommI/Agg/main.c
// Function: main
int main(int argc, char *argv[])
{
	struct aggfile *agg = NULL;

	if (argc != 2)
	{
		fprintf(stderr, "%s <*.AGG>\n", argv[0]);
		return EXIT_FAILURE;
	}
	if (!(agg = OpenAGG(argv[1])))
		return EXIT_FAILURE;
	fillentry(agg);
	InfoAGG(agg);
	extractall(agg, "./extract/");
	CloseAGG(agg);
	return 0;
}

// Assembly:
pushq %rbx
cmpl $0x2, %edi
jne 0x168e
movq 0x8(%rsi), %rdi
callq 0x157a
testq %rax, %rax
je 0x1696
movq %rax, %rbx
movq %rax, %rdi
callq 0x12d4
movq %rbx, %rdi
callq 0x14ce
leaq 0xa04(%rip), %rsi       # 0x207e
movq %rbx, %rdi
callq 0x1447
movq %rbx, %rdi
callq 0x125c
xorl %eax, %eax
jmp 0x169b
movq %rsi, %rdi
callq 0x1150
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/CSerxzm[P]WindowstoLinuxInterface/src/XCOPY.c
// Function: mycplink
int mycplink(char *name1, char *name2)
{
    char buf[1024]="";
    int ret;
    ret=readlink(name1, buf, sizeof(buf));
    if(ret!=0)
    {
        symlink(buf , name2 );
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x420(%rbp), %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
xorl %esi, %esi
callq 0x1090
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
movq %r15, %rsi
callq 0x1040
testl %eax, %eax
je 0x13a8
leaq -0x420(%rbp), %rdi
movq %rbx, %rsi
callq 0x1080
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/CSerxzm[P]WindowstoLinuxInterface/src/XCOPY.c
// Function: mycp
int mycp(char *dir1, char *dir2)
{
    int fd1;
    int fd2;
    int ret;
    int sts;
    char buf[1024];
    fd1=open(dir1, O_RDONLY);
    fd2=open(dir2, O_WRONLY|O_CREAT|O_TRUNC, 0666);
    while(1)
    {
        bzero(buf, sizeof(buf));
        ret= read(fd1, buf, sizeof(buf)-1 );
        if(ret<=0)
            break;
        sts=write(fd2, buf, ret);
        while(sts<ret)
        {
            sts+=write(fd2, buf+sts, ret-sts);
         }
    }
    close(fd1);
    close(fd2);
    struct stat info;
    ret=stat(dir1, &info);
    if(ret!=0)
    {
        perror("stat");
        return 1;
    }
    chmod(dir2, info.st_mode);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4a8, %rsp            # imm = 0x4A8
movq %rsi, %rbx
movq %rdi, -0x38(%rbp)
xorl %esi, %esi
xorl %eax, %eax
callq 0x1110
movl %eax, %r15d
movq %rbx, -0x30(%rbp)
movq %rbx, %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x1110
movl %eax, %r12d
leaq -0x4d0(%rbp), %rbx
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1090
movl $0x3ff, %edx            # imm = 0x3FF
movl %r15d, %edi
movq %rbx, %rsi
callq 0x10c0
movq %rax, %rbx
testl %ebx, %ebx
jle 0x148e
leaq -0x4d0(%rbp), %r13
movl %ebx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl %r12d, %edi
movq %r13, %rsi
callq 0x1050
cmpl %eax, %ebx
jle 0x1468
movslq %eax, %r14
leaq (%r14,%rbp), %rsi
addq $-0x4d0, %rsi           # imm = 0xFB30
movl %ebx, %eax
subl %r14d, %eax
movslq %eax, %rdx
movl %r12d, %edi
callq 0x1050
addq %r14, %rax
jmp 0x1441
movl $0x400, %edx            # imm = 0x400
movq %r13, %rdi
xorl %esi, %esi
callq 0x1090
movl $0x3ff, %edx            # imm = 0x3FF
movl %r15d, %edi
movq %r13, %rsi
callq 0x10c0
movq %rax, %rbx
testl %ebx, %ebx
jg 0x142e
movl %r15d, %edi
callq 0x10a0
movl %r12d, %edi
callq 0x10a0
leaq -0xc8(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x10e0
testl %eax, %eax
jne 0x14d5
movl -0xb0(%rbp), %esi
movq -0x30(%rbp), %rdi
callq 0x1100
xorl %eax, %eax
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb28(%rip), %rdi       # 0x2004
callq 0x1120
movl $0x1, %eax
jmp 0x14c3
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmMultVec
void hpmMultVec(const float *pointA, float m, float *result){
    HPMpoint *a = (HPMpoint *) pointA;
    HPMpoint *r = (HPMpoint *) result;
    r->x = a->x * m;
    r->y = a->y * m;
    r->z = a->z * m;
}

// Assembly:
movss (%rdi), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%rsi)
movss 0x4(%rdi), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x4(%rsi)
mulss 0x8(%rdi), %xmm0
movss %xmm0, 0x8(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmNormalize
void hpmNormalize(float *point){
    HPMpoint *p = (HPMpoint *) point;
    float len = hpmMagnitude(point);
    p->x = p->x / len;
    p->y = p->y / len;
    p->z = p->z / len;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movss (%rdi), %xmm1
movss 0x4(%rdi), %xmm0
mulss %xmm0, %xmm0
mulss %xmm1, %xmm1
addss %xmm0, %xmm1
movss 0x8(%rdi), %xmm0
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x486e
sqrtss %xmm0, %xmm0
jmp 0x4873
callq 0x42a0
movss (%rbx), %xmm1
movss 0x4(%rbx), %xmm2
divss %xmm0, %xmm1
movss %xmm1, (%rbx)
divss %xmm0, %xmm2
movss %xmm2, 0x4(%rbx)
movss 0x8(%rbx), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmMat4VecMult
void hpmMat4VecMult(const float *mat, float *point){
    HPMmat4 *m = (HPMmat4 *) mat;
    HPMpoint *p = (HPMpoint *) point;
    float x, y, z, w;
    x = p->x; y = p->y; z = p->z;
    w = m->_41*x + m->_42*y + m->_43*z + m->_44;

    p->x = m->_11*x + m->_12*y + m->_13*z + m->_14;
    p->y = m->_21*x + m->_22*y + m->_23*z + m->_24;
    p->z = m->_31*x + m->_32*y + m->_33*z + m->_34;

    if (w != 1.0){
        w = 1.0/w;
        p->x *= w;
        p->y *= w;
        p->z *= w;
    }
}

// Assembly:
movss (%rsi), %xmm2
movss 0x4(%rsi), %xmm3
movss 0x8(%rsi), %xmm0
movss 0x1c(%rdi), %xmm1
mulss %xmm3, %xmm1
movss 0xc(%rdi), %xmm4
mulss %xmm2, %xmm4
addss %xmm1, %xmm4
movss 0x2c(%rdi), %xmm1
mulss %xmm0, %xmm1
addss %xmm4, %xmm1
addss 0x3c(%rdi), %xmm1
movss 0x10(%rdi), %xmm4
mulss %xmm3, %xmm4
movss (%rdi), %xmm5
mulss %xmm2, %xmm5
addss %xmm4, %xmm5
movss 0x20(%rdi), %xmm4
mulss %xmm0, %xmm4
addss %xmm5, %xmm4
addss 0x30(%rdi), %xmm4
movss %xmm4, (%rsi)
movss 0x14(%rdi), %xmm5
mulss %xmm3, %xmm5
movss 0x4(%rdi), %xmm6
mulss %xmm2, %xmm6
addss %xmm5, %xmm6
movss 0x24(%rdi), %xmm5
mulss %xmm0, %xmm5
addss %xmm6, %xmm5
addss 0x34(%rdi), %xmm5
movss %xmm5, 0x4(%rsi)
mulss 0x18(%rdi), %xmm3
mulss 0x8(%rdi), %xmm2
mulss 0x28(%rdi), %xmm0
addss %xmm3, %xmm2
addss %xmm2, %xmm0
addss 0x38(%rdi), %xmm0
movss %xmm0, 0x8(%rsi)
ucomiss 0x66b8(%rip), %xmm1     # 0xb030
jne 0x497c
jnp 0x49a2
movss 0x66ac(%rip), %xmm2     # 0xb030
divss %xmm1, %xmm2
mulss %xmm2, %xmm4
movss %xmm4, (%rsi)
mulss %xmm2, %xmm5
movss %xmm5, 0x4(%rsi)
mulss %xmm0, %xmm2
movss %xmm2, 0x8(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmMat4VecArrayMult
void hpmMat4VecArrayMult(const float *mat, float *vec, size_t length, size_t stride){
    int i;
    stride = (stride) ? stride : 3 * sizeof(float);
    for (i = 0; i < length; i++){
        hpmMat4VecMult(mat, vec);
        vec = ((float *) ((char *) vec + stride));
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rcx, %rcx
movl $0xc, %r12d
cmovneq %rcx, %r12
testq %rdx, %rdx
je 0x49d9
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x41c0
addq %r12, %r14
decq %rbx
jne 0x49c6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmLerp
void hpmLerp(const float *pointA, const float *pointB, float t, float *result){
    HPMpoint *a = (HPMpoint *) pointA;
    HPMpoint *b = (HPMpoint *) pointB;
    HPMpoint *r = (HPMpoint *) result;
    float t0 = 1 - t;
    r->x = a->x*t0 + b->x*t;
    r->y = a->y*t0 + b->y*t;
    r->z = a->z*t0 + b->z*t;
}

// Assembly:
movss 0x6643(%rip), %xmm1     # 0xb030
subss %xmm0, %xmm1
movss (%rsi), %xmm2
mulss %xmm0, %xmm2
movss (%rdi), %xmm3
mulss %xmm1, %xmm3
addss %xmm2, %xmm3
movss %xmm3, (%rdx)
movss 0x4(%rsi), %xmm2
mulss %xmm0, %xmm2
movss 0x4(%rdi), %xmm3
mulss %xmm1, %xmm3
addss %xmm2, %xmm3
movss %xmm3, 0x4(%rdx)
mulss 0x8(%rsi), %xmm0
mulss 0x8(%rdi), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x8(%rdx)
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmQuatNormalize
void hpmQuatNormalize(float *quat){
    HPMquat *q = (HPMquat *) quat;
    float mag = sqrt(q->x*q->x + q->y*q->y + q->z*q->z + q->w*q->w);
    q->x = q->x / mag;
    q->y = q->y / mag;
    q->z = q->z / mag;
    q->w = q->w / mag;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movss (%rdi), %xmm0
movss 0x4(%rdi), %xmm1
mulss %xmm1, %xmm1
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
movss 0x8(%rdi), %xmm1
mulss %xmm1, %xmm1
addss %xmm0, %xmm1
movss 0xc(%rdi), %xmm0
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x4a80
sqrtss %xmm0, %xmm0
jmp 0x4a85
callq 0x42a0
movss (%rbx), %xmm1
movss 0x4(%rbx), %xmm2
divss %xmm0, %xmm1
movss %xmm1, (%rbx)
divss %xmm0, %xmm2
movss %xmm2, 0x4(%rbx)
movss 0x8(%rbx), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x8(%rbx)
movss 0xc(%rbx), %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0xc(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmQuatInverse
void hpmQuatInverse(const float *quat, float *inv){
    HPMquat *q = (HPMquat *) quat;
    HPMquat *i = (HPMquat *) inv;
    i->x = -q->x;
    i->y = -q->y;
    i->z = -q->z;
    i->w = q->w;
}

// Assembly:
movss (%rdi), %xmm0
movaps 0x6588(%rip), %xmm1     # 0xb050
xorps %xmm1, %xmm0
movss %xmm0, (%rsi)
movss 0x4(%rdi), %xmm0
xorps %xmm1, %xmm0
movss %xmm0, 0x4(%rsi)
movss 0x8(%rdi), %xmm0
xorps %xmm1, %xmm0
movss %xmm0, 0x8(%rsi)
movss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmQuatCross
void hpmQuatCross(const float *quatA, const float *quatB, float *result){
    HPMquat *a = (HPMquat *) quatA;
    HPMquat *b = (HPMquat *) quatB;
    HPMquat *r = (HPMquat *) result;
    r->x = a->w*b->x + a->x*b->w + a->y*b->z - a->z*b->y;
    r->y = a->w*b->y + a->y*b->w + a->z*b->x - a->x*b->z;
    r->z = a->w*b->z + a->z*b->w + a->x*b->y - a->y*b->x;
    r->w = a->w*b->w - a->x*b->x - a->y*b->y - a->z*b->z;
}

// Assembly:
movss 0xc(%rdi), %xmm0
movss 0xc(%rsi), %xmm2
movss (%rdi), %xmm1
mulss %xmm2, %xmm1
movss (%rsi), %xmm5
mulss %xmm0, %xmm5
addss %xmm1, %xmm5
movss 0x4(%rsi), %xmm3
movss 0x8(%rsi), %xmm1
movss 0x4(%rdi), %xmm6
movss 0x8(%rdi), %xmm4
movaps %xmm2, %xmm7
mulss %xmm6, %xmm7
mulss %xmm1, %xmm6
addss %xmm5, %xmm6
movaps %xmm4, %xmm5
mulss %xmm3, %xmm5
subss %xmm5, %xmm6
movss %xmm6, (%rdx)
mulss %xmm0, %xmm3
addss %xmm7, %xmm3
movss (%rsi), %xmm5
movss (%rdi), %xmm6
movaps %xmm6, %xmm7
mulss %xmm1, %xmm7
mulss %xmm0, %xmm1
mulss %xmm2, %xmm0
mulss %xmm4, %xmm2
mulss %xmm5, %xmm4
addss %xmm3, %xmm4
subss %xmm7, %xmm4
movss %xmm4, 0x4(%rdx)
addss %xmm2, %xmm1
movss 0x4(%rsi), %xmm2
movss 0x4(%rdi), %xmm3
movaps %xmm3, %xmm4
mulss %xmm5, %xmm4
mulss %xmm6, %xmm5
mulss %xmm2, %xmm6
addss %xmm1, %xmm6
subss %xmm4, %xmm6
movss %xmm6, 0x8(%rdx)
subss %xmm5, %xmm0
mulss %xmm2, %xmm3
subss %xmm3, %xmm0
movss 0x8(%rdi), %xmm1
mulss 0x8(%rsi), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xc(%rdx)
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmQuatVecRotate
void hpmQuatVecRotate(const float *quat, float *point){
    float r[4], i[4];
    HPMpoint *pt = (HPMpoint *) point;
    HPMquat p;
    p.x = pt->x;
    p.y = pt->y;
    p.z = pt->z;
    p.w = 0;
    hpmQuatInverse(quat, i);
    hpmQuatCross(i, (float *) &p, r);
    hpmQuatCross(r, quat, i);
    pt->x = i[0];
    pt->y = i[1];
    pt->z = i[2];
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
movss (%rbx), %xmm2
movss 0x4(%rbx), %xmm1
movss 0x8(%rbx), %xmm0
movss (%rdi), %xmm6
movaps 0x6468(%rip), %xmm5     # 0xb050
movaps %xmm6, %xmm3
xorps %xmm5, %xmm3
movq %rsp, %r14
movss %xmm3, (%r14)
movss 0x4(%rdi), %xmm3
movaps %xmm3, %xmm4
xorps %xmm5, %xmm4
movss %xmm4, 0x4(%r14)
movss 0x8(%rdi), %xmm4
xorps %xmm4, %xmm5
movss %xmm5, 0x8(%r14)
movss 0xc(%rdi), %xmm8
movss %xmm8, 0xc(%r14)
movss 0x640b(%rip), %xmm5     # 0xb034
movaps %xmm8, %xmm7
movaps %xmm8, %xmm9
xorps %xmm10, %xmm10
mulss %xmm8, %xmm10
mulss %xmm2, %xmm8
movaps %xmm4, %xmm11
mulss %xmm2, %xmm11
movaps %xmm6, %xmm12
movaps %xmm6, %xmm13
movaps %xmm3, %xmm14
mulss %xmm2, %xmm14
mulss %xmm6, %xmm2
mulss %xmm5, %xmm6
addss %xmm6, %xmm8
movaps %xmm3, %xmm6
mulss %xmm0, %xmm6
subss %xmm6, %xmm8
movaps %xmm4, %xmm6
mulss %xmm1, %xmm6
addss %xmm8, %xmm6
leaq 0x10(%rsp), %rdi
movss %xmm6, (%rdi)
movaps %xmm3, %xmm6
mulss %xmm5, %xmm6
mulss %xmm1, %xmm7
addss %xmm6, %xmm7
subss %xmm11, %xmm7
mulss %xmm0, %xmm12
addss %xmm7, %xmm12
movss %xmm12, 0x4(%rdi)
mulss %xmm4, %xmm5
mulss %xmm0, %xmm9
addss %xmm5, %xmm9
mulss %xmm1, %xmm13
subss %xmm13, %xmm9
addss %xmm9, %xmm14
movss %xmm14, 0x8(%rdi)
addss %xmm2, %xmm10
mulss %xmm1, %xmm3
addss %xmm10, %xmm3
mulss %xmm0, %xmm4
addss %xmm3, %xmm4
movss %xmm4, 0xc(%rdi)
movq %r14, %rdx
callq 0x4130
movss (%r14), %xmm0
movss %xmm0, (%rbx)
movss 0x4(%r14), %xmm0
movss %xmm0, 0x4(%rbx)
movss 0x8(%r14), %xmm0
movss %xmm0, 0x8(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmAxisAngleQuatRotation
void hpmAxisAngleQuatRotation(float *axis, float angle, float *quat){
    HPMquat *q = (HPMquat *) quat;
    HPMpoint *a = (HPMpoint *) axis;
    float s = sin(angle/2.0);
    q->x = s*a->x;
    q->y = s*a->y;
    q->z = s*a->z;
    q->w = cos(angle/2.0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cvtss2sd %xmm0, %xmm0
mulsd 0x62e2(%rip), %xmm0     # 0xb010
movsd %xmm0, (%rsp)
callq 0x4210
cvtsd2ss %xmm0, %xmm0
movss (%r14), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%rbx)
movss 0x4(%r14), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x4(%rbx)
mulss 0x8(%r14), %xmm0
movss %xmm0, 0x8(%rbx)
movsd (%rsp), %xmm0
callq 0x4310
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmRotateQuatAxisAngle
void hpmRotateQuatAxisAngle(float *axis, float angle, float *quat){
    float rot[4], r[4];
    hpmAxisAngleQuatRotation(axis, angle, rot);
    hpmQuatCross(rot, quat, r);
    hpmCopyQuat(r, quat);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cvtss2sd %xmm0, %xmm0
mulsd 0x6277(%rip), %xmm0     # 0xb010
movsd %xmm0, 0x8(%rsp)
callq 0x4210
cvtsd2ss %xmm0, %xmm0
movss (%r14), %xmm1
mulss %xmm0, %xmm1
leaq 0x20(%rsp), %r15
movss %xmm1, (%r15)
movss 0x4(%r14), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x4(%r15)
mulss 0x8(%r14), %xmm0
movss %xmm0, 0x8(%r15)
movsd 0x8(%rsp), %xmm0
callq 0x4310
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%r15)
leaq 0x10(%rsp), %r14
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x4130
movaps (%r14), %xmm0
movups %xmm0, (%rbx)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmRotateQuatX
void hpmRotateQuatX(float angle, float *quat){
    if (angle == 0.0) return;
    float rot[4], r[4];
    hpmXQuatRotation(angle, rot);
    hpmQuatCross(rot, quat, r);
    hpmCopyQuat(r, quat);
}

// Assembly:
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x4e6d
jp 0x4e6d
retq
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
cvtss2sd %xmm0, %xmm0
mulsd 0x618b(%rip), %xmm0     # 0xb010
movsd %xmm0, 0x8(%rsp)
callq 0x4210
cvtsd2ss %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movss %xmm0, (%r14)
xorps %xmm1, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x4(%r14)
movss %xmm1, 0x8(%r14)
movsd 0x8(%rsp), %xmm0
callq 0x4310
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%r14)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4130
movaps (%r15), %xmm0
movups %xmm0, (%rbx)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmRotateQuatY
void hpmRotateQuatY(float angle, float *quat){
    if (angle == 0.0) return;
    float rot[4], r[4];
    hpmYQuatRotation(angle, rot);
    hpmQuatCross(rot, quat, r);
    hpmCopyQuat(r, quat);
}

// Assembly:
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x4f47
jp 0x4f47
retq
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
cvtss2sd %xmm0, %xmm0
mulsd 0x60b1(%rip), %xmm0     # 0xb010
movsd %xmm0, 0x8(%rsp)
callq 0x4210
cvtsd2ss %xmm0, %xmm0
xorps %xmm1, %xmm1
mulss %xmm0, %xmm1
leaq 0x20(%rsp), %r14
movss %xmm1, (%r14)
movss %xmm0, 0x4(%r14)
movss %xmm1, 0x8(%r14)
movsd 0x8(%rsp), %xmm0
callq 0x4310
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%r14)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4130
movaps (%r15), %xmm0
movups %xmm0, (%rbx)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/AlexCharlton[P]Hyperscene/hypermath/src/hypermath.c
// Function: hpmRotateQuatZ
void hpmRotateQuatZ(float angle, float *quat){
    if (angle == 0.0) return;
    float rot[4], r[4];
    hpmZQuatRotation(angle, rot);
    hpmQuatCross(rot, quat, r);
    hpmCopyQuat(r, quat);
}

// Assembly:
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x5021
jp 0x5021
retq
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
cvtss2sd %xmm0, %xmm0
mulsd 0x5fd7(%rip), %xmm0     # 0xb010
movsd %xmm0, 0x8(%rsp)
callq 0x4210
cvtsd2ss %xmm0, %xmm0
xorps %xmm1, %xmm1
mulss %xmm0, %xmm1
leaq 0x20(%rsp), %r14
movss %xmm1, (%r14)
movss %xmm1, 0x4(%r14)
movss %xmm0, 0x8(%r14)
movsd 0x8(%rsp), %xmm0
callq 0x4310
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%r14)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4130
movaps (%r15), %xmm0
movups %xmm0, (%rbx)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq