LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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, %r15d
movq %rdi, %r14
movl %edx, %eax
imull %esi, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x1120
movq %rax, %rbx
testq %rax, %rax
je 0x540d
xorl %ecx, %ecx
testl %r15d, %r15d
movl $0x0, %eax
cmovgl %r15d, %eax
cmpq %rcx, %rax
je 0x535b
movl (%r14,%rcx,4), %edx
movl %edx, (%rbx,%rcx,8)
orl $-0x1, 0x4(%rbx,%rcx,8)
incq %rcx
jmp 0x5345
leal -0x1(%r15), %ecx
movslq %ebp, %rdx
movq %rdx, 0x18(%rsp)
movslq %r15d, %rdx
movq %rdx, 0x10(%rsp)
leaq (,%rdx,8), %rdx
movq %rdx, 0x8(%rsp)
pushq $0x1
popq %r11
pushq $-0x1
popq %rdx
movq %rbx, %r10
cmpq 0x18(%rsp), %r11
jge 0x5428
movq %r11, 0x20(%rsp)
imulq 0x10(%rsp), %r11
xorl %r15d, %r15d
cmpq %rax, %r15
je 0x53fb
leaq 0x1(%r15), %r12
cmpq %rcx, %r15
movl %r12d, %ebp
cmovel %r15d, %ebp
cmpq $0x1, %r15
movl %r15d, %edi
adcl $-0x1, %edi
movslq %edi, %rsi
leaq (%r10,%rsi,8), %rsi
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movl %edx, %r9d
cmpl %ebp, %edi
ja 0x53e6
movl (%rsi), %r8d
cmpl %r13d, %r8d
cmovll %r8d, %r13d
cmovll %edi, %r9d
addq $0x8, %rsi
incl %edi
jmp 0x53cc
addq %r11, %r15
addl (%r14,%r15,4), %r13d
movl %r13d, (%rbx,%r15,8)
movl %r9d, 0x4(%rbx,%r15,8)
movq %r12, %r15
jmp 0x539f
movq 0x20(%rsp), %r11
incq %r11
addq 0x8(%rsp), %r10
jmp 0x5386
movq 0x11be4(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xcec1(%rip), %rsi      # 0x122df
pushq $0x4a
popq %rdx
xorl %eax, %eax
callq 0x10d0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r14d
movl %esi, %ebp
movq %rdi, %r15
movslq %edx, %rdi
shlq $0x2, %rdi
callq 0x1120
movq %rax, %rbx
testq %rax, %rax
je 0x54ba
leal -0x1(%r14), %eax
imull %ebp, %eax
xorl %edx, %edx
testl %ebp, %ebp
movl $0x0, %esi
cmovgl %ebp, %esi
movslq %eax, %rcx
leaq (%r15,%rcx,8), %rdi
pushq $-0x1
popq %rcx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
cmpq %rdx, %rsi
je 0x5498
movl (%rdi,%rdx,8), %r9d
cmpl %r8d, %r9d
cmovbl %r9d, %r8d
cmovbl %edx, %ecx
incq %rdx
jmp 0x5480
xorl %edx, %edx
testl %r14d, %r14d
cmovlel %edx, %r14d
cmpq %rdx, %r14
je 0x54d5
movl %ecx, (%rbx,%rdx,4)
incq %rdx
addl %eax, %ecx
movslq %ecx, %rcx
movl 0x4(%r15,%rcx,8), %ecx
subl %ebp, %eax
jmp 0x54a1
movq 0x11b37(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xce14(%rip), %rsi      # 0x122df
pushq $0x75
popq %rdx
xorl %eax, %eax
callq 0x10d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, 0x10(%rsp)
movq %rdi, %r12
leal -0x1(%rbx), %r13d
movl %ecx, %eax
imull %r13d, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %rdi
callq 0x1120
testq %rax, %rax
movq %rax, 0x8(%rsp)
je 0x55cc
xorl %r14d, %r14d
testl %r13d, %r13d
cmovlel %r14d, %r13d
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
leaq (,%r13,2), %rdx
addq %r13, %rdx
movq %rax, %rsi
addq $0x2, %rsi
movslq %ebx, %rdi
leaq (%rdi,%rdi,2), %rdi
addq $-0x3, %rdi
movq %rbx, %rax
cmpq %rcx, %r14
je 0x55e9
movl %r14d, %r8d
notl %r8d
addl %ebp, %r8d
movslq %r8d, %r8
movq 0x10(%rsp), %r9
movl (%r9,%r8,4), %r8d
movl %r14d, %r9d
imull %eax, %r9d
xorl %r10d, %r10d
xorl %r11d, %r11d
cmpq %r10, %rdx
je 0x55c4
xorl %r13d, %r13d
cmpl %r8d, %r11d
sete %r13b
leal (%r11,%r13), %ebx
addl %r9d, %ebx
movslq %ebx, %rbx
leaq (%rbx,%rbx,2), %rbx
movb (%r12,%rbx), %r15b
movb %r15b, -0x2(%rsi,%r10)
movb 0x1(%r12,%rbx), %r15b
movb %r15b, -0x1(%rsi,%r10)
movb 0x2(%r12,%rbx), %bl
movb %bl, (%rsi,%r10)
addl %r13d, %r11d
incl %r11d
addq $0x3, %r10
jmp 0x557f
incq %r14
addq %rdi, %rsi
jmp 0x5554
movq 0x11a25(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xcd02(%rip), %rsi      # 0x122df
movl $0x9e, %edx
xorl %eax, %eax
callq 0x10d0
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r12
movl %edx, %eax
imull %esi, %eax
movslq %eax, %rdi
callq 0x1120
movq %rax, %rbx
testq %rax, %rax
je 0x5711
xorl %edi, %edi
testl %r15d, %r15d
movl $0x0, %eax
cmovgl %r15d, %eax
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
movslq %r15d, %rdx
leaq (,%rdx,4), %rsi
pushq $0x1
popq %r8
movq %r12, %r9
cmpq %rcx, %rdi
je 0x567b
xorl %r10d, %r10d
cmpq %r10, %rax
je 0x5673
movl (%r9,%r10,4), %r11d
cmpl %r8d, %r11d
cmoval %r11d, %r8d
incq %r10
jmp 0x565e
incq %rdi
addq %rsi, %r9
jmp 0x5656
cvtsi2sd %r8d, %xmm0
xorl %edi, %edi
movsd 0xcb46(%rip), %xmm1     # 0x121d0
movq %rbx, %r8
cmpq %rcx, %rdi
je 0x56c4
xorl %r9d, %r9d
cmpq %r9, %rax
je 0x56b9
movl (%r12,%r9,4), %r10d
cvtsi2sd %r10, %xmm2
divsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
cvttsd2si %xmm2, %r10d
movb %r10b, (%r8,%r9)
incq %r9
jmp 0x5695
incq %rdi
addq %rsi, %r12
addq %rdx, %r8
jmp 0x568d
leaq 0xcc34(%rip), %rdi      # 0x122ff
xorl %r12d, %r12d
movq %r14, %rsi
xorl %eax, %eax
callq 0x1080
pushq $0x1
popq %r13
pushq $0x50
popq %r9
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %r13d, %ecx
movq %rbx, %r8
callq 0x50ea
testl %eax, %eax
je 0x5734
movq %rbx, %rdi
callq 0x1030
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x118e0(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xcbbd(%rip), %rsi      # 0x122df
movl $0xbf, %edx
xorl %eax, %eax
callq 0x10d0
pushq $0x1
popq %r12
jmp 0x56f7
movq 0x118bd(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xcbcb(%rip), %rsi      # 0x12310
movl $0xd4, %edx
xorl %eax, %eax
callq 0x10d0
movl %r13d, %r12d
jmp 0x56f7
// File: /workspace/github_c_makefile_star2_O2/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, (%rsp)
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r13
movl %edx, %eax
imull %ecx, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x1120
movq %rax, %rbx
testq %rax, %rax
je 0x581d
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1110
leal -0x1(%r14), %eax
cltq
movl %ebp, %ecx
imull %eax, %ecx
testq %rax, %rax
js 0x57d0
movl (%r12), %edx
addl %ecx, %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
movw $0xff, (%rbx,%rdx)
movb $0x0, 0x2(%rbx,%rdx)
decq %rax
subl %ebp, %ecx
addq $0x4, %r12
jmp 0x57a8
leaq 0xcb28(%rip), %rdi      # 0x122ff
xorl %r12d, %r12d
movq (%rsp), %r15
movq %r15, %rsi
xorl %eax, %eax
callq 0x1080
pushq $0x3
popq %rcx
pushq $0x50
popq %r9
movq %r15, %rdi
movl %ebp, %esi
movl %r14d, %edx
movq %rbx, %r8
callq 0x50ea
testl %eax, %eax
je 0x5835
movq %rbx, %rdi
callq 0x1030
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x117d4(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xcab1(%rip), %rsi      # 0x122df
movl $0xea, %edx
jmp 0x584b
movq 0x117bc(%rip), %rax     # 0x16ff8
movq (%rax), %rdi
leaq 0xcaca(%rip), %rsi      # 0x12310
movl $0xfd, %edx
xorl %eax, %eax
callq 0x10d0
pushq $0x1
popq %r12
jmp 0x5803
// File: /workspace/github_c_makefile_star2_O2/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 $0x428, %rsp            # imm = 0x428
movl %r8d, %r14d
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r13
movq %rdi, 0x18(%rsp)
movq %rsi, %rdi
movl %edx, %esi
movl %ecx, %edx
callq 0x5236
movq %rax, %rbx
testq %rax, %rax
je 0x597c
movl %r14d, 0xc(%rsp)
testl %r14d, %r14d
je 0x5981
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x5304
testq %rax, %rax
je 0x597c
movq %rax, %r14
movq %rax, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x543a
movq %r13, 0x10(%rsp)
movq %rax, %r13
leaq 0xca72(%rip), %rdx      # 0x1239e
xorl %r12d, %r12d
leaq 0x20(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq 0x18(%rsp), %rcx
movl 0xc(%rsp), %r8d
xorl %eax, %eax
callq 0x1090
movq 0x10(%rsp), %rdi
movq %r13, %rsi
movl %r15d, %edx
movl %ebp, %ecx
leaq 0x20(%rsp), %r8
callq 0x5756
testl %eax, %eax
jne 0x59c2
movq 0x10(%rsp), %rdi
movq %r13, %rsi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x54e3
movq %rax, %r12
jmp 0x59c2
xorl %r14d, %r14d
jmp 0x59bc
leaq 0xca04(%rip), %rdx      # 0x1238c
xorl %r14d, %r14d
leaq 0x20(%rsp), %r12
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
movq 0x18(%rsp), %rcx
xorl %eax, %eax
callq 0x1090
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
movq %r12, %rcx
callq 0x55fd
testl %eax, %eax
je 0x58fb
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq %r13, %rdi
callq 0x1030
movq %r12, %rax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x2c
popq %rdi
callq 0x1070
movq %rax, %rbx
testq %rax, %rax
je 0x1205
movl $0x46464952, (%rbx)     # imm = 0x46464952
leal 0x24(%r14), %eax
movl %eax, 0x4(%rbx)
movaps 0xe29(%rip), %xmm0      # 0x2010
movups %xmm0, 0x8(%rbx)
movaps 0xe2e(%rip), %xmm0      # 0x2020
movups %xmm0, 0x18(%rbx)
movl %r14d, 0x28(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xe24(%rip), %rdi       # 0x2030
callq 0x10a0
jmp 0x11fa
// File: /workspace/github_c_makefile_star2_O2/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 0x11bc
xorl %r14d, %r14d
testq %rax, %rax
je 0x127d
movq %rax, %r12
leaq 0xdfd(%rip), %rsi       # 0x2039
movq %r15, %rdi
callq 0x1090
testq %rax, %rax
je 0x1289
movq %rax, %r15
pushq $0x2c
popq %rsi
pushq $0x1
popq %r14
movq %r12, %rdi
movq %r14, %rdx
movq %rax, %rcx
callq 0x10b0
movl %ebp, %esi
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x10b0
movq %r15, %rdi
callq 0x1040
pushq $0x1
popq %r14
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdac(%rip), %rdi       # 0x203c
callq 0x10a0
jmp 0x127d
nop
// File: /workspace/github_c_makefile_star2_O2/w4kfu[P]HommI/Sound/main.c
// Function: getFileSize
int getFileSize(FILE *inFile)
{
        int fileSize = 0;

        fseek(inFile ,0, SEEK_END);
        fileSize = ftell(inFile);
        fseek(inFile, 0, SEEK_SET);
        return fileSize;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x2
popq %rdx
xorl %esi, %esi
callq 0x1080
movq %rbx, %rdi
callq 0x1060
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1080
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
cmpl $0x3, %edi
jne 0x1344
movq 0x8(%rbx), %rdi
leaq 0xd74(%rip), %rsi       # 0x205a
callq 0x1090
testq %rax, %rax
je 0x1361
movq %rax, %r14
movq %rax, %rdi
callq 0x1298
movl %eax, %r15d
movq %r15, %rdi
callq 0x1070
testq %rax, %rax
je 0x136f
movq %rax, %r12
pushq $0x1
popq %rdx
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rcx
callq 0x1030
movq 0x10(%rbx), %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x1213
movq %r14, %rdi
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x2cad(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0xcec(%rip), %rsi       # 0x2044
xorl %eax, %eax
callq 0x1050
jmp 0x1383
leaq 0xcd4(%rip), %rdi       # 0x203c
callq 0x10a0
jmp 0x1383
leaq 0xcba(%rip), %rdi       # 0x2030
callq 0x10a0
movq %r14, %rdi
callq 0x1040
pushq $0x1
popq %rax
jmp 0x1338
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/encrypt.c
// Function: crypto_aead_decrypt
int crypto_aead_decrypt(unsigned char *m, unsigned long long *mlen,
                        unsigned char *nsec,
                        const unsigned char *c, unsigned long long clen,
                        const unsigned char *ad, unsigned long long adlen,
                        const unsigned char *npub,
                        const unsigned char *k)
{
    poet_ctx_t ctx;
    (void)nsec;
    
    if (clen < CRYPTO_ABYTES) {
        return -1;
    }

    keysetup(&ctx, k);
    
    if (npub) {
        unsigned char *header = malloc((size_t)(adlen + CRYPTO_NPUBBYTES));
        memcpy(header, ad, adlen);
        memcpy(header + adlen, npub, CRYPTO_NPUBBYTES);
        process_header(&ctx, header, adlen + CRYPTO_NPUBBYTES);
        free(header);
    } else {
        process_header(&ctx, ad, adlen);
    }
    
    unsigned char tag[CRYPTO_ABYTES];
    memcpy(tag, c + (clen - CRYPTO_ABYTES), CRYPTO_ABYTES);
    return decrypt_final(&ctx, c, clen - CRYPTO_ABYTES, tag, m, mlen);
}

// Assembly:
cmpq $0x10, %r8
jae 0x12a4
pushq $-0x1
popq %rax
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %r9, %r13
movq %r8, %r14
movq %rcx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movq 0x2d0(%rsp), %rsi
movq 0x2c0(%rsp), %rbp
leaq 0x20(%rsp), %rdi
callq 0x10d0
cmpq $0x0, 0x2c8(%rsp)
je 0x1348
addq $0x10, %rbp
movq %rbp, %rdi
callq 0x1030
movq %rbx, 0x8(%rsp)
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movq 0x2c0(%rsp), %rdx
callq 0x10c0
movq 0x2c8(%rsp), %rax
vmovups (%rax), %xmm0
movq 0x2c0(%rsp), %rax
vmovups %xmm0, (%rbx,%rax)
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x10b0
movq %rbx, %rdi
movq 0x8(%rsp), %rbx
callq 0x1070
jmp 0x1358
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x10b0
vmovups -0x10(%r12,%r14), %xmm0
addq $-0x10, %r14
leaq 0x10(%rsp), %rcx
vmovaps %xmm0, (%rcx)
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %r8
movq %rbx, %r9
callq 0x1080
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/poet.c
// Function: load_n_bytes
static __m128i load_n_bytes(const uint8_t* p, const size_t num_bytes)
{
    if (num_bytes == 0) {
        return zero;
    } else if (num_bytes % 16 == 0) {
        return _mm_loadu_si128((__m128i*)p);
    } else {
        __m128i tmp;
        unsigned i;

        for (i = 0; i < num_bytes; ++i) {
            ((char*)&tmp)[i] = ((char*)p)[i];
        }

        return tmp;
    }
}

// Assembly:
testq %rsi, %rsi
je 0x17b9
testb $0xf, %sil
je 0x17be
xorl %eax, %eax
movl %eax, %eax
cmpq %rsi, %rax
jae 0x17b2
movb (%rdi,%rax), %cl
movb %cl, -0x18(%rsp,%rax)
incl %eax
jmp 0x17a0
vmovaps -0x18(%rsp), %xmm0
retq
vxorps %xmm0, %xmm0, %xmm0
retq
vmovups (%rdi), %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1901
vmovdqa (%r14), %xmm0
vmovdqa 0x10(%r14), %xmm1
vmovdqa 0x20(%r14), %xmm2
vmovdqa 0x30(%r14), %xmm3
vpxor 0x1800(%rip), %xmm0, %xmm4 # 0x3000
vpxor 0x1818(%rip), %xmm0, %xmm5 # 0x3020
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 0x1901
addq $0x160, %rbx            # imm = 0x160
vmovaps (%rsp), %xmm0
movq %rbx, %rdi
addq $0xc8, %rsp
popq %rbx
popq %r14
jmp 0x1901
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/poet.c
// Function: shift_left
static __m128i shift_left(__m128i a, const size_t num_bytes) {
    if (num_bytes == 0) {
        return a;
    } else if (num_bytes >= 16) {
        return zero;
    } else if (num_bytes < 8) {
        return shift_left_in(a, num_bytes);
    } else if (num_bytes == 8) { 
        return _mm_slli_si128(a,  8); 
    } else {
        a = _mm_slli_si128(a,  8);
        return _mm_slli_epi64(a, (num_bytes-8) * 8);
    }
}

// Assembly:
vmovapd %xmm0, %xmm1
vxorpd %xmm0, %xmm0, %xmm0
cmpq $0xf, %rdi
jbe 0x24a4
retq
cmpq $0x7, %rdi
ja 0x24cc
shll $0x3, %edi
vmovd %edi, %xmm0
vpsllq %xmm0, %xmm1, %xmm0
vpslldq $0x8, %xmm1, %xmm1      # xmm1 = zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7]
pushq $0x40
popq %rax
subl %edi, %eax
vmovd %eax, %xmm2
vpsrlq %xmm2, %xmm1, %xmm1
vpor %xmm0, %xmm1, %xmm0
retq
vpslldq $0x8, %xmm1, %xmm0      # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7]
cmpq $0x8, %rdi
je 0x24a3
leal -0x40(,%rdi,8), %eax
vmovd %eax, %xmm1
vpsllq %xmm1, %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/poet.c
// Function: shift_right
static __m128i shift_right(__m128i a, const size_t num_bytes) {
    if (num_bytes == 0) {
        return a;
    } else if (num_bytes >= 16) {
        return zero;
    } else if (num_bytes < 8) {
        return shift_right_in(a, num_bytes);
    } else if (num_bytes == 8) { 
        return _mm_srli_si128(a,  8); 
    } else {
        a = _mm_srli_si128(a,  8);
        return _mm_srli_epi64(a, (num_bytes-8) * 8);
    }
}

// Assembly:
vmovapd %xmm0, %xmm1
testq %rdi, %rdi
je 0x2db4
vxorpd %xmm0, %xmm0, %xmm0
cmpq $0xf, %rdi
jbe 0x2db9
retq
vmovapd %xmm1, %xmm0
retq
cmpq $0x7, %rdi
ja 0x2de1
shll $0x3, %edi
vmovd %edi, %xmm0
vpsrlq %xmm0, %xmm1, %xmm0
vpsrldq $0x8, %xmm1, %xmm1      # xmm1 = xmm1[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
pushq $0x40
popq %rax
subl %edi, %eax
vmovd %eax, %xmm2
vpsllq %xmm2, %xmm1, %xmm1
vpor %xmm0, %xmm1, %xmm0
retq
vpsrldq $0x8, %xmm1, %xmm0      # xmm0 = xmm1[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
cmpq $0x8, %rdi
je 0x2db3
leal -0x40(,%rdi,8), %eax
vmovd %eax, %xmm1
vpsrlq %xmm1, %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes128ni/ref/poet.c
// Function: reverse_bits
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:
movq %rdi, %rax
shlq $0x4, %rax
movabsq $-0xf0f0f0f0f0f0f10, %rcx # imm = 0xF0F0F0F0F0F0F0F0
andq %rax, %rcx
shrq $0x4, %rdi
movabsq $0xf0f0f0f0f0f0f0f, %rax # imm = 0xF0F0F0F0F0F0F0F
andq %rdi, %rax
orq %rcx, %rax
movabsq $-0xccccccccccccccd, %rcx # imm = 0xF333333333333333
andq %rax, %rcx
shrq $0x2, %rax
movabsq $0x3333333333333333, %rdx # imm = 0x3333333333333333
andq %rax, %rdx
leaq (%rdx,%rcx,4), %rax
movabsq $-0x2aaaaaaaaaaaaaab, %rcx # imm = 0xD555555555555555
andq %rax, %rcx
shrq %rax
movabsq $0x5555555555555555, %rdx # imm = 0x5555555555555555
andq %rax, %rdx
leaq (%rdx,%rcx,2), %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/motet-a[P]libforks/examples/communication.c
// Function: main
int main() {
  libforks_ServerConn conn;
  assert(libforks_start(&conn) == libforks_OK);

  int socket_fd;

  assert(libforks_fork(
    conn,
    NULL, // pid_ptr
    &socket_fd, // socket_fd_ptr
    NULL, // exit_fd_ptr
    child_main
  ) == libforks_OK);

  puts("Type text and press enter");
  puts("Exit with Ctrl+D");

  while (true) {
    char c;
    int read_res = read(STDIN_FILENO, &c, 1);
    if (read_res == 0) { // EOF
      break;
    }
    assert(read_res == 1);

    assert(write(socket_fd, &c, 1) == 1);
    assert(read(socket_fd, &c, 1) == 1);
    assert(write(STDOUT_FILENO, &c, 1) == 1);
  }

  assert(libforks_stop(conn) == libforks_OK);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %rdi
callq 0x185a
testl %eax, %eax
jne 0x1434
movq 0x8(%rsp), %rdi
leaq 0x15d(%rip), %r8        # 0x147f
leaq 0x4(%rsp), %rdx
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x2156
testl %eax, %eax
jne 0x144d
leaq 0x1d57(%rip), %rdi      # 0x3096
callq 0x1080
leaq 0x1d65(%rip), %rdi      # 0x30b0
callq 0x1080
leaq 0x3(%rsp), %rbx
pushq $0x1
popq %r14
pushq $0x1
popq %rbp
xorl %edi, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1110
cmpl $0x1, %eax
jne 0x13c4
movl 0x4(%rsp), %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10a0
cmpq $0x1, %rax
jne 0x13e5
movl 0x4(%rsp), %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1110
cmpq $0x1, %rax
jne 0x13fe
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10a0
cmpq $0x1, %rax
je 0x135c
leaq 0x1d56(%rip), %rdi      # 0x3108
leaq 0x1c70(%rip), %rsi      # 0x3029
leaq 0x1c82(%rip), %rcx      # 0x3042
pushq $0x35
jmp 0x142e
testl %eax, %eax
jne 0x1417
movq 0x8(%rsp), %rdi
callq 0x22fa
testl %eax, %eax
jne 0x1466
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x1ce3(%rip), %rdi      # 0x30cf
leaq 0x1c36(%rip), %rsi      # 0x3029
leaq 0x1c48(%rip), %rcx      # 0x3042
pushq $0x33
jmp 0x142e
leaq 0x1ce7(%rip), %rdi      # 0x30ec
leaq 0x1c1d(%rip), %rsi      # 0x3029
leaq 0x1c2f(%rip), %rcx      # 0x3042
pushq $0x34
jmp 0x142e
leaq 0x1ca3(%rip), %rdi      # 0x30c1
leaq 0x1c04(%rip), %rsi      # 0x3029
leaq 0x1c16(%rip), %rcx      # 0x3042
pushq $0x31
popq %rdx
callq 0x10d0
leaq 0x1bc9(%rip), %rdi      # 0x3004
leaq 0x1be7(%rip), %rsi      # 0x3029
leaq 0x1bf9(%rip), %rcx      # 0x3042
pushq $0x1c
jmp 0x142e
leaq 0x1bf9(%rip), %rdi      # 0x304d
leaq 0x1bce(%rip), %rsi      # 0x3029
leaq 0x1be0(%rip), %rcx      # 0x3042
pushq $0x26
jmp 0x142e
leaq 0x1cbc(%rip), %rdi      # 0x3129
leaq 0x1bb5(%rip), %rsi      # 0x3029
leaq 0x1bc7(%rip), %rcx      # 0x3042
pushq $0x38
jmp 0x142e
// File: /workspace/github_c_makefile_star2_O2/motet-a[P]libforks/examples/communication.c
// Function: child_main
static void child_main(libforks_ServerConn conn, int socket_fd) {
  (void)conn;

  // We could use seccomp(2) (on Linux) or pledge(2) (on OpenBSD) here.

  while (true) {
    char c;
    assert(read(socket_fd, &c, 1) == 1);
    c = toupper(c);
    assert(write(socket_fd, &c, 1) == 1);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
leaq 0xf(%rsp), %r14
pushq $0x1
popq %r15
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1110
cmpq $0x1, %rax
jne 0x14e7
callq 0x1030
movq (%rax), %rax
movsbq 0xf(%rsp), %rcx
movb (%rax,%rcx,4), %al
movb %al, 0xf(%rsp)
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x10a0
cmpq $0x1, %rax
je 0x1493
leaq 0x1bfa(%rip), %rdi      # 0x30cf
leaq 0x1b4d(%rip), %rsi      # 0x3029
leaq 0x1c69(%rip), %rcx      # 0x314c
pushq $0x16
jmp 0x14fe
leaq 0x1bfe(%rip), %rdi      # 0x30ec
leaq 0x1b34(%rip), %rsi      # 0x3029
leaq 0x1c50(%rip), %rcx      # 0x314c
pushq $0x14
popq %rdx
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/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 0x1303
movq 0x2cfd(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0xd57(%rip), %rsi       # 0x2044
callq 0x138b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbx
movslq %edi, %r14
pushq $0x1
popq %r13
pushq $0x2f
popq %rbp
cmpq %r14, %r13
jge 0x12f2
movq (%rbx,%r13,8), %rdi
leaq 0xce4(%rip), %rsi       # 0x2004
callq 0x1170
movq (%rbx,%r13,8), %r12
testq %rax, %rax
je 0x1367
movq %rax, %r15
movq %r12, %rdi
movl %ebp, %esi
callq 0x10b0
leaq 0x1(%rax), %rsi
testq %rax, %rax
cmoveq %r12, %rsi
movq %r15, %rdi
callq 0x138b
movq %r15, %rdi
callq 0x1050
testl %eax, %eax
jne 0x1376
movq %r15, %rdi
callq 0x1060
incq %r13
jmp 0x1310
leaq 0xc98(%rip), %rsi       # 0x2006
pushq $0x1
popq %rdi
movq %r12, %rdx
jmp 0x1384
movq (%rbx,%r13,8), %rdx
leaq 0xc8f(%rip), %rsi       # 0x2010
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x1160
// File: /workspace/github_c_makefile_star2_O2/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 0x2d5a(%rip), %r15      # 0x4100
leaq 0x2d5b(%rip), %r12      # 0x4108
leaq 0x8(%rsp), %rbp
movq 0x2c1f(%rip), %r13      # 0x3fd8
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jle 0x14b4
movq 0x2d29(%rip), %rdi      # 0x4100
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x13ea
movb $0x0, -0x1(%rdi,%rax)
movq 0x2d16(%rip), %rdi      # 0x4100
leaq 0x10(%rsp), %rsi
callq 0x1979
testq %rax, %rax
je 0x14b4
andq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x19d5
testl %eax, %eax
jne 0x13b9
movq %rbp, %rdi
callq 0x1180
testq %rax, %rax
je 0x14c3
movq (%r13), %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 0xbd7(%rip), %rsi       # 0x2025
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x1120
popq %rcx
popq %rdx
cmpb $0x0, (%rbx)
je 0x1471
leaq 0xbde(%rip), %rdi       # 0x2045
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1090
movq 0x18(%rsp), %rdi
movq (%r13), %rsi
callq 0x10c0
movq 0x20(%rsp), %rax
cmpb $0x0, (%rax)
je 0x14a7
movq (%r13), %rsi
leaq 0xbb7(%rip), %rdi       # 0x204b
callq 0x10c0
movq 0x20(%rsp), %rdi
movq (%r13), %rsi
callq 0x10c0
pushq $0xa
popq %rdi
callq 0x1030
jmp 0x13b9
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb51(%rip), %rsi       # 0x201b
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x1160
// File: /workspace/github_c_makefile_star2_O2/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 0xbfa(%rip), %rax       # 0x2004
movl (%rax), %r13d
leaq 0xbf4(%rip), %rax       # 0x2008
movl (%rax), %eax
movl %eax, 0x4(%rsp)
leaq 0xc5f(%rip), %rbx       # 0x2080
xorl %r12d, %r12d
cmpq $0x4, %r12
je 0x148a
movsbl (%rbx,%r12,8), %ebp
movsbl 0x1(%rbx,%r12,8), %r14d
movl %ebp, %edi
movl %r14d, %esi
callq 0x13a1
movl 0x4(%rbx,%r12,8), %r15d
movl %r15d, %ecx
imull %eax, %ecx
testl %ecx, %ecx
js 0x145d
testl %r15d, %r15d
setne %cl
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x1485
movl %ebp, %edi
movl %r14d, %esi
callq 0x13a1
leaq 0xc3f(%rip), %rdi       # 0x20ad
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
movl %eax, %r8d
xorl %eax, %eax
callq 0x1228
movl 0x4(%rsp), %r13d
incq %r12
jmp 0x1424
pushq $0x10
popq %r12
leaq 0x28eb(%rip), %rbp      # 0x3d80
leaq 0xc44(%rip), %rbx       # 0x20e0
cmpq $0x70, %r12
je 0x14da
movq -0x10(%r12,%rbp), %r14
movq -0x8(%r12,%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x13ad
movl (%r12,%rbp), %ecx
cmpl %ecx, %eax
je 0x14d4
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1228
movl 0x4(%rsp), %r13d
addq $0x18, %r12
jmp 0x149c
testl %r13d, %r13d
je 0x14f1
leaq 0xc27(%rip), %rdi       # 0x210d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x12e0
jmp 0x1502
leaq 0xc2a(%rip), %rdi       # 0x2122
xorl %eax, %eax
callq 0x1228
pushq $0x1
popq %rbx
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_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
cmpl $0x3, %edi
jne 0x1299
movq %rsi, %rbx
leaq 0xddd(%rip), %r15       # 0x2004
pushq $0x3
popq %rbp
movq 0x2dbf(%rip), %r12      # 0x3ff0
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1070
cmpl $-0x1, %eax
je 0x1255
cmpl $0x69, %eax
je 0x124f
cmpl $0x3f, %eax
jne 0x1231
jmp 0x12a5
movq (%r12), %r14
jmp 0x1231
leaq 0x4(%rsp), %rbx
movq %rsp, %r15
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x1459
movl (%rbx), %edi
movl (%r15), %esi
movq (%r12), %rdx
callq 0x134d
movq (%r12), %rdi
callq 0x10a0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd67(%rip), %rdi       # 0x2007
callq 0x1040
pushq $0x1
popq %rdi
callq 0x1050
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/baileywjohnson[P]mpi-matrix-mult/functions.c
// Function: make_matrix
void make_matrix(int m, int n, int l, int u, double **A){
	*A = malloc(sizeof(double) * (n * m));
	int i;
	srand(time(0));
	for(i = 0; i < (n * m); i++){
		double myRand = rand()/(1.0 + RAND_MAX);
		int range = u - l + 1;
		double myRand_scaled = (myRand * range) + l;
		(*A)[i] = myRand_scaled;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r14d
imull %esi, %edi
movslq %edi, %r12
leaq (,%r12,8), %rdi
callq 0x1080
movq %rax, (%rbx)
xorl %r15d, %r15d
xorl %edi, %edi
callq 0x1100
movl %eax, %edi
callq 0x10c0
subl %r14d, %ebp
incl %ebp
cvtsi2sd %ebp, %xmm0
movsd %xmm0, 0x8(%rsp)
cvtsi2sd %r14d, %xmm0
movsd %xmm0, (%rsp)
testl %r12d, %r12d
movl $0x0, %r14d
cmovgl %r12d, %r14d
cmpq %r15, %r14
je 0x1340
callq 0x10f0
cvtsi2sd %eax, %xmm0
mulsd 0xd09(%rip), %xmm0      # 0x2030
mulsd 0x8(%rsp), %xmm0
addsd (%rsp), %xmm0
movq (%rbx), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
jmp 0x1311
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baileywjohnson[P]mpi-matrix-mult/functions.c
// Function: print_matrix
void print_matrix(int m, int n, double* A){
	int i, j;
	int index = 0;
	for(i=0; i<m; i++){
		for(j=0; j<n; j++){
			printf("%f\t", A[index]);
			index += 1;
		}
		printf("\n");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
xorl %r13d, %r13d
testl %esi, %esi
cmovlel %r13d, %esi
testl %edi, %edi
cmovlel %r13d, %edi
movl %edi, 0x8(%rsp)
leaq 0xcc0(%rip), %r12       # 0x2038
movl %esi, %r15d
xorl %eax, %eax
movq %rsi, 0x10(%rsp)
cmpl 0x8(%rsp), %r13d
je 0x13c8
movslq %r15d, %r14
movslq %eax, %rbp
leal (%rsi,%rbp), %eax
movl %eax, 0xc(%rsp)
cmpq %rbp, %r14
je 0x13af
movsd (%rbx,%rbp,8), %xmm0
movq %r12, %rdi
movb $0x1, %al
callq 0x1030
incq %rbp
jmp 0x1396
pushq $0xa
popq %rdi
callq 0x1060
incl %r13d
movq 0x10(%rsp), %rsi
addl %esi, %r15d
movl 0xc(%rsp), %eax
jmp 0x1382
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/baileywjohnson[P]mpi-matrix-mult/functions.c
// Function: write_matrix
void write_matrix(char* out, int m, int n, double* A){
	FILE *fp = fopen(out, "wb");
	//write m to first location in file
	fwrite(&m, sizeof(int), 1, fp);
	//write n to second location in file
	fwrite(&n, sizeof(int), 1, fp);
	//write n integers from A into it ALL IN ONE fwrite()
	fwrite(A, sizeof(double), (n * m), fp);
	fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
leaq 0x4(%rsp), %r14
movl %esi, (%r14)
movq %rsp, %r15
movl %edx, (%r15)
leaq 0xc42(%rip), %rsi       # 0x203c
callq 0x1090
movq %rax, %r12
pushq $0x4
popq %r13
pushq $0x1
popq %rbp
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x10e0
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x10e0
movslq (%r15), %rax
movslq (%r14), %rdx
imulq %rax, %rdx
pushq $0x8
popq %rsi
movq %rbx, %rdi
movq %r12, %rcx
callq 0x10e0
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10d0
// File: /workspace/github_c_makefile_star2_O2/baileywjohnson[P]mpi-matrix-mult/functions.c
// Function: read_matrix
void read_matrix(char* out, int *m, int *n, double** A){
	int rows, columns;
	FILE *fp = fopen(out, "rb");
	//fread() once to get the rows out of the file
	fread(&rows, sizeof(int), 1, fp);
	*m = rows;
	//fread() again to get the columns out of the file
	fread(&columns, sizeof(int), 1, fp);
	*n = columns;
	//malloc a buffer of the right size to hold the rest of the remaining data
	*A = malloc(sizeof(double) * (rows * columns));
	//fread() the remaining data into buffer
	fread(*A, sizeof(double), (rows * columns), fp);
	fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movq %rsi, %r12
leaq 0xbc6(%rip), %rsi       # 0x203f
callq 0x1090
movq %rax, %r14
leaq 0x14(%rsp), %r13
pushq $0x4
popq %rbp
pushq $0x1
popq %rbx
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x10b0
movl (%r13), %r13d
movl %r13d, (%r12)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x10b0
movl (%r12), %eax
movl %eax, (%r15)
imull %r13d, %eax
movslq %eax, %rbx
leaq (,%rbx,8), %rdi
callq 0x1080
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
pushq $0x8
popq %rsi
movq %rax, %rdi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x10b0
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10d0
// File: /workspace/github_c_makefile_star2_O2/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 0x50550(%rip), %rax     # 0x5ff58
andl $0x0, (%rax)
movq %rsi, %r14
movl %edi, %ebx
leaq 0x2d708(%rip), %r15     # 0x3d11f
leaq 0x47db2(%rip), %r12     # 0x577d0
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xf360
cmpl $0x1, %eax
je 0xfa54
cmpl $0x76, %eax
je 0xfa4c
cmpl $-0x1, %eax
je 0xfa5d
cmpl $0x3f, %eax
je 0xfa5d
cmpl $0x68, %eax
jne 0xfa1e
jmp 0xfaa7
incl 0x56caa(%rip)           # 0x666fc
jmp 0xfa1e
movb $0x1, 0x56c9d(%rip)     # 0x666f8
jmp 0xfa1e
movq 0x504dc(%rip), %rcx     # 0x5ff40
movslq (%rcx), %rax
cmpl %ebx, %eax
je 0xfac3
leaq 0x54b9e(%rip), %rdx     # 0x64610
pushq $0x1
popq %rbp
movl %ebp, (%rdx)
leaq -0x1(%rax), %rdx
movl %edx, (%rcx)
subl %edx, %ebx
leaq (%r14,%rax,8), %rsi
addq $-0x8, %rsi
leaq 0x56c72(%rip), %rdx     # 0x66700
movl %ebx, %edi
callq 0x12b04
leaq 0x57698(%rip), %rax     # 0x67134
movl %ebp, (%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x55c22(%rip), %rsi     # 0x656d0
leaq 0x2d686(%rip), %rdi     # 0x3d13b
xorl %eax, %eax
callq 0xf050
xorl %edi, %edi
callq 0xf120
leaq 0x2d659(%rip), %rdx     # 0x3d123
xorl %edi, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0x10384
callq 0x10497