LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: read_qt(_IO_FILE*)
void read_qt(FILE* fp)
{
    byte len = read_word_to_bigendian(fp);
    byte id_prec;
    len = len - 2;
    byte pq,id;
    byte c;
    word tmp;
    while (len > 0) {
        fread(&id_prec,1,1,fp);
        len-=1;
        pq = (id_prec >> 4) ? 1: 0;
        id = id_prec & 0x0f;
        for(int i = 0; i<64; i++) {
            if (pq) {
                tmp = read_word_to_bigendian(fp);
                len = len - 2;
            } else {
                fread(&c, 1, 1, fp);
                len--;
                tmp = c;
            }
            quantize_table_list[id][i] = tmp;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x536c
movl %eax, %ebp
addb $-0x2, %bpl
pushq $0x1
popq %r15
testb %bpl, %bpl
je 0x54f4
leaq 0x7(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
decb %bpl
movzbl 0x7(%rsp), %r12d
movl %r12d, %r14d
andl $0xf, %r14d
shll $0x8, %r14d
xorl %r13d, %r13d
cmpq $0x40, %r13
je 0x547a
cmpb $0x10, %r12b
jb 0x54c3
movq %rbx, %rdi
callq 0x536c
addb $-0x2, %bpl
jmp 0x54de
leaq 0x6(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
decb %bpl
movzbl 0x6(%rsp), %eax
movzwl %ax, %eax
leaq (%r14,%r13,4), %rcx
leaq 0x6374(%rip), %rdx      # 0xb860
movl %eax, (%rdx,%rcx)
incq %r13
jmp 0x54a9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: read_frame(_IO_FILE*)
void read_frame(FILE *fp)
{
    int len = read_word_to_bigendian(fp);

    fread(&(f0.precision),1,1,fp);
    f0.height = read_word_to_bigendian(fp);
    f0.width = read_word_to_bigendian(fp);
    fread(&(f0.components_num),1,1,fp);

    byte component_id;
    byte sample;
    f0.vmax = 0x00;
    f0.hmax = 0x00;
    for (int i = 0; i < f0.components_num; i++) {
        fread(&component_id,1,1,fp);
        fread(&sample,1,1,fp);
        (f0.frame_components[component_id-1]).horizontal_sample = (sample >> 4) & 0x0f;
        (f0.frame_components[component_id-1]).vertical_sample = sample & 0x0f;
        if( (f0.frame_components[component_id-1]).horizontal_sample > f0.hmax) {
            f0.hmax = (f0.frame_components[component_id-1]).horizontal_sample;
        }
        if( (f0.frame_components[component_id-1]).vertical_sample > f0.vmax) {
            f0.vmax = (f0.frame_components[component_id-1]).vertical_sample;
        }
        fread(&((f0.frame_components[component_id-1]).qantize_table_id),1,1,fp);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x536c
leaq 0x674a(%rip), %rdi      # 0xbc67
pushq $0x1
popq %r14
movq %r14, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x51c0
movq %rbx, %rdi
callq 0x536c
movw %ax, 0x6722(%rip)       # 0xbc60
movq %rbx, %rdi
callq 0x536c
movw %ax, 0x6715(%rip)       # 0xbc62
leaq 0x6712(%rip), %rdi      # 0xbc66
movq %r14, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x51c0
andw $0x0, 0x66fa(%rip)      # 0xbc64
xorl %ebp, %ebp
leaq 0x6(%rsp), %r12
leaq 0x66ed(%rip), %r13      # 0xbc65
leaq 0x66e1(%rip), %r15      # 0xbc60
movzbl 0x66e0(%rip), %eax      # 0xbc66
cmpl %eax, %ebp
jae 0x5611
leaq 0x7(%rsp), %rdi
movq %r14, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x51c0
movq %r12, %rdi
movq %r14, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x51c0
movb 0x6(%rsp), %cl
movl %ecx, %edx
shrb $0x4, %dl
movzbl 0x7(%rsp), %eax
leaq (%rax,%rax,2), %rsi
movb %dl, (%r13,%rsi)
andb $0xf, %cl
movb %cl, 0x1(%r13,%rsi)
cmpb 0x668e(%rip), %dl       # 0xbc65
jbe 0x55df
movb %dl, 0x6686(%rip)       # 0xbc65
cmpb 0x667f(%rip), %cl       # 0xbc64
jbe 0x55ed
movb %cl, 0x6677(%rip)       # 0xbc64
decq %rax
leaq (%rax,%rax,2), %rax
leaq (%r15,%rax), %rdi
addq $0xa, %rdi
movq %r14, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x51c0
incl %ebp
jmp 0x557f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: read_ht(_IO_FILE*)
void read_ht(FILE* fp)
{
    byte huffman_length[16];
    int len = read_word_to_bigendian(fp);
    len = len - 2;
    int ht_node_num;
    byte ht_length;
    byte class_id;
    byte ht_value;
    while (len > 0) {
        fread(&class_id,1,1,fp);
        len--;
        ht_node_num = 0;
        for(int i = 0; i<16; i++) {
            fread(&(ht_length),1,1,fp);
            huffman_length[i] = ht_length;
            len--;
            ht_node_num += huffman_length[i];
        }

        huffman_tables[huffman_table_index(class_id)].ht_node_num = ht_node_num;
        huffman_leaf* ht_leaf = (huffman_leaf*)malloc((ht_node_num)*sizeof(
                                    huffman_leaf));
        word codeword = 0;
        for(int height=0, leaf_index = 0; height<16; height++) {
            for(int j = 0; j<huffman_length[height]; j++) {

                fread(&(ht_value),1,1,fp);
                len--;
                ht_leaf[leaf_index].value = ht_value;
                ht_leaf[leaf_index].codeword = (codeword++);
                ht_leaf[leaf_index].codeword_len = height+1;
                leaf_index++;
            }
            codeword = codeword<<1;
        }
        huffman_tables[huffman_table_index(class_id)].start = ht_leaf;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
callq 0x536c
movzwl %ax, %r12d
addl $-0x2, %r12d
pushq $0x1
popq %r15
leaq 0x6637(%rip), %r13      # 0xbc80
testl %r12d, %r12d
jle 0x577e
leaq 0x6(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
xorl %r14d, %r14d
xorl %ebp, %ebp
cmpq $0x10, %r14
je 0x5694
leaq 0x7(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
movzbl 0x7(%rsp), %eax
movb %al, 0x30(%rsp,%r14)
addl %eax, %ebp
incq %r14
jmp 0x566a
addl $-0x11, %r12d
movzbl 0x6(%rsp), %edi
movl %edi, 0x8(%rsp)
callq 0x53de
shll $0x4, %eax
movl %ebp, 0x8(%rax,%r13)
movl %ebp, %eax
imulq $0xc, %rax, %rdi
callq 0x5190
movq %rax, 0x18(%rsp)
addq $0x8, %rax
movq %rax, 0x20(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %eax, %eax
cmpq $0x10, %r13
je 0x575d
movl %r12d, 0x14(%rsp)
movzbl 0x30(%rsp,%r13), %edx
incq %r13
cltq
leal (%rax,%rdx), %ecx
movl %ecx, 0x10(%rsp)
movslq %ecx, %r14
subq %rax, %r14
imulq $0xc, %rax, %r12
addq 0x20(%rsp), %r12
movq %rdx, 0x28(%rsp)
leal (%rdx,%rdx), %eax
leal (%rax,%rbp,2), %eax
movl %eax, 0xc(%rsp)
subq $0x1, %r14
jb 0x5744
leaq 0x5(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
movb 0x5(%rsp), %al
movb %al, (%r12)
movw %bp, -0x8(%r12)
leal 0x1(%rbp), %eax
movl %r13d, -0x4(%r12)
addq $0xc, %r12
movl %eax, %ebp
jmp 0x570d
movl 0x14(%rsp), %r12d
subl 0x28(%rsp), %r12d
movl 0xc(%rsp), %eax
movl %eax, %ebp
movl 0x10(%rsp), %eax
jmp 0x56ce
movl 0x8(%rsp), %edi
callq 0x53de
shll $0x4, %eax
leaq 0x6510(%rip), %r13      # 0xbc80
movq 0x18(%rsp), %rcx
movq %rcx, (%rax,%r13)
jmp 0x5649
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: read_sos(_IO_FILE*)
void read_sos(FILE* fp)
{
    int len = read_word_to_bigendian(fp);
    byte component_num;
    fread(&component_num,1,1,fp);
    assert(len == 6+2*component_num);
    len = len - 3;
    assert(component_num==3);//JFIF defined
    byte component_id,destination;
    for (int i =0; i<component_num; i++) {

        fread(&component_id,1,1,fp);
        fread(&destination,1,1,fp);
        len = len-2;
        component_mapping_huffman[component_id-1] = destination;
    }
    fread(&destination,1,1,fp);
    fread(&destination,1,1,fp);
    fread(&destination,1,1,fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x536c
movzwl %ax, %ebp
leaq 0x7(%rsp), %r14
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rdx, %rsi
movq %rbx, %rcx
callq 0x51c0
movzbl (%r14), %r13d
leal 0x6(,%r13,2), %eax
cmpl %ebp, %eax
jne 0x586e
cmpl $0x3, %r13d
jne 0x588d
leaq 0x6(%rsp), %r14
pushq $0x1
popq %r15
leaq 0x5(%rsp), %r12
leaq 0x64d4(%rip), %rbp      # 0xbcc0
subl $0x1, %r13d
jb 0x5823
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
movq %r12, %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
movb 0x5(%rsp), %al
movzbl 0x6(%rsp), %ecx
movb %al, -0x1(%rcx,%rbp)
jmp 0x57ec
leaq 0x5(%rsp), %r14
pushq $0x1
popq %r15
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x51c0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x205a(%rip), %rdi      # 0x78cf
leaq 0x206c(%rip), %rsi      # 0x78e8
leaq 0x206f(%rip), %rcx      # 0x78f2
movl $0xab, %edx
callq 0x50c0
leaq 0x2074(%rip), %rdi      # 0x7908
leaq 0x204d(%rip), %rsi      # 0x78e8
leaq 0x2050(%rip), %rcx      # 0x78f2
movl $0xad, %edx
callq 0x50c0
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: read_one_bit(_IO_FILE*)
byte read_one_bit(FILE *fp)
{
    static byte buffer;
    static byte count = 0;
    byte check_ff00;
    if (!count) {
        fread(&buffer,1,1,fp);
        if (buffer == 0xff) {
            byte check_ff00;
            fread(&check_ff00,1,1,fp);
            if (check_ff00 != 0x00) {
                printf("missing 0xff00 sequence!");
                exit(1);
            }
        }
    }
    byte bit = (buffer >> (7 - count))&0x01;
    count = (count == 7 ? 0 : count + 1);
    return bit;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, 0x661a(%rip)      # 0xbed1
jne 0x58f6
movq %rdi, %rbx
leaq 0x660d(%rip), %rdi      # 0xbed0
pushq $0x1
popq %rdx
movq %rdx, %rsi
movq %rbx, %rcx
callq 0x51c0
cmpb $-0x1, 0x65f8(%rip)     # 0xbed0
jne 0x58f6
leaq 0x7(%rsp), %r14
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rdx, %rsi
movq %rbx, %rcx
callq 0x51c0
cmpb $0x0, (%r14)
jne 0x592a
movzbl 0x65d3(%rip), %eax      # 0xbed0
movb 0x65ce(%rip), %cl       # 0xbed1
leal 0x1(%rcx), %edx
xorl %esi, %esi
subb $0x7, %cl
movzbl %dl, %edx
cmovel %esi, %edx
negb %cl
movzbl %cl, %ecx
btl %ecx, %eax
setb %al
movb %dl, 0x65af(%rip)       # 0xbed1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1fe8(%rip), %rdi      # 0x7919
xorl %eax, %eax
callq 0x5030
pushq $0x1
popq %rdi
callq 0x5170
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: codeword_decode(_IO_FILE*, unsigned char)
int codeword_decode (FILE *fp, byte need_read_length)
{
    byte leading = read_one_bit(fp);
    int decoding_code = 1;
    byte c;
    for (int i = 1; i < need_read_length; i++) {
        c = read_one_bit(fp);
        decoding_code = decoding_code << 1;
        decoding_code += leading ? c : !c;
    }
    decoding_code = leading ? decoding_code: -decoding_code;
    return decoding_code;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x58ac
movl %eax, %ebp
pushq $0x1
popq %r15
movl %r15d, %r12d
cmpl %ebx, %r12d
jae 0x5979
movq %r14, %rdi
callq 0x58ac
xorb %bpl, %al
xorb $0x1, %al
movzbl %al, %eax
leal (%rax,%r15,2), %r15d
incl %r12d
jmp 0x595b
movl %r15d, %eax
negl %eax
testb %bpl, %bpl
cmovnel %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/decoder.c
// Function: decode_huffman(_IO_FILE*, int)
byte decode_huffman(FILE *fp, int huffman_table_id)
{
    huffman_leaf* huffman_table = huffman_tables[huffman_table_id].start;
    int ht_node_num = huffman_tables[huffman_table_id].ht_node_num;
    word codeword = 0x0000;
    for(int i = 0; i<16; i++) {
        codeword =codeword<<1;
        codeword |= (word)read_one_bit(fp);
        for(int j = 0; j<ht_node_num; j++) {
            if(huffman_table[j].codeword==codeword&&huffman_table[j].codeword_len==(i+1)) {
                return huffman_table[j].value;
            }
        }
    }
    printf("do not find\n");
    exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movslq %esi, %rax
shlq $0x4, %rax
leaq 0x62d9(%rip), %rcx      # 0xbc80
movq (%rax,%rcx), %r14
movl 0x8(%rax,%rcx), %eax
xorl %r15d, %r15d
testl %eax, %eax
cmovlel %r15d, %eax
imulq $0xc, %rax, %r12
xorl %ebp, %ebp
cmpl $0x10, %ebp
je 0x5a07
movq %rbx, %rdi
callq 0x58ac
movzbl %al, %eax
andl $0x7fff, %r15d          # imm = 0x7FFF
leal (%rax,%r15,2), %r15d
incl %ebp
xorl %eax, %eax
cmpq %rax, %r12
je 0x59be
movzwl (%r14,%rax), %ecx
cmpl %ecx, %r15d
jne 0x59f3
cmpl %ebp, 0x4(%r14,%rax)
je 0x59f9
addq $0xc, %rax
jmp 0x59dd
movb 0x8(%r14,%rax), %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x203a(%rip), %rdi      # 0x7a48
callq 0x51e0
pushq $0x1
popq %rdi
callq 0x5170
// File: /workspace/github_cpp_makefile_star2_O2/rapirent[P]JPEG/./bitmap_image.hpp
// Function: bitmap_image::write_bfh(std::basic_ofstream<char, std::char_traits<char>>&, bitmap_image::bitmap_file_header const&) const
inline void write_bfh(std::ofstream& stream, const bitmap_file_header& bfh) const
   {
      if (big_endian())
      {
         write_to_stream(stream,flip(bfh.type     ));
         write_to_stream(stream,flip(bfh.size     ));
         write_to_stream(stream,flip(bfh.reserved1));
         write_to_stream(stream,flip(bfh.reserved2));
         write_to_stream(stream,flip(bfh.off_bits ));
      }
      else
      {
         write_to_stream(stream,bfh.type     );
         write_to_stream(stream,bfh.size     );
         write_to_stream(stream,bfh.reserved1);
         write_to_stream(stream,bfh.reserved2);
         write_to_stream(stream,bfh.off_bits );
      }
   }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x2
popq %r15
movq %rsi, %rdi
movq %rdx, %rsi
movq %r15, %rdx
callq 0x5180
leaq 0x4(%rbx), %rsi
pushq $0x4
popq %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x5180
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x5180
leaq 0xa(%rbx), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x5180
addq $0xc, %rbx
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5180
// File: /workspace/github_cpp_makefile_star2_O2/AndreRenaud[P]simple_options/demo_app.c
// Function: main
int main(int argc, const char *argv[])
{
	const char *file = NULL;
	int64_t val = 5;
	struct option_entry entries[] = {
		{"file", 'f', "File to load", OPTION_FLAG_string, .string = &file},
		{"number", 'n', "Number", OPTION_FLAG_int, .integer = &val},
		{"desc", 0, NULL, OPTION_FLAG_required},
		{NULL, 0},
	};
	int extra_args = opt_parse(argc, argv, entries);
	if (extra_args < 0) {
		opt_parse_usage(eprintf, argv[0], entries);
		return -1;
	}
	printf("file: %s (%spresent)\n", file, opt_parse_present('f', entries) ? "" : "not ");
	printf("number: %lld (%spresent)\n", (long long int)val, opt_parse_present('n', entries) ? "" : "not ");
	for (int i = extra_args; i < argc; i++) {
		printf("Extra arg %d: %s\n", i, argv[i]);
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
leaq 0x8(%rsp), %rax
andq $0x0, (%rax)
movq %rsi, %r14
movl %edi, %ebx
movq %rsp, %rcx
movq $0x5, (%rcx)
leaq 0x8ce(%rip), %rsi       # 0x20c6
leaq 0x10(%rsp), %rdx
movq %rsi, (%rdx)
movb $0x66, 0x8(%rdx)
leaq 0x8c0(%rip), %rsi       # 0x20cb
movq %rsi, 0x10(%rdx)
movl $0x4, 0x18(%rdx)
movq %rax, 0x20(%rdx)
xorl %eax, %eax
movb %al, 0x28(%rdx)
leaq 0x8b2(%rip), %rsi       # 0x20d8
movq %rsi, 0x30(%rdx)
movb $0x6e, 0x38(%rdx)
leaq 0x8aa(%rip), %rsi       # 0x20df
movq %rsi, 0x40(%rdx)
movl $0x2, 0x48(%rdx)
movq %rcx, 0x50(%rdx)
movb %al, 0x58(%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rdx)
movaps %xmm0, 0x70(%rdx)
movaps %xmm0, 0x80(%rdx)
leaq 0x886(%rip), %rax       # 0x20e6
movq %rax, 0x60(%rdx)
movl $0x10, 0x78(%rdx)
movaps %xmm0, 0x90(%rdx)
movaps %xmm0, 0xa0(%rdx)
movaps %xmm0, 0xb0(%rdx)
movq %r14, %rsi
callq 0x134c
testl %eax, %eax
js 0x192a
movl %eax, %ebp
movq 0x8(%rsp), %r12
pushq $0x66
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x16ea
leaq 0x79a(%rip), %rcx       # 0x2045
leaq 0x84f(%rip), %r13       # 0x2101
testb %al, %al
movq %r13, %rdx
cmovneq %rcx, %rdx
leaq 0x829(%rip), %rdi       # 0x20eb
xorl %r15d, %r15d
movq %r12, %rsi
xorl %eax, %eax
callq 0x1080
movq (%rsp), %r12
pushq $0x6e
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x16ea
testb %al, %al
leaq 0x75c(%rip), %rax       # 0x2045
cmovneq %rax, %r13
leaq 0x812(%rip), %rdi       # 0x2106
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x1080
movl %ebp, %eax
leaq (%r14,%rax,8), %r12
leaq 0x812(%rip), %r14       # 0x2120
cmpl %ebx, %ebp
jge 0x1942
movq (%r12), %rdx
movq %r14, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x1080
addq $0x8, %r12
incl %ebp
jmp 0x190e
movq (%r14), %rsi
leaq 0x23(%rip), %rdi        # 0x1957
leaq 0x10(%rsp), %rdx
callq 0x11bc
pushq $-0x1
popq %r15
movl %r15d, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/AndreRenaud[P]simple_options/demo_app.c
// Function: eprintf
static int eprintf(const char *str, ...) {
	va_list ap;
	va_start(ap, str);
	vfprintf(stderr, str, ap);
	va_end(ap);
	return 0;
}

// Assembly:
subq $0xd8, %rsp
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x19b5
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 %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rdx)
movq 0x261c(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movq %r10, %rsi
callq 0x10b0
xorl %eax, %eax
addq $0xd8, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH12_DynamicMemory/examples/allocPtr.cc
// Function: use_factory(int)
Foo* use_factory(T arg)
{
	Foo *p = factory(arg);
	print(cout, *p);
	cout << endl;
	// use p
	return p;  // caller must delete the memory
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x11f6
movq %rax, %rbx
movq 0x2dab(%rip), %r14      # 0x3fd0
movq %r14, %rdi
movq %rax, %rsi
callq 0x11dc
movq %r14, %rdi
callq 0x1030
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH12_DynamicMemory/examples/allocPtr.cc
// Function: main
int main()
{
	T arg;
	while (cin >> arg) {
		auto p = use_factory(arg);
		delete p; // remember to delete the memory from use_factory
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x2d8f(%rip), %rbx      # 0x3fe0
leaq -0x1c(%rbp), %r14
pushq $0x4
popq %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1040
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1287
movl -0x1c(%rbp), %edi
callq 0x120f
movq %rax, %rdi
movq %r15, %rsi
callq 0x1070
jmp 0x1259
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/leonn[P]neuralNet/data/xor/source/xordatagenerate.cpp
// Function: main
int main(int argc, char const *argv[]){
	srand(time(NULL));
	int inputs_number=atoi(argv[1]);
	//cout << inputs_number<<argc<<endl;

	cout<<"topology: 2 4 1"<<endl;
	cout << "eta: 0.8" << endl;
	cout << "momentum: 0.45" << endl;
	cout << "transfer_function: th" << endl;
	for (int i = 0; i < inputs_number; i++){
		int n1= (int)(2.0*rand() / double(RAND_MAX));
		int n2= (int)(2.0*rand() / double(RAND_MAX));
		int t = n1 ^ n2;
		cout<<"in: "<<n1<<".0 "<<n2<<".0 "<<endl;
		cout<<"out: "<<t<<".0"<<endl;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1060
movl %eax, %edi
callq 0x1070
movq 0x8(%r14), %rdi
callq 0x10a0
movl %eax, %r14d
movq 0x2da8(%rip), %r15      # 0x3fd8
leaq 0xdd9(%rip), %rsi       # 0x2010
movq %r15, %rdi
callq 0x1080
movq %rax, %rdi
callq 0x1040
leaq 0xdd2(%rip), %rsi       # 0x2020
movq %r15, %rdi
callq 0x1080
movq %rax, %rdi
callq 0x1040
leaq 0xdc4(%rip), %rsi       # 0x2029
movq %r15, %rdi
callq 0x1080
movq %rax, %rdi
callq 0x1040
leaq 0xdbc(%rip), %rsi       # 0x2038
movq %r15, %rdi
callq 0x1080
movq %rax, %rdi
callq 0x1040
testl %r14d, %r14d
cmovgl %r14d, %ebx
subl $0x1, %ebx
jb 0x1361
callq 0x1030
cvtsi2sd %eax, %xmm0
addsd %xmm0, %xmm0
movsd 0xd57(%rip), %xmm1      # 0x2008
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %r12d
callq 0x1030
cvtsi2sd %eax, %xmm0
addsd %xmm0, %xmm0
divsd 0xd39(%rip), %xmm0      # 0x2008
cvttsd2si %xmm0, %r14d
movl %r14d, %r13d
xorl %r12d, %r13d
movq 0x2cf7(%rip), %r15      # 0x3fd8
movq %r15, %rdi
leaq 0xd63(%rip), %rsi       # 0x204e
callq 0x1080
movq %rax, %rdi
movl %r12d, %esi
callq 0x10b0
movq %rax, %rdi
leaq 0xd4e(%rip), %r12       # 0x2053
movq %r12, %rsi
callq 0x1080
movq %rax, %rdi
movl %r14d, %esi
callq 0x10b0
movq %rax, %rdi
movq %r12, %rsi
callq 0x1080
movq %rax, %rdi
callq 0x1040
movq %r15, %rdi
leaq 0xd22(%rip), %rsi       # 0x2057
callq 0x1080
movq %rax, %rdi
movl %r13d, %esi
callq 0x10b0
movq %rax, %rdi
leaq 0xd0e(%rip), %rsi       # 0x205d
callq 0x1080
movq %rax, %rdi
callq 0x1040
jmp 0x1293
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/common.cpp
// Function: DCCorrection(double*, double, int, int, double*)
void DCCorrection(double *input, double current_f0, int fs, int fft_size,
    double *output) {
  int upper_limit = 1 +
    static_cast<int>(1.2 * current_f0 * fft_size / fs);
  double *low_frequency_replica = new double[upper_limit];
  double *low_frequency_axis = new double[upper_limit];

  for (int i = 0; i < upper_limit; ++i)
    low_frequency_axis[i] = static_cast<double>(i) * fs / fft_size;

  int upper_limit_replica = 1 + static_cast<int>(current_f0 * fft_size / fs);
  interp1Q(current_f0 - low_frequency_axis[0],
      -static_cast<double>(fs) / fft_size, input, upper_limit + 1,
      low_frequency_axis, upper_limit_replica, low_frequency_replica);

  for (int i = 0; i < upper_limit_replica; ++i)
    output[i] = input[i] + low_frequency_replica[i];

  delete[] low_frequency_replica;
  delete[] low_frequency_axis;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movq %rdi, %r14
movsd 0xbd03(%rip), %xmm1     # 0xd018
movsd %xmm0, 0x8(%rsp)
mulsd %xmm0, %xmm1
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
mulsd %xmm0, %xmm1
cvtsi2sd %esi, %xmm0
movapd %xmm0, 0x10(%rsp)
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %ebp
movslq %ebp, %r13
leaq 0x8(,%r13,8), %rax
cmpl $-0x1, %r13d
pushq $-0x1
popq %r12
cmovgeq %rax, %r12
movq %r12, %rdi
callq 0x1030
movq %rax, %r15
movq %r12, %rdi
callq 0x1030
movsd (%rsp), %xmm3
movapd 0x10(%rsp), %xmm1
movq %rax, %r12
xorl %eax, %eax
cmpq %r13, %rax
jg 0x1394
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
divsd %xmm3, %xmm0
movsd %xmm0, (%r12,%rax,8)
incq %rax
jmp 0x1378
movapd %xmm3, %xmm2
movsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm2
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %r13d
leal 0x1(%r13), %ecx
subsd (%r12), %xmm0
xorpd 0xbca3(%rip), %xmm1     # 0xd060
divsd %xmm3, %xmm1
addl $0x2, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %r15, %r8
callq 0x41e4
movslq %r13d, %rax
xorl %ecx, %ecx
cmpq %rax, %rcx
jg 0x13f4
movsd (%r14,%rcx,8), %xmm0
addsd (%r15,%rcx,8), %xmm0
movsd %xmm0, (%rbx,%rcx,8)
incq %rcx
jmp 0x13d9
movq %r15, %rdi
callq 0x1110
movq %r12, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/common.cpp
// Function: NuttallWindow(int, double*)
void NuttallWindow(int y_length, double *y) {
  double tmp;
  for (int i = 0; i < y_length; ++i) {
    tmp  = static_cast<double>(i) / (y_length - 1);
    y[i] = 0.355768 - 0.487396 * cos(2.0 * world::kPi * tmp) +
      0.144232 * cos(4.0 * world::kPi * tmp) -
      0.012604 * cos(6.0 * world::kPi * tmp);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edi, %ebx
leal -0x1(%rbx), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x18(%rsp)
xorl %r15d, %r15d
testl %edi, %edi
cmovlel %r15d, %ebx
movq %rsi, %r14
cmpq %r15, %rbx
je 0x17bc
cvtsi2sd %r15d, %xmm0
divsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
mulsd 0xb8dd(%rip), %xmm0     # 0xd028
callq 0x11b0
mulsd 0xb8d8(%rip), %xmm0     # 0xd030
addsd 0xb8d8(%rip), %xmm0     # 0xd038
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
mulsd 0xb8cc(%rip), %xmm0     # 0xd040
callq 0x11b0
mulsd 0xb8c7(%rip), %xmm0     # 0xd048
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
mulsd 0xb8b5(%rip), %xmm0     # 0xd050
callq 0x11b0
mulsd 0xb8b0(%rip), %xmm0     # 0xd058
addsd 0x8(%rsp), %xmm0
movsd %xmm0, (%r14,%r15,8)
incq %r15
jmp 0x1729
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/common.cpp
// Function: InitializeForwardRealFFT(int, ForwardRealFFT*)
void InitializeForwardRealFFT(int fft_size, ForwardRealFFT *forward_real_fft) {
  forward_real_fft->fft_size = fft_size;
  forward_real_fft->waveform = new double[fft_size];
  forward_real_fft->spectrum = new fft_complex[fft_size];
  forward_real_fft->forward_fft = fft_plan_dft_r2c_1d(fft_size,
      forward_real_fft->waveform, forward_real_fft->spectrum, FFT_ESTIMATE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, (%rsi)
movslq %edi, %r14
leaq (,%r14,8), %rdi
movq %r14, %r15
shlq $0x4, %r15
testl %r14d, %r14d
pushq $-0x1
popq %rax
cmovsq %rax, %rdi
cmovsq %rax, %r15
callq 0x1030
movq %rax, %r12
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x10(%rbx)
movq %rsp, %r15
pushq $0x3
popq %r8
movq %r15, %rdi
movl %r14d, %esi
movq %r12, %rdx
movq %rax, %rcx
callq 0x7468
addq $0x18, %rbx
pushq $0x9
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/common.cpp
// Function: InitializeInverseRealFFT(int, InverseRealFFT*)
void InitializeInverseRealFFT(int fft_size, InverseRealFFT *inverse_real_fft) {
  inverse_real_fft->fft_size = fft_size;
  inverse_real_fft->waveform = new double[fft_size];
  inverse_real_fft->spectrum = new fft_complex[fft_size];
  inverse_real_fft->inverse_fft = fft_plan_dft_c2r_1d(fft_size,
      inverse_real_fft->spectrum, inverse_real_fft->waveform, FFT_ESTIMATE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, (%rsi)
movslq %edi, %r14
leaq (,%r14,8), %rdi
movq %r14, %r15
shlq $0x4, %r15
testl %r14d, %r14d
pushq $-0x1
popq %rax
cmovsq %rax, %rdi
cmovsq %rax, %r15
callq 0x1030
movq %rax, %r12
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x10(%rbx)
movq %rsp, %r15
pushq $0x3
popq %r8
movq %r15, %rdi
movl %r14d, %esi
movq %rax, %rdx
movq %r12, %rcx
callq 0x72ed
addq $0x18, %rbx
pushq $0x9
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/common.cpp
// Function: InitializeMinimumPhaseAnalysis(int, MinimumPhaseAnalysis*)
void InitializeMinimumPhaseAnalysis(int fft_size,
    MinimumPhaseAnalysis *minimum_phase) {
  minimum_phase->fft_size = fft_size;
  minimum_phase->log_spectrum = new double[fft_size];
  minimum_phase->minimum_phase_spectrum = new fft_complex[fft_size];
  minimum_phase->cepstrum = new fft_complex[fft_size];
  minimum_phase->inverse_fft = fft_plan_dft_r2c_1d(fft_size,
      minimum_phase->log_spectrum, minimum_phase->cepstrum, FFT_ESTIMATE);
  minimum_phase->forward_fft = fft_plan_dft_1d(fft_size,
      minimum_phase->cepstrum, minimum_phase->minimum_phase_spectrum,
      FFT_FORWARD, FFT_ESTIMATE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
movl %edi, (%rsi)
movslq %edi, %r14
leaq (,%r14,8), %rdi
movq %r14, %r15
shlq $0x4, %r15
testl %r14d, %r14d
pushq $-0x1
popq %rax
cmovsq %rax, %rdi
cmovsq %rax, %r15
callq 0x1030
movq %rax, %r12
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x10(%rbx)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x18(%rbx)
leaq 0x8(%rsp), %r15
pushq $0x3
popq %rbp
movq %r15, %rdi
movl %r14d, %esi
movq %r12, %rdx
movq %rax, %rcx
movl %ebp, %r8d
callq 0x7468
leaq 0x20(%rbx), %rdi
pushq $0x9
popq %r12
movq %r12, %rcx
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rdx
leaq 0x8(%rsp), %r15
pushq $0x1
popq %r8
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %r9d
callq 0x6fd4
addq $0x68, %rbx
movq %r12, %rcx
movq %rbx, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/common.cpp
// Function: DestroyMinimumPhaseAnalysis(MinimumPhaseAnalysis*)
void DestroyMinimumPhaseAnalysis(MinimumPhaseAnalysis *minimum_phase) {
  fft_destroy_plan(minimum_phase->forward_fft);
  fft_destroy_plan(minimum_phase->inverse_fft);
  delete[] minimum_phase->cepstrum;
  delete[] minimum_phase->log_spectrum;
  delete[] minimum_phase->minimum_phase_spectrum;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x68(%rdi), %rsi
pushq $0x9
popq %r14
movq %r14, %rcx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7754
leaq 0x20(%rbx), %rsi
movq %r14, %rcx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7754
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x1bae
callq 0x1110
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x1bbc
callq 0x1110
movq 0x10(%rbx), %rdi
addq $0x48, %rsp
testq %rdi, %rdi
je 0x1bd1
popq %rbx
popq %r14
jmp 0x1110
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/dio.cpp
// Function: (anonymous namespace)::SelectBestF0(double, double, double**, int, int, double)
double SelectBestF0(double current_f0, double past_f0, double **f0_candidates,
    int number_of_candidates, int target_index, double allowed_range) {
  double reference_f0 = (current_f0 * 3.0 - past_f0) / 2.0;

  double minimum_error = fabs(reference_f0 - f0_candidates[0][target_index]);
  double best_f0 = f0_candidates[0][target_index];

  double current_error;
  for (int i = 1; i < number_of_candidates; ++i) {
    current_error = fabs(reference_f0 - f0_candidates[i][target_index]);
    if (current_error < minimum_error) {
      minimum_error = current_error;
      best_f0 = f0_candidates[i][target_index];
    }
  }
  if (fabs(1.0 - best_f0 / reference_f0) > allowed_range)
    return 0.0;
  return best_f0;
}

// Assembly:
mulsd 0xa057(%rip), %xmm0     # 0xd0e8
subsd %xmm1, %xmm0
mulsd 0xa023(%rip), %xmm0     # 0xd0c0
movq (%rdi), %rcx
movslq %edx, %rax
movsd (%rcx,%rax,8), %xmm1
movapd %xmm0, %xmm4
subsd %xmm1, %xmm4
andpd 0x9fd8(%rip), %xmm4     # 0xd090
movslq %esi, %rcx
pushq $0x1
popq %rdx
movapd 0x9fca(%rip), %xmm3     # 0xd090
cmpq %rcx, %rdx
jge 0x3106
movq (%rdi,%rdx,8), %rsi
movsd (%rsi,%rax,8), %xmm5
movapd %xmm0, %xmm6
subsd %xmm5, %xmm6
andpd %xmm3, %xmm6
movapd %xmm6, %xmm7
minsd %xmm4, %xmm7
cmpltsd %xmm4, %xmm6
andpd %xmm6, %xmm5
andnpd %xmm1, %xmm6
orpd %xmm5, %xmm6
incq %rdx
movapd %xmm7, %xmm4
movapd %xmm6, %xmm1
jmp 0x30c6
movapd %xmm1, %xmm3
divsd %xmm0, %xmm3
movsd 0x9efa(%rip), %xmm0     # 0xd010
subsd %xmm3, %xmm0
andpd 0x9f6e(%rip), %xmm0     # 0xd090
cmpltsd %xmm0, %xmm2
andnpd %xmm1, %xmm2
movapd %xmm2, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/matlabfunctions.cpp
// Function: histc(double*, int, double*, int, int*)
void histc(double *x, int x_length, double *edges, int edges_length,
    int *index) {
  int count = 1;

  int i = 0;
  for (; i < edges_length; ++i) {
    index[i] = 1;
    if (edges[i] >= x[0]) break;
  }
  for (; i < edges_length; ++i) {
    if (edges[i] < x[count]) {
      index[i] = count;
    } else {
      index[i--] = count++;
    }
    if (count == x_length) break;
  }
  count--;
  for (i++; i < edges_length; ++i) index[i] = count;
}

// Assembly:
pushq %rbx
xorl %r9d, %r9d
testl %ecx, %ecx
movl $0x0, %eax
cmovgl %ecx, %eax
cmpq %r9, %rax
je 0x3d6a
movl $0x1, (%r8,%r9,4)
movsd (%rdx,%r9,8), %xmm0
ucomisd (%rdi), %xmm0
jae 0x3d67
incq %r9
jmp 0x3d49
movl %r9d, %eax
movl $0x1, %r9d
cmpl %ecx, %eax
jge 0x3da4
movslq %eax, %r11
movl %r9d, %r10d
movsd (%rdi,%r10,8), %xmm0
xorl %ebx, %ebx
ucomisd (%rdx,%r11,8), %xmm0
setbe %bl
leal (%r9,%rbx), %r10d
subl %ebx, %eax
movl %r9d, (%r8,%r11,4)
cmpl %esi, %r10d
je 0x3da1
incl %eax
movl %r10d, %r9d
jmp 0x3d70
movl %esi, %r9d
decl %r9d
cltq
movslq %ecx, %rcx
incq %rax
cmpq %rcx, %rax
jge 0x3dba
movl %r9d, (%r8,%rax,4)
jmp 0x3dac
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/matlabfunctions.cpp
// Function: interp1(double*, double*, int, double*, int, double*)
void interp1(double *x, double *y, int x_length, double *xi, int xi_length,
    double *yi) {
  double *h = new double[x_length - 1];
  double *p = new double[xi_length];
  double *s = new double[xi_length];
  int *k = new int[xi_length];

  for (int i = 0; i < x_length - 1; ++i) h[i] = x[i + 1] - x[i];
  for (int i = 0; i < xi_length; ++i) {
    p[i] = i;
    k[i] = 0;
  }

  histc(x, x_length, xi, xi_length, k);

  for (int i = 0; i < xi_length; ++i)
    s[i] = (xi[i] - x[k[i] - 1]) / h[k[i] - 1];

  for (int i = 0; i < xi_length; ++i)
    yi[i] = y[k[i] - 1] + s[i] * (y[k[i]] - y[k[i] - 1]);

  delete[] k;
  delete[] s;
  delete[] p;
  delete[] h;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x20(%rsp)
movl %r8d, %ebx
movq %rcx, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %rbp
leal -0x1(%rdx), %r12d
leaq (,%r12,8), %rdi
movq %rdx, 0x18(%rsp)
testl %edx, %edx
pushq $-0x1
popq %r13
cmovleq %r13, %rdi
callq 0x1030
movq %rax, %r15
movl %ebx, 0xc(%rsp)
movslq %ebx, %rax
leaq (,%rax,8), %rdi
testl %eax, %eax
cmovsq %r13, %rdi
leaq (,%rax,4), %rbx
cmovsq %r13, %rbx
callq 0x1030
movq %rax, %r13
movq %rbx, %rdi
callq 0x1030
movq %rax, %rbx
xorl %eax, %eax
testl %r12d, %r12d
cmovlel %eax, %r12d
cmpq %rax, %r12
je 0x3e59
movsd 0x8(%rbp,%rax,8), %xmm0
subsd (%rbp,%rax,8), %xmm0
movsd %xmm0, (%r15,%rax,8)
incq %rax
jmp 0x3e3d
xorl %eax, %eax
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
movl $0x0, %r12d
cmovgl %ecx, %r12d
cmpq %rax, %r12
je 0x3e79
andl $0x0, (%rbx,%rax,4)
incq %rax
jmp 0x3e6b
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %r8
callq 0x3d3b
movq 0x10(%rsp), %rsi
xorl %eax, %eax
movq 0x20(%rsp), %rdx
cmpq %rax, %r12
je 0x3ec1
movsd (%rsi,%rax,8), %xmm0
movslq (%rbx,%rax,4), %rcx
subsd -0x8(%rbp,%rcx,8), %xmm0
divsd -0x8(%r15,%rcx,8), %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
jmp 0x3e9a
xorl %eax, %eax
cmpq %rax, %r12
je 0x3ef2
movslq (%rbx,%rax,4), %rcx
movsd -0x8(%r14,%rcx,8), %xmm0
movsd (%r14,%rcx,8), %xmm1
subsd %xmm0, %xmm1
mulsd (%r13,%rax,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rax,8)
incq %rax
jmp 0x3ec3
movq %rbx, %rdi
callq 0x1110
movq %r13, %rdi
callq 0x1110
movq %r15, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/matlabfunctions.cpp
// Function: decimate(double*, int, int, double*)
void decimate(double *x, int x_length, int r, double *y) {
  const int kNFact = 9;
  double *tmp1 = new double[x_length + kNFact * 2];
  double *tmp2 = new double[x_length + kNFact * 2];

  for (int i = 0; i < kNFact; ++i) tmp1[i] = 2 * x[0] - x[kNFact - i];
  for (int i = kNFact; i < kNFact + x_length; ++i) tmp1[i] = x[i - kNFact];
  for (int i = kNFact + x_length; i < 2 * kNFact + x_length; ++i)
    tmp1[i] = 2 * x[x_length - 1] - x[x_length - 2 - (i - (kNFact + x_length))];

  FilterForDecimate(tmp1, 2 * kNFact + x_length, r, tmp2);
  for (int i = 0; i < 2 * kNFact + x_length; ++i)
    tmp1[i] = tmp2[2 * kNFact + x_length - i - 1];
  FilterForDecimate(tmp1, 2 * kNFact + x_length, r, tmp2);
  for (int i = 0; i < 2 * kNFact + x_length; ++i)
    tmp1[i] = tmp2[2 * kNFact + x_length - i - 1];

  int nout = x_length / r + 1;
  int nbeg = r - r * nout + x_length;

  int count = 0;
  for (int i = nbeg; i < x_length + kNFact; i += r)
    y[count++] = tmp1[i + kNFact - 1];

  delete[] tmp1;
  delete[] tmp2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movl %edx, 0x4(%rsp)
movl %esi, %r12d
movq %rdi, %rbp
leal 0x12(%r12), %eax
movq %rax, 0x8(%rsp)
leaq (,%rax,8), %rax
cmpl $-0x12, %esi
pushq $-0x1
popq %r15
cmovgeq %rax, %r15
movq %r15, %rdi
callq 0x1030
movq %rax, %r14
movq %r15, %rdi
callq 0x1030
movq %rax, %r15
movsd (%rbp), %xmm0
leaq 0x48(%rbp), %rax
xorl %ecx, %ecx
addsd %xmm0, %xmm0
cmpq $0x9, %rcx
je 0x3f92
movapd %xmm0, %xmm1
subsd (%rax), %xmm1
movsd %xmm1, (%r14,%rcx,8)
incq %rcx
addq $-0x8, %rax
jmp 0x3f75
leal 0x9(%r12), %eax
movslq %eax, %r13
pushq $0x9
popq %rax
cmpq %r13, %rax
jge 0x3fb3
movsd -0x48(%rbp,%rax,8), %xmm0
movsd %xmm0, (%r14,%rax,8)
incq %rax
jmp 0x3f9d
movslq %r12d, %rax
movsd -0x8(%rbp,%rax,8), %xmm0
leal -0x2(%r12), %eax
movslq 0x8(%rsp), %rcx
addsd %xmm0, %xmm0
movq %r13, %rdx
cmpq %rcx, %rdx
jge 0x3feb
cltq
movapd %xmm0, %xmm1
subsd (%rbp,%rax,8), %xmm1
movsd %xmm1, (%r14,%rdx,8)
incq %rdx
decl %eax
jmp 0x3fcd
movq %r14, %rdi
movq %r12, 0x10(%rsp)
movq 0x8(%rsp), %r12
movl %r12d, %esi
movl 0x4(%rsp), %edx
movq %r15, %rcx
callq 0x40b6
xorl %eax, %eax
testl %r12d, %r12d
movl $0x0, %ebp
cmovgl %r12d, %ebp
movq 0x10(%rsp), %r12
leal 0x11(%r12), %ecx
cmpq %rax, %rbp
je 0x403a
movslq %ecx, %rcx
movsd (%r15,%rcx,8), %xmm0
movsd %xmm0, (%r14,%rax,8)
incq %rax
decl %ecx
jmp 0x401f
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movl 0x4(%rsp), %edx
movq %r15, %rcx
callq 0x40b6
leal 0x11(%r12), %eax
xorl %ecx, %ecx
cmpq %rcx, %rbp
je 0x406f
cltq
movsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%r14,%rcx,8)
incq %rcx
decl %eax
jmp 0x4055
movl %r12d, %eax
cltd
movl 0x4(%rsp), %ecx
idivl %ecx
movslq %edx, %rax
movslq %ecx, %rcx
cmpq %r13, %rax
jge 0x4098
movsd 0x40(%r14,%rax,8), %xmm0
movsd %xmm0, (%rbx)
addq %rcx, %rax
addq $0x8, %rbx
jmp 0x407f
movq %r14, %rdi
callq 0x1110
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/matlabfunctions.cpp
// Function: interp1Q(double, double, double*, int, double*, int, double*)
void interp1Q(double x, double shift, double *y, int x_length, double *xi,
    int xi_length, double *yi) {
  double *xi_fraction = new double[xi_length];
  double *delta_y = new double[x_length];
  int *xi_base = new int[xi_length];

  double delta_x = shift;
  for (int i = 0; i < xi_length; ++i) {
    xi_base[i] = static_cast<int>((xi[i] - x) / delta_x);
    xi_fraction[i] = (xi[i] - x) / delta_x - xi_base[i];
  }
  diff(y, x_length, delta_y);
  delta_y[x_length - 1] = 0.0;

  for (int i = 0; i < xi_length; ++i)
    yi[i] = y[xi_base[i]] + delta_y[xi_base[i]] * xi_fraction[i];

  // Bug was fixed at 2013/07/14 by M. Morise
  delete[] xi_fraction;
  delete[] xi_base;
  delete[] delta_y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, 0x20(%rsp)
movq %rdx, %r13
movl %esi, (%rsp)
movq %rdi, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movslq %ecx, %rax
xorl %r14d, %r14d
testl %eax, %eax
movl $0x0, %ebx
cmovgl %eax, %ebx
leaq (,%rax,4), %rbp
testl %eax, %eax
pushq $-0x1
popq %r12
cmovsq %r12, %rbp
movq %rax, %rdi
shlq $0x3, %rdi
testl %eax, %eax
cmovsq %r12, %rdi
callq 0x1030
movq %rax, %r15
movslq (%rsp), %rax
leaq (,%rax,8), %rdi
movq %rax, (%rsp)
testl %eax, %eax
cmovsq %r12, %rdi
callq 0x1030
movq %rax, %r12
movq %rbp, %rdi
callq 0x1030
movsd 0x8(%rsp), %xmm3
movsd 0x10(%rsp), %xmm2
movq %rax, %rbp
cmpq %r14, %rbx
je 0x42ae
movsd (%r13,%r14,8), %xmm0
subsd %xmm3, %xmm0
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %eax
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
movl %eax, (%rbp,%r14,4)
subsd %xmm1, %xmm0
movsd %xmm0, (%r15,%r14,8)
incq %r14
jmp 0x427a
movq 0x18(%rsp), %r14
movq %r14, %rdi
movq (%rsp), %r13
movl %r13d, %esi
movq %r12, %rdx
callq 0x41bc
andq $0x0, -0x8(%r12,%r13,8)
xorl %eax, %eax
movq 0x20(%rsp), %rdx
cmpq %rax, %rbx
je 0x42f8
movslq (%rbp,%rax,4), %rcx
movsd (%r12,%rcx,8), %xmm0
mulsd (%r15,%rax,8), %xmm0
addsd (%r14,%rcx,8), %xmm0
movsd %xmm0, (%rdx,%rax,8)
incq %rax
jmp 0x42d2
movq %r15, %rdi
callq 0x1110
movq %rbp, %rdi
callq 0x1110
movq %r12, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/matlabfunctions.cpp
// Function: randn()
double randn(void) {
  static unsigned int x = 123456789;
  static unsigned int y = 362436069;
  static unsigned int z = 521288629;
  static unsigned int w = 88675123;
  unsigned int t;
  t = x ^ (x << 11);
  x = y;
  y = z;
  z = w;

  unsigned int tmp = 0;
  for (int i = 0; i < 12; ++i) {
    t = x ^ (x << 11);
    x = y;
    y = z;
    z = w;
    w = (w ^ (w >> 19)) ^ (t ^ (t >> 8));
    tmp += w >> 4;
  }
  return tmp / 268435456.0 - 6.0;
}

// Assembly:
movl 0xcdd3(%rip), %r9d      # 0x110f8
movl 0xcdd1(%rip), %edx      # 0x110fc
xorl %eax, %eax
pushq $0xc
popq %rsi
movl 0xcdca(%rip), %edi      # 0x11100
movl %edi, %ecx
movl %edx, %r8d
movl %ecx, %edx
movl %edi, %ecx
subl $0x1, %esi
jb 0x436e
movl %r9d, %edi
shll $0xb, %edi
xorl %r9d, %edi
movl %ecx, %r9d
shrl $0x13, %r9d
xorl %edi, %r9d
shrl $0x8, %edi
xorl %r9d, %edi
xorl %ecx, %edi
movl %edi, %r9d
shrl $0x4, %r9d
addl %r9d, %eax
movl %r8d, %r9d
jmp 0x4338
movl %r8d, 0xcd83(%rip)      # 0x110f8
movl %edx, 0xcd81(%rip)      # 0x110fc
movl %eax, %eax
cvtsi2sd %rax, %xmm0
mulsd 0x8d8e(%rip), %xmm0     # 0xd118
movl %ecx, 0xcd70(%rip)      # 0x11100
addsd 0x8d88(%rip), %xmm0     # 0xd120
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/matlabfunctions.cpp
// Function: matlab_std(double*, int)
double matlab_std(double *x, int x_length) {
  double average = 0.0;
  for (int i = 0; i < x_length; ++i) average += x[i];
  average /= x_length;

  double s = 0.0;
  for (int i = 0; i < x_length; ++i) s += pow(x[i] - average, 2.0);
  s /= (x_length - 1);

  return sqrt(s);
}

// Assembly:
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %eax
cmovgl %esi, %eax
xorpd %xmm1, %xmm1
cmpq %rcx, %rax
je 0x45b4
addsd (%rdi,%rcx,8), %xmm1
incq %rcx
jmp 0x45a5
cvtsi2sd %esi, %xmm0
divsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x45dd
movsd (%rdi,%rcx,8), %xmm2
subsd %xmm1, %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rcx
jmp 0x45c2
decl %esi
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1090
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/fft.cpp
// Function: fft_plan_dft_1d(int, double (*) [2], double (*) [2], int, unsigned int)
fft_plan fft_plan_dft_1d(int n, fft_complex *in, fft_complex *out, int sign,
    unsigned int flags) {
  void makewt(int nw, int *ip, double *w);

  fft_plan output = {0};
  output.n = n;
  output.in = NULL;
  output.c_in = in;
  output.out = NULL;
  output.c_out = out;
  output.sign = sign;
  output.flags = flags;
  output.input = new double[n * 2];
  output.ip = new int[n];
  output.w = new double[n * 5 / 4];

  output.ip[0] = 0;
  makewt(output.n >> 1, output.ip, output.w);
  return output;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r10
movl %esi, %ebx
leal (%rbx,%rbx,4), %eax
pushq $0x4
popq %rsi
cltd
idivl %esi
movslq %eax, %r14
shlq $0x3, %r14
testl %ebx, %ebx
movl %ebx, %r12d
pushq $-0x1
popq %rdx
cmovsq %rdx, %r14
shlq $0x2, %r12
testl %ebx, %ebx
cmovsq %rdx, %r12
leal (%rbx,%rbx), %eax
cltq
shlq $0x3, %rax
testl %ebx, %ebx
cmovsq %rdx, %rax
movq %rdi, %r15
andq $0x0, 0x8(%rdi)
movl %ebx, (%rdi)
movq %r10, 0x10(%rdi)
movq %rcx, 0x20(%rdi)
movl %r8d, 0x4(%rdi)
movl %r9d, 0x8(%rdi)
andq $0x0, 0x18(%rdi)
andq $0x0, 0x28(%rdi)
movq %rax, %rdi
callq 0x1030
movq %rax, 0x30(%r15)
movq %r12, %rdi
callq 0x1030
movq %rax, %r12
movq %rax, 0x38(%r15)
movq %r14, %rdi
callq 0x1030
movq %rax, 0x40(%r15)
andl $0x0, (%r12)
sarl %ebx
movl %ebx, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x7084
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/fft.cpp
// Function: fft_plan_dft_c2r_1d(int, double (*) [2], double*, unsigned int)
fft_plan fft_plan_dft_c2r_1d(int n, fft_complex *in, double *out,
    unsigned int flags) {
  void makewt(int nw, int *ip, double *w);
  void makect(int nc, int *ip, double *c);

  fft_plan output = {0};
  output.n = n;
  output.in = NULL;
  output.c_in = in;
  output.out = out;
  output.c_out = NULL;
  output.sign = FFT_BACKWARD;
  output.flags = flags;
  output.input = new double[n];
  output.ip = new int[n];
  output.w = new double[n * 5 / 4];

  output.ip[0] = 0;
  makewt(output.n >> 2, output.ip, output.w);
  makect(output.n >> 2, output.ip, output.w + (output.n >> 2));
  return output;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r9
movslq %esi, %rbx
leal (%rbx,%rbx,4), %eax
pushq $0x4
popq %rsi
cltd
idivl %esi
movslq %eax, %r15
shlq $0x3, %r15
testl %ebx, %ebx
pushq $-0x1
popq %rdx
cmovsq %rdx, %r15
leaq (,%rbx,4), %r12
testl %ebx, %ebx
cmovsq %rdx, %r12
movq %rbx, %rax
shlq $0x3, %rax
testl %ebx, %ebx
cmovsq %rdx, %rax
movq %rdi, %r14
andq $0x0, 0x8(%rdi)
movl %ebx, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movq %r9, 0x10(%rdi)
movq %rcx, 0x28(%rdi)
movl $0x2, 0x4(%rdi)
movl %r8d, 0x8(%rdi)
movq %rax, %rdi
callq 0x1030
movq %rax, 0x30(%r14)
movq %r12, %rdi
callq 0x1030
movq %rax, %r12
movq %rax, 0x38(%r14)
movq %r15, %rdi
callq 0x1030
movq %rax, %r15
movq %rax, 0x40(%r14)
andl $0x0, (%r12)
sarl $0x2, %ebx
movl %ebx, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x7084
movslq %ebx, %rdi
leaq (%r15,%rdi,8), %rdx
movq %r12, %rsi
callq 0x73b0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Sleepwalking[P]world-octave/fft.cpp
// Function: makect(int, int*, double*)
void makect(int nc, int *ip, double *c) {
  int j, nch;
  double delta;

  ip[1] = nc;
  if (nc > 1) {
    nch = nc >> 1;
    delta = atan(1.0) / nch;
    c[0] = cos(delta * nch);
    c[nch] = 0.5 * c[0];
    for (j = 1; j < nch; j++) {
      c[j] = 0.5 * cos(delta * j);
      c[nc - j] = 0.5 * sin(delta * j);
    }
  }
}

// Assembly:
movl %edi, 0x4(%rsi)
cmpl $0x2, %edi
jl 0x7467
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movl %edi, %ebp
movl %edi, %r14d
shrl %r14d
cvtsi2sd %r14d, %xmm0
movsd 0x60b0(%rip), %xmm1     # 0xd490
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
mulsd %xmm1, %xmm0
callq 0x11b0
movsd %xmm0, (%rbx)
mulsd 0x5cc2(%rip), %xmm0     # 0xd0c0
movsd %xmm0, (%rbx,%r14,8)
movl %ebp, %r15d
decq %r15
pushq $0x1
popq %r12
cmpq %r12, %r14
je 0x745b
cvtsi2sd %r12d, %xmm0
mulsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x11b0
movsd 0x5c90(%rip), %xmm1     # 0xd0c0
mulsd %xmm1, %xmm0
movsd %xmm0, (%rbx,%r12,8)
movsd 0x8(%rsp), %xmm0
callq 0x1060
mulsd 0x5c73(%rip), %xmm0     # 0xd0c0
movsd %xmm0, (%rbx,%r15,8)
incq %r12
decq %r15
jmp 0x740e
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq