LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/seam-carver.c
// Function: compute_vertical_seam_links
struct seam_link * compute_vertical_seam_links(
        const unsigned int *energy,
        int w,
        int h) {
    struct seam_link *links = malloc(w * h * sizeof(struct seam_link));
    if (!links) {
        fprintf(stderr, "Unable to allocate memory (%d)\n", __LINE__);
        return NULL;
    }

    for (int x = 0; x < w; x++) {
        links[x] = (struct seam_link) {
            .energy = energy[x],
            .parent_coordinate = -1
        };
    }

    for (int y = 1; y < h; y++)
    for (int x = 0; x < w; x++) {
        int i = y * w + x;

        int min_parent_energy = INT_MAX;
        int min_parent_x = -1;

        int parent_x = x == 0 ? x : x - 1;
        int parent_x_end = x == w - 1 ? x : x + 1;
        for (; parent_x <= parent_x_end; parent_x++) {
            int candidate_energy = links[(y - 1) * w + parent_x].energy;
            if (candidate_energy < min_parent_energy) {
                min_parent_energy = candidate_energy;
                min_parent_x = parent_x;
            }
        }

        links[i] = (struct seam_link) {
            .energy = energy[i] + min_parent_energy,
            .parent_coordinate = min_parent_x
        };
    }

    return links;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
movl %edx, %eax
imull %esi, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x1120
movq %rax, %r15
testq %rax, %rax
je 0x5767
movl %ebx, %eax
testl %ebx, %ebx
jle 0x566c
xorl %ecx, %ecx
movl (%r14,%rcx,4), %edx
movl %edx, (%r15,%rcx,8)
movl $0xffffffff, 0x4(%r15,%rcx,8) # imm = 0xFFFFFFFF
incq %rcx
cmpq %rcx, %rax
jne 0x5653
cmpl $0x2, %ebp
jl 0x5755
leal -0x1(%rbx), %ecx
movslq %ebx, %rdx
movl %ebp, %esi
movq %rsi, 0x18(%rsp)
shlq $0x3, %rdx
movq %rdx, 0x20(%rsp)
movl $0x1, %edx
movq %rdx, 0x8(%rsp)
xorl %r8d, %r8d
movq %r15, %r9
movq %rbx, 0x10(%rsp)
testl %ebx, %ebx
jle 0x5733
movq 0x8(%rsp), %r10
imull 0x10(%rsp), %r10d
xorl %r12d, %r12d
movl %r12d, %r11d
subl $0x1, %r11d
cmovbl %r8d, %r11d
leaq 0x1(%r12), %rdx
cmpq %rcx, %r12
movl %edx, %esi
cmovel %r12d, %esi
cmpl %esi, %r11d
jbe 0x56e1
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
jmp 0x571b
cmpq $0x1, %r12
movl %r12d, %r11d
adcl $-0x1, %r11d
movslq %r11d, %rbx
leaq (%r9,%rbx,8), %rbx
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl (%rbx), %edi
cmpl %r13d, %edi
cmovll %edi, %r13d
cmovll %r11d, %ebp
addq $0x8, %rbx
leal 0x1(%r11), %edi
cmpl %r11d, %esi
movl %edi, %r11d
ja 0x56fe
addq %r10, %r12
addl (%r14,%r12,4), %r13d
movl %r13d, (%r15,%r12,8)
movl %ebp, 0x4(%r15,%r12,8)
movq %rdx, %r12
cmpq %rax, %rdx
jne 0x56b6
movq 0x8(%rsp), %rdx
incq %rdx
addq 0x20(%rsp), %r9
movq %rdx, 0x8(%rsp)
cmpq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rbx
jne 0x56a0
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x11f6
jmp 0x5755
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/seam-carver.c
// Function: get_minimal_seam
int * get_minimal_seam(
        const struct seam_link *seam_links,
        int num_seams,
        int seam_length) {
    int *minimal_seam = malloc(seam_length * sizeof(int));
    if (!minimal_seam) {
        fprintf(stderr, "Unable to allocate memory (%d)\n", __LINE__);

        goto cleanup;
    }

    int min_coordinate = -1;
    int min_energy = INT_MAX;

    for (int coordinate = 0; coordinate < num_seams; coordinate++) {
        int i = num_seams * (seam_length - 1) + coordinate;
        if (seam_links[i].energy < min_energy) {
            min_coordinate = coordinate;
            min_energy = seam_links[i].energy;
        }
    }

    int i = 0;
    int offset = min_coordinate;

    for (int d = 0; d < seam_length; d++) {
        minimal_seam[i++] = offset;

        struct seam_link end =
            seam_links[num_seams * (seam_length - 1 - d) + offset];

        offset = end.parent_coordinate;
    }

cleanup:
    return minimal_seam;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq %edx, %rdi
shlq $0x2, %rdi
callq 0x1120
movq %rax, %r15
testq %rax, %rax
je 0x57fd
testl %ebp, %ebp
jle 0x57c6
leal -0x1(%rbx), %eax
imull %ebp, %eax
cltq
movl %ebp, %ecx
leaq (%r14,%rax,8), %rdx
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edi, %edi
movl (%rdx,%rdi,8), %r8d
cmpl %esi, %r8d
cmovbl %r8d, %esi
cmovbl %edi, %eax
incq %rdi
cmpq %rdi, %rcx
jne 0x57ae
jmp 0x57cb
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ebx, %ebx
jle 0x57ef
movl %ebx, %ecx
decl %ebx
imull %ebp, %ebx
xorl %edx, %edx
movl %eax, (%r15,%rdx,4)
incq %rdx
addl %ebx, %eax
cltq
movl 0x4(%r14,%rax,8), %eax
subl %ebp, %ebx
cmpq %rdx, %rcx
jne 0x57d8
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1211
jmp 0x57ef
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/seam-carver.c
// Function: image_after_vertical_seam_removal
unsigned char * image_after_vertical_seam_removal(
        const unsigned char *original_data,
        const int *vertical_seam,
        int w,
        int h) {
    unsigned char *img = malloc((w - 1) * h * 3);
    if (!img) {
        fprintf(stderr, "Unable to allocate memory (%d)\n", __LINE__);
        return NULL;
    }

    for (int y = 0; y < h; y++) {
        int seamx = vertical_seam[h - 1 - y];

        for (int x = 0, imgx = 0; imgx < w - 1; x++, imgx++) {
            if (x == seamx) { x++; }

            int    i = (y *  w      + x   ) * 3;
            int imgi = (y * (w - 1) + imgx) * 3;

            img[imgi    ] = original_data[i    ];
            img[imgi + 1] = original_data[i + 1];
            img[imgi + 2] = original_data[i + 2];
        }
    }

    return img;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r14
leal -0x1(%rbx), %r13d
movl %ecx, %eax
imull %r13d, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %rdi
callq 0x1120
movq %rax, (%rsp)
testq %rax, %rax
je 0x58e4
testl %ebp, %ebp
jle 0x58d1
movl %ebp, %eax
leaq (%r12,%rax,4), %rcx
movl %r13d, %edi
movq (%rsp), %rdx
addq $0x2, %rdx
movslq %ebx, %rsi
leaq (%rsi,%rsi,2), %rsi
addq $-0x3, %rsi
leaq (%rdi,%rdi,2), %rdi
xorl %r8d, %r8d
cmpl $0x2, %ebx
jl 0x58c6
movq %r8, %r9
notq %r9
movl (%rcx,%r9,4), %r9d
movl %r8d, %r10d
imull %ebx, %r10d
xorl %r11d, %r11d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpl %r9d, %r12d
sete %r13b
leal (%r12,%r13), %ebp
addl %r10d, %ebp
movslq %ebp, %rbp
leaq (%rbp,%rbp,2), %rbp
movb (%r14,%rbp), %r15b
movb %r15b, -0x2(%rdx,%r11)
movb 0x1(%r14,%rbp), %r15b
movb %r15b, -0x1(%rdx,%r11)
movb 0x2(%r14,%rbp), %bpl
movb %bpl, (%rdx,%r11)
addl %r13d, %r12d
incl %r12d
addq $0x3, %r11
cmpq %r11, %rdi
jne 0x5882
incq %r8
addq %rsi, %rdx
cmpq %rax, %r8
jne 0x5866
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x122c
jmp 0x58d1
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/seam-carver.c
// Function: write_energy
int write_energy(
        const unsigned int *energy,
        int w,
        int h,
        const char *filename) {
    int result = 0;

    unsigned char *energy_normalized = malloc(w * h);
    if (!energy_normalized) {
        fprintf(stderr, "Unable to allocate memory (%d)\n", __LINE__);

        result = 1;
        goto cleanup;
    }

    int max_energy = 1;
    for (int y = 0; y < h; y++)
    for (int x = 0; x < w; x++) {
        int i = y * w + x;
        max_energy = energy[i] > max_energy ? energy[i] : max_energy;
    }

    for (int y = 0; y < h; y++)
    for (int x = 0; x < w; x++) {
        int i = y * w + x;
        energy_normalized[i] = (char) ((double) energy[i] / max_energy * 255);
    }

    printf("Writing to '%s'\n", filename);
    if (!stbi_write_jpg(filename, w, h, 1, energy_normalized, 80)) {
        fprintf(stderr, "Unable to write output (%d)\n", __LINE__);

        result = 1;
        goto cleanup;
    }

cleanup:
    if (energy_normalized) { free(energy_normalized); }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r12
movl %edx, %eax
imull %esi, %eax
movslq %eax, %rdi
callq 0x1120
testq %rax, %rax
je 0x59fb
movq %rax, %rbx
testl %ebp, %ebp
jle 0x59b4
movl %r15d, %eax
movl %ebp, %ecx
leaq (,%rax,4), %rsi
movl $0x1, %edx
xorl %edi, %edi
movq %r12, %r8
testl %r15d, %r15d
jle 0x5951
xorl %r9d, %r9d
movl (%r8,%r9,4), %r10d
cmpl %edx, %r10d
cmoval %r10d, %edx
incq %r9
cmpq %r9, %rax
jne 0x593e
incq %rdi
addq %rsi, %r8
cmpq %rcx, %rdi
jne 0x5936
testl %ebp, %ebp
jle 0x59b4
cvtsi2sd %edx, %xmm0
leaq (,%rax,4), %rdx
xorl %esi, %esi
movsd 0xf922(%rip), %xmm1     # 0x15298
movq %rbx, %rdi
testl %r15d, %r15d
jle 0x59a6
xorl %r8d, %r8d
movl (%r12,%r8,4), %r9d
xorps %xmm2, %xmm2
cvtsi2sd %r9, %xmm2
divsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
cvttsd2si %xmm2, %r9d
movb %r9b, (%rdi,%r8)
incq %r8
cmpq %r8, %rax
jne 0x5981
incq %rsi
addq %rax, %rdi
addq %rdx, %r12
cmpq %rcx, %rsi
jne 0x5979
leaq 0xfa0c(%rip), %rdi      # 0x153c7
xorl %r12d, %r12d
movq %r14, %rsi
xorl %eax, %eax
callq 0x1080
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl $0x1, %ecx
movq %rbx, %r8
movl $0x50, %r9d
callq 0x5412
testl %eax, %eax
je 0x5a08
movq %rbx, %rdi
callq 0x1030
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x1266
movl $0x1, %r12d
jmp 0x59ef
callq 0x1249
movl $0x1, %r12d
jmp 0x59e7
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/seam-carver.c
// Function: draw_vertical_seam
int draw_vertical_seam(
        const unsigned char *data,
        const int *minimal_vertical_seam,
        int w,
        int h,
        const char *filename) {
    int result = 0;

    unsigned char *data_with_seams = malloc(w * h * 3);
    if (!data_with_seams) {
        fprintf(stderr, "Unable to allocate memory (%d)\n", __LINE__);

        result = 1;
        goto cleanup;
    }

    memcpy(data_with_seams, data, w * h * 3);

    for (int y = h - 1; y >= 0; y--) {
        int x = minimal_vertical_seam[h - 1 - y];
        int i = (y * w + x) * 3;

        data_with_seams[i    ] = 255;
        data_with_seams[i + 1] = 0;
        data_with_seams[i + 2] = 0;
    }

    printf("Writing to '%s'\n", filename);
    if (!stbi_write_jpg(filename, w, h, 3, data_with_seams, 80)) {
        fprintf(stderr, "Unable to write output (%d)\n", __LINE__);

        result = 1;
        goto cleanup;
    }

cleanup:
    if (data_with_seams) { free(data_with_seams); }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, (%rsp)
movq %rdi, %r13
movl %edx, %eax
imull %ecx, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %r12
movq %r12, %rdi
callq 0x1120
testq %rax, %rax
je 0x5afb
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1110
testl %r14d, %r14d
jle 0x5aae
leal -0x1(%r14), %ecx
movl %r14d, %edx
leaq 0x1(%rdx), %rax
leaq (,%rcx,4), %rsi
imull %ebp, %ecx
shlq $0x2, %rdx
subq %rdx, %rsi
movq (%rsp), %rdx
addq %rsi, %rdx
addq $0x4, %rdx
movl (%rdx), %esi
addl %ecx, %esi
movslq %esi, %rsi
leaq (%rsi,%rsi,2), %rsi
movw $0xff, (%rbx,%rsi)
movb $0x0, 0x2(%rbx,%rsi)
decq %rax
subl %ebp, %ecx
addq $0x4, %rdx
cmpq $0x1, %rax
ja 0x5a89
leaq 0xf912(%rip), %rdi      # 0x153c7
xorl %r12d, %r12d
movq %r15, %rsi
xorl %eax, %eax
callq 0x1080
movq %r15, %rdi
movl %ebp, %esi
movl %r14d, %edx
movl $0x3, %ecx
movq %rbx, %r8
movl $0x50, %r9d
callq 0x5412
testl %eax, %eax
je 0x5b08
movq %rbx, %rdi
callq 0x1030
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x12a0
movl $0x1, %r12d
jmp 0x5ae9
callq 0x1283
movl $0x1, %r12d
jmp 0x5ae1
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/seam-carver.c
// Function: run_iteration
unsigned char * run_iteration(
        const char *output_directory,
        const unsigned char *data,
        int w,
        int h,
        int iteration) {

    unsigned int *energy = NULL;
    struct seam_link *vertical_seam_links = NULL;
    int *minimal_vertical_seam = NULL;
    unsigned char *output_data = NULL;

    char output_filename[1024];

    energy = compute_energy(data, w, h);
    if (!energy) { goto cleanup; }

    if (iteration == 0) {
        snprintf(output_filename, 1024, "%s/img-energy.jpg", output_directory);
        if (write_energy(energy, w, h, output_filename)) {
            goto cleanup;
        }
    }

    vertical_seam_links = compute_vertical_seam_links(energy, w, h);
    if (!vertical_seam_links) { goto cleanup; }

    minimal_vertical_seam = get_minimal_seam(vertical_seam_links, w, h);

    snprintf(
            output_filename,
            1024,
            "%s/img-seam-%04d.jpg",
            output_directory,
            iteration);
    if (draw_vertical_seam(
                data,
                minimal_vertical_seam,
                w,
                h,
                output_filename)) {
        goto cleanup;
    }

    output_data =
        image_after_vertical_seam_removal(data, minimal_vertical_seam, w, h);

cleanup:
    if (energy) { free(energy); }
    if (vertical_seam_links) { free(vertical_seam_links); }
    if (minimal_vertical_seam) { free(minimal_vertical_seam); }

    return output_data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movl %r8d, %r13d
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, (%rsp)
movq %rsi, %rdi
movl %edx, %esi
movl %ecx, %edx
callq 0x556e
testq %rax, %rax
je 0x5bfb
movq %rax, %rbx
testl %r13d, %r13d
je 0x5c00
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x5619
testq %rax, %rax
je 0x5c3f
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x576e
movq %rax, %r14
leaq 0xf8a1(%rip), %rdx      # 0x15466
leaq 0x10(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq (%rsp), %rcx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x1090
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
movl %ebp, %ecx
leaq 0x10(%rsp), %r8
callq 0x5a15
testl %eax, %eax
je 0x5c47
xorl %r15d, %r15d
jmp 0x5c5a
xorl %r15d, %r15d
jmp 0x5c79
leaq 0xf84d(%rip), %rdx      # 0x15454
leaq 0x10(%rsp), %r14
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdi
movq (%rsp), %rcx
xorl %eax, %eax
callq 0x1090
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
movq %r14, %rcx
callq 0x58eb
testl %eax, %eax
je 0x5b93
movq %rbx, %r14
xorl %r15d, %r15d
jmp 0x5c71
xorl %r15d, %r15d
movq %rbx, %r14
jmp 0x5c71
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x5804
movq %rax, %r15
movq %rbx, %rdi
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x1030
testq %r14, %r14
je 0x5c79
movq %r14, %rdi
callq 0x1030
movq %r15, %rax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__jpeg_huff_decode
stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)
{
   unsigned int temp;
   int c,k;

   if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);

   // look at the top FAST_BITS and determine what symbol ID it is,
   // if the code is <= FAST_BITS
   c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1);
   k = h->fast[c];
   if (k < 255) {
      int s = h->size[k];
      if (s > j->code_bits)
         return -1;
      j->code_buffer <<= s;
      j->code_bits -= s;
      return h->values[k];
   }

   // naive test is to shift the code_buffer down so k bits are
   // valid, then test against maxcode. To speed this up, we've
   // preshifted maxcode left so that it has (16-k) 0s at the
   // end; in other words, regardless of the number of bits, it
   // wants to be compared against something shifted to have 16;
   // that way we don't need to shift inside the loop.
   temp = j->code_buffer >> 16;
   for (k=FAST_BITS+1 ; ; ++k)
      if (temp < h->maxcode[k])
         break;
   if (k == 17) {
      // error! code not found
      j->code_bits -= 16;
      return -1;
   }

   if (k > j->code_bits)
      return -1;

   // convert the huffman code to the symbol id
   c = ((j->code_buffer >> (32 - k)) & stbi__bmask[k]) + h->delta[k];
   STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]);

   // convert the id to a symbol
   j->code_bits -= k;
   j->code_buffer <<= k;
   return h->values[c];
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0xf, 0x4824(%rdi)
jg 0xda2e
movq %rbx, %rdi
callq 0xd8c9
movl 0x4820(%rbx), %esi
movl %esi, %eax
shrl $0x17, %eax
movzbl (%r14,%rax), %edx
cmpq $0xff, %rdx
je 0xda7f
movzbl 0x500(%r14,%rdx), %ecx
movl 0x4824(%rbx), %edi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
subl %ecx, %edi
jl 0xdb24
shll %cl, %esi
movl %esi, 0x4820(%rbx)
movl %edi, 0x4824(%rbx)
movzbl 0x400(%r14,%rdx), %eax
jmp 0xdb24
movl %esi, %eax
shrl $0x10, %eax
xorl %r8d, %r8d
movq %r8, %rcx
incq %r8
cmpl 0x62c(%r14,%rcx,4), %eax
jae 0xda87
movl 0x4824(%rbx), %edi
cmpq $0x8, %r8
jne 0xdab3
addl $-0x10, %edi
movl %edi, 0x4824(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xdb24
leaq 0x9(%r8), %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %edx, %edi
jl 0xdb24
movb $0x17, %cl
subb %r8b, %cl
movl %esi, %eax
shrl %cl, %eax
leaq 0x5a40(%rip), %r9       # 0x13510
andl 0x24(%r9,%r8,4), %eax
addl 0x670(%r14,%r8,4), %eax
cltq
movzbl 0x500(%r14,%rax), %r10d
movl %r10d, %ecx
negb %cl
movl %esi, %r11d
shrl %cl, %r11d
andl (%r9,%r10,4), %r11d
movzwl 0x200(%r14,%rax,2), %ecx
cmpl %ecx, %r11d
jne 0xdb2c
subl %r8d, %edi
movl %edx, %ecx
shll %cl, %esi
addl $-0x9, %edi
movl %edi, 0x4824(%rbx)
movl %esi, 0x4820(%rbx)
movzbl 0x400(%r14,%rax), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x7bd8(%rip), %rdi      # 0x1570b
leaq 0x79d8(%rip), %rsi      # 0x15512
leaq 0x7c1c(%rip), %rcx      # 0x1575d
movl $0x7a0, %edx            # imm = 0x7A0
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__extend_receive
stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)
{
   unsigned int k;
   int sgn;
   if (j->code_bits < n) stbi__grow_buffer_unsafe(j);

   sgn = (stbi__int32)j->code_buffer >> 31; // sign bit is always in MSB
   k = stbi_lrot(j->code_buffer, n);
   STBI_ASSERT(n >= 0 && n < (int) (sizeof(stbi__bmask)/sizeof(*stbi__bmask)));
   j->code_buffer = k & ~stbi__bmask[n];
   k &= stbi__bmask[n];
   j->code_bits -= n;
   return k + (stbi__jbias[n] & ~sgn);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
cmpl %esi, 0x4824(%rdi)
jge 0xdb64
movq %r14, %rdi
callq 0xd8c9
cmpl $0x11, %ebx
jae 0xdbb2
movl 0x4820(%r14), %esi
movl %esi, %edx
movl %ebx, %ecx
roll %cl, %edx
movl %ebx, %ecx
leaq 0x5991(%rip), %rax      # 0x13510
movl (%rax,%rcx,4), %eax
movl %eax, %edi
notl %edi
andl %edx, %edi
movl %edi, 0x4820(%r14)
subl %ebx, 0x4824(%r14)
andl %eax, %edx
xorl %eax, %eax
testl %esi, %esi
js 0xdba8
leaq 0x59bb(%rip), %rax      # 0x13560
movl (%rax,%rcx,4), %eax
addl %edx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x7bde(%rip), %rdi      # 0x15797
leaq 0x7952(%rip), %rsi      # 0x15512
leaq 0x7c0f(%rip), %rcx      # 0x157d6
movl $0x7b5, %edx            # imm = 0x7B5
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__jpeg_get_bit
stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j)
{
   unsigned int k;
   if (j->code_bits < 1) stbi__grow_buffer_unsafe(j);
   k = j->code_buffer;
   j->code_buffer <<= 1;
   --j->code_bits;
   return k & 0x80000000;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x4824(%rdi), %ecx
testl %ecx, %ecx
jg 0xdbed
movq %rbx, %rdi
callq 0xd8c9
movl 0x4824(%rbx), %ecx
movl 0x4820(%rbx), %eax
leal (%rax,%rax), %edx
movl %edx, 0x4820(%rbx)
decl %ecx
movl %ecx, 0x4824(%rbx)
andl $0x80000000, %eax       # imm = 0x80000000
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__jpeg_get_bits
stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)
{
   unsigned int k;
   if (j->code_bits < n) stbi__grow_buffer_unsafe(j);
   k = stbi_lrot(j->code_buffer, n);
   j->code_buffer = k & ~stbi__bmask[n];
   k &= stbi__bmask[n];
   j->code_bits -= n;
   return k;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl 0x4824(%rdi), %edx
cmpl %esi, %edx
jge 0xdc2b
movq %rbx, %rdi
callq 0xd8c9
movl 0x4824(%rbx), %edx
movl 0x4820(%rbx), %eax
movl %ebp, %ecx
roll %cl, %eax
movl %ebp, %ecx
leaq 0x58d2(%rip), %rsi      # 0x13510
movl (%rsi,%rcx,4), %ecx
movl %ecx, %esi
notl %esi
andl %eax, %esi
movl %esi, 0x4820(%rbx)
andl %ecx, %eax
subl %ebp, %edx
movl %edx, 0x4824(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__tga_read_rgb16
static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)
{
   stbi__uint16 px = (stbi__uint16)stbi__get16le(s);
   stbi__uint16 fiveBitMask = 31;
   // we have 3 channels with 5bits each
   int r = (px >> 10) & fiveBitMask;
   int g = (px >> 5) & fiveBitMask;
   int b = px & fiveBitMask;
   // Note that this saves the data in RGB(A) order, so it doesn't need to be swapped later
   out[0] = (stbi_uc)((r * 255)/31);
   out[1] = (stbi_uc)((g * 255)/31);
   out[2] = (stbi_uc)((b * 255)/31);

   // some people claim that the most significant bit might be used for alpha
   // (possibly if an alpha-bit is set in the "image descriptor byte")
   // but that only made 16bit test images completely translucent..
   // so let's treat all 15 and 16bit TGAs as RGB with no alpha.
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0xcd73
movzbl %al, %ebp
movq %r14, %rdi
callq 0xcd73
movzbl %al, %eax
movl %eax, %ecx
shll $0x8, %ecx
orl %ebp, %ecx
shrb $0x2, %al
andb $0x1f, %al
movzbl %al, %eax
movl %eax, %edx
shll $0x8, %edx
subl %eax, %edx
movl $0xffff, %eax           # imm = 0xFFFF
andl %eax, %edx
imull $0x2109, %edx, %edx     # imm = 0x2109
shrl $0x12, %edx
movb %dl, (%rbx)
shrl $0x5, %ecx
andl $0x1f, %ecx
movl %ecx, %edx
shll $0x8, %edx
subl %ecx, %edx
andl %eax, %edx
imull $0x2109, %edx, %ecx     # imm = 0x2109
shrl $0x12, %ecx
movb %cl, 0x1(%rbx)
andb $0x1f, %bpl
movzbl %bpl, %ecx
movl %ecx, %edx
shll $0x8, %edx
subl %ecx, %edx
andl %eax, %edx
imull $0x2109, %edx, %eax     # imm = 0x2109
shrl $0x12, %eax
movb %al, 0x2(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__zreceive
stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)
{
   unsigned int k;
   if (z->num_bits < n) stbi__fill_bits(z);
   k = z->code_buffer & ((1 << n) - 1);
   z->code_buffer >>= n;
   z->num_bits -= n;
   return k;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl 0x10(%rdi), %edx
cmpl %esi, %edx
jge 0x113e3
movq %rbx, %rdi
callq 0x11935
movl 0x10(%rbx), %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %ebp, %ecx
shll %cl, %eax
movl 0x14(%rbx), %esi
notl %eax
andl %esi, %eax
shrl %cl, %esi
movl %esi, 0x14(%rbx)
subl %ebp, %edx
movl %edx, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/avik-das[P]seam-carver/./stb_image.h
// Function: stbi__zhuffman_decode
stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)
{
   int b,s;
   if (a->num_bits < 16) stbi__fill_bits(a);
   b = z->fast[a->code_buffer & STBI__ZFAST_MASK];
   if (b) {
      s = b >> 9;
      a->code_buffer >>= s;
      a->num_bits -= s;
      return b & 511;
   }
   return stbi__zhuffman_decode_slowpath(a, z);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0xf, 0x10(%rdi)
jg 0x11a26
movq %rbx, %rdi
callq 0x11935
movl 0x14(%rbx), %edx
movl %edx, %eax
andl $0x1ff, %eax            # imm = 0x1FF
movzwl (%r14,%rax,2), %eax
testl %eax, %eax
je 0x11a50
movl %eax, %ecx
shrl $0x9, %ecx
shrl %cl, %edx
movl %edx, 0x14(%rbx)
subl %ecx, 0x10(%rbx)
andl $0x1ff, %eax            # imm = 0x1FF
jmp 0x11af5
movl %edx, %eax
rolw $0x8, %ax
movl %eax, %ecx
shrl $0x4, %ecx
movl $0xf0f, %esi            # imm = 0xF0F
andl %esi, %ecx
andl %esi, %eax
shll $0x4, %eax
orl %ecx, %eax
movl $0x3333, %ecx           # imm = 0x3333
movl %eax, %esi
andl %ecx, %esi
shrl $0x2, %eax
andl %ecx, %eax
leal (%rax,%rsi,4), %eax
movl $0x5555, %ecx           # imm = 0x5555
movl %eax, %esi
andl %ecx, %esi
shrl %eax
andl %ecx, %eax
leal (%rax,%rsi,2), %edi
xorl %esi, %esi
movq %rsi, %rax
incq %rsi
cmpl %edi, 0x448(%r14,%rax,4)
jle 0x11a8c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x7, %rsi
je 0x11af5
movb $0x7, %cl
subb %sil, %cl
shrl %cl, %edi
movzwl 0x412(%r14,%rsi,2), %eax
subq %rax, %rdi
movzwl 0x476(%r14,%rsi,2), %eax
addq %rdi, %rax
movzbl 0x484(%r14,%rax), %ecx
addq $-0x9, %rcx
cmpq %rsi, %rcx
jne 0x11afd
leaq 0x9(%rsi), %rcx
shrl %cl, %edx
movl %edx, 0x14(%rbx)
movl 0x10(%rbx), %ecx
subl %esi, %ecx
addl $-0x9, %ecx
movl %ecx, 0x10(%rbx)
movzwl 0x5a4(%r14,%rax,2), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x4494(%rip), %rdi      # 0x15f98
leaq 0x3a07(%rip), %rsi      # 0x15512
leaq 0x4496(%rip), %rcx      # 0x15fa8
movl $0xf97, %edx            # imm = 0xF97
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O3/w4kfu[P]HommI/Sound/sound.c
// Function: Make_wav_header
struct wav_header *Make_wav_header(unsigned int length_data)
{
	struct wav_header *new_header = NULL;

	if (!(new_header = malloc(sizeof (struct wav_header))))
	{
		perror("malloc()");
		return NULL;
	}
	memcpy(new_header->FileTypeBlocID, "RIFF", 4);
	new_header->FileSize = length_data + sizeof (struct wav_header) - 8;
	memcpy(new_header->FileFormatID, "WAVE", 4);
	memcpy(new_header->FormatBlocID, "fmt ", 4);
	new_header->BlocSize = 0x10;
	new_header->AudioFormat = 0x01;
	new_header->NumOfChan = 0x01;
	new_header->Frequency = 11025;

	new_header->BitsPerSample = 16;
	new_header->BytePerBloc = new_header->NumOfChan * new_header->BitsPerSample / 8;
	new_header->BytePerSec = new_header->Frequency * new_header->BytePerBloc;

	memcpy(new_header->DataBlocID, "data", 4);
	new_header->DataSize = length_data;
	return new_header;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %r14d
movl $0x2c, %edi
callq 0x1070
movq %rax, %rbx
testq %rax, %rax
je 0x1227
movl $0x46464952, (%rbx)     # imm = 0x46464952
leal 0x24(%r14), %eax
movl %eax, 0x4(%rbx)
movaps 0xe07(%rip), %xmm0      # 0x2010
movups %xmm0, 0x8(%rbx)
movaps 0xe0c(%rip), %xmm0      # 0x2020
movups %xmm0, 0x18(%rbx)
movl %r14d, 0x28(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xe02(%rip), %rdi       # 0x2030
callq 0x10a0
jmp 0x121c
// File: /workspace/github_c_makefile_star2_O3/w4kfu[P]HommI/Sound/sound.c
// Function: save_wav
int save_wav(char *filename, unsigned char *buf, unsigned int length_buf)
{
	struct wav_header *wheader = NULL;
	FILE *fout = NULL;

	if (!(wheader = Make_wav_header(length_buf)))
		return 0;
	if (!(fout = fopen(filename, "wb")))
	{
		perror("fopen()");
		return 0;
	}
	fwrite(wheader, sizeof (struct wav_header), 1, fout);
	fwrite(buf, length_buf, 1, fout);
	fclose(fout);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
movl %edx, %edi
callq 0x11dc
xorl %r14d, %r14d
testq %rax, %rax
je 0x12a3
movq %rax, %r12
leaq 0xddb(%rip), %rsi       # 0x2039
movq %r15, %rdi
callq 0x1090
testq %rax, %rax
je 0x12af
movq %rax, %r15
movl $0x2c, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rax, %rcx
callq 0x10b0
movl %ebp, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rcx
callq 0x10b0
movq %r15, %rdi
callq 0x1040
movl $0x1, %r14d
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd86(%rip), %rdi       # 0x203c
callq 0x10a0
jmp 0x12a3
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/w4kfu[P]HommI/Sound/main.c
// Function: main
int main(int argc, char *argv[])
{
        FILE *fin = NULL;
        unsigned int filesize = 0;
        unsigned char *buf = NULL;

        if (argc != 3)
        {
                fprintf(stderr, "%s <*.82M> <outfile>\n", argv[0]);
                return EXIT_FAILURE;
        }
        if (!(fin = fopen(argv[1], "rb")))
        {
                perror("fopen()");
                return EXIT_FAILURE;
        }
        filesize = getFileSize(fin);
        if (!(buf = malloc(sizeof (char) * filesize)))
        {
                perror("malloc()");
                fclose(fin);
                return EXIT_FAILURE;
        }
        fread(buf, filesize, 1, fin);
        save_wav(argv[2], buf, filesize);
        fclose(fin);
        return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
cmpl $0x3, %edi
jne 0x1370
movq 0x8(%r14), %rdi
leaq 0xd4a(%rip), %rsi       # 0x205a
callq 0x1090
testq %rax, %rax
je 0x137a
movq %rax, %rbx
movq %rax, %rdi
callq 0x12c0
movl %eax, %r15d
movq %r15, %rdi
callq 0x1070
testq %rax, %rax
je 0x1388
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x1030
movq 0x10(%r14), %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x1235
movq %rbx, %rdi
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x10d0
jmp 0x139c
leaq 0xcbb(%rip), %rdi       # 0x203c
callq 0x10a0
jmp 0x139c
leaq 0xca1(%rip), %rdi       # 0x2030
callq 0x10a0
movq %rbx, %rdi
callq 0x1040
movl $0x1, %eax
jmp 0x1364
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/poet.c
// Function: keysetup_encrypt_only
void keysetup_encrypt_only(poet_ctx_t *ctx, const unsigned char key[KEYLEN])
{
    AES_KEY expanded_key;
    __m128i sk = loadu(key);
    __m128i k = zero;
    ctx->l = one;
    __m128i k_axu = two;

    aes_expand_key(sk, expanded_key);
    aes_encrypt_3blocks_single_key(k, ctx->l, k_axu, expanded_key);

    aes_expand_key(k, ctx->aes_enc);
    aes_expand_key(k_axu, ctx->aes_axu);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
vmovups (%rsi), %xmm0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x2013
vmovdqa (%r14), %xmm0
vmovdqa 0x10(%r14), %xmm1
vmovdqa 0x20(%r14), %xmm2
vmovdqa 0x30(%r14), %xmm3
vpxor 0x210e(%rip), %xmm0, %xmm4 # 0x4020
vpxor 0x2116(%rip), %xmm0, %xmm5 # 0x4030
vaesenc %xmm1, %xmm0, %xmm0
vaesenc %xmm1, %xmm4, %xmm4
vaesenc %xmm1, %xmm5, %xmm1
vaesenc %xmm2, %xmm0, %xmm0
vaesenc %xmm2, %xmm4, %xmm4
vaesenc %xmm2, %xmm1, %xmm1
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm3, %xmm4, %xmm2
vmovdqa 0x40(%r14), %xmm4
vaesenc %xmm3, %xmm1, %xmm1
vaesenc %xmm4, %xmm0, %xmm0
vaesenc %xmm4, %xmm2, %xmm2
vaesenc %xmm4, %xmm1, %xmm1
vmovdqa 0x50(%r14), %xmm3
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm3, %xmm2, %xmm2
vaesenc %xmm3, %xmm1, %xmm1
vmovdqa 0x60(%r14), %xmm3
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm3, %xmm2, %xmm2
vaesenc %xmm3, %xmm1, %xmm1
vmovdqa 0x70(%r14), %xmm3
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm3, %xmm2, %xmm2
vaesenc %xmm3, %xmm1, %xmm1
vmovdqa 0x80(%r14), %xmm3
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm3, %xmm2, %xmm2
vaesenc %xmm3, %xmm1, %xmm1
vmovdqa 0x90(%r14), %xmm3
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm3, %xmm2, %xmm2
vmovdqa 0xa0(%r14), %xmm4
vaesenc %xmm3, %xmm1, %xmm1
vaesenclast %xmm4, %xmm0, %xmm0
vaesenclast %xmm4, %xmm2, %xmm2
vmovdqa %xmm2, 0x210(%rbx)
vaesenclast %xmm4, %xmm1, %xmm1
vmovdqa %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x2013
addq $0x160, %rbx            # imm = 0x160
vmovaps (%rsp), %xmm0
movq %rbx, %rdi
addq $0xc8, %rsp
popq %rbx
popq %r14
jmp 0x2013
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/poet.c
// Function: bit_revert
static unsigned long long reverse_bits(unsigned long long x)
{
    x = ((x & UINT64_C(0x0f0f0f0f0f0f0f0f)) << 4)
        | ((x & UINT64_C(0xf0f0f0f0f0f0f0f0)) >> 4);
    x = ((x & UINT64_C(0x3333333333333333)) << 2)
        | ((x & UINT64_C(0xcccccccccccccccc)) >> 2);
    x = ((x & UINT64_C(0x5555555555555555)) << 1)
        | ((x & UINT64_C(0xaaaaaaaaaaaaaaaa)) >> 1);
    return x;
}

// Assembly:
vpsllq $0x4, %xmm0, %xmm1
vpsrlq $0x4, %xmm0, %xmm0
vpternlogq $0xd8, 0x9a8(%rip){1to2}, %xmm1, %xmm0 # 0x4040
vpsllq $0x2, %xmm0, %xmm1
vpsrlq $0x2, %xmm0, %xmm0
vpternlogq $0xd8, 0x99b(%rip){1to2}, %xmm1, %xmm0 # 0x4048
vpaddq %xmm0, %xmm0, %xmm1
vpsrlq $0x1, %xmm0, %xmm0
vpternlogq $0xd8, 0x98f(%rip){1to2}, %xmm1, %xmm0 # 0x4050
retq
nop
// File: /workspace/github_c_makefile_star2_O3/dxwc[P]sfeed/sfeed_twtxt.c
// Function: main
int
main(int argc, char *argv[])
{
	FILE *fp;
	char *name;
	int i;

	if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
		err(1, "pledge");

	if (argc == 1) {
		printfeed(stdin, "");
	} else {
		for (i = 1; i < argc; i++) {
			if (!(fp = fopen(argv[i], "r")))
				err(1, "fopen: %s", argv[i]);
			name = ((name = strrchr(argv[i], '/'))) ? name + 1 : argv[i];
			printfeed(fp, name);
			if (ferror(fp))
				err(1, "ferror: %s", argv[i]);
			fclose(fp);
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x1, %edi
jne 0x12f4
movq 0x2cfd(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0xd57(%rip), %rsi       # 0x2044
callq 0x1395
jmp 0x135c
jle 0x135c
movq %rsi, %rbx
movl %edi, %r13d
movl $0x1, %ebp
leaq 0xcfc(%rip), %r14       # 0x2004
movq (%rbx,%rbp,8), %rdi
movq %r14, %rsi
callq 0x1170
movq (%rbx,%rbp,8), %r12
testq %rax, %rax
je 0x136d
movq %rax, %r15
movq %r12, %rdi
movl $0x2f, %esi
callq 0x10b0
leaq 0x1(%rax), %rsi
testq %rax, %rax
cmoveq %r12, %rsi
movq %r15, %rdi
callq 0x1395
movq %r15, %rdi
callq 0x1050
testl %eax, %eax
jne 0x137e
movq %r15, %rdi
callq 0x1060
incq %rbp
cmpq %rbp, %r13
jne 0x1308
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc92(%rip), %rsi       # 0x2006
movl $0x1, %edi
movq %r12, %rdx
jmp 0x138e
movq (%rbx,%rbp,8), %rdx
leaq 0xc87(%rip), %rsi       # 0x2010
movl $0x1, %edi
xorl %eax, %eax
callq 0x1160
// File: /workspace/github_c_makefile_star2_O3/dxwc[P]sfeed/sfeed_twtxt.c
// Function: printfeed
static void
printfeed(FILE *fp, const char *feedname)
{
	char *fields[FieldLast];
	struct tm *tm;
	time_t parsedtime;
	ssize_t linelen;

	while ((linelen = getline(&line, &linesize, fp)) > 0) {
		if (line[linelen - 1] == '\n')
			line[--linelen] = '\0';
		if (!parseline(line, fields))
			break;

		parsedtime = 0;
		if (strtotime(fields[FieldUnixTimestamp], &parsedtime))
			continue;
		if (!(tm = gmtime(&parsedtime)))
			err(1, "localtime");

		fprintf(stdout, "%04d-%02d-%02dT%02d:%02d:%02dZ\t",
		        tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
		        tm->tm_hour, tm->tm_min, tm->tm_sec);
		if (feedname[0])
			printf("[%s] ", feedname);
		fputs(fields[FieldTitle], stdout);
		if (fields[FieldLink][0]) {
			fputs(": ", stdout);
			fputs(fields[FieldLink], stdout);
		}
		putchar('\n');
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2d50(%rip), %rdi      # 0x4100
leaq 0x2d51(%rip), %rsi      # 0x4108
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jle 0x14df
leaq 0x8(%rsp), %r12
movq 0x2c04(%rip), %r15      # 0x3fd8
leaq 0x2d25(%rip), %rbp      # 0x4100
leaq 0x2d26(%rip), %r13      # 0x4108
movq 0x2d17(%rip), %rdi      # 0x4100
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x13fc
movb $0x0, -0x1(%rdi,%rax)
movq 0x2d04(%rip), %rdi      # 0x4100
leaq 0x10(%rsp), %rsi
callq 0x19c9
testq %rax, %rax
je 0x14df
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x1aeb
testl %eax, %eax
jne 0x14c8
movq %r12, %rdi
callq 0x1180
testq %rax, %rax
je 0x14ee
movq (%r15), %rdi
movl 0x14(%rax), %edx
movl $0x76c, %ecx            # imm = 0x76C
addl %ecx, %edx
movl 0x10(%rax), %ecx
incl %ecx
movl 0xc(%rax), %r8d
movl 0x8(%rax), %r9d
movl (%rax), %r10d
movl 0x4(%rax), %r11d
leaq 0xbbf(%rip), %rsi       # 0x2025
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x1120
addq $0x10, %rsp
cmpb $0x0, (%rbx)
je 0x148b
leaq 0xbc4(%rip), %rdi       # 0x2045
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1090
movq 0x18(%rsp), %rdi
movq (%r15), %rsi
callq 0x10c0
movq 0x20(%rsp), %rax
cmpb $0x0, (%rax)
je 0x14be
movq (%r15), %rsi
leaq 0xb9f(%rip), %rdi       # 0x204b
callq 0x10c0
movq 0x20(%rsp), %rdi
movq (%r15), %rsi
callq 0x10c0
movl $0xa, %edi
callq 0x1030
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jg 0x13e2
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb26(%rip), %rsi       # 0x201b
movl $0x1, %edi
xorl %eax, %eax
callq 0x1160
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/OhYee[P]computer_application_programming_experiment/utils/compare/test/test_compare.c
// Function: main
int main() {
    boolean       pass = T;
    testcase_char test_char[] = {
        {arg1: 'a', arg2: 'b', want_res: -1},
        {arg1: 'a', arg2: 'a', want_res: 0},
        {arg1: '0', arg2: '0', want_res: 0},
        {arg1: '1', arg2: '!', want_res: 1},
    };
    testcase_string test_string[] = {
        {arg1: "Hello", arg2: "Hello", want_res: 0},
        {arg1: "Hi", arg2: "Hi0", want_res: -1},
        {arg1: "Hi", arg2: "Hi\0", want_res: 0},
        {arg1: "ABC\0B", arg2: "ABC\0A", want_res: 0},
    };

    for (int i = 0; i < sizeof(test_char) / sizeof(testcase_char); ++i) {
        testcase_char *tc = &test_char[i];
        int            got = compare_char(tc->arg1, tc->arg2);
        if (got * tc->want_res < 0 || (tc->want_res == 0 && got != 0)) {
            pass = F;
            print_err("Check error at compare_char('%c','%c')=%d, got=%d\n",
                      tc->arg1, tc->arg2, tc->want_res,
                      compare_char(tc->arg1, tc->arg2));
        }
    }

    for (int i = 0; i < sizeof(test_string) / sizeof(testcase_string); ++i) {
        testcase_string *tc = &test_string[i];
        if (compare_string(tc->arg1, tc->arg2) != tc->want_res) {
            pass = F;
            print_err("Check error at compare_string('%s','%s')=%d\n", tc->arg1,
                      tc->arg2, tc->want_res);
        }
    }

    if (pass) {
        print_ok("All testcase passed\n");
        return 0;
    } else {
        print_err("Some error\n");
        return 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0xbce(%rip), %rax       # 0x2004
movl (%rax), %r13d
leaq 0xbc8(%rip), %rax       # 0x2008
movl (%rax), %eax
movl %eax, 0x4(%rsp)
leaq 0xc33(%rip), %rbx       # 0x2080
xorl %r12d, %r12d
movsbl (%rbx,%r12,8), %ebp
movsbl 0x1(%rbx,%r12,8), %r14d
movl %ebp, %edi
movl %r14d, %esi
callq 0x13d0
movl 0x4(%rbx,%r12,8), %r15d
movl %r15d, %ecx
imull %eax, %ecx
testl %ecx, %ecx
js 0x1483
testl %r15d, %r15d
setne %cl
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x14ab
movl %ebp, %edi
movl %r14d, %esi
callq 0x13d0
leaq 0xc19(%rip), %rdi       # 0x20ad
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
movl %eax, %r8d
xorl %eax, %eax
callq 0x1070
movl 0x4(%rsp), %r13d
incq %r12
cmpq $0x4, %r12
jne 0x1450
movl $0x10, %r12d
leaq 0x28bf(%rip), %rbp      # 0x3d80
leaq 0xc18(%rip), %rbx       # 0x20e0
movq -0x10(%r12,%rbp), %r14
movq -0x8(%r12,%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x13dc
movl (%r12,%rbp), %ecx
cmpl %ecx, %eax
je 0x14fa
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1070
movl 0x4(%rsp), %r13d
addq $0x18, %r12
cmpq $0x70, %r12
jne 0x14c8
testl %r13d, %r13d
je 0x151b
leaq 0xbfd(%rip), %rdi       # 0x210d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1301
jmp 0x152e
leaq 0xc00(%rip), %rdi       # 0x2122
xorl %eax, %eax
callq 0x1070
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/baileywjohnson[P]mpi-matrix-mult/print-matrix.c
// Function: main
int main(int argc, char *argv[]){

	int rows, columns;
	double *A;
	char *in;

	int c;
	if(argc != 3){
		printf("USAGE: print-matrix -i <your filename>\n");
		exit(1);
	}
	while((c = getopt(argc, argv, "i:")) != -1){
		switch(c){
			case 'i':
				in = optarg;	
				break;
			case '?':
				exit(1);
				break;
			default:
				break;
		}
	}

	read_matrix(in, &rows, &columns, &A);
	print_matrix(rows, columns, A);
	free(A);

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x3, %edi
jne 0x1299
movq %rsi, %rbx
leaq 0xdde(%rip), %r15       # 0x2004
movq 0x2dc3(%rip), %r12      # 0x3ff0
movl $0x3, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1070
cmpl $-0x1, %eax
je 0x1254
cmpl $0x69, %eax
je 0x124e
cmpl $0x3f, %eax
jne 0x122d
jmp 0x12a5
movq (%r12), %r14
jmp 0x122d
leaq 0xc(%rsp), %rbx
leaq 0x8(%rsp), %r15
leaq 0x10(%rsp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x1453
movl (%rbx), %edi
movl (%r15), %esi
movq (%r12), %rdx
callq 0x1351
movq (%r12), %rdi
callq 0x10a0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xd67(%rip), %rdi       # 0x2007
callq 0x1040
movl $0x1, %edi
callq 0x1050
nop
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/semind.c
// Function: semind_error
static void semind_error(int status, int errnum, const char *fmt, ...)
{
	va_list ap;
	semind_print_progname();

	va_start(ap, fmt);
	vfprintf(stderr, fmt, ap);
	va_end(ap);

	if (errnum > 0)
		fprintf(stderr, ": %s", strerror(errnum));

	fprintf(stderr, "\n");

	if (status)
		exit(status);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r14
movl %esi, %ebp
movl %edi, %ebx
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0xf5ce
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq 0x569db(%rip), %r15     # 0x65fb0
movq (%r15), %rdi
movq 0x5c0e1(%rip), %rdx     # 0x6b6c0
leaq 0x35807(%rip), %rsi     # 0x44ded
xorl %eax, %eax
callq 0xf4b0
movq 0x5d0e4(%rip), %rdx     # 0x6c6d8
testq %rdx, %rdx
je 0xf60a
movq (%r15), %rdi
leaq 0x357ea(%rip), %rsi     # 0x44ded
xorl %eax, %eax
callq 0xf4b0
leaq 0x20(%rsp), %rax
movq %rsp, %rdx
movq %rax, 0x10(%rdx)
leaq 0x100(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, (%rdx)
movq (%r15), %rdi
movq %r14, %rsi
callq 0xf1f0
testl %ebp, %ebp
jg 0xf65b
movq (%r15), %rsi
pushq $0xa
popq %rdi
callq 0xf200
testl %ebx, %ebx
jne 0xf67b
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %r14
movl %ebp, %edi
callq 0xf2b0
leaq 0x3512e(%rip), %rsi     # 0x4479a
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xf4b0
jmp 0xf63e
pushq $0x1
popq %rdi
callq 0xf120
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/semind.c
// Function: parse_cmdline_add
static void parse_cmdline_add(int argc, char **argv)
{
	static const struct option long_options[] = {
		{ "include-local-syms", no_argument, NULL, 1 },
		{ "verbose", no_argument, NULL, 'v' },
		{ "help", no_argument, NULL, 'h' },
		{ NULL }
	};
	int c;

	opterr = 0;

	while ((c = getopt_long(argc, argv, "+vh", long_options, NULL)) != -1) {
		switch (c) {
			case 1:
				semind_include_local_syms = 1;
				break;
			case 'v':
				semind_verbose++;
				break;
			case 'h':
				show_help_add(0);
			case '?':
				goto done;
		}
	}
done:
	if (optind == argc) {
		message("more arguments required");
		show_usage();
	}

	// enforce tabstop
	tabstop = 1;

	// step back since sparse_initialize will ignore argv[0].
	optind--;

	sparse_initialize(argc - optind, argv + optind, &semind_filelist);
	dissect_show_all_symbols = 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
movq 0x55acb(%rip), %rax     # 0x65f48
movl $0x0, (%rax)
leaq 0x33c95(%rip), %r15     # 0x4411f
leaq 0x4d32f(%rip), %r12     # 0x5d7c0
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xf350
cmpl $0x3e, %eax
jle 0x104b6
cmpl $0x76, %eax
jne 0x104c4
incl 0x5c238(%rip)           # 0x6c6ec
jmp 0x10491
cmpl $0x1, %eax
jne 0x104d0
movb $0x1, 0x5c226(%rip)     # 0x6c6e8
jmp 0x10491
cmpl $0x3f, %eax
je 0x104d5
cmpl $0x68, %eax
jne 0x10491
jmp 0x10521
cmpl $-0x1, %eax
jne 0x10491
movq 0x55a54(%rip), %rcx     # 0x65f30
movslq (%rcx), %rax
cmpl %ebx, %eax
je 0x1053d
leaq 0x5a116(%rip), %rdx     # 0x6a600
movl $0x1, %ebp
movl %ebp, (%rdx)
leaq -0x1(%rax), %rdx
movl %edx, (%rcx)
subl %edx, %ebx
leaq (%r14,%rax,8), %rsi
addq $-0x8, %rsi
leaq 0x5c1e8(%rip), %rdx     # 0x6c6f0
movl %ebx, %edi
callq 0x13862
leaq 0x5cc0e(%rip), %rax     # 0x6d124
movl %ebp, (%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x5b198(%rip), %rsi     # 0x6b6c0
leaq 0x33c0c(%rip), %rdi     # 0x4413b
xorl %eax, %eax
callq 0xf050
xorl %edi, %edi
callq 0xf120
leaq 0x33bdf(%rip), %rdx     # 0x44123
xorl %edi, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0xf570
callq 0x110e2
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/semind.c
// Function: parse_cmdline_rm
static void parse_cmdline_rm(int argc, char **argv)
{
	static const struct option long_options[] = {
		{ "verbose", no_argument, NULL, 'v' },
		{ "help", no_argument, NULL, 'h' },
		{ NULL }
	};
	int c;

	while ((c = getopt_long(argc, argv, "+vh", long_options, NULL)) != -1) {
		switch (c) {
			case 'v':
				semind_verbose++;
				break;
			case 'h':
				show_help_rm(0);
		}
	}

	if (optind == argc) {
		message("more arguments required");
		show_usage();
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
leaq 0x33889(%rip), %r15     # 0x4411f
leaq 0x4cfc3(%rip), %r12     # 0x5d860
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xf350
cmpl $0x76, %eax
je 0x108c1
cmpl $-0x1, %eax
je 0x108c9
cmpl $0x68, %eax
jne 0x1089d
jmp 0x108e0
incl 0x5be25(%rip)           # 0x6c6ec
jmp 0x1089d
movq 0x55660(%rip), %rax     # 0x65f30
cmpl %ebx, (%rax)
je 0x108fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x5add9(%rip), %rsi     # 0x6b6c0
leaq 0x33cec(%rip), %rdi     # 0x445da
xorl %eax, %eax
callq 0xf050
xorl %edi, %edi
callq 0xf120
leaq 0x33820(%rip), %rdx     # 0x44123
xorl %edi, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0xf570
callq 0x110e2