LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/Brill-test.cpp
// Function: main
int main(int argc, char ** argv) {

	if(argc != 4) {
		cout << "Usage: Brill-test CORPUS_FILE TAGSET_FILE TRANSFORMATIONS_FILE" << endl;
		return 1;
	}

	try {
		Corpus base_corp = Corpus::load_file(argv[1]);
		RulesApplier appl(argv[2], argv[3], & base_corp);

		appl.transform(& base_corp); // discard returned corpus, we need only the scores

		cout << "Unigrams: " << appl.baseline_score << endl;
		cout << "Transformations: " << appl.final_score << endl;
	}

	catch(const char * e) {
		cout << e << endl;
		return 1;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
cmpl $0x4, %edi
jne 0x5ee6
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq -0x58(%rbp), %rdi
callq 0x26aa
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
leaq -0xd0(%rbp), %rdi
leaq -0x58(%rbp), %rcx
callq 0x4f7a
leaq -0x118(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x54ba
leaq -0x100(%rbp), %rdi
callq 0x68bc
leaq -0x118(%rbp), %rdi
callq 0x672e
movq 0x71da(%rip), %rdi      # 0xcfd8
leaq 0x35d2(%rip), %rsi      # 0x93d7
movl $0xa, %edx
callq 0x2200
movsd -0x68(%rbp), %xmm0
movq 0x71bd(%rip), %rdi      # 0xcfd8
callq 0x22a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movq 0x7187(%rip), %rdi      # 0xcfd8
leaq 0x358a(%rip), %rsi      # 0x93e2
movl $0x11, %edx
callq 0x2200
movsd -0x60(%rbp), %xmm0
movq 0x716a(%rip), %rdi      # 0xcfd8
callq 0x22a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq -0xa0(%rbp), %rbx
movq %rbx, %rdi
callq 0x68bc
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x5ec4
movq -0xa8(%rbp), %rsi
subq %rdi, %rsi
callq 0x21c0
leaq -0xd0(%rbp), %rdi
callq 0x61a0
leaq -0x40(%rbp), %rdi
callq 0x68bc
leaq -0x58(%rbp), %rdi
callq 0x672e
xorl %eax, %eax
jmp 0x5f2d
movq 0x70eb(%rip), %rbx      # 0xcfd8
leaq 0x34a4(%rip), %rsi      # 0x9398
movl $0x3e, %edx
movq %rbx, %rdi
callq 0x2200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movl $0x1, %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %rbp
retq
movq %rdx, %r14
movq %rax, %rbx
jmp 0x5f5b
movq %rdx, %r14
movq %rax, %rbx
jmp 0x5f6d
movq %rdx, %r14
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x66f8
leaq -0x40(%rbp), %rdi
callq 0x68bc
leaq -0x58(%rbp), %rdi
callq 0x672e
cmpl $0x1, %r14d
jne 0x5fa1
movq %rbx, %rdi
callq 0x20c0
movq 0x7056(%rip), %rdi      # 0xcfd8
movq %rax, %rsi
callq 0x21a0
movq %rax, %rdi
callq 0x20e0
callq 0x22c0
jmp 0x5f28
movq %rax, %rbx
callq 0x22c0
movq %rbx, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O1/rapirent[P]JPEG/./util.h
// Function: read_word_to_bigendian(_IO_FILE*)
uint16_t read_word_to_bigendian(FILE* fp)
{
    byte high,low;
    fread(&high, 1, 1, fp);
    fread(&low, 1, 1, fp);
    word word_value = 0x0000;
    word_value = ((word_value | high) << 8) &0xff00;
    word_value = word_value | low;
    return word_value;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xf(%rsp), %r14
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
leaq 0xe(%rsp), %r15
movl $0x1, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x51b0
movzbl (%r14), %ecx
shll $0x8, %ecx
movzbl (%r15), %eax
orl %ecx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/rapirent[P]JPEG/decoder.c
// Function: huffman_table_index(unsigned char)
int huffman_table_index (byte index)
{
    switch(index) {
        case 0x10:
            return 2;
        case 0x11:
            return 3;
        case 0x00:
            return 0;
        case 0x01:
            return 1;
        default:
            printf("huffman table index error");
            exit(1);
    }
}

// Assembly:
cmpl $0xf, %edi
jg 0x53f8
testl %edi, %edi
je 0x540d
cmpl $0x1, %edi
jne 0x5410
movl $0x1, %eax
retq
movl $0x2, %eax
cmpl $0x10, %edi
je 0x540f
cmpl $0x11, %edi
jne 0x5410
movl $0x3, %eax
retq
xorl %eax, %eax
retq
pushq %rax
leaq 0x249d(%rip), %rdi      # 0x78b5
xorl %eax, %eax
callq 0x5040
movl $0x1, %edi
callq 0x5160
// File: /workspace/github_cpp_makefile_star2_O1/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
je 0x551b
leaq 0x63ca(%rip), %r12      # 0xb860
movl $0x1, %esi
movl $0x1, %edx
leaq 0x7(%rsp), %rdi
movq %rbx, %rcx
callq 0x51b0
decb %bpl
movzbl 0x7(%rsp), %r14d
movl %r14d, %r13d
andl $0xf, %r13d
shll $0x8, %r13d
xorl %r15d, %r15d
cmpb $0x10, %r14b
jb 0x54d8
movq %rbx, %rdi
callq 0x536c
addb $-0x2, %bpl
jmp 0x54f7
movl $0x1, %esi
movl $0x1, %edx
leaq 0x6(%rsp), %rdi
movq %rbx, %rcx
callq 0x51b0
decb %bpl
movzbl 0x6(%rsp), %eax
movzwl %ax, %eax
leaq (,%r15,4), %rcx
addq %r13, %rcx
movl %eax, (%r12,%rcx)
incq %r15
cmpq $0x40, %r15
jne 0x54c4
testb %bpl, %bpl
jne 0x5496
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x6723(%rip), %rdi      # 0xbc67
movl $0x1, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x51b0
movq %rbx, %rdi
callq 0x536c
movw %ax, 0x66fb(%rip)       # 0xbc60
movq %rbx, %rdi
callq 0x536c
movw %ax, 0x66ee(%rip)       # 0xbc62
leaq 0x66eb(%rip), %rdi      # 0xbc66
movl $0x1, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x51b0
movw $0x0, 0x66ce(%rip)      # 0xbc64
cmpb $0x0, 0x66c9(%rip)      # 0xbc66
je 0x5653
xorl %ebp, %ebp
leaq 0x7(%rsp), %r14
leaq 0x6(%rsp), %r15
leaq 0x66af(%rip), %r12      # 0xbc65
leaq 0x66a3(%rip), %r13      # 0xbc60
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
movl $0x1, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x51b0
movb 0x6(%rsp), %cl
movl %ecx, %edx
shrb $0x4, %dl
movzbl 0x7(%rsp), %eax
leaq (%rax,%rax,2), %rsi
movb %dl, (%r12,%rsi)
andb $0xf, %cl
movb %cl, 0x1(%r12,%rsi)
cmpb 0x665a(%rip), %dl       # 0xbc65
jbe 0x5613
movb %dl, 0x6652(%rip)       # 0xbc65
cmpb 0x664b(%rip), %cl       # 0xbc64
jbe 0x5621
movb %cl, 0x6643(%rip)       # 0xbc64
decq %rax
leaq (%rax,%rax,2), %rax
leaq (%rax,%r13), %rdi
addq $0xa, %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x51b0
incl %ebp
movzbl 0x661b(%rip), %eax      # 0xbc66
cmpl %eax, %ebp
jb 0x55bd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
movzbl (%r14), %r12d
leal 0x6(,%r12,2), %eax
cmpl %ebp, %eax
jne 0x58e9
cmpl $0x3, %r12d
jne 0x5908
leaq 0x6(%rsp), %r14
leaq 0x5(%rsp), %r15
leaq 0x6467(%rip), %r13      # 0xbcc0
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
movl $0x1, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x51b0
movb 0x5(%rsp), %al
movzbl 0x6(%rsp), %ecx
movb %al, -0x1(%rcx,%r13)
decl %r12d
jne 0x5859
leaq 0x5(%rsp), %r14
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1fdf(%rip), %rdi      # 0x78cf
leaq 0x1ff1(%rip), %rsi      # 0x78e8
leaq 0x1ff4(%rip), %rcx      # 0x78f2
movl $0xab, %edx
callq 0x5090
leaq 0x1ff9(%rip), %rdi      # 0x7908
leaq 0x1fd2(%rip), %rsi      # 0x78e8
leaq 0x1fd5(%rip), %rcx      # 0x78f2
movl $0xad, %edx
callq 0x5090
// File: /workspace/github_cpp_makefile_star2_O1/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, 0x659f(%rip)      # 0xbed1
jne 0x5979
movq %rdi, %rbx
leaq 0x6592(%rip), %rdi      # 0xbed0
movl $0x1, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x51b0
cmpb $-0x1, 0x6579(%rip)     # 0xbed0
jne 0x5979
leaq 0x7(%rsp), %r14
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x51b0
cmpb $0x0, (%r14)
jne 0x59ad
movzbl 0x6550(%rip), %eax      # 0xbed0
movb 0x654b(%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, 0x652c(%rip)       # 0xbed1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1f65(%rip), %rdi      # 0x7919
xorl %eax, %eax
callq 0x5040
movl $0x1, %edi
callq 0x5160
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x5927
movl %eax, %ebp
movl $0x1, %r15d
cmpb $0x2, %bl
jb 0x5a03
decl %ebx
movl $0x1, %r15d
movq %r14, %rdi
callq 0x5927
xorb %bpl, %al
xorb $0x1, %al
movzbl %al, %eax
leal (%rax,%r15,2), %r15d
decl %ebx
jne 0x59eb
movl %r15d, %eax
negl %eax
testb %bpl, %bpl
cmovnel %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movslq %esi, %rax
shlq $0x4, %rax
leaq 0x6245(%rip), %rcx      # 0xbc80
movq (%rax,%rcx), %rdx
movslq 0x8(%rax,%rcx), %r15
testq %r15, %r15
setg %r12b
movl %r15d, %r13d
addq $0x8, %rdx
movq %rdx, 0x8(%rsp)
negq %r13
xorl %ebp, %ebp
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x10(%rsp), %rdi
callq 0x5927
andl $0x7fff, %r14d          # imm = 0x7FFF
movzbl %al, %eax
leal (%rax,%r14,2), %r14d
testl %r15d, %r15d
jle 0x5ab8
leal 0x1(%rbx), %ecx
movl $0x1, %edx
movq 0x8(%rsp), %rsi
movl %r12d, %eax
movzwl -0x8(%rsi), %edi
cmpl %edi, %r14d
jne 0x5a9c
cmpl %ecx, -0x4(%rsi)
je 0x5abd
cmpq %r15, %rdx
setl %al
addq $0xc, %rsi
leaq (%rdx,%r13), %rdi
incq %rdi
incq %rdx
cmpq $0x1, %rdi
jne 0x5a8e
jmp 0x5ac3
movl %r12d, %eax
jmp 0x5ac3
movb (%rsi), %cl
movb %cl, 0x7(%rsp)
testb $0x1, %al
jne 0x5ad8
cmpl $0xf, %ebx
leal 0x1(%rbx), %eax
setae %bpl
movl %eax, %ebx
cmpl $0x10, %eax
jne 0x5a61
testb $0x1, %bpl
jne 0x5af1
movb 0x7(%rsp), %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1f50(%rip), %rdi      # 0x7a48
callq 0x51d0
movl $0x1, %edi
callq 0x5160
// File: /workspace/github_cpp_makefile_star2_O1/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 0x112e
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 0x2ea3(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movq %r10, %rsi
callq 0x10b0
xorl %eax, %eax
addq $0xd8, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rsi, %r14
movl %edi, %ebx
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rsp, %rcx
movq $0x5, (%rcx)
leaq 0x782(%rip), %rsi       # 0x20c9
leaq 0x10(%rsp), %rdx
movq %rsi, (%rdx)
movb $0x66, 0x8(%rdx)
leaq 0x774(%rip), %rsi       # 0x20ce
movq %rsi, 0x10(%rdx)
movl $0x4, 0x18(%rdx)
movq %rax, 0x20(%rdx)
xorl %ebp, %ebp
movb %bpl, 0x28(%rdx)
leaq 0x765(%rip), %rax       # 0x20db
movq %rax, 0x30(%rdx)
movb $0x6e, 0x38(%rdx)
leaq 0x75d(%rip), %rax       # 0x20e2
movq %rax, 0x40(%rdx)
movl $0x2, 0x48(%rdx)
movq %rcx, 0x50(%rdx)
movb %bpl, 0x58(%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rdx)
movaps %xmm0, 0x70(%rdx)
movaps %xmm0, 0x80(%rdx)
leaq 0x738(%rip), %rax       # 0x20e9
movq %rax, 0x60(%rdx)
movl $0x10, 0x78(%rdx)
movaps %xmm0, 0x90(%rdx)
movaps %xmm0, 0xa0(%rdx)
movaps %xmm0, 0xb0(%rdx)
movq %r14, %rsi
callq 0x13ea
testl %eax, %eax
js 0x1a88
movl %eax, %r15d
movq 0x8(%rsp), %r12
leaq 0x10(%rsp), %rsi
movl $0x66, %edi
callq 0x182e
leaq 0x646(%rip), %rcx       # 0x2045
leaq 0x6fe(%rip), %r13       # 0x2104
testb %al, %al
movq %r13, %rdx
cmovneq %rcx, %rdx
leaq 0x6d8(%rip), %rdi       # 0x20ee
movq %r12, %rsi
xorl %eax, %eax
callq 0x1080
movq (%rsp), %r12
movl $0x6e, %edi
leaq 0x10(%rsp), %rsi
callq 0x182e
testb %al, %al
leaq 0x609(%rip), %rax       # 0x2045
cmovneq %rax, %r13
leaq 0x6c2(%rip), %rdi       # 0x2109
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x1080
cmpl %ebx, %r15d
jge 0x1aa1
movl %r15d, %eax
leaq (%r14,%rax,8), %r12
leaq 0x6bc(%rip), %r14       # 0x2123
xorl %ebp, %ebp
movq (%r12), %rdx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x1080
addq $0x8, %r12
incl %r15d
cmpl %ebx, %r15d
jl 0x1a69
jmp 0x1aa1
movq (%r14), %rsi
leaq -0x9c2(%rip), %rdi      # 0x10d0
leaq 0x10(%rsp), %rdx
callq 0x125c
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %r14d
movl $0x4, %edi
callq 0x1080
movq %rax, %rbx
movl %r14d, (%rax)
movq 0x2d7b(%rip), %r15      # 0x3fd0
movq %r15, %rdi
movl %r14d, %esi
callq 0x10b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x10, %rsp
movq 0x2d39(%rip), %rdi      # 0x3fe0
leaq -0x14(%rbp), %rsi
callq 0x1040
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x12f7
movq 0x2d1b(%rip), %rbx      # 0x3fe0
leaq -0x14(%rbp), %r14
movl -0x14(%rbp), %edi
callq 0x1231
movl $0x4, %esi
movq %rax, %rdi
callq 0x1090
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1040
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x12c9
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xdd03(%rip), %xmm1     # 0xf018
movsd %xmm0, 0x8(%rsp)
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movapd %xmm0, 0x10(%rsp)
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %r13d
movslq %r13d, %rbp
leaq 0x8(,%rbp,8), %rax
cmpl $-0x1, %ebp
movq $-0x1, %r12
cmovgeq %rax, %r12
movq %r12, %rdi
callq 0x1030
movq %rax, %r15
movq %r12, %rdi
callq 0x1030
movsd (%rsp), %xmm3
movq %r13, %rsi
movapd 0x10(%rsp), %xmm1
movq %rax, %r12
testl %ebp, %ebp
js 0x13a8
leal 0x1(%rsi), %eax
xorl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
mulsd %xmm1, %xmm0
divsd %xmm3, %xmm0
movsd %xmm0, (%r12,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x138b
movapd %xmm3, %xmm2
movsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm2
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %r13d
leal 0x1(%r13), %ebp
subsd (%r12), %xmm0
xorpd 0xdc9f(%rip), %xmm1     # 0xf070
divsd %xmm3, %xmm1
addl $0x2, %esi
movq %r14, %rdi
movq %r12, %rdx
movl %ebp, %ecx
movq %r15, %r8
callq 0x4607
testl %r13d, %r13d
js 0x1408
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
addsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%rbx,%rax,8)
incq %rax
cmpq %rax, %rbp
jne 0x13ef
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_O1/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:
testl %edi, %edi
jle 0x1816
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
leal -0x1(%rdi), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x18(%rsp)
movl %edi, %r14d
xorl %r15d, %r15d
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
divsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
mulsd 0xd890(%rip), %xmm0     # 0xf028
callq 0x11b0
mulsd 0xd88b(%rip), %xmm0     # 0xf030
addsd 0xd88b(%rip), %xmm0     # 0xf038
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
mulsd 0xd87f(%rip), %xmm0     # 0xf040
callq 0x11b0
mulsd 0xd87a(%rip), %xmm0     # 0xf048
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
mulsd 0xd868(%rip), %xmm0     # 0xf050
callq 0x11b0
mulsd 0xd863(%rip), %xmm0     # 0xf058
addsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x177c
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movq $-0x1, %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
movq %r15, %rdi
movl %r14d, %esi
movq %r12, %rdx
movq %rax, %rcx
movl $0x3, %r8d
callq 0x7e34
addq $0x18, %rbx
movl $0x9, %ecx
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_O1/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 %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
movq $-0x1, %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)
movq %rsp, %r15
movq %r15, %rdi
movl %r14d, %esi
movq %r12, %rdx
movq %rax, %rcx
movl $0x3, %r8d
callq 0x7e34
leaq 0x20(%rbx), %rdi
movl $0x9, %ecx
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rdx
movq %rsp, %r15
movq %r15, %rdi
movl %r14d, %esi
movl $0x1, %r8d
movl $0x3, %r9d
callq 0x7974
addq $0x68, %rbx
movl $0x9, %ecx
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_O1/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 %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq 0x68(%rdi), %rsi
movl $0x9, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
callq 0x81c6
leaq 0x20(%rbx), %rsi
movl $0x9, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
callq 0x81c6
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x1c5f
callq 0x1110
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x1c6d
callq 0x1110
movq 0x10(%rbx), %rdi
addq $0x50, %rsp
testq %rdi, %rdi
je 0x1c80
popq %rbx
jmp 0x1110
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xbd23(%rip), %xmm0     # 0xf0a8
subsd %xmm1, %xmm0
mulsd 0xbcf7(%rip), %xmm0     # 0xf088
movq (%rdi), %rcx
movslq %edx, %rax
movsd (%rcx,%rax,8), %xmm1
cmpl $0x2, %esi
jl 0x3400
movapd %xmm0, %xmm5
subsd %xmm1, %xmm5
andpd 0xbd0f(%rip), %xmm5     # 0xf0c0
movl %esi, %ecx
movl $0x1, %edx
movapd 0xbd00(%rip), %xmm4     # 0xf0c0
movq (%rdi,%rdx,8), %rsi
movsd (%rsi,%rax,8), %xmm6
movapd %xmm0, %xmm3
subsd %xmm6, %xmm3
andpd %xmm4, %xmm3
movapd %xmm3, %xmm7
minsd %xmm5, %xmm7
cmpltsd %xmm5, %xmm3
andpd %xmm3, %xmm6
andnpd %xmm1, %xmm3
orpd %xmm6, %xmm3
incq %rdx
movapd %xmm3, %xmm1
movapd %xmm7, %xmm5
cmpq %rdx, %rcx
jne 0x33c0
jmp 0x3404
movapd %xmm1, %xmm3
movapd %xmm3, %xmm1
divsd %xmm0, %xmm1
movsd 0xbbfc(%rip), %xmm0     # 0xf010
subsd %xmm1, %xmm0
andpd 0xbca0(%rip), %xmm0     # 0xf0c0
cmpltsd %xmm0, %xmm2
andnpd %xmm3, %xmm2
movapd %xmm2, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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:
xorl %eax, %eax
movl $0x0, %r9d
testl %ecx, %ecx
jle 0x4154
movl %ecx, %r10d
movsd (%rdi), %xmm0
xorl %r9d, %r9d
movl $0x1, (%r8,%r9,4)
movsd (%rdx,%r9,8), %xmm1
ucomisd %xmm0, %xmm1
jae 0x4154
incq %r9
cmpq %r9, %r10
jne 0x4135
movl %r10d, %r9d
cmpl %ecx, %r9d
jge 0x418f
movl $0x1, %eax
movslq %r9d, %r9
movl %eax, %r10d
movsd (%rdi,%r10,8), %xmm0
xorl %r10d, %r10d
ucomisd (%rdx,%r9,8), %xmm0
setbe %r10b
movl %eax, (%r8,%r9,4)
addl %r10d, %eax
subl %r10d, %r9d
cmpl %esi, %eax
je 0x418d
incl %r9d
cmpl %ecx, %r9d
jl 0x415e
decl %eax
leal 0x1(%r9), %edx
cmpl %ecx, %edx
jge 0x41a8
movslq %r9d, %rdx
decl %ecx
movl %eax, 0x4(%r8,%rdx,4)
incq %rdx
cmpl %edx, %ecx
jne 0x419c
retq
// File: /workspace/github_cpp_makefile_star2_O1/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)
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %rbp
leal -0x1(%r13), %eax
movl %eax, 0xc(%rsp)
movslq %eax, %rdi
shlq $0x3, %rdi
testl %edx, %edx
movq $-0x1, %r12
cmovleq %r12, %rdi
callq 0x1030
movq %rax, %r15
movl %ebx, 0x8(%rsp)
movslq %ebx, %rax
leaq (,%rax,8), %rdi
testl %eax, %eax
cmovsq %r12, %rdi
leaq (,%rax,4), %rbx
cmovsq %r12, %rbx
callq 0x1030
movq %rax, %r12
movq %rbx, %rdi
callq 0x1030
movq %rax, %rbx
movq %r13, 0x18(%rsp)
cmpl $0x2, %r13d
jl 0x4254
movl 0xc(%rsp), %eax
xorl %ecx, %ecx
movsd 0x8(%rbp,%rcx,8), %xmm0
subsd (%rbp,%rcx,8), %xmm0
movsd %xmm0, (%r15,%rcx,8)
leaq 0x1(%rcx), %rdx
movq %rdx, %rcx
cmpq %rdx, %rax
jne 0x4236
movl 0x8(%rsp), %eax
movl %eax, %r13d
testl %eax, %eax
jle 0x4271
leaq (,%r13,4), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1080
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movl 0x8(%rsp), %ecx
movq %rbx, %r8
callq 0x411f
movq 0x10(%rsp), %rdx
cmpl $0x0, 0x8(%rsp)
jle 0x42bc
xorl %eax, %eax
movsd (%rdx,%rax,8), %xmm0
movslq (%rbx,%rax,4), %rcx
subsd -0x8(%rbp,%rcx,8), %xmm0
divsd -0x8(%r15,%rcx,8), %xmm0
movsd %xmm0, (%r12,%rax,8)
incq %rax
cmpq %rax, %r13
jne 0x4298
cmpl $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdx
jle 0x42f6
xorl %eax, %eax
movslq (%rbx,%rax,4), %rcx
movsd -0x8(%r14,%rcx,8), %xmm0
movsd (%r14,%rcx,8), %xmm1
subsd %xmm0, %xmm1
mulsd (%r12,%rax,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rax,8)
incq %rax
cmpq %rax, %r13
jne 0x42ca
movq %rbx, %rdi
callq 0x1110
movq %r12, %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_O1/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 $0x38, %rsp
movq %r8, 0x30(%rsp)
movl %ecx, 0xc(%rsp)
movq %rdx, %rbx
movl %esi, %r13d
movq %rdi, %r14
movsd %xmm1, 0x20(%rsp)
movsd %xmm0, 0x18(%rsp)
movslq %ecx, %rax
movq %rax, 0x10(%rsp)
leaq (,%rax,8), %rdi
leaq (,%rax,4), %rbp
testl %eax, %eax
movq $-0x1, %rax
cmovsq %rax, %rdi
movslq %esi, %r12
cmovsq %rax, %rbp
callq 0x1030
movq %rax, %r15
leaq (,%r12,8), %rdi
movq %r12, 0x28(%rsp)
testl %r12d, %r12d
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x1030
movq %rax, %r12
movq %rbp, %rdi
callq 0x1030
movsd 0x18(%rsp), %xmm3
movsd 0x20(%rsp), %xmm2
movl 0xc(%rsp), %esi
movq %rax, %rbp
movl %esi, %eax
cmpl $0x0, 0x10(%rsp)
jle 0x46df
xorl %ecx, %ecx
movsd (%rbx,%rcx,8), %xmm0
subsd %xmm3, %xmm0
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %edx
movl %edx, (%rbp,%rcx,4)
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, (%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x46b0
cmpl $0x2, %r13d
jl 0x4709
decl %r13d
xorl %ecx, %ecx
movsd 0x8(%r14,%rcx,8), %xmm0
subsd (%r14,%rcx,8), %xmm0
movsd %xmm0, (%r12,%rcx,8)
leaq 0x1(%rcx), %rdx
movq %rdx, %rcx
cmpq %rdx, %r13
jne 0x46ea
movq 0x28(%rsp), %rcx
movq $0x0, -0x8(%r12,%rcx,8)
testl %esi, %esi
movq 0x30(%rsp), %rsi
jle 0x4746
xorl %ecx, %ecx
movslq (%rbp,%rcx,4), %rdx
movsd (%r12,%rdx,8), %xmm0
mulsd (%r15,%rcx,8), %xmm0
addsd (%r14,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x4722
movq %r15, %rdi
callq 0x1110
movq %rbp, %rdi
callq 0x1110
movq %r12, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_cpp_makefile_star2_O1/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 0xd985(%rip), %r9d      # 0x120f8
movl 0xd983(%rip), %ecx      # 0x120fc
movl %ecx, 0xd979(%rip)      # 0x120f8
movl 0xd97a(%rip), %r10d     # 0x12100
movl %r10d, 0xd96f(%rip)     # 0x120fc
xorl %eax, %eax
movl $0xc, %edx
movl %r10d, %esi
movl %esi, %edi
movl %r10d, %r8d
movl %r9d, %esi
shll $0xb, %esi
xorl %r9d, %esi
movl %edi, %r9d
shrl $0x13, %r9d
xorl %esi, %r9d
shrl $0x8, %esi
xorl %r9d, %esi
xorl %edi, %esi
movl %esi, %r9d
shrl $0x4, %r9d
addl %r9d, %eax
movl %ecx, %r9d
movl %r10d, %ecx
movl %edi, %r10d
decl %edx
jne 0x4797
movl %r8d, 0xd923(%rip)      # 0x120f8
movl %edi, 0xd921(%rip)      # 0x120fc
movl %eax, %eax
cvtsi2sd %rax, %xmm0
mulsd 0xa8fe(%rip), %xmm0     # 0xf0e8
movl %esi, 0xd910(%rip)      # 0x12100
addsd 0xa8f8(%rip), %xmm0     # 0xf0f0
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
xorpd %xmm0, %xmm0
movl %esi, %eax
xorpd %xmm1, %xmm1
testl %esi, %esi
jle 0x4a4f
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm1
incq %rcx
cmpq %rcx, %rax
jne 0x4a42
testl %esi, %esi
jle 0x4a7d
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
divsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm2
subsd %xmm1, %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x4a64
decl %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1090
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %rdi, %rbx
leal (%rsi,%rsi,4), %eax
leal (%rsi,%rsi,4), %edi
addl $0x3, %edi
testl %eax, %eax
cmovnsl %eax, %edi
sarl $0x2, %edi
movslq %edi, %r15
shlq $0x3, %r15
testl %esi, %esi
movslq %esi, %r14
movq $-0x1, %rax
cmovsq %rax, %r15
leaq (,%r14,4), %r12
testl %r14d, %r14d
cmovsq %rax, %r12
leal (%r14,%r14), %esi
movslq %esi, %rdi
shlq $0x3, %rdi
testl %r14d, %r14d
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
cmovsq %rax, %rdi
xorl %eax, %eax
movq %rax, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movl %r14d, (%rbx)
movq %rax, 0x18(%rbx)
movq %rdx, 0x10(%rbx)
movq %rax, 0x28(%rbx)
movq %rcx, 0x20(%rbx)
movl %r8d, 0x4(%rbx)
movl %r9d, 0x8(%rbx)
callq 0x1030
movq %rax, 0x30(%rbx)
movq %r12, %rdi
callq 0x1030
movq %rax, %r12
movq %rax, 0x38(%rbx)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x40(%rbx)
movl $0x0, (%r12)
sarl %r14d
movl %r14d, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x7a47
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movslq %esi, %rbx
leal (%rbx,%rbx,4), %eax
leal (%rbx,%rbx,4), %esi
addl $0x3, %esi
testl %eax, %eax
cmovnsl %eax, %esi
sarl $0x2, %esi
movslq %esi, %r15
shlq $0x3, %r15
testl %ebx, %ebx
movq $-0x1, %rax
cmovsq %rax, %r15
leaq (,%rbx,4), %r12
testl %ebx, %ebx
cmovsq %rax, %r12
movq %rdi, %r14
movq %rbx, %rdi
shlq $0x3, %rdi
testl %ebx, %ebx
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, 0x20(%r14)
cmovsq %rax, %rdi
xorl %eax, %eax
movq %rax, 0x40(%r14)
movups %xmm0, 0x30(%r14)
movl %ebx, (%r14)
movq %rax, 0x18(%r14)
movq %rdx, 0x10(%r14)
movq %rcx, 0x28(%r14)
movq %rax, 0x20(%r14)
movl $0x2, 0x4(%r14)
movl %r8d, 0x8(%r14)
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)
movl $0x0, (%r12)
sarl $0x2, %ebx
movl %ebx, %edi
movq %r12, %rsi
movq %rax, %rdx
callq 0x7a47
movslq %ebx, %rdi
leaq (%r15,%rdi,8), %rdx
movq %r12, %rsi
callq 0x7d6d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7e33
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 0x7683(%rip), %xmm1     # 0xf420
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
mulsd %xmm1, %xmm0
callq 0x11b0
movsd %xmm0, (%rbx)
mulsd 0x72cd(%rip), %xmm0     # 0xf088
movsd %xmm0, (%rbx,%r14,8)
cmpl $0x4, %ebp
jb 0x7e27
movl %ebp, %eax
movl %r14d, %r14d
leaq (%rbx,%rax,8), %r15
addq $-0x8, %r15
movl $0x1, %r12d
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x11b0
movsd 0x728f(%rip), %xmm1     # 0xf088
mulsd %xmm1, %xmm0
movsd %xmm0, (%rbx,%r12,8)
movsd 0x8(%rsp), %xmm0
callq 0x1060
mulsd 0x7272(%rip), %xmm0     # 0xf088
movsd %xmm0, (%r15)
incq %r12
addq $-0x8, %r15
cmpq %r12, %r14
jne 0x7dd9
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: fft_destroy_plan(fft_plan)
void fft_destroy_plan(fft_plan p) {
  p.n = 0;
  p.in = NULL;
  p.c_in = NULL;
  p.out = NULL;
  p.c_out = NULL;
  p.sign = 0;
  p.flags = 0;
  delete[] p.input;
  delete[] p.ip;
  delete[] p.w;
}

// Assembly:
pushq %rbx
leaq 0x10(%rsp), %rbx
movq $0x0, (%rbx)
movl $0x0, 0x8(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, 0x20(%rbx)
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x81f3
callq 0x1110
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x8201
callq 0x1110
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x8210
popq %rbx
jmp 0x1110
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cdft(int, int, double*, int*, double*)
void cdft(int n, int isgn, double *a, int *ip, double *w) {
  void cftfsub(int n, double *a, int *ip, int nw, double *w);
  void cftbsub(int n, double *a, int *ip, int nw, double *w);
  int nw;

  nw = ip[0];
  if (isgn >= 0) {
    cftfsub(n, a, ip, nw, w);
  } else {
    cftbsub(n, a, ip, nw, w);
  }
}

// Assembly:
movl (%rcx), %eax
testl %esi, %esi
js 0x8225
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
jmp 0x8232
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
jmp 0x8394
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cftfsub(int, double*, int*, int, double*)
void cftfsub(int n, double *a, int *ip, int nw, double *w) {
  void bitrv2(int n, int *ip, double *a);
  void bitrv216(double *a);
  void bitrv208(double *a);
  void cftf1st(int n, double *a, double *w);
  void cftrec4(int n, double *a, int nw, double *w);
  void cftleaf(int n, int isplt, double *a, int nw, double *w);
  void cftfx41(int n, double *a, int nw, double *w);
  void cftf161(double *a, double *w);
  void cftf081(double *a, double *w);
  void cftf040(double *a);
  void cftx020(double *a);

  if (n > 8) {
    if (n > 32) {
      cftf1st(n, a, &w[nw - (n >> 2)]);
    if (n > 512) {
      cftrec4(n, a, nw, w);
    } else if (n > 128) {
      cftleaf(n, 1, a, nw, w);
    } else {
      cftfx41(n, a, nw, w);
    }
      bitrv2(n, ip, a);
    } else if (n == 32) {
      cftf161(a, &w[nw - 8]);
      bitrv216(a);
    } else {
      cftf081(a, w);
      bitrv208(a);
    }
  } else if (n == 8) {
    cftf040(a);
  } else if (n == 4) {
    cftx020(a);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
cmpl $0x9, %edi
jl 0x828e
movq %r8, %r15
movl %ecx, %r12d
cmpl $0x21, %ebp
jl 0x82ac
movq %rdx, %r14
movl %ebp, %eax
shrl $0x2, %eax
movl %r12d, %ecx
subl %eax, %ecx
movslq %ecx, %rax
leaq (%r15,%rax,8), %rdx
movl %ebp, %edi
movq %rbx, %rsi
callq 0x8875
movl %ebp, %edi
cmpl $0x201, %ebp            # imm = 0x201
jl 0x8318
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x936e
jmp 0x837f
cmpl $0x4, %ebp
je 0x82d8
cmpl $0x8, %ebp
jne 0x8368
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xabf9
cmpl $0x20, %ebp
jne 0x8335
movslq %r12d, %rax
leaq (%r15,%rax,8), %rsi
addq $-0x40, %rsi
movq %rbx, %rdi
callq 0xa1d6
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xa8fa
movsd 0x10(%rbx), %xmm0
movsd (%rbx), %xmm1
movsd 0x8(%rbx), %xmm2
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x18(%rbx), %xmm4
movapd %xmm2, %xmm5
subsd %xmm4, %xmm5
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
addsd %xmm4, %xmm2
movsd %xmm2, 0x8(%rbx)
movsd %xmm3, 0x10(%rbx)
movsd %xmm5, 0x18(%rbx)
jmp 0x8368
cmpl $0x81, %ebp
jl 0x8371
movl $0x1, %esi
movq %rbx, %rdx
movl %r12d, %ecx
movq %r15, %r8
callq 0x9480
jmp 0x837f
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa987
movupd 0x10(%rbx), %xmm0
movupd 0x30(%rbx), %xmm1
movupd 0x40(%rbx), %xmm2
movupd 0x60(%rbx), %xmm3
movupd %xmm2, 0x10(%rbx)
movupd %xmm3, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movupd %xmm1, 0x60(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x97bb
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x9861