// File: millanek[P]evo/evo_permute_codons.cpp
// Function: permuteCodons(int, char**)
int permuteCodons(int argc, char** argv) {
    parsePermuteCodonsOptions(argc, argv);
    std::vector<string> allAligmentFiles; string statsFileName; string pcaVectorsFileName;
    
    std::cerr << "Permuting gene coding sequences" << std::endl;
    
    
    std::ifstream* alignmentList = new std::ifstream(opt::alignmentListFile.c_str());
    std::cerr << "for the genes in: " << opt::alignmentListFile << std::endl;
    std::string line;
    while (getline(*alignmentList, line)) {
        allAligmentFiles.push_back(line);
    }
    
        
    // Loop over the mutiple alignment files for the first time to load the codons:
    std::vector<string> allSeqs; std::vector<string> sampleNames; std::vector<int> geneLengths;
    for (std::vector<std::string>::size_type i = 0; i != allAligmentFiles.size(); i++) {
        std::ifstream* alignment = new std::ifstream(allAligmentFiles[i].c_str());
        std::string line; int lineNum = 1; int j = 0;
        while (getline(*alignment, line)) {
            if (lineNum % 2 == 1) assert(line[0] == '>');
            lineNum++;
            if (line[0] == '>') {
                if (i == 0)
                    sampleNames.push_back(line);
                continue;
            }
            if (i == 0) {
                allSeqs.push_back(line);
                allSeqs[j].reserve(1000000);
            } else {
                allSeqs[j] += line;
            }
            if (j == 0)
                geneLengths.push_back((int)line.length());
            j++;
        } alignment->close();
        
        assert(allSeqs[0].length() == vector_sum(geneLengths));
        std::cerr << "loaded seqs for: " << allAligmentFiles[i] << std::endl;
    }
    std::cerr << "allSeqs[0].size(): " << allSeqs[0].length() << "; equals " << allSeqs[0].length()/3 << "AA" << std::endl;
    
    // Loop over the mutiple alignment files for the second time to print out the permuted sequences:
    int totalAA = (int)allSeqs[0].length()/3;
    std::random_device rd; // obtain a random number from hardware
    std::mt19937 eng(rd()); // seed the generator
    std::uniform_int_distribution<> randomAApos(0, totalAA-1); // define the range
    for (std::vector<std::string>::size_type i = 0; i != allAligmentFiles.size(); i++) {
        std::string permutedFileName = allAligmentFiles[i] + "_permuted.txt";
        std::ofstream* permutedFile = new std::ofstream(permutedFileName.c_str());
        int thisLengthAA = geneLengths[i]/3;
        std::vector<string> thisSeqs(sampleNames.size(),"");
        for (int j = 0; j < thisLengthAA; j++) {
            int pos = randomAApos(eng);
            for (int k = 0; k < allSeqs.size(); k++) {
                thisSeqs[k] += allSeqs[k].substr(pos*3,3);
            }
        }
        for (int k = 0; k < allSeqs.size(); k++) {
            *permutedFile << sampleNames[k] << std::endl;
            *permutedFile << thisSeqs[k] << std::endl;
            thisSeqs[k] = "";
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2a20, %rsp           # imm = 0x2A20
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x4cb80
leaq -0x28(%rbp), %rdi
callq 0x48da0
leaq -0x48(%rbp), %rdi
callq 0xa820
leaq -0x68(%rbp), %rdi
callq 0xa820
movq 0x14d0b0(%rip), %rdi    # 0x198ff0
leaq 0xe67f1(%rip), %rsi     # 0x132738
callq 0xa5c0
movq %rax, -0x2910(%rbp)
jmp 0x4bf55
movq -0x2910(%rbp), %rdi
movq 0x14d025(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x4bf6a
movl $0x208, %edi            # imm = 0x208
callq 0xa5d0
movq %rax, -0x2918(%rbp)
jmp 0x4bf7d
leaq 0x14de14(%rip), %rdi    # 0x199d98
callq 0xa220
movq -0x2918(%rbp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0xab90
jmp 0x4bf9f
movq -0x2918(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x14d03f(%rip), %rdi    # 0x198ff0
leaq 0xe67a0(%rip), %rsi     # 0x132758
callq 0xa5c0
movq %rax, -0x2920(%rbp)
jmp 0x4bfc6
movq -0x2920(%rbp), %rdi
leaq 0x14ddc4(%rip), %rsi    # 0x199d98
callq 0xa520
movq %rax, -0x2928(%rbp)
jmp 0x4bfe2
movq -0x2928(%rbp), %rdi
movq 0x14cf98(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x4bff7
leaq -0xa0(%rbp), %rdi
callq 0xa820
movq -0x80(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x2930(%rbp)
jmp 0x4c01c
movq -0x2930(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x2931(%rbp)
jmp 0x4c03a
movb -0x2931(%rbp), %al
testb $0x1, %al
jne 0x4c046
jmp 0x4c09e
leaq -0x28(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x48dc0
jmp 0x4c058
jmp 0x4c003
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4cb4e
movq -0x2918(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0x208, %esi            # imm = 0x208
callq 0xa5e0
jmp 0x4cb4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4cb42
leaq -0xb8(%rbp), %rdi
callq 0x48da0
leaq -0xd0(%rbp), %rdi
callq 0x48da0
leaq -0xe8(%rbp), %rdi
callq 0x46270
movq $0x0, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x2940(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x2940(%rbp), %rax
cmpq %rcx, %rax
je 0x4c4cf
movl $0x208, %edi            # imm = 0x208
callq 0xa5d0
movq %rax, -0x2948(%rbp)
jmp 0x4c10a
movq -0xf0(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq -0x2948(%rbp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0xab90
jmp 0x4c138
movq -0x2948(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x118(%rbp), %rdi
callq 0xa820
movl $0x1, -0x11c(%rbp)
movl $0x0, -0x120(%rbp)
movq -0xf8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x2950(%rbp)
jmp 0x4c182
movq -0x2950(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x2951(%rbp)
jmp 0x4c1a0
movb -0x2951(%rbp), %al
testb $0x1, %al
jne 0x4c1af
jmp 0x4c360
movl -0x11c(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x1, %edx
jne 0x4c255
xorl %eax, %eax
movl %eax, %esi
leaq -0x118(%rbp), %rdi
callq 0xac60
movq %rax, -0x2960(%rbp)
jmp 0x4c1df
movq -0x2960(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3e, %eax
jne 0x4c1f0
jmp 0x4c253
leaq 0xe6574(%rip), %rdi     # 0x13276b
leaq 0xe657c(%rip), %rsi     # 0x13277a
movl $0x42, %edx
leaq 0xe6587(%rip), %rcx     # 0x132791
callq 0xa390
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4cb1e
movq -0x2948(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0x208, %esi            # imm = 0x208
callq 0xa5e0
jmp 0x4cb1e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4c4be
jmp 0x4c255
movl -0x11c(%rbp), %eax
incl %eax
movl %eax, -0x11c(%rbp)
xorl %eax, %eax
movl %eax, %esi
leaq -0x118(%rbp), %rdi
callq 0xac60
movq %rax, -0x2968(%rbp)
jmp 0x4c27c
movq -0x2968(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3e, %eax
jne 0x4c2b1
cmpq $0x0, -0xf0(%rbp)
jne 0x4c2ac
leaq -0xd0(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x48dc0
jmp 0x4c2aa
jmp 0x4c2ac
jmp 0x4c166
cmpq $0x0, -0xf0(%rbp)
jne 0x4c2f4
leaq -0xb8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x48dc0
jmp 0x4c2d0
movslq -0x120(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
callq 0xa980
jmp 0x4c2f2
jmp 0x4c31a
movslq -0x120(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
leaq -0x118(%rbp), %rsi
callq 0xa760
jmp 0x4c318
jmp 0x4c31a
cmpl $0x0, -0x120(%rbp)
jne 0x4c34c
leaq -0x118(%rbp), %rdi
callq 0xa930
movl %eax, -0x124(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0x124(%rbp), %rsi
callq 0x4ce80
jmp 0x4c34a
jmp 0x4c34c
movl -0x120(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x120(%rbp)
jmp 0x4c166
movq -0xf8(%rbp), %rdi
callq 0xa110
jmp 0x4c36e
xorl %eax, %eax
movl %eax, %esi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
callq 0xa930
movq %rax, %xmm0
movaps 0xe1dce(%rip), %xmm1    # 0x12e160
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xe1dd2(%rip), %xmm1    # 0x12e170
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0x2970(%rbp)
leaq -0x140(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x4cf20
jmp 0x4c3ca
leaq -0x140(%rbp), %rdi
callq 0x4ceb0
movsd %xmm0, -0x2978(%rbp)
jmp 0x4c3e0
movsd -0x2970(%rbp), %xmm0
movsd -0x2978(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jne 0x4c3fa
jp 0x4c3fa
jmp 0x4c436
leaq 0xe63b0(%rip), %rdi     # 0x1327b1
leaq 0xe6372(%rip), %rsi     # 0x13277a
movl $0x54, %edx
leaq 0xe637d(%rip), %rcx     # 0x132791
callq 0xa390
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x48290
jmp 0x4c4be
leaq -0x140(%rbp), %rdi
callq 0x48290
movq 0x14cba7(%rip), %rdi    # 0x198ff0
leaq 0xe6390(%rip), %rsi     # 0x1327e0
callq 0xa5c0
movq %rax, -0x2980(%rbp)
jmp 0x4c45e
movq -0xf0(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x3d940
movq -0x2980(%rbp), %rdi
movq %rax, %rsi
callq 0xa520
movq %rax, -0x2988(%rbp)
jmp 0x4c486
movq -0x2988(%rbp), %rdi
movq 0x14caf4(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x4c49b
leaq -0x118(%rbp), %rdi
callq 0xac88
movq -0xf0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xf0(%rbp)
jmp 0x4c0cd
leaq -0x118(%rbp), %rdi
callq 0xac88
jmp 0x4cb1e
movq 0x14cb1a(%rip), %rdi    # 0x198ff0
leaq 0xe6315(%rip), %rsi     # 0x1327f2
callq 0xa5c0
movq %rax, -0x2990(%rbp)
jmp 0x4c4eb
xorl %eax, %eax
movl %eax, %esi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
callq 0xa930
movq -0x2990(%rbp), %rdi
movq %rax, %rsi
callq 0xa140
movq %rax, -0x2998(%rbp)
jmp 0x4c51b
movq -0x2998(%rbp), %rdi
leaq 0xe62dd(%rip), %rsi     # 0x132806
callq 0xa5c0
movq %rax, -0x29a0(%rbp)
jmp 0x4c537
xorl %eax, %eax
movl %eax, %esi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
callq 0xa930
movq -0x29a0(%rbp), %rdi
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
movq %rdx, %rsi
shrq %rsi
callq 0xa140
movq %rax, -0x29a8(%rbp)
jmp 0x4c577
movq -0x29a8(%rbp), %rdi
leaq 0xe1f3a(%rip), %rsi     # 0x12e4bf
callq 0xa5c0
movq %rax, -0x29b0(%rbp)
jmp 0x4c593
movq -0x29b0(%rbp), %rdi
movq 0x14c9e7(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x4c5a8
xorl %eax, %eax
movl %eax, %esi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
callq 0xa930
cltq
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, -0x144(%rbp)
leaq -0x14d0(%rbp), %rdi
callq 0x4d010
jmp 0x4c5ea
leaq -0x14d0(%rbp), %rdi
callq 0x4d0b0
movl %eax, -0x29b4(%rbp)
jmp 0x4c5fe
movl -0x29b4(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x2858(%rbp), %rdi
callq 0x4d0d0
jmp 0x4c616
movl -0x144(%rbp), %edx
decl %edx
leaq -0x2860(%rbp), %rdi
xorl %esi, %esi
callq 0x3e3f0
jmp 0x4c62e
movq $0x0, -0x2868(%rbp)
movq -0x2868(%rbp), %rax
movq %rax, -0x29c0(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x29c0(%rbp), %rax
cmpq %rcx, %rax
je 0x4cab0
movq -0x2868(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
leaq 0xe6193(%rip), %rdx     # 0x132810
leaq -0x2888(%rbp), %rdi
callq 0x3da80
jmp 0x4c68b
movl $0x200, %edi            # imm = 0x200
callq 0xa5d0
movq %rax, -0x29c8(%rbp)
jmp 0x4c69e
leaq -0x2888(%rbp), %rdi
callq 0xa220
movq -0x29c8(%rbp), %rdi
movq %rax, %rsi
movl $0x10, %edx
callq 0xa650
jmp 0x4c6c0
movq -0x29c8(%rbp), %rax
movq %rax, -0x2890(%rbp)
movq -0x2868(%rbp), %rsi
leaq -0xe8(%rbp), %rdi
callq 0x4d100
movslq (%rax), %rax
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
movl %eax, -0x2894(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x3ffd0
movq %rax, -0x29d8(%rbp)
leaq -0x28d1(%rbp), %rdi
movq %rdi, -0x29d0(%rbp)
callq 0xab60
movq -0x29d0(%rbp), %rdx
leaq 0xe97ad(%rip), %rsi     # 0x135edf
leaq -0x28d0(%rbp), %rdi
callq 0x2d6c0
jmp 0x4c740
leaq -0x28d2(%rbp), %rdi
movq %rdi, -0x29e0(%rbp)
callq 0x48e80
movq -0x29d8(%rbp), %rsi
movq -0x29e0(%rbp), %rcx
leaq -0x28b0(%rbp), %rdi
leaq -0x28d0(%rbp), %rdx
callq 0x4d120
jmp 0x4c776
leaq -0x28d2(%rbp), %rdi
callq 0x40090
leaq -0x28d0(%rbp), %rdi
callq 0xac88
leaq -0x28d1(%rbp), %rdi
callq 0xa640
movl $0x0, -0x28d8(%rbp)
movl -0x28d8(%rbp), %eax
cmpl -0x2894(%rbp), %eax
jge 0x4c95a
leaq -0x2860(%rbp), %rdi
leaq -0x2858(%rbp), %rsi
callq 0x4d1a0
movl %eax, -0x29e4(%rbp)
jmp 0x4c7d1
movl -0x29e4(%rbp), %eax
movl %eax, -0x28dc(%rbp)
movl $0x0, -0x28e0(%rbp)
movslq -0x28e0(%rbp), %rax
movq %rax, -0x29f0(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x29f0(%rbp), %rax
cmpq %rcx, %rax
jae 0x4c944
movslq -0x28e0(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x3d940
movq %rax, %rsi
movl -0x28dc(%rbp), %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %rdx
leaq -0x2900(%rbp), %rdi
movl $0x3, %ecx
callq 0xa5f0
jmp 0x4c84b
movslq -0x28e0(%rbp), %rsi
leaq -0x28b0(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
leaq -0x2900(%rbp), %rsi
callq 0xa760
jmp 0x4c86f
leaq -0x2900(%rbp), %rdi
callq 0xac88
movl -0x28e0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28e0(%rbp)
jmp 0x4c7e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4cb12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4caa2
movq -0x29c8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0x200, %esi            # imm = 0x200
callq 0xa5e0
jmp 0x4caa2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4c905
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x28d2(%rbp), %rdi
callq 0x40090
leaq -0x28d0(%rbp), %rdi
callq 0xac88
leaq -0x28d1(%rbp), %rdi
callq 0xa640
jmp 0x4caa2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x4ca96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x2900(%rbp), %rdi
callq 0xac88
jmp 0x4ca96
jmp 0x4c946
movl -0x28d8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28d8(%rbp)
jmp 0x4c7a4
movl $0x0, -0x2904(%rbp)
movslq -0x2904(%rbp), %rax
movq %rax, -0x29f8(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3ffd0
movq %rax, %rcx
movq -0x29f8(%rbp), %rax
cmpq %rcx, %rax
jae 0x4ca67
movq -0x2890(%rbp), %rax
movq %rax, -0x2a08(%rbp)
movslq -0x2904(%rbp), %rsi
leaq -0xd0(%rbp), %rdi
callq 0x3d940
movq -0x2a08(%rbp), %rdi
movq %rax, %rsi
callq 0xa520
movq %rax, -0x2a00(%rbp)
jmp 0x4c9ca
movq -0x2a00(%rbp), %rdi
movq 0x14c5b0(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x4c9df
movq -0x2890(%rbp), %rax
movq %rax, -0x2a18(%rbp)
movslq -0x2904(%rbp), %rsi
leaq -0x28b0(%rbp), %rdi
callq 0x3d940
movq -0x2a18(%rbp), %rdi
movq %rax, %rsi
callq 0xa520
movq %rax, -0x2a10(%rbp)
jmp 0x4ca18
movq -0x2a10(%rbp), %rdi
movq 0x14c562(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x4ca2d
movslq -0x2904(%rbp), %rsi
leaq -0x28b0(%rbp), %rdi
callq 0x3d940
movq %rax, %rdi
leaq 0xe9495(%rip), %rsi     # 0x135edf
callq 0xa810
jmp 0x4ca51
jmp 0x4ca53
movl -0x2904(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2904(%rbp)
jmp 0x4c964
leaq -0x28b0(%rbp), %rdi
callq 0x3dfa0
leaq -0x2888(%rbp), %rdi
callq 0xac88
movq -0x2868(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2868(%rbp)
jmp 0x4c639
leaq -0x28b0(%rbp), %rdi
callq 0x3dfa0
leaq -0x2888(%rbp), %rdi
callq 0xac88
jmp 0x4cb12
leaq -0x14d0(%rbp), %rdi
callq 0x4d1d0
leaq -0xe8(%rbp), %rdi
callq 0x48290
leaq -0xd0(%rbp), %rdi
callq 0x3dfa0
leaq -0xb8(%rbp), %rdi
callq 0x3dfa0
leaq -0xa0(%rbp), %rdi
callq 0xac88
leaq -0x68(%rbp), %rdi
callq 0xac88
leaq -0x48(%rbp), %rdi
callq 0xac88
leaq -0x28(%rbp), %rdi
callq 0x3dfa0
xorl %eax, %eax
addq $0x2a20, %rsp           # imm = 0x2A20
popq %rbp
retq
leaq -0x14d0(%rbp), %rdi
callq 0x4d1d0
leaq -0xe8(%rbp), %rdi
callq 0x48290
leaq -0xd0(%rbp), %rdi
callq 0x3dfa0
leaq -0xb8(%rbp), %rdi
callq 0x3dfa0
leaq -0xa0(%rbp), %rdi
callq 0xac88
leaq -0x68(%rbp), %rdi
callq 0xac88
leaq -0x48(%rbp), %rdi
callq 0xac88
leaq -0x28(%rbp), %rdi
callq 0x3dfa0
movq -0x70(%rbp), %rdi
callq 0xab50
nopw %cs:(%rax,%rax)