LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/adelciotto[P]scg/examples/basic.c
// Function: main
int main(int arcg, char *argv[]) {
    scg_config_t config = scg_config_new_default();
    config.video.title = "SCG Example: Basic";

    scg_app_t app;
    scg_app_init(&app, config);

    while (scg_app_process_events(&app)) {
        draw(app.draw_target);

        scg_app_present(&app);
    }

    scg_app_free(&app);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movabsq $0x1e000000280, %rax    # imm = 0x1E000000280
movq %rax, 0x38(%rsp)
movl $0x1, 0x48(%rsp)
xorl %eax, %eax
movb %al, 0x4c(%rsp)
movl $0x1010101, 0x4d(%rsp)  # imm = 0x1010101
movb %al, 0x54(%rsp)
movl $0x40, 0x58(%rsp)
leaq 0x1067(%rip), %rax      # 0x65dc
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x3f6d
movq %rbx, %rdi
callq 0x4a46
testb %al, %al
je 0x56c5
movss 0xa50(%rip), %xmm3      # 0x600c
movq 0x98(%rsp), %r15
movl (%r15), %ebx
movl 0x4(%r15), %r13d
testl %r13d, %r13d
jle 0x5671
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
movss 0xa25(%rip), %xmm2      # 0x6008
movaps %xmm2, %xmm4
xorps %xmm1, %xmm1
cvtsi2ss %r13d, %xmm1
divss %xmm0, %xmm4
divss %xmm1, %xmm2
movss %xmm2, 0x30(%rsp)
xorl %ebp, %ebp
movss %xmm4, 0x34(%rsp)
testl %ebx, %ebx
jle 0x566a
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
mulss 0x30(%rsp), %xmm0
mulss %xmm3, %xmm0
cvttss2si %xmm0, %eax
shll $0x8, %eax
movzwl %ax, %r14d
xorl %r12d, %r12d
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
mulss %xmm4, %xmm0
mulss %xmm3, %xmm0
cvttss2si %xmm0, %ecx
shll $0x10, %ecx
orl %r14d, %ecx
orl $0xff000080, %ecx       # imm = 0xFF000080
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x2b68
movss 0x34(%rsp), %xmm4
movss 0x9aa(%rip), %xmm3      # 0x600c
incl %r12d
cmpl %r12d, %ebx
jne 0x5627
incl %ebp
cmpl %r13d, %ebp
jne 0x5604
movl %ebx, %edx
shrl $0x1f, %edx
addl %ebx, %edx
sarl %edx
movl %r13d, %ecx
shrl $0x1f, %ecx
addl %r13d, %ecx
sarl %ecx
movq %r15, %rdi
leaq 0x1b53(%rip), %rsi      # 0x71e2
movl $0x1, %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
callq 0x3a63
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x4b6f
movq %rbx, %rdi
callq 0x4a46
movss 0x94f(%rip), %xmm3      # 0x600c
testb %al, %al
jne 0x55bc
leaq 0x60(%rsp), %rdi
callq 0x5042
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/endeav0r[P]hsvm/src/assembler.c
// Function: get_tokens
struct _token * get_tokens (const char * filename)
{
    FILE * fh;
    size_t filesize;
    char * buf;

    fh = fopen(filename, "r");
    if (fh == NULL) {
        fprintf(stderr, "could not open file %s\n", filename);
        return NULL;
    }

    fseek(fh, 0, SEEK_END);
    filesize = ftell(fh);
    fseek(fh, 0, SEEK_SET);

    buf = (char *) malloc(filesize + 1);

    fread(buf, 1, filesize, fh);
    buf[filesize] = '\0';

    fclose(fh);

    struct _token * tokens = lexer(buf);

    if (tokens == NULL)
        printf("lexer error in file: %s\n", filename);

    free(buf);

    return tokens;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3bc2(%rip), %rsi      # 0x66d7
callq 0x2270
testq %rax, %rax
je 0x2bb1
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2210
movq %r14, %rdi
callq 0x21d0
movq %rax, %r12
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2210
leaq 0x1(%r12), %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, %esi
movq %rax, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x20d0
movb $0x0, (%r15,%r12)
movq %r14, %rdi
callq 0x20f0
movq %r15, %rdi
callq 0x327f
movq %rax, %r14
testq %rax, %rax
jne 0x2b9a
leaq 0x36dc(%rip), %rdi      # 0x626c
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2120
movq %r15, %rdi
callq 0x2040
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x6440(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x3692(%rip), %rsi      # 0x6254
xorl %r14d, %r14d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21c0
jmp 0x2ba2
// File: /workspace/github_c_makefile_star2_O3/endeav0r[P]hsvm/src/assembler.c
// Function: write_mem
int write_mem (const char * filename, unsigned char * mem, int mem_size)
{
    FILE * fh;

    fh = fopen(filename, "wb");
    if (fh == NULL) {
        fprintf(stderr, "could not open file %s\n", filename);
        return -1;
    }

    fwrite(mem, 1, mem_size, fh);

    fclose(fh);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x369e(%rip), %rsi      # 0x6285
callq 0x2270
testq %rax, %rax
je 0x2c1c
movq %rax, %r15
movslq %ebp, %rdx
movl $0x1, %esi
movq %r14, %rdi
movq %rax, %rcx
callq 0x22c0
movq %r15, %rdi
callq 0x20f0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x63d5(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x3627(%rip), %rsi      # 0x6254
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21c0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x2c11
// File: /workspace/github_c_makefile_star2_O3/FastFilter[P]BlockBloomSimulator/src/windowedblockmodel.h
// Function: findBestBitsPerKeyPerBlockWindow
size_t findBestBitsPerKeyPerBlockWindow(size_t HowManyKeys, size_t bitbudget,
                                  size_t BlockSizeInBits, size_t WindowSizeInBits,
                                  sim_stats_t *beststats, bool verbose) {
  windowed_model_t m;
  m.TotalBits = bitbudget;
  m.BlockSizeInBits = BlockSizeInBits;
  m.WindowSizeInBits = WindowSizeInBits;
  size_t howmanytests = 50000;
  bitset_t *b = bitset_create_with_capacity(bitbudget);
  beststats->collision_rate = 1.0;
  size_t BestBitsPerKeyPerBlock = 0;
  for (size_t BitsPerKeyPerBlock = 1;
       (BitsPerKeyPerBlock <= 16) ||
       (BestBitsPerKeyPerBlock == BitsPerKeyPerBlock);
       BitsPerKeyPerBlock++) {
    m.BitsPerKeyPerBlock = BitsPerKeyPerBlock;
    // we take the average of several attempts
    //double collisionrate = 0;
    sim_stats_t s;
    s.collision_rate = 0;
    s.density = 0;
    size_t attempts = HowManyKeys < 10000000 ? 5 : 1;
    for (int i = 0; i < attempts; i++) {
      sim_stats_t ts = simulateWindow(HowManyKeys, m, howmanytests, b);
      s.density += ts.density;
      s.collision_rate += ts.collision_rate;
    }
    s.collision_rate /= attempts;
    s.density /= attempts;

    if (s.collision_rate * 1.01 <
        beststats->collision_rate) { // has to be at least one percent better
      beststats->collision_rate = s.collision_rate;
      beststats->density = s.density; 
      BestBitsPerKeyPerBlock = BitsPerKeyPerBlock;
    }
  }
  bitset_free(b);
  return BestBitsPerKeyPerBlock;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %rbx
movq %rdi, %r14
movq %rsi, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x60(%rsp)
movq %rsi, %rdi
callq 0x1d83
movq %rax, %r15
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
xorl %ecx, %ecx
cmpq $0x989680, %r14         # imm = 0x989680
setb %cl
leaq 0x1(,%rcx,4), %rcx
movq %rcx, 0x30(%rsp)
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x28(%rsp)
movq %rax, (%rbx)
movl $0x1, %ebp
xorl %r12d, %r12d
movq %rbp, 0x48(%rsp)
xorps %xmm2, %xmm2
movq 0x30(%rsp), %r13
xorps %xmm3, %xmm3
movsd %xmm3, 0x38(%rsp)
movsd %xmm2, 0x40(%rsp)
movupd 0x48(%rsp), %xmm0
movupd 0x58(%rsp), %xmm1
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movl $0xc350, %esi           # imm = 0xC350
movq %r14, %rdi
movq %r15, %rdx
callq 0x1283
movsd 0x38(%rsp), %xmm3
movsd 0x40(%rsp), %xmm2
addsd %xmm1, %xmm3
addsd %xmm0, %xmm2
decq %r13
jne 0x15e1
divsd 0x28(%rsp), %xmm2
movapd %xmm2, %xmm0
mulsd 0x1a31(%rip), %xmm0     # 0x3070
movsd (%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x165b
divsd 0x28(%rsp), %xmm3
movsd %xmm2, (%rbx)
movsd %xmm3, 0x8(%rbx)
movq %rbp, %r12
incq %rbp
cmpq $0x11, %rbp
setb %al
cmpq %rbp, %r12
sete %cl
orb %al, %cl
jne 0x15d1
movq %r15, %rdi
callq 0x2085
movq %r12, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/FastFilter[P]BlockBloomSimulator/src/windowedblockmodel.h
// Function: assessWindowedBlockSize
void assessWindowedBlockSize(size_t HowManyKeys, size_t BlockSizeInBits, size_t WindowSizeInBits, bool verbose) {
  for (size_t bitsperkey = 8; bitsperkey <= 16; bitsperkey += 4) {
    size_t bitbudget = bitsperkey * HowManyKeys;
    sim_stats_t beststats;
    size_t bestbitsperbucket = findBestBitsPerKeyPerBlockWindow(
        HowManyKeys, bitbudget, BlockSizeInBits, WindowSizeInBits, &beststats, verbose);
    double density = bestbitsperbucket * 1.0 / bitsperkey;

    double theoretical_best_bits = log(1.0/beststats.collision_rate) / log(2.0);
    double inefficiency = (bitsperkey/theoretical_best_bits - 1.0) * 100.0;
    

    printf("bits per key %3zu WindowSizeInBits %3zu best bits per bucket = %zu, max density = %0.0f %%, density = %0.0f %%, collision rate = "
           "%0.3f %%, inefficiency = %0.1f %% \n",
           bitsperkey, WindowSizeInBits, bestbitsperbucket, density * 100,   beststats.density * 100, beststats.collision_rate * 100, inefficiency);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, 0x8(%rsp)
movq %rdi, %r15
leaq (,%rdi,8), %r12
leaq (,%rdi,4), %r14
movl $0x4, %r13d
addq $0x4, %r13
movq %r15, %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
leaq 0x20(%rsp), %r8
xorl %r9d, %r9d
callq 0x156b
movq %rax, %rbp
movq %rax, %xmm0
punpckldq 0x1925(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x192d(%rip), %xmm0     # 0x3020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
movsd %xmm0, 0x10(%rsp)
divsd %xmm0, %xmm1
movapd %xmm1, 0x30(%rsp)
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x18(%rsp)
movsd 0x194d(%rip), %xmm0     # 0x3078
divsd %xmm1, %xmm0
callq 0x1090
divsd 0x1944(%rip), %xmm0     # 0x3080
movsd 0x10(%rsp), %xmm3
divsd %xmm0, %xmm3
addsd 0x193a(%rip), %xmm3     # 0x3088
movsd 0x193a(%rip), %xmm4     # 0x3090
mulsd %xmm4, %xmm3
movapd 0x30(%rsp), %xmm0
mulsd %xmm4, %xmm0
movsd 0x28(%rsp), %xmm1
mulsd %xmm4, %xmm1
movsd 0x18(%rsp), %xmm2
mulsd %xmm4, %xmm2
leaq 0x1919(%rip), %rdi      # 0x3098
movq %r13, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
movb $0x4, %al
callq 0x1070
addq %r14, %r12
cmpq $0xd, %r13
jb 0x16bc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/FastFilter[P]BlockBloomSimulator/src/windowedblockmodel.c
// Function: compute
void compute(size_t HowManyKeys) {
  bool verbose = false;
  printf("Number of keys %zu \n", HowManyKeys);
  printf(" cache line (512-bits) \n");
  assessBlockSize(HowManyKeys, 512, verbose);

  for(size_t window = 8; window <= 512; window*=2) {
    assessWindowedBlockSize(HowManyKeys, 512, window, verbose);
  }
  printf("\n");

  printf("quarter cache line (128-bits) \n");
  assessBlockSize(HowManyKeys, 128, verbose);

  for(size_t window = 8; window <= 128; window*=2) {
    assessWindowedBlockSize(HowManyKeys, 128, window, verbose);
  }  

  printf("\n");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1555(%rip), %rdi      # 0x31cc
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1070
leaq 0x1559(%rip), %rdi      # 0x31e1
callq 0x1060
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1b5a
movl $0x8, %r14d
movl $0x200, %esi            # imm = 0x200
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x168d
leaq (%r14,%r14), %rax
cmpq $0x101, %r14            # imm = 0x101
movq %rax, %r14
jb 0x1ca2
movl $0xa, %edi
callq 0x1040
leaq 0x1524(%rip), %rdi      # 0x31f9
callq 0x1060
movl $0x80, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1b5a
movl $0x8, %r14d
movl $0x80, %esi
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x168d
leaq (%r14,%r14), %rax
cmpq $0x41, %r14
movq %rax, %r14
jb 0x1cef
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_expr.c
// Function: main
int main(int argc, char **argv) {
    if (argc > 1) {
        hts_expr_val_t v = HTS_EXPR_VAL_INIT;
        hts_filter_t *filt = hts_filter_init(argv[1]);
        if (hts_filter_eval2(filt, NULL, lookup, &v))
            return 1;

        printf("%s\t", v.is_true ? "true":"false");

        if (v.is_str)
            puts(v.s.s);
        else
            printf("%g\n", v.d);

        hts_expr_val_free(&v);
        hts_filter_free(filt);
        return 0;
    }

    return test();
}

// Assembly:
cmpl $0x2, %edi
jl 0x60b0
pushq %r14
pushq %rbx
subq $0x28, %rsp
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq $0x0, 0x20(%r14)
movq 0x8(%rsi), %rdi
callq 0x7ba0
movq %rax, %rbx
leaq -0x1cf1(%rip), %rdx     # 0x5e1c
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rcx
callq 0x7d39
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x7b95
cmpb $0x0, 0x1(%rsp)
leaq 0x88b82(%rip), %rax     # 0x906b3
leaq 0x88706(%rip), %rsi     # 0x9023e
cmoveq %rax, %rsi
leaq 0x88bc6(%rip), %rdi     # 0x90709
xorl %eax, %eax
callq 0x4060
cmpb $0x0, (%rsp)
je 0x7b5c
movq 0x18(%rsp), %rdi
callq 0x47d0
jmp 0x7b70
movsd 0x20(%rsp), %xmm0
leaq 0x88ba4(%rip), %rdi     # 0x9070d
movb $0x1, %al
callq 0x4060
movq 0x18(%rsp), %rdi
callq 0x45c0
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movq %rbx, %rdi
callq 0x7bf9
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/lesgourg[P]class_public/build/../source/background.c
// Function: background_free_input
int background_free_input(
                          struct background *pba
                          ) {

  int k;

  if (pba->Omega0_ncdm_tot != 0.) {
    for (k=0; k<pba->N_ncdm; k++) {
      free(pba->q_ncdm[k]);
      free(pba->w_ncdm[k]);
      free(pba->q_ncdm_bg[k]);
      free(pba->w_ncdm_bg[k]);
      free(pba->dlnf0_dlnq_ncdm[k]);
    }
    free(pba->ncdm_quadrature_strategy);
    free(pba->ncdm_input_q_size);
    free(pba->ncdm_qmax);
    free(pba->q_ncdm);
    free(pba->w_ncdm);
    free(pba->q_ncdm_bg);
    free(pba->w_ncdm_bg);
    free(pba->dlnf0_dlnq_ncdm);
    free(pba->q_size_ncdm);
    free(pba->q_size_ncdm_bg);
    free(pba->M_ncdm);
    free(pba->T_ncdm);
    free(pba->ksi_ncdm);
    free(pba->deg_ncdm);
    free(pba->Omega0_ncdm);
    free(pba->m_ncdm_in_eV);
    free(pba->factor_ncdm);
    if (pba->got_files!=NULL)
      free(pba->got_files);
    if (pba->ncdm_psd_files!=NULL)
      free(pba->ncdm_psd_files);
    if (pba->ncdm_psd_parameters!=NULL)
      free(pba->ncdm_psd_parameters);
  }

  if (pba->Omega0_scf != 0.) {
    if (pba->scf_parameters != NULL)
      free(pba->scf_parameters);
  }
  return _SUCCESS_;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movsd 0xa8(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x58a4e
jnp 0x58baf
cmpl $0x0, 0x70(%rbx)
jle 0x58ab3
xorl %r14d, %r14d
movq 0x350(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
movq 0x358(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
movq 0x340(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
movq 0x348(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
movq 0x360(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
incq %r14
movslq 0x70(%rbx), %rax
cmpq %rax, %r14
jl 0x58a57
movq 0x338(%rbx), %rdi
callq 0x8410
movq 0xe0(%rbx), %rdi
callq 0x8410
movq 0xe8(%rbx), %rdi
callq 0x8410
movq 0x350(%rbx), %rdi
callq 0x8410
movq 0x358(%rbx), %rdi
callq 0x8410
movq 0x340(%rbx), %rdi
callq 0x8410
movq 0x348(%rbx), %rdi
callq 0x8410
movq 0x360(%rbx), %rdi
callq 0x8410
movq 0x370(%rbx), %rdi
callq 0x8410
movq 0x368(%rbx), %rdi
callq 0x8410
movq 0x90(%rbx), %rdi
callq 0x8410
movq 0xb0(%rbx), %rdi
callq 0x8410
movq 0xc0(%rbx), %rdi
callq 0x8410
movq 0xd0(%rbx), %rdi
callq 0x8410
movq 0xa0(%rbx), %rdi
callq 0x8410
movq 0x98(%rbx), %rdi
callq 0x8410
movq 0x378(%rbx), %rdi
callq 0x8410
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x58b90
callq 0x8410
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x58b9e
callq 0x8410
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x58baf
callq 0x8410
movsd 0x108(%rbx), %xmm0
ucomisd 0x86699(%rip), %xmm0    # 0xdf258
jne 0x58bc3
jnp 0x58bd4
movq 0x148(%rbx), %rdi
testq %rdi, %rdi
je 0x58bd4
callq 0x8410
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/lesgourg[P]class_public/build/../source/primordial.c
// Function: primordial_analytic_spectrum
int primordial_analytic_spectrum(
                                 struct primordial * ppm,
                                 int index_md,
                                 int index_ic1_ic2,
                                 double k,
                                 double * pk
                                 ) {

  if (ppm->is_non_zero[index_md][index_ic1_ic2] == _TRUE_) {
    *pk = ppm->amplitude[index_md][index_ic1_ic2]
      *exp((ppm->tilt[index_md][index_ic1_ic2]-1.)*log(k/ppm->k_pivot)
           + 0.5 * ppm->running[index_md][index_ic1_ic2] * pow(log(k/ppm->k_pivot), 2.));

  }
  else {
    *pk = 0.;
  }

  return _SUCCESS_;

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movapd %xmm0, %xmm1
movq 0x2b0(%rdi), %rax
movslq %esi, %r15
movq (%rax,%r15,8), %rax
movslq %edx, %r12
xorpd %xmm0, %xmm0
cmpw $0x1, (%rax,%r12,2)
jne 0x85bee
movq %rdi, %r14
movq 0x2b8(%rdi), %rax
movq 0x2c0(%rdi), %rcx
movq (%rax,%r15,8), %rax
movq (%rcx,%r15,8), %rcx
movsd (%rcx,%r12,8), %xmm0
addsd 0x59c77(%rip), %xmm0    # 0xdf7e8
movsd %xmm0, 0x18(%rsp)
movsd (%rax,%r12,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movapd %xmm1, %xmm0
divsd (%rdi), %xmm0
movsd %xmm1, (%rsp)
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movq 0x2c8(%r14), %rax
movq (%rax,%r15,8), %rax
movsd (%rax,%r12,8), %xmm0
mulsd 0x5a11c(%rip), %xmm0    # 0xdfcd0
movsd %xmm0, 0x8(%rsp)
movsd (%rsp), %xmm0
divsd (%r14), %xmm0
callq 0x82c0
mulsd %xmm0, %xmm0
mulsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
mulsd 0x18(%rsp), %xmm1
addsd %xmm1, %xmm0
callq 0x8670
mulsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rbx)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_7/exercise_7_02/print.c
// Function: main
int main(int argc, char *argv[])
{
  if (!parse_arg_list(argc, argv))
  {
    puts("Error: invalid arguments.");
    return EXIT_FAILURE;
  }

  int c;
  size_t col_pos = 1;
  while ((c = getc(stdin)) != EOF)
  {
    if (is_ascii(c))
    {
      if (c == '\n')
      {
        c = ' ';
      }

      putc(c, stdout);
      ++col_pos;
    }
    else
    {
      if (octal)
      {
        col_pos += printf("\\%o", c) - 1;
      }
      else
      {
        col_pos += printf("\\%x", c) - 1;
      }
    }

    if (col_pos >= MAX_LINE_LEN - OFFSET)
    {
      if (isblank(c))
      {
        col_pos = 1;
        putc('\n', stdout);
      }
    }
  }
  putc('\n', stdout);

  return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x127b
testl %eax, %eax
je 0x125b
movq 0x2e45(%rip), %r15      # 0x3fe0
movq (%r15), %rdi
callq 0x1060
cmpl $-0x1, %eax
je 0x1243
movl %eax, %ebp
movl $0x1, %ebx
leaq 0xe64(%rip), %r14       # 0x201e
movq 0x2e17(%rip), %r12      # 0x3fd8
movl $0x20, %r13d
cmpl $0x7f, %ebp
jle 0x11da
cmpl $0x0, 0x2e7d(%rip)      # 0x4050
je 0x11f3
movq %r14, %rdi
jmp 0x11fa
cmpl $0xa, %ebp
cmovel %r13d, %ebp
movq (%r12), %rsi
movl %ebp, %edi
callq 0x1050
movl $0x1, %eax
jmp 0x1207
leaq 0xe28(%rip), %rdi       # 0x2022
movl %ebp, %esi
xorl %eax, %eax
callq 0x1040
decl %eax
cltq
addq %rax, %rbx
cmpq $0x46, %rbx
jb 0x1234
callq 0x1070
movq (%rax), %rax
movslq %ebp, %rcx
testb $0x1, (%rax,%rcx,2)
je 0x1234
movq (%r12), %rsi
movl $0xa, %edi
callq 0x1050
movl $0x1, %ebx
movq (%r15), %rdi
callq 0x1060
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x11c7
movq 0x2d8e(%rip), %rax      # 0x3fd8
movq (%rax), %rsi
movl $0xa, %edi
callq 0x1050
xorl %eax, %eax
jmp 0x126c
leaq 0xda2(%rip), %rdi       # 0x2004
callq 0x1030
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_7/exercise_7_02/print.c
// Function: parse_arg_list
boolean parse_arg_list(int argc, char *argv[])
{
  if (argc == 2)
  {
    if (strcmp(argv[1], "-o") == 0)
    {
      octal = true;
      return true;
    }
    else if (strcmp(argv[1], "-x") == 0)
    {
      octal = false;
      return true;
    }
  }

  return false;
}

// Assembly:
xorl %eax, %eax
cmpl $0x2, %edi
jne 0x12a5
movq 0x8(%rsi), %rcx
cmpb $0x2d, (%rcx)
jne 0x12a5
cmpb $0x6f, 0x1(%rcx)
jne 0x1297
cmpb $0x0, 0x2(%rcx)
je 0x12a6
cmpb $0x78, 0x1(%rcx)
jne 0x12a5
xorl %eax, %eax
cmpb $0x0, 0x2(%rcx)
je 0x12ab
retq
movl $0x1, %eax
movl %eax, 0x2d9f(%rip)      # 0x4050
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/miniupnp[P]hfsplustools/src/hfsdisplay.c
// Function: main
int main(int argc, char * * argv)
{
	FILE * f;

	if(argc < 2) {
		fprintf(stderr, "usage: %s <file.iso>\n", argv[0]);
		return 1;
	}
	f = fopen(argv[1], "rb");
	if(!f) {
		fprintf(stderr, "Failed to open file %s\n", argv[1]);
		return 2;
	}
	read_partition_map(f);
	if(hfs_part_sector == 0 && hfs_part_sector_count == 0) {
		printf("HFS/HFS+ partition not found\n");
	} else {
		read_hfs_volume_header(f);
		read_catalog(f);
	}
	fclose(f);
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
cmpl $0x1, %edi
jle 0x14cc
movq 0x8(%r14), %rdi
leaq 0x1ba7(%rip), %rsi      # 0x301a
callq 0x1100
testq %rax, %rax
je 0x14db
movq %rax, %rbx
movq %rax, %rdi
callq 0x2701
leaq 0x4c25(%rip), %rax      # 0x60b4
leaq 0x4c22(%rip), %rcx      # 0x60b8
movl (%rcx), %ecx
orl (%rax), %ecx
jne 0x14aa
leaq 0x1b92(%rip), %rdi      # 0x3035
callq 0x1060
jmp 0x14ba
movq %rbx, %rdi
callq 0x160d
movq %rbx, %rdi
callq 0x2657
movq %rbx, %rdi
callq 0x1080
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x116e
movl $0x1, %eax
jmp 0x14c4
addq $0x8, %r14
movq %r14, %rdi
callq 0x1150
movl $0x2, %eax
jmp 0x14c4
nop
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/tt.c
// Function: interrupt_handler
static void interrupt_handler( int signum ) {
	signal( signum, interrupt_handler );
	env.interrupted = 1;
	if( env.worker ) {
		/* Terminate current worker. */
		( ( struct worker * ) env.worker )->env.interrupted = 1;
	}
}

// Assembly:
pushq %rax
leaq -0x8(%rip), %rsi        # 0x3669
callq 0x3190
movb $0x1, 0x16a53(%rip)     # 0x1a0d0
movq 0x16dd4(%rip), %rax     # 0x1a458
testq %rax, %rax
je 0x368d
movb $0x1, 0x38(%rax)
popq %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: new_element
struct element* new_element( int str_len ) {
	struct element *elem = malloc( sizeof( struct element ) + sizeof( char ) * ( str_len + 1 ) );
	if( elem ) {
		memset( elem, 0, sizeof( struct element ) );
		elem->str.string = ( char * ) &elem[ 1 ];
		elem->str.string[ str_len ] = 0;
		elem->str.reference_count = 1;
		elem->str.length = str_len;
		elem->str.type = ELEMENT;
	}
	return elem;
}

// Assembly:
pushq %rbx
movslq %edi, %rbx
leaq 0x31(%rbx), %rdi
callq 0x31b0
testq %rax, %rax
je 0x36cb
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x8(%rax)
movb $0x0, 0x30(%rax,%rbx)
movq $0x1, (%rax)
movl %ebx, 0x10(%rax)
movb $0x1, 0x14(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: new_array
struct array* new_array( struct environment *env, int length, int str_len ) {
	size_t refs_size = length * sizeof( struct string * );
	size_t nums_size = length * sizeof( number );
	struct array *arr = calloc( 1, sizeof( struct array ) + refs_size + nums_size + str_len + 1 );
	if( arr ) {
		arr->string_values = ( struct string ** ) &arr[ 1 ];
		arr->number_values = ( number * ) &arr->string_values[ length ];
		arr->str.string = ( char * ) &arr->number_values[ length ];
		arr->str.length = str_len;
		arr->str.reference_count = 1;
		arr->str.type = ARRAY;
		arr->length = length;
		arr->prev = &env->arrays;
		arr->next = env->arrays.next;
		if( arr->next ) {
			arr->next->prev = arr;
		} 
		env->arrays.next = arr;
	}
	return arr;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
movslq %esi, %r14
movslq %edx, %rax
leaq (%r14,%r14,2), %rcx
leaq (%rax,%rcx,4), %rsi
addq $0x49, %rsi
movl $0x1, %edi
callq 0x3130
testq %rax, %rax
je 0x3742
leaq 0x48(%rax), %rcx
movq %rcx, 0x20(%rax)
leaq (%rax,%r14,8), %rcx
addq $0x48, %rcx
movq %rcx, 0x18(%rax)
leaq (%rcx,%r14,4), %rcx
movq %rcx, 0x8(%rax)
movl %ebp, 0x10(%rax)
movq $0x1, (%rax)
movb $0x2, 0x14(%rax)
movl %r14d, 0x40(%rax)
leaq 0x38(%rbx), %rcx
movq %rcx, 0x30(%rax)
movq 0x70(%rbx), %rcx
movq %rcx, 0x38(%rax)
testq %rcx, %rcx
je 0x373e
movq %rax, 0x30(%rcx)
movq %rax, 0x70(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: new_source
struct source* new_source( int str_len ) {
	struct source *src = malloc( sizeof( struct source ) + sizeof( char ) * ( str_len + 1 ) );
	if( src ) {
		memset( src, 0, sizeof( struct source ) );
		src->str.string = ( char * ) &src[ 1 ];
		src->str.reference_count = 1;
		src->str.length = str_len;
		src->str.type = SOURCE;
	}
	return src;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movslq %edi, %rdi
addq $0x21, %rdi
callq 0x31b0
testq %rax, %rax
je 0x377b
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, 0x8(%rax)
movq $0x1, (%rax)
movl %ebx, 0x10(%rax)
movb $0x8, 0x14(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: new_string
struct string* new_string( int length ) {
	struct string *str = malloc( sizeof( struct string ) + sizeof( char ) * ( length + 1 ) );
	if( str ) {
		memset( str, 0, sizeof( struct string ) );
		str->string = ( char * ) &str[ 1 ];
		str->string[ length ] = 0;
		str->reference_count = 1;
		str->length = length;
	}
	return str;
}

// Assembly:
pushq %rbx
movslq %edi, %rbx
leaq 0x19(%rbx), %rdi
callq 0x31b0
testq %rax, %rax
je 0x37b1
movq $0x0, 0x10(%rax)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
movb $0x0, 0x18(%rax,%rbx)
movq $0x1, (%rax)
movl %ebx, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: new_string_value
struct string* new_string_value( char *source ) {
	struct string *str = new_string( strlen( source ) );
	if( str ) {
		strcpy( str->string, source );
	}
	return str;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x30c0
movq %rax, %r14
movslq %r14d, %r12
leaq 0x19(%r12), %rdi
callq 0x31b0
movq %rax, %r15
testq %rax, %rax
je 0x380b
movq $0x0, 0x10(%r15)
movq %r15, %rax
addq $0x18, %rax
movq %rax, 0x8(%r15)
movb $0x0, 0x18(%r15,%r12)
movq $0x1, (%r15)
movl %r14d, 0x10(%r15)
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x3070
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: load_file
long load_file( char *file_name, char *buffer, long offset, long count, char *message ) {
	long length, remain = -1;
	FILE *input_file = fopen( file_name, "rb" );
	if( input_file != NULL ) {
		if( fseek( input_file, 0L, SEEK_END ) == 0 ) {
			length = ftell( input_file );
			if( length >= 0 ) {
				if( offset < 0 || offset > length ) {
					offset = length;
				}
				remain = length - offset;
				if( remain > 0 && buffer ) {
					if( count > remain ) {
						count = remain;
					}
					remain = fseek( input_file, offset, SEEK_SET );
					if( remain == 0 ) {
						clearerr( input_file );
						remain = fread( buffer, 1, count, input_file );
						if( ferror( input_file ) ) {
							remain = -1;
						}
					}
				}
			}
		}
		fclose( input_file );
	}
	if( remain < 0 ) {
		strncpy( message, strerror( errno ), 63 );
		message[ 63 ] = 0;
	}
	return remain;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r12
leaq 0xe93f(%rip), %rsi      # 0x12177
callq 0x31d0
movq $-0x1, %r15
testq %rax, %rax
je 0x386b
movq %rax, %r14
movq %r13, (%rsp)
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x31c0
testl %eax, %eax
je 0x38a0
movq %r14, %rdi
callq 0x30a0
callq 0x3040
movl (%rax), %edi
callq 0x3220
movl $0x3f, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3050
movb $0x0, 0x3f(%rbx)
movq %r15, %r13
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x3160
testq %rax, %rax
js 0x3863
movq %rax, %r13
cmpq %rbp, %rax
cmovbq %rax, %rbp
subq %rbp, %r13
setle %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x38db
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x31c0
testl %eax, %eax
je 0x38f0
movslq %eax, %r13
movq %r14, %rdi
callq 0x30a0
movq %r13, %r15
testq %r13, %r13
jns 0x388e
jmp 0x386b
movq (%rsp), %rbp
cmpq %rbp, %r13
cmovlq %r13, %rbp
movq %r14, %rdi
callq 0x3170
movl $0x1, %esi
movq %r12, %rdi
movq %rbp, %rdx
movq %r14, %rcx
callq 0x3090
movq %rax, %r13
movq %r14, %rdi
callq 0x3080
testl %eax, %eax
jne 0x3863
jmp 0x38db
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: dispose_variable
void dispose_variable( struct variable *var ) {
	var->number_value = 0;
	if( var->string_value ) {
		unref_string( var->string_value );
		var->string_value = NULL;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x0, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x394b
callq 0x394d
movq $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: unref_string
void unref_string( struct string *str ) {
	if( str->reference_count == 1 ) {
		switch( str->type ) {
			default:
			case STRING:
				free( str );
				break;
			case ELEMENT:
				dispose_element( ( struct element * ) str );
				break;
			case ARRAY:
				dispose_array( ( struct array * ) str );
				break;
			case STRUCT:
				dispose_structure( ( struct structure * ) str );
				break;
			case GLOBAL: case CONST:
				dispose_global_variable( ( struct global_variable * ) str );
				break;
			case FUNCTION:
				dispose_function( ( struct function * ) str );
				break;
			case SOURCE:
				dispose_source( ( struct source * ) str );
				break;
			case CUSTOM:
				( ( struct custom * ) str )->type->dispose( str );
				break;
		}
	} else {
		str->reference_count--;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
cmpq $0x1, %rax
jne 0x39a6
movzbl 0x14(%rbx), %eax
decl %eax
cmpl $0x8, %eax
ja 0x3a39
leaq 0xe721(%rip), %rcx      # 0x12094
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x398a
callq 0x394d
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x3998
callq 0x394d
movq 0x38(%rbx), %rdi
callq 0x3af9
jmp 0x3a39
decq %rax
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x28(%rbx), %rdi
cmpq %rbx, %rdi
je 0x39c2
callq 0x394d
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x39d0
callq 0x394d
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x39ea
movq 0x18(%rdi), %r14
callq 0x3030
movq %r14, %rdi
testq %r14, %r14
jne 0x39d9
movq 0x58(%rbx), %rdi
callq 0x3abb
jmp 0x3a39
movq %rbx, %rdi
callq 0x7e3a
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x3a39
movq 0x38(%rbx), %rcx
movq %rcx, 0x38(%rax)
testq %rcx, %rcx
je 0x3a39
movq %rax, 0x30(%rcx)
jmp 0x3a39
movq 0x18(%rbx), %rdi
jmp 0x3a34
movq 0x18(%rbx), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x18(%rax)
movq 0x20(%rbx), %rdi
callq 0x3c22
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3b3f
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: assign_variable
void assign_variable( struct variable *src, struct variable *dest ) {
	if( dest->string_value ) {
		unref_string( dest->string_value );
	}
	dest->number_value = src->number_value;
	dest->string_value = src->string_value;
	if( dest->string_value ) {
		dest->string_value->reference_count++;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0x3a7d
callq 0x394d
movl (%r14), %eax
movl %eax, (%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x3a92
incq (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: dispose_statements
void dispose_statements( struct statement *statements ) {
	struct statement *next;
	while( statements ) {
		next = statements->next;
		dispose_expressions( statements->source );
		if( statements->dispose ) {
			statements->dispose( statements );
		} else {
			free( statements );
		}
		statements = next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x3af8
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rbx), %rdi
movq 0x20(%rbx), %r14
callq 0x3af9
movq 0x18(%rbx), %rax
movq %rbx, %rdi
testq %rax, %rax
je 0x3ae4
callq *%rax
jmp 0x3ae9
callq 0x3030
movq %r14, %rbx
testq %r14, %r14
jne 0x3ac7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: dispose_expressions
static void dispose_expressions( struct expression *expr ) {
	struct expression *next;
	while( expr ) {
		next = expr->next;
		dispose_expressions( expr->parameters );
		if( expr->evaluate == evaluate_string_literal_expression ) {
			unref_string( ( ( struct value_expression * ) expr )->str );
		}
		free( expr );
		expr = next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x3b3e
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq -0x68(%rip), %r14       # 0x3aa5
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %r15
callq 0x3af9
cmpq %r14, 0x18(%rbx)
jne 0x3b29
movq 0x20(%rbx), %rdi
callq 0x394d
movq %rbx, %rdi
callq 0x3030
movq %r15, %rbx
testq %r15, %r15
jne 0x3b0d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: dispose_element
static void dispose_element( struct element *elem ) {
	struct element *prev;
	while( elem ) {
		if( elem->str.reference_count == 1 ) {
			if( elem->child ) {
				dispose_element( elem->child );
			}
			prev = elem;
			elem = elem->next;
			free( prev );
		} else {
			elem->str.reference_count--;
			elem = NULL;
		}
	}
}

// Assembly:
testq %rdi, %rdi
je 0x3b85
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rbx), %rax
cmpq $0x1, %rax
jne 0x3b78
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x3b62
callq 0x3b3f
movq 0x20(%rbx), %r14
movq %rbx, %rdi
callq 0x3030
movq %r14, %rbx
testq %r14, %r14
jne 0x3b4b
jmp 0x3b7e
decq %rax
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: dispose_environment
void dispose_environment( struct environment *env ) {
	int idx;
	for( idx = 0; idx < 32; idx++ ) {
		dispose_string_list( env->decls_index[ idx ] );
		dispose_keywords( env->statements_index[ idx ] );
		dispose_operators( env->operators_index[ idx ] );
	}
	dispose_string_list( env->globals );
	dispose_arrays( &env->arrays );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x280(%rbx,%r14,8), %rdi
callq 0x3c22
movq 0x80(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x3bbc
movq 0x18(%rdi), %r15
callq 0x3030
movq %r15, %rdi
testq %r15, %r15
jne 0x3bab
movq 0x180(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x3bda
movq 0x18(%rdi), %r15
callq 0x3030
movq %r15, %rdi
testq %r15, %r15
jne 0x3bc9
incq %r14
cmpq $0x20, %r14
jne 0x3b91
movq 0x380(%rbx), %rdi
callq 0x3c22
movq 0x70(%rbx), %r14
testq %r14, %r14
je 0x3c1c
incq (%r14)
movq %r14, %rdi
callq 0x7e3a
movq 0x38(%r14), %r14
testq %r14, %r14
jne 0x3bf8
jmp 0x3c13
callq 0x394d
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
jne 0x3c0e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: dispose_string_list
static void dispose_string_list( struct string_list *list ) {
	struct string_list *next;
	while( list ) {
		next = list->next;
		unref_string( list->str );
		free( list );
		list = next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x3c51
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rbx), %rdi
movq 0x8(%rbx), %r14
callq 0x394d
movq %rbx, %rdi
callq 0x3030
movq %r14, %rbx
testq %r14, %r14
jne 0x3c2e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: throw_exit
enum result throw_exit( struct variables *vars, number exit_code, const char *message ) {
	struct variable *exception = vars->exception;
	struct environment *env = vars->func->env;
	env->exit.reference_count = 2;
	env->exit.type = EXIT;
	env->exit.string = ( char * ) message;
	dispose_temporary( exception );
	exception->number_value = exit_code;
	exception->string_value = &env->exit;
	return EXCEPTION;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq 0x8(%rdi), %r14
movq 0x18(%rdi), %rax
movq 0x40(%rax), %rax
leaq 0x20(%rax), %r15
movq $0x2, 0x20(%rax)
movb $0xa, 0x34(%rax)
movq %rdx, 0x28(%rax)
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x3c87
callq 0x394d
movl %ebx, (%r14)
movq %r15, 0x8(%r14)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: throw
enum result throw( struct variables *vars, struct expression *source, number num, const char *string ) {
	struct variable *exception = vars->exception;
	struct array *arr = NULL;
	if( string ) {
		arr = stack_trace( source, vars, strlen( string ), 16 );
		if( arr ) {
			strcpy( arr->str.string, string );
		} else {
			return throw_exit( vars, 1, OUT_OF_MEMORY );
		}
	}
	dispose_temporary( exception );
	exception->number_value = num;
	exception->string_value = &arr->str;
	return EXCEPTION;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq 0x8(%rdi), %r13
testq %rcx, %rcx
je 0x3cde
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq %rcx, %rdi
callq 0x30c0
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x3d46
testq %rax, %rax
je 0x3cf9
movq %rax, %r14
movq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0x3070
jmp 0x3ce1
xorl %r14d, %r14d
movq 0x8(%r13), %rdi
testq %rdi, %rdi
je 0x3cef
callq 0x394d
movl %ebx, (%r13)
movq %r14, 0x8(%r13)
jmp 0x3d3a
movq 0x15470(%rip), %rax     # 0x19170
movq 0x8(%r12), %rbx
movq 0x18(%r12), %rcx
movq 0x40(%rcx), %rcx
leaq 0x20(%rcx), %r14
movq $0x2, 0x20(%rcx)
movb $0xa, 0x34(%rcx)
movq %rax, 0x28(%rcx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x3d30
callq 0x394d
movl $0x1, (%rbx)
movq %r14, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: stack_trace
static struct array* stack_trace( struct expression *expr, struct variables *vars, int msg_len, int max_depth ) {
	struct array *arr = new_array( vars->func->env, max_depth, msg_len );
	int idx = 0, line = expr->line;
	if( arr ) {
		while( vars && vars->func && idx < max_depth ) {
			vars->func->str.reference_count++;
			arr->string_values[ idx ] = &vars->func->str;
			arr->number_values[ idx++ ] = line;
			line = vars->line;
			vars = vars->parent;
		}
		arr->length = idx;
	}
	return arr;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rsi), %rax
movq 0x40(%rax), %rdi
movl $0x10, %esi
callq 0x36cd
testq %rax, %rax
je 0x3da5
xorl %ecx, %ecx
movq 0x18(%rbx), %rdx
testq %rdx, %rdx
je 0x3da2
cmpq $0xf, %rcx
ja 0x3da2
movl (%r14), %esi
incq (%rdx)
movq 0x20(%rax), %rdi
movq %rdx, (%rdi,%rcx,8)
movq 0x18(%rax), %rdx
movl %esi, (%rdx,%rcx,4)
incq %rcx
movq (%rbx), %rdx
addq $0x20, %rbx
movq %rbx, %r14
movq %rdx, %rbx
testq %rdx, %rdx
jne 0x3d69
movl %ecx, 0x40(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: write_byte_string
int write_byte_string( char *bytes, int count, char *output ) {
	int chr, size, idx = 0, length = 0;
	if( output ) {
		output[ length++ ] = '"';
		while( idx < count ) {
			chr = bytes[ idx++ ];
			if( chr == '"' || chr == '\\' ) {
				output[ length++ ] = '\\';
				output[ length++ ] = chr;
			} else if( ( chr & 0x7F ) < 32 || chr == 127 ) {
				output[ length++ ] = '\\';
				output[ length++ ] = '0' + ( ( chr >> 6 ) & 0x3 );
				output[ length++ ] = '0' + ( ( chr >> 3 ) & 0x7 );
				output[ length++ ] = '0' + ( chr & 0x7 );
			} else {
				output[ length++ ] = chr;
			}
		}
		output[ length++ ] = '"';
	} else {
		length = 2;
		while( idx < count && length > 0 ) {
			chr = bytes[ idx++ ];
			if( chr == '"' || chr == '\\' ) {
				size = 2;
			} else if( ( chr & 0x7F ) < 32 || chr == 127 ) {
				size = 4;
			} else {
				size = 1;
			}
			if( MAX_INTEGER - length > size ) {
				length += size;
			} else {
				length = -1;
			}
		}
	}
	return length;
}

// Assembly:
testq %rdx, %rdx
je 0x3e54
movb $0x22, (%rdx)
testl %esi, %esi
jle 0x3ec7
movl %esi, %ecx
movl $0x1, %eax
xorl %esi, %esi
movzbl (%rdi,%rsi), %r8d
cmpl $0x5c, %r8d
je 0x3ddb
cmpl $0x22, %r8d
jne 0x3df9
movslq %eax, %r9
movb $0x5c, (%rdx,%r9)
leal 0x2(%r9), %eax
movb %r8b, 0x1(%rdx,%r9)
incq %rsi
cmpq %rsi, %rcx
jne 0x3dca
jmp 0x3ecc
testb $0x60, %r8b
setne %r10b
cmpb $0x7f, %r8b
setne %r11b
movslq %eax, %r9
testb %r10b, %r11b
jne 0x3e4c
movb $0x5c, (%rdx,%r9)
movl %r8d, %r10d
shrb $0x6, %r10b
orb $0x30, %r10b
movb %r10b, 0x1(%rdx,%r9)
movl %r8d, %r10d
shrb $0x3, %r10b
andb $0x7, %r10b
orb $0x30, %r10b
movb %r10b, 0x2(%rdx,%r9)
andb $0x7, %r8b
orb $0x30, %r8b
addl $0x4, %eax
movb %r8b, 0x3(%rdx,%r9)
jmp 0x3dec
incl %eax
movb %r8b, (%rdx,%r9)
jmp 0x3dec
testl %esi, %esi
jle 0x3ed6
movl %esi, %eax
movl $0x2, %r9d
movl $0x1, %ecx
movl $0x4, %edx
movl %r9d, %esi
movzbl -0x1(%rdi,%rcx), %r9d
movl $0x2, %r8d
cmpl $0x22, %r9d
je 0x3ea3
movl $0x2, %r8d
cmpl $0x5c, %r9d
je 0x3ea3
xorl %r8d, %r8d
testb $0x60, %r9b
sete %r8b
cmpb $0x7f, %r9b
leal 0x1(%r8,%r8,2), %r8d
cmovel %edx, %r8d
leal (%r8,%rsi), %r9d
xorl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
cmpq %rax, %rcx
jae 0x3eba
incq %rcx
cmpl %r8d, %esi
ja 0x3e6a
cmpl %r8d, %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmoval %r9d, %eax
retq
movl $0x1, %eax
movslq %eax, %rcx
incl %eax
movb $0x22, (%rdx,%rcx)
retq
movl $0x2, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: add_decl
struct string_list* add_decl( struct string *decl, int line, struct environment *env, char *message ) {
	struct string_list *list = NULL;
	int hash = validate_decl( decl, line, env, message ) - 1;
	if( message[ 0 ] == 0 ) {
		list = new_string_list( decl, env->decls_index[ hash ] );
		if( list ) {
			env->decls_index[ hash ] = list;
		} else {
			strcpy( message, OUT_OF_MEMORY );
		}
	}
	return list;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
callq 0x8997
movl %eax, %r12d
testl %eax, %eax
je 0x3f38
leal -0x1(%r12), %eax
movq 0x280(%rbx,%rax,8), %rdi
movq 0x8(%r15), %r13
movl 0x10(%r15), %edx
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x887e
testq %rax, %rax
je 0x3f38
leaq 0xeab2(%rip), %rsi      # 0x129db
movq %r14, %rdi
movq %r13, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x3200
cmpb $0x0, (%r14)
je 0x3f42
xorl %eax, %eax
jmp 0x3f71
movslq %r12d, %r12
movq 0x278(%rbx,%r12,8), %r13
movl $0x10, %edi
callq 0x31b0
testq %rax, %rax
je 0x3f80
movq %r15, (%rax)
incq (%r15)
decq %r12
movq %r13, 0x8(%rax)
movq %rax, 0x280(%rbx,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x151e9(%rip), %rsi     # 0x19170
movq %r14, %rdi
callq 0x3070
jmp 0x3f3e
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: add_constants
int add_constants( struct constant *constants, struct environment *env, char *message ) {
	struct global_variable *global;
	while( constants->name && message[ 0 ] == 0 ) {
		global = new_global_variable( constants->name, NULL, NULL, NULL, message );
		if( global ) {
			if( add_global( global, 0, env, message ) ) {
				global->str.type = CONST;
				global->value.number_value = constants->number_value;
				if( constants->string_value ) {
					global->value.string_value = new_string_literal( constants->string_value );
					if( global->value.string_value == NULL ) {
						strcpy( message, OUT_OF_MEMORY );
					}
				}
			}
			unref_string( &global->str );
		}
		constants++;
	}
	return message[ 0 ] == 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x402c
movq %rsi, %r14
addq $0x18, %r15
cmpb $0x0, (%rbx)
jne 0x402c
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x4040
testq %rax, %rax
je 0x4020
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x410f
testq %rax, %rax
je 0x4018
movb $0x5, 0x14(%r12)
movl -0x10(%r15), %eax
movl %eax, 0x18(%r12)
movq -0x8(%r15), %rdi
testq %rdi, %rdi
je 0x4018
callq 0x4172
movq %rax, 0x20(%r12)
testq %rax, %rax
jne 0x4018
movq 0x15160(%rip), %rsi     # 0x19170
movq %rbx, %rdi
callq 0x3070
movq %r12, %rdi
callq 0x394d
movq (%r15), %rdi
addq $0x18, %r15
testq %rdi, %rdi
jne 0x3fb2
xorl %eax, %eax
cmpb $0x0, (%rbx)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: new_global_variable
static struct global_variable* new_global_variable( char *name,
	struct structure *type, struct function *init_function, struct expression *initializer, char *message ) {
	int nlen = strlen( name );
	int qlen = qualify_name( init_function, name, nlen, NULL );
	struct global_variable *global = malloc( sizeof( struct global_variable ) + sizeof( char ) * ( qlen + 1 ) );
	if( global ) {
		global->str.reference_count = 1;
		global->str.string = ( char * ) &global[ 1 ];
		qualify_name( init_function, name, nlen, global->str.string );
		global->str.length = qlen;
		global->str.type = GLOBAL;
		global->value.number_value = 0;
		global->value.string_value = NULL;
		global->type = type;
		global->init_function = init_function;
		if( init_function ) {
			init_function->str.reference_count++;
		}
		global->initializer = initializer;
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return global;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x30c0
movq %rax, %rbp
movl %ebp, %r13d
testq %r14, %r14
je 0x4087
movq 0x30(%r14), %rax
movl %ebp, %r13d
testq %rax, %rax
je 0x4087
movl 0x10(%rax), %eax
leal (%rax,%rbp), %r13d
incl %r13d
movslq %r13d, %rdi
addq $0x41, %rdi
callq 0x31b0
movq %rax, %rbx
testq %rax, %rax
je 0x40ec
movq $0x1, (%rbx)
movq %rbx, %rcx
addq $0x40, %rcx
movq %rcx, 0x8(%rbx)
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x7e86
movl %r13d, 0x10(%rbx)
movb $0x4, 0x14(%rbx)
movl $0x0, 0x18(%rbx)
movq $0x0, 0x20(%rbx)
movq %r15, 0x28(%rbx)
movq %r14, 0x30(%rbx)
testq %r14, %r14
je 0x40e1
incq (%r14)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rbx)
jmp 0x40fd
movq 0x1507d(%rip), %rsi     # 0x19170
movq 0x8(%rsp), %rdi
callq 0x3070
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq