LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Army.cpp
// Function: Army::saveArmy[abi:cxx11]()
std::string Army::saveArmy() {
    std::string saveArmy = "";
    for (int i = 4; i >= 0; i --) {
        saveArmy += std::to_string(armyList[i]);
        if ( i != 0 )
            saveArmy += " ";
        else
            saveArmy += "";
    }
    return saveArmy;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x60(%rbp)
leaq 0x10(%rdi), %rax
movq %rax, -0x58(%rbp)
movq %rax, (%rdi)
leaq 0x3f26(%rip), %rdx      # 0xb52b
movq %rdi, -0x30(%rbp)
movq %rdx, %rsi
callq 0x39b0
movl $0x4, %r14d
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
movq -0x60(%rbp), %rax
movq (%rax), %rax
movl (%rax,%r14,4), %r13d
movl %r13d, %r12d
negl %r12d
cmovsl %r13d, %r12d
movl $0x1, %r15d
cmpl $0xa, %r12d
jb 0x767f
movl $0x4, %r15d
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x7676
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x767c
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x767f
movl %eax, %ecx
imulq %rbx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x7646
addl $-0x3, %r15d
jmp 0x767f
addl $-0x2, %r15d
jmp 0x767f
decl %r15d
shrl $0x1f, %r13d
leal (%r15,%r13), %esi
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
movl $0x2d, %edx
callq 0x32e0
addq -0x50(%rbp), %r13
movq %r13, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq 0x7955
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x30c0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x76dc
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3290
subq $0x1, %r14
jb 0x76f6
movq %r15, %rdi
leaq 0x4119(%rip), %rsi      # 0xb805
callq 0x3470
jmp 0x761c
leaq 0x3e2e(%rip), %rsi      # 0xb52b
movq %r15, %rdi
callq 0x3470
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x771b
jmp 0x771b
movq %rax, %r15
jmp 0x773c
movq %rax, %r15
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x773c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3290
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x7757
movq (%rax), %rsi
incq %rsi
callq 0x3290
movq %r15, %rdi
callq 0x3420
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Army.cpp
// Function: Army::reBuild()
void Army::reBuild() {
    for(Creature* i : realArmy)
        delete i;
    realArmy = {new Zombie(),new Vampire(),new Archer(),
                new Wizard(),new BlackDragon()};

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %r14
movq 0x20(%rdi), %r15
cmpq %r15, %r14
je 0x77ab
movq (%r14), %rdi
testq %rdi, %rdi
je 0x77a5
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r14
jmp 0x7792
movl $0x18, %edi
callq 0x3280
movq %rax, %r14
movq %rax, %rdi
callq 0xa538
movq %r14, -0x40(%rbp)
movl $0x18, %edi
callq 0x3280
movq %rax, %r14
movq %rax, %rdi
callq 0xa47c
movq %r14, -0x38(%rbp)
movl $0x18, %edi
callq 0x3280
movq %rax, %r14
movq %rax, %rdi
callq 0xa37c
movq %r14, -0x30(%rbp)
movl $0x18, %edi
callq 0x3280
movq %rax, %r14
movq %rax, %rdi
callq 0xa2a4
movq %r14, -0x28(%rbp)
movl $0x18, %edi
callq 0x3280
movq %rax, %r14
movq %rax, %rdi
callq 0xa1c4
addq $0x18, %rbx
leaq -0x18(%rbp), %rdx
movq %r14, -0x8(%rdx)
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x79c8
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x784f
jmp 0x784f
jmp 0x784f
jmp 0x784f
movq %rax, %rbx
movl $0x18, %esi
movq %r14, %rdi
callq 0x3290
movq %rbx, %rdi
callq 0x3420
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::Hero(Hero&)
Hero::Hero(Hero &another) {
    setName(another.getName());
    this->type = another.getType();
    this->gold = another.getGold();
    this->army = another.army;
    isAlive = another.isAlive;;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x7f22(%rip), %rax      # 0xfa58
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %r12
movq %r12, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%rsi), %rsi
movq 0x10(%r15), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x6930
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x3160
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x7b8e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3290
movl 0x28(%r15), %eax
movl %eax, 0x28(%r14)
movsd 0x30(%r15), %xmm0
movsd %xmm0, 0x30(%r14)
movq 0x40(%r15), %rax
movq %rax, 0x40(%r14)
movb 0x3a(%r15), %al
movb %al, 0x3a(%r14)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x7bde
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x7bde
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x7bf2
movq (%r12), %rsi
incq %rsi
callq 0x3290
movq %r14, %rdi
callq 0x3420
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::mkdir()
bool Hero::mkdir() {
    errno = 0;
    try {
        string command = "mkdir -p Heros/" + getName();
        auto runCommand = command.c_str();
        int dir_result = system(runCommand);
        if ( dir_result != 0 && errno != EEXIST )
            return 0;
    }
    catch( std::exception &e ) {
        cout << "Error creating directory!n" << endl;
        return 0;
    }
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
callq 0x3040
movq %rax, %rbx
movl $0x0, (%rax)
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x6930
leaq 0x3557(%rip), %rcx      # 0xb747
leaq -0x60(%rbp), %rdi
movl $0xf, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdi
je 0x8227
movq %rdi, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x8231
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r15, %rdi
movq 0x8(%rax), %rdx
movq %rdx, -0x38(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x60(%rbp), %rax
cmpq %r12, %rax
je 0x8264
movq -0x50(%rbp), %rsi
incq %rsi
movq %rax, %rdi
callq 0x3290
movq -0x40(%rbp), %rdi
callq 0x3220
testl %eax, %eax
je 0x8272
cmpl $0x11, (%rbx)
jne 0x8276
movb $0x1, %bl
jmp 0x8278
xorl %ebx, %ebx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x828d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r14
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x82d4
movq -0x30(%rbp), %rsi
jmp 0x82c4
movq %rdx, %r14
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x82d4
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x82d4
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x831a
movq %rbx, %rdi
callq 0x3100
movq 0x7cd7(%rip), %rdi      # 0xffc0
leaq 0x3467(%rip), %rsi      # 0xb757
movl $0x1a, %edx
callq 0x32d0
movq 0x7cbf(%rip), %rdi      # 0xffc0
callq 0x3130
callq 0x33c0
xorl %ebx, %ebx
jmp 0x828d
movq %rax, %rbx
callq 0x33c0
movq %rbx, %rdi
callq 0x3420
movq %rax, %rdi
callq 0x6837
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::buyCreature(double, int, int, int)
bool Hero::buyCreature(double budget,int creatureType,int quantity,int unitPrice) {
    Creature c;
    if ( quantity > 0 && budget > 0 && creatureType >= 0 ) {
        army->addUnit(creatureType,quantity);
        this->gold -= unitPrice * quantity;
        c.~Creature();
        return true;
    } else return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %r12d
movsd %xmm0, -0x30(%rbp)
movq %rdi, %rbx
leaq -0x48(%rbp), %rdi
callq 0x9ea8
testl %r15d, %r15d
setg %al
xorpd %xmm0, %xmm0
movsd -0x30(%rbp), %xmm1
ucomisd %xmm0, %xmm1
seta %cl
testl %r12d, %r12d
setns %r13b
andb %al, %r13b
andb %cl, %r13b
cmpb $0x1, %r13b
jne 0x8501
movq 0x40(%rbx), %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x7190
imull %r15d, %r14d
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd 0x30(%rbx), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x30(%rbx)
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::showHero()
void Hero::showHero() {
    cout << getName() << " ";
    cout << displayType() << ":" << endl;
    cout << getGold() << endl;
    if ( showArmy() != "." )
        cout << showArmy() << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x6930
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x7a6c(%rip), %rdi      # 0xffc0
callq 0x32d0
leaq 0x32a5(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x8582
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq %r14, %rdi
movq %rbx, %rsi
callq 0x86fc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x7a25(%rip), %rdi      # 0xffc0
callq 0x32d0
movq %rax, %r14
leaq 0x2cf1(%rip), %rsi      # 0xb29b
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x85f3
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movsd 0x30(%rbx), %xmm0
movq 0x79c1(%rip), %rdi      # 0xffc0
callq 0x3390
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq 0x40(%rbx), %rsi
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x71a2
leaq 0x2a56(%rip), %rsi      # 0xb09b
movq %r15, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x8664
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
testl %r14d, %r14d
je 0x86cb
movq 0x40(%rbx), %rsi
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
callq 0x71a2
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x7939(%rip), %rdi      # 0xffc0
callq 0x32d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x86cb
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x86dc
jmp 0x86dc
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x86f4
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
callq 0x3420
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::displayType[abi:cxx11]()
string Hero::displayType() {
    switch ( type ) {
        case 0:
            return "Warrior";

        case 1:
            return "Thief";

        case 2:
            return "Necromancer";

        default:
            return "UnknownType";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x28(%rsi), %eax
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
cmpl $0x2, %eax
je 0x873d
cmpl $0x1, %eax
je 0x872d
testl %eax, %eax
jne 0x874d
leaq 0x305c(%rip), %rsi      # 0xb780
leaq 0x305c(%rip), %rdx      # 0xb787
jmp 0x875b
leaq 0x3054(%rip), %rsi      # 0xb788
leaq 0x3052(%rip), %rdx      # 0xb78d
jmp 0x875b
leaq 0x304a(%rip), %rsi      # 0xb78e
leaq 0x304e(%rip), %rdx      # 0xb799
jmp 0x875b
leaq 0x3046(%rip), %rsi      # 0xb79a
leaq 0x304a(%rip), %rdx      # 0xb7a5
movq %rbx, %rdi
callq 0x39b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::showHeroFight()
void Hero::showHeroFight() {
    cout << getName() << " ";
    cout << displayType() << ":" << endl;
    if ( showArmy() != "." )
        cout << showArmy() << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x6930
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x7812(%rip), %rdi      # 0xffc0
callq 0x32d0
leaq 0x304b(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x87dc
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq %r14, %rdi
movq %rbx, %rsi
callq 0x86fc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x77cb(%rip), %rdi      # 0xffc0
callq 0x32d0
movq %rax, %r14
leaq 0x2a97(%rip), %rsi      # 0xb29b
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x884d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq 0x40(%rbx), %rsi
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x71a2
leaq 0x2837(%rip), %rsi      # 0xb09b
movq %r15, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x8883
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
testl %r14d, %r14d
je 0x88ea
movq 0x40(%rbx), %rsi
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
callq 0x71a2
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x771a(%rip), %rdi      # 0xffc0
callq 0x32d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x88ea
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x88fb
jmp 0x88fb
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x8913
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq %rbx, %rdi
callq 0x3420
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::rmdir()
void Hero::rmdir() {
    isAlive = false;
    try {
        string command = "rm -rf Heros/" + getName();
        const char *runCommand = command.c_str();
        system(runCommand);
    }
    catch( std::exception &e ) {
        cout << "Error deleting directory!n" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movb $0x0, 0x3a(%rdi)
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x6930
leaq 0x206a(%rip), %rcx      # 0xb772
leaq -0x60(%rbp), %rdi
movl $0xd, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdi
je 0x9740
movq %rdi, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x974b
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %r12, %rdi
movq 0x8(%rax), %rdx
movq %rdx, -0x38(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x60(%rbp), %rax
cmpq %r15, %rax
je 0x977e
movq -0x50(%rbp), %rsi
incq %rsi
movq %rax, %rdi
callq 0x3290
movq -0x40(%rbp), %rdi
callq 0x3220
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x9798
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r14
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x97dd
movq -0x30(%rbp), %rsi
jmp 0x97cd
movq %rdx, %r14
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x97dd
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x97dd
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x981e
movq %rbx, %rdi
callq 0x3100
movq 0x67ce(%rip), %rdi      # 0xffc0
leaq 0x1cc7(%rip), %rsi      # 0xb4c0
movl $0x1a, %edx
callq 0x32d0
movq 0x67b6(%rip), %rdi      # 0xffc0
callq 0x3130
callq 0x33c0
jmp 0x9798
movq %rax, %rbx
callq 0x33c0
movq %rbx, %rdi
callq 0x3420
movq %rax, %rdi
callq 0x6837
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Creature.cpp
// Function: Creature::Creature(Creature&)
Creature::Creature(Creature &another) {
    if ( another.attackPoints > 1 && another.defendPoints > 1 && another.cost > 50 && another.cType != Unknown &&
         another.attackPoints < 10 && another.defendPoints > 10 && another.cost > 200 ) {
        this->attackPoints = another.attackPoints;
        this->defendPoints = another.defendPoints;
        this->cost = another.cost;
        this->cType = another.cType;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x5bb1(%rip), %rax      # 0xfa80
movq %rax, (%rdi)
movl 0x8(%rsi), %eax
cmpl $0x2, %eax
jl 0x9f10
movl 0xc(%rsi), %ecx
cmpl $0x2, %ecx
jl 0x9f10
movl 0x10(%rsi), %edx
cmpl $0x33, %edx
jl 0x9f10
cmpl $0xc9, %edx
jb 0x9f10
cmpl $0xb, %ecx
jb 0x9f10
cmpl $0x9, %eax
ja 0x9f10
movl 0x14(%rsi), %esi
cmpl $0x5, %esi
je 0x9f10
movl %eax, 0x8(%rdi)
movl %ecx, 0xc(%rdi)
movl %edx, 0x10(%rdi)
movl %esi, 0x14(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Creature.cpp
// Function: Creature::creaType[abi:cxx11](int)
string Creature::creaType(int vtype) {
    switch ( vtype ) {
        case 0:
            return "Zombie";
        case 1:
            return "Archer";
        case 2:
            return "Vampire";
        case 3:
            return "Wizard";
        case 4:
            return "Black_Dragon";
        default:
            return "Unknown";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
cmpl $0x4, %edx
ja 0xa0cd
movl %edx, %eax
leaq 0x1754(%rip), %rcx      # 0xb7c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x179b(%rip), %rsi      # 0xb81f
leaq 0x179a(%rip), %rdx      # 0xb825
jmp 0xa0db
leaq 0x17a8(%rip), %rsi      # 0xb83c
leaq 0x17ad(%rip), %rdx      # 0xb848
jmp 0xa0db
leaq 0x1789(%rip), %rsi      # 0xb82d
leaq 0x1789(%rip), %rdx      # 0xb834
jmp 0xa0db
leaq 0x1781(%rip), %rsi      # 0xb835
leaq 0x1780(%rip), %rdx      # 0xb83b
jmp 0xa0db
leaq 0x1762(%rip), %rsi      # 0xb826
leaq 0x1761(%rip), %rdx      # 0xb82c
jmp 0xa0db
leaq 0x1775(%rip), %rsi      # 0xb849
leaq 0x1775(%rip), %rdx      # 0xb850
movq %rbx, %rdi
callq 0x39b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Thief.cpp
// Function: Thief::specialAbility(Hero&)
bool Thief::specialAbility(Hero &toRob) {
    if ( isAlive ) {
        if ( toRob.getGold() > 70 ) {
            this->addGold(70);
            toRob.setGold(toRob.getGold() - 70.0);
            return 1;
        } else {
            addGold(toRob.getGold());
            toRob.setGold(0.0);
            return 1;
        }
    }
    std::cout << "You died!" << endl;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movb 0x3a(%rdi), %bl
cmpb $0x1, %bl
jne 0xa708
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x7c44
ucomisd 0x11ac(%rip), %xmm0     # 0xb890
jbe 0xa74c
movsd 0x11a2(%rip), %xmm0     # 0xb890
movq %r15, %rdi
callq 0x96b2
movq %r14, %rdi
callq 0x7c44
addsd 0x1192(%rip), %xmm0     # 0xb898
jmp 0xa760
movq 0x58b1(%rip), %r14      # 0xffc0
leaq 0x118a(%rip), %rsi      # 0xb8a0
movl $0x9, %edx
movq %r14, %rdi
callq 0x32d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
jmp 0xa768
movq %r14, %rdi
callq 0x7c44
movq %r15, %rdi
callq 0x96b2
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x833e
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Warrior.cpp
// Function: Warrior::specialAbility(Hero&)
bool Warrior::specialAbility(Hero &s) {
    if ( isAlive ) {
        addGold(50);
        cout << "Gold added successfully" << endl;
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movb 0x3a(%rdi), %bl
cmpb $0x1, %bl
jne 0xa8dc
movsd 0x1023(%rip), %xmm0     # 0xb8b8
callq 0x96b2
movq 0x571f(%rip), %r14      # 0xffc0
leaq 0x1018(%rip), %rsi      # 0xb8c0
movl $0x17, %edx
movq %r14, %rdi
callq 0x32d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Necromancer.cpp
// Function: Necromancer::specialAbility(Hero&)
bool Necromancer::specialAbility(Hero &s) {
    if ( isAlive ) {
        army->addUnit(0,1);
        cout << "Zombie added ‫‪successfully‬‬" << endl;
        return 1;
    }
    return 0;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movb 0x3a(%rdi), %bl
cmpb $0x1, %bl
jne 0xaa11
movq 0x40(%rdi), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x7190
movq 0x55ea(%rip), %r14      # 0xffc0
leaq 0xf04(%rip), %rsi       # 0xb8e1
movl $0x25, %edx
movq %r14, %rdi
callq 0x32d0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/main.cpp
// Function: main
int main(int argc, char** argv){

  try{
    
  /*Construct the components of enigma and store the configuration info in each component after file checks */
    Enigma enigma_machine(argc,argv);

  /*Pass in the message from input for encryption/decryption and print the result on the output stream */
    enigma_machine.run();
  }

  catch(int err_code){
    switch(err_code){
    case INSUFFICIENT_NUMBER_OF_PARAMETERS:
      cerr <<  "usage: enigma plugboard-file reflector-file (<rotor-file>* rotor-positions)?" << endl;
      return 1;
    case INVALID_INPUT_CHARACTER:
      cerr << " is not a valid input character (input characters must be upper case letters A-Z)!" << endl;
      return 2;
    case INVALID_INDEX:
      return 3;
    case NON_NUMERIC_CHARACTER:
      return 4;
    case IMPOSSIBLE_PLUGBOARD_CONFIGURATION:
      return 5;
    case INCORRECT_NUMBER_OF_PLUGBOARD_PARAMETERS:
      cerr << " number of parameters in plugboard file: plugboard.pb"<<endl;
      return 6;
    case INVALID_ROTOR_MAPPING:
      return 7;
    case NO_ROTOR_STARTING_POSITION:
      cerr << " in rotor position file: rotor.pos" << endl;
      return 8;
    case INVALID_REFLECTOR_MAPPING:
      return 9;
    case INCORRECT_NUMBER_OF_REFLECTOR_PARAMETERS:
      cerr << " number of parameters in reflector file: reflector.rf" <<endl;
      return 10;
    case ERROR_OPENING_CONFIGURATION_FILE:
      cerr << " cannot be opened correctly or it's empty (null or contains only white space character)" << endl;
      return 11;
    default: cerr << "Unknown error" << endl;     
    }
  }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rdx
movl %edi, %esi
movq %rsp, %rdi
callq 0x2584
movq %rsp, %rdi
callq 0x2942
movq %rsp, %rdi
callq 0x2700
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %r14
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2700
jmp 0x24a2
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x257c
movq %rbx, %rdi
callq 0x2070
movl (%rax), %ebx
leal -0x1(%rbx), %eax
cmpl $0xa, %eax
ja 0x2546
leaq 0x2b3b(%rip), %rcx      # 0x5004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x4c, %edx
leaq 0x2b52(%rip), %rsi      # 0x5030
jmp 0x2524
movl $0x35, %edx
leaq 0x2c1a(%rip), %rsi      # 0x5106
jmp 0x2524
movl $0x35, %edx
leaq 0x2bd6(%rip), %rsi      # 0x50d0
jmp 0x2524
movl $0x52, %edx
leaq 0x2b75(%rip), %rsi      # 0x507d
jmp 0x2524
movl $0x22, %edx
leaq 0x2f9e(%rip), %rsi      # 0x54b4
jmp 0x2524
movl $0x57, %edx
leaq 0x2c18(%rip), %rsi      # 0x513c
movq 0x5ac5(%rip), %rdi      # 0x7ff0
callq 0x2140
movq 0x5ab9(%rip), %rdi      # 0x7ff0
callq 0x2080
callq 0x21a0
jmp 0x2482
movq 0x5aa3(%rip), %rdi      # 0x7ff0
leaq 0x2c40(%rip), %rsi      # 0x5194
movl $0xd, %edx
callq 0x2140
movq 0x5a8b(%rip), %rdi      # 0x7ff0
callq 0x2080
callq 0x21a0
jmp 0x2480
movq %rax, %rbx
callq 0x21a0
movq %rbx, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/enigma.cpp
// Function: Enigma::~Enigma()
Enigma::~Enigma(){
  delete plugb_ref;
  delete config_obj;
  for(auto iterator=rotor_vector.begin();iterator!=rotor_vector.end();iterator++){
    delete *iterator;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x273a
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x2726
movq 0x28(%r14), %rsi
subq %rdi, %rsi
callq 0x2120
movq (%r14), %rdi
testq %rdi, %rdi
je 0x273a
movq 0x10(%r14), %rsi
subq %rdi, %rsi
callq 0x2120
movl $0x38, %esi
movq %r14, %rdi
callq 0x2120
movq (%rbx), %r14
testq %r14, %r14
je 0x2764
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x2764
movq 0x38(%r14), %rsi
subq %rdi, %rsi
callq 0x2120
movl $0x48, %esi
movq %r14, %rdi
callq 0x2120
movq 0x10(%rbx), %r14
cmpq 0x18(%rbx), %r14
je 0x27dd
movq (%r14), %r15
testq %r15, %r15
je 0x27c2
movq 0x38(%r15), %rdi
testq %rdi, %rdi
je 0x2798
movq 0x48(%r15), %rsi
subq %rdi, %rsi
callq 0x2120
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x27ad
movq 0x30(%r15), %rsi
subq %rdi, %rsi
callq 0x2120
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x27c2
movq 0x18(%r15), %rsi
subq %rdi, %rsi
callq 0x2120
movl $0x60, %esi
movq %r15, %rdi
callq 0x2120
addq $0x8, %r14
cmpq 0x18(%rbx), %r14
jne 0x277b
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x27f6
movq 0x20(%rbx), %rsi
subq %r14, %rsi
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2120
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/enigma.cpp
// Function: Enigma::encrypt(int&)
void Enigma::encrypt(int& code){

  int len = rotor_vector.size();
  
  plugb_ref->mapping(code,PB);             //plugboard forward mapping
  
  if (len!=0){
    Rotor* r_last = rotor_vector[len-1];
    r_last->shift_ground(RUN);             //rotate the right-hand rotor before circuit closes
    
    for (int j=len-1;j>0;j--){
      if ((rotor_vector[j])->get_notch_stat()){    //if notch is reached, engage the rotor on the left
	rotor_vector[j-1]->shift_ground(RUN);
	rotor_vector[j]->set_notch_stat(false);
      }
      }
    for(int j=len-1;j>=0;j--){
      rotor_vector[j]->encrypting(code,FORWARD);    //rotor forward mapping
    }
  }

  plugb_ref->mapping(code,RF);                     //reflector mapping
    
  if(len!=0){
    for(int j=0;j<len;j++){
      rotor_vector[j]->encrypting(code,BACKWARD);      //rotor backward mapping
    }
  }

  plugb_ref->mapping(code,PB);                   //plugboard backward mapping

  cout << static_cast<char>(code+CONVERSION);        //print result to output stream
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
movq 0x18(%r14), %r15
subq 0x10(%r14), %r15
shrq $0x3, %r15
movl $0x64, %edx
callq 0x3e48
testl %r15d, %r15d
je 0x28f5
leal -0x1(%r15), %ebp
movslq %r15d, %rax
movq 0x10(%r14), %rcx
movq -0x8(%rcx,%rax,8), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x41b8
movl %ebp, %r12d
cmpl $0x2, %r15d
jl 0x2896
leaq 0x1(%r12), %r13
movq 0x10(%r14), %rax
movq -0x8(%rax,%r13,8), %rdi
callq 0x4384
testb %al, %al
je 0x288d
movq 0x10(%r14), %rax
movq -0x10(%rax,%r13,8), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x41b8
movq 0x10(%r14), %rax
movq -0x8(%rax,%r13,8), %rdi
xorl %esi, %esi
callq 0x4314
decq %r13
cmpq $0x1, %r13
jg 0x2858
testl %r15d, %r15d
jle 0x28f5
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
movl $0x3e8, %edx            # imm = 0x3E8
callq 0x431a
addq $-0x1, %r12
jb 0x289b
movq 0x8(%r14), %rdi
movq %rbx, %rsi
movl $0xc8, %edx
callq 0x3e48
testl %r15d, %r15d
jle 0x2906
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
movl $0x7d0, %edx            # imm = 0x7D0
callq 0x431a
incq %r12
cmpq %r12, %r15
jne 0x28d6
jmp 0x2906
movq 0x8(%r14), %rdi
movq %rbx, %rsi
movl $0xc8, %edx
callq 0x3e48
movq 0x8(%r14), %rdi
movq %rbx, %rsi
movl $0x64, %edx
callq 0x3e48
movb (%rbx), %al
addb $0x41, %al
leaq 0x7(%rsp), %rsi
movb %al, (%rsi)
movq 0x569f(%rip), %rdi      # 0x7fc8
movl $0x1, %edx
callq 0x2140
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/enigma.cpp
// Function: Enigma::run()
void Enigma::run(){
  char charac;
  int code;
  int count = 0;
  
  while(cin >> ws >> charac){ 
    if((charac>=CONVERSION)&&(charac<=CONVERSION+25)){        
      code = static_cast<int>(charac)-CONVERSION;
      encrypt(code);
      count ++;
    }else{
      cerr << charac;
      throw INVALID_INPUT_CHARACTER;
    }
  }
  if ((count==0)&&(cin.fail())){           
    cerr << "The input file";
    throw ERROR_OPENING_CONFIGURATION_FILE;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x5681(%rip), %rbx      # 0x7fd8
movq %rbx, %rdi
callq 0x20e0
leaq 0x3(%rsp), %rsi
movq %rax, %rdi
callq 0x2160
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x20(%rax,%rcx), %ebp
testb $0x5, %bpl
jne 0x29d4
leaq 0x4(%rsp), %r15
movq 0x564f(%rip), %r12      # 0x7fd8
leaq 0x3(%rsp), %r13
movzbl 0x3(%rsp), %eax
leal -0x41(%rax), %ecx
cmpb $0x19, %cl
ja 0x29f1
addl $-0x41, %eax
movl %eax, 0x4(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x27fc
movq %r12, %rdi
callq 0x20e0
movq %rax, %rdi
movq %r13, %rsi
callq 0x2160
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x298e
testb $0x5, %bpl
je 0x29e2
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
jne 0x2a21
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsbl %al, %esi
movq 0x55f5(%rip), %rdi      # 0x7ff0
callq 0x2150
movl $0x4, %edi
callq 0x2090
movl $0x2, (%rax)
movq 0x5599(%rip), %rsi      # 0x7fb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
movq 0x55c8(%rip), %rdi      # 0x7ff0
leaq 0x2773(%rip), %rsi      # 0x51a2
callq 0x2100
movl $0x4, %edi
callq 0x2090
movl $0xb, (%rax)
jmp 0x2a10
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/config.cpp
// Function: Config::Config(int, char**)
Config::Config(int arg_ct,char**arg_vl){      
  arg_count = arg_ct;
  arg_value = arg_vl;
  rotor_count = 0;
  
  if ((arg_ct < 3)||(arg_ct ==4))
    throw INSUFFICIENT_NUMBER_OF_PARAMETERS;
  
  int last_index = arg_ct-1;
  plugboard_file = arg_vl[1];
  reflector_file = arg_vl[2];
  
  if (arg_ct > 3){
    rotor_pos_file = arg_vl[last_index];
    for (int i=3;i<last_index;i++){
      rotor_files.push_back(arg_value[i]);
      rotor_count++;
    }
  }
  check_pb_file();
  check_rf_file();

  if(arg_ct >3){
    for (int i=0;i<rotor_count;i++){
      check_rot_file(rotor_files[i],i);   
    }
    check_rot_pos_file();
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq $0x0, 0x38(%rdi)
movl %esi, (%rdi)
movq %rdx, 0x8(%rdi)
movl $0x0, 0x10(%rdi)
cmpl $0x3, %esi
jl 0x2c78
movl %esi, %r15d
cmpl $0x4, %esi
je 0x2c78
movq 0x8(%rdx), %rax
movq %rax, 0x18(%rbx)
movq 0x10(%rdx), %rax
movq %rax, 0x20(%rbx)
jb 0x2c2c
leal -0x1(%r15), %r12d
movq (%rdx,%r12,8), %rax
movq %rax, 0x40(%rbx)
cmpl $0x4, %r15d
je 0x2c2c
addq $-0x3, %r12
xorl %eax, %eax
movl $0x18, %r13d
movq 0x8(%rbx), %rdx
addq %r13, %rdx
movq 0x30(%rbx), %rsi
cmpq 0x38(%rbx), %rsi
je 0x2c13
movq (%rdx), %rcx
movq %rcx, (%rsi)
addq $0x8, 0x30(%rbx)
jmp 0x2c1e
movq %r14, %rdi
callq 0x3aa4
movl 0x10(%rbx), %eax
incl %eax
movl %eax, 0x10(%rbx)
addq $0x8, %r13
decq %r12
jne 0x2bf5
movq %rbx, %rdi
callq 0x2cbe
movq %rbx, %rdi
callq 0x2fda
cmpl $0x4, %r15d
jb 0x2c6e
cmpl $0x0, 0x10(%rbx)
jle 0x2c66
xorl %r15d, %r15d
movq (%r14), %rax
movq (%rax,%r15,8), %rsi
movl %r15d, %edx
callq 0x3314
incq %r15
movslq 0x10(%rbx), %rax
cmpq %rax, %r15
jl 0x2c4b
movq %rbx, %rdi
callq 0x38da
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x4, %edi
callq 0x2090
movl $0x1, (%rax)
movq 0x5321(%rip), %rsi      # 0x7fb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
jmp 0x2c9f
jmp 0x2c9f
jmp 0x2c9f
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0x2cb6
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x2120
movq %r15, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/config.cpp
// Function: Config::check_rot_pos_file()
void Config::check_rot_pos_file(){
  ifstream input;
  int buffer;
  int count = 0;
  char charac;
  
  input.open(rotor_pos_file);

  while((count<rotor_count)&&(input>>buffer)){
    input.get(charac);
    if(!isspace(charac)){
      cerr << "Non-numeric character in rotor position file: rotor.pos" <<endl;
      throw NON_NUMERIC_CHARACTER;
    } 
    if((buffer<0)||(buffer>25)){
      cerr << "Invalid index in rotor position file: rotor.pos" <<endl;
      throw INVALID_INDEX;
    }count++;
  }
  if((input.fail())&&(!input.eof())){
    cerr << "Non-numeric character in rotor position file: rotor.pos" <<endl;
    throw NON_NUMERIC_CHARACTER;
  }
  if(count<rotor_count){
    cerr << "No starting position for rotor " << count;
    throw NO_ROTOR_STARTING_POSITION;
  }
  input.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdi, %r14
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2130
movq 0x40(%r14), %rsi
movq %rbx, %rdi
movl $0x8, %edx
callq 0x20c0
cmpl $0x0, 0x10(%r14)
jle 0x396b
xorl %ebx, %ebx
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
leaq 0xb(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x20b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x396d
movq %r15, %rdi
movq %r13, %rsi
callq 0x2170
movsbl 0xb(%rsp), %edi
callq 0x2030
testl %eax, %eax
je 0x39b8
cmpl $0x1a, 0xc(%rsp)
jae 0x39e3
incl %ebx
cmpl 0x10(%r14), %ebx
jl 0x3924
jmp 0x396d
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x30(%rsp,%rax), %eax
testb $0x5, %al
setne %cl
testb $0x2, %al
sete %al
testb %al, %cl
jne 0x39b8
cmpl 0x10(%r14), %ebx
jl 0x3a29
leaq 0x10(%rsp), %rdi
callq 0x2040
leaq 0x10(%rsp), %rdi
callq 0x2050
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4631(%rip), %rdi      # 0x7ff0
leaq 0x1ad9(%rip), %rsi      # 0x549f
movl $0x37, %edx
callq 0x2140
movl $0x4, %ebp
movq 0x4614(%rip), %rdi      # 0x7ff0
callq 0x2080
jmp 0x3a0c
movq 0x4606(%rip), %rdi      # 0x7ff0
leaq 0x1ae6(%rip), %rsi      # 0x54d7
movl $0x2f, %edx
callq 0x2140
movl $0x3, %ebp
movq 0x45e9(%rip), %rdi      # 0x7ff0
callq 0x2080
movl $0x4, %edi
callq 0x2090
movl %ebp, (%rax)
movq 0x4591(%rip), %rsi      # 0x7fb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21b0
movq 0x45c0(%rip), %rdi      # 0x7ff0
leaq 0x1ad0(%rip), %rsi      # 0x5507
movl $0x1f, %edx
callq 0x2140
movl $0x8, %ebp
movq 0x45a3(%rip), %rdi      # 0x7ff0
movl %ebx, %esi
callq 0x21c0
jmp 0x3a0c
jmp 0x3a58
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/config.cpp
// Function: Config::get_file(int)
const char* Config::get_file(int filecode){
  switch(filecode){
  case PB: 
    return plugboard_file;
  case RF:
    return reflector_file;
  case RP:
    return rotor_pos_file; 
  default: return "No files found!";
  }
}

// Assembly:
cmpl $0x12c, %esi            # imm = 0x12C
je 0x3a8d
cmpl $0xc8, %esi
je 0x3a88
cmpl $0x64, %esi
jne 0x3a92
movq 0x18(%rdi), %rax
retq
movq 0x20(%rdi), %rax
retq
movq 0x40(%rdi), %rax
retq
leaq 0x1732(%rip), %rax      # 0x51cb
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/plugboard_reflector.cpp
// Function: Plugboard_Reflector::store_config_pr(int)
void Plugboard_Reflector::store_config_pr(int store_code){
  ifstream in_put;
  in_put.open(config_pr->get_file(store_code));      //to get the file name from the Config class
  
  vector<int>* buffer_vec;
  int buffer;

  if(store_code == PB){
    buffer_vec = &swap_config;
  }
  if(store_code == RF){
    buffer_vec = &ref_config;
  }
  while(in_put>>buffer){
    buffer_vec->push_back(buffer);
  }
  in_put.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movl %esi, %ebp
movq %rdi, %r14
leaq 0x10(%rsp), %rdi
callq 0x2130
movq 0x30(%r14), %rdi
movl %ebp, %esi
callq 0x3a6e
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x20c0
leaq 0x18(%r14), %rbx
cmpl $0xc8, %ebp
cmovneq %r14, %rbx
leaq 0x10(%rsp), %r14
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x20b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3e0d
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3e00
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3dcd
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3be0
jmp 0x3dcd
leaq 0x10(%rsp), %rdi
callq 0x2040
leaq 0x10(%rsp), %rdi
callq 0x2050
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e33
jmp 0x3e33
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O3/yuroitaki[P]enigma_machine/rotor.cpp
// Function: Rotor::Rotor(Config*, int)
Rotor::Rotor(Config* config_rotor, int rotor_idt){
  config_rot = config_rotor;
  rotor_id = rotor_idt;
  notch_reached = false;
  store_encrypt(rotor_id);
  create_key();
  shift_ground(SETUP);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq 0x20(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x48(%rdi)
movq %rsi, (%rdi)
movl %edx, 0x54(%rdi)
movb $0x0, 0x58(%rdi)
movl %edx, %esi
callq 0x3f4a
movq %rbx, %rdi
callq 0x415e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x41b8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r12
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x3f34
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x2120
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x224c
movq %r12, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O3/js850[P]lbfgs_cpp/lbfgs.cpp
// Function: vecdot(std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>)
double vecdot(std::vector<double> const v1, std::vector<double> const v2)
{
  assert(v1.size() == v2.size());
  size_t i;
  double dot = 0.;
  for (i=0; i<v1.size(); ++i) {
    dot += v1[i] * v2[i];
  }
  return dot;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rdi
movq %rdi, %rcx
subq %rax, %rcx
movq (%rsi), %rdx
movq 0x8(%rsi), %rsi
subq %rdx, %rsi
cmpq %rsi, %rcx
jne 0x1705
cmpq %rax, %rdi
je 0x16ff
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %esi, %esi
movsd (%rax,%rsi,8), %xmm1
mulsd (%rdx,%rsi,8), %xmm1
addsd %xmm1, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x16e7
jmp 0x1703
xorpd %xmm0, %xmm0
popq %rbp
retq
leaq 0x1984(%rip), %rdi      # 0x3090
leaq 0x1994(%rip), %rsi      # 0x30a7
leaq 0x1997(%rip), %rcx      # 0x30b1
movl $0x1b, %edx
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/js850[P]lbfgs_cpp/lbfgs.cpp
// Function: LBFGS_ns::LBFGS::one_iteration()
void LBFGS::one_iteration()
{
  std::vector<double> x_old = x_;
  std::vector<double> g_old = g_;

  compute_lbfgs_step();

  double stepsize = backtracking_linesearch();

  update_memory(x_old, g_old, x_, g_);
  if ((iprint_ > 0) && (iter_number_ % iprint_ == 0)){
    cout << "lbgs: " << iter_number_ 
      << " f " << f_ 
      << " rms " << rms_
      << " stepsize " << stepsize << "\n";
  }
  iter_number_ += 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x2a38
leaq 0x58(%rbx), %r15
leaq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x2a38
movq %rbx, %rdi
callq 0x1eaa
movq %rbx, %rdi
callq 0x2300
movsd %xmm0, -0x20(%rbp)
leaq -0x50(%rbp), %rsi
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rcx
movq %r15, %r8
callq 0x2766
movl 0x2c(%rbx), %ecx
testl %ecx, %ecx
jle 0x1e35
movl 0x30(%rbx), %eax
cltd
idivl %ecx
testl %edx, %edx
jne 0x1e35
movq 0x3243(%rip), %rdi      # 0x4fd8
leaq 0x1359(%rip), %rsi      # 0x30f5
movl $0x6, %edx
callq 0x10e0
movl 0x30(%rbx), %esi
movq 0x3228(%rip), %rdi      # 0x4fd8
callq 0x1150
movq %rax, %r14
leaq 0x133d(%rip), %rsi      # 0x30fc
movl $0x3, %edx
movq %rax, %rdi
callq 0x10e0
movsd 0x50(%rbx), %xmm0
movq %r14, %rdi
callq 0x1110
movq %rax, %r14
leaq 0x131d(%rip), %rsi      # 0x3100
movl $0x5, %edx
movq %rax, %rdi
callq 0x10e0
movsd 0x70(%rbx), %xmm0
movq %r14, %rdi
callq 0x1110
movq %rax, %r14
leaq 0x12ff(%rip), %rsi      # 0x3106
movl $0xa, %edx
movq %rax, %rdi
callq 0x10e0
movq %r14, %rdi
movsd -0x20(%rbp), %xmm0
callq 0x1110
leaq 0x1304(%rip), %rsi      # 0x312c
movl $0x1, %edx
movq %rax, %rdi
callq 0x10e0
incl 0x30(%rbx)
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x1e4d
movq -0x28(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1e62
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1e74
movq %rax, %rbx
jmp 0x1e8c
movq %rax, %rbx
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x1e8c
movq -0x28(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1ea1
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq %rbx, %rdi
callq 0x1160
nop
// File: /workspace/github_cpp_makefile_star2_O3/js850[P]lbfgs_cpp/lbfgs.cpp
// Function: LBFGS_ns::LBFGS::run()
void LBFGS::run()
{
  // iterate until the stop criterion is satisfied or maximum number of
  // iterations is reached
  while (iter_number_ < maxiter_)
  {
    if (stop_criterion_satisfied()){
      break;
    }
    one_iteration();
  }
}

// Assembly:
movl 0x30(%rdi), %eax
cmpl 0x28(%rdi), %eax
jge 0x29e3
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movsd 0x10(%rbx), %xmm0
ucomisd 0x70(%rbx), %xmm0
jae 0x29dd
movq %rbx, %rdi
callq 0x1d1a
movl 0x30(%rbx), %eax
cmpl 0x28(%rbx), %eax
jl 0x29c1
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/AndreiBarsan[P]uShell/command.cc
// Function: microshell::core::CdBuiltin::invoke(microshell::core::Shell*)
int CdBuiltin::invoke(Shell *shell) {
  if(argv.size() > 1) {
    string dir = argv[1];
    // TODO(andrei) Centralized code to resolve path.
    // Example: shell->resolve(path)
    // Figures out if path is relative or absolute, resolves ~, .. etc.
    string full_path = util::merge_paths(shell->get_working_directory(), dir);
    if(util::is_directory(full_path)) {
      shell->set_working_directory(full_path);
      return 1;
    }
    else {
      shell->eout("cd: no such directory: " + dir);
      return 0;
    }
  }

  // TODO(andrei) Proper tilde expansion and home folder lookup.
  shell->set_working_directory("~");
  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x66ee
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0x38(%rbp), %rdi
callq 0x70a2
movq %rbx, %rdi
callq 0xab36
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rdx
movq %rax, %rsi
callq 0xbe1f
leaq -0x58(%rbp), %rdi
callq 0xc251
testb %al, %al
je 0x672f
movl $0x1, %r14d
leaq -0x58(%rbp), %rsi
movq %rbx, %rdi
callq 0xab40
jmp 0x6764
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x6a0a(%rip), %rsi      # 0xd107
leaq 0x6a04(%rip), %rdx      # 0xd108
leaq -0x38(%rbp), %rdi
callq 0x7140
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0xab40
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x6727
callq 0x5230
movl $0x1, %r14d
jmp 0x6784
leaq 0x69b9(%rip), %rsi      # 0xd0ef
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0x6827
leaq -0x78(%rbp), %rsi
movq %rbx, %rdi
callq 0xa372
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6761
callq 0x5230
xorl %r14d, %r14d
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6776
callq 0x5230
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x6784
callq 0x5230
movl %r14d, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67c1
callq 0x5230
jmp 0x67c1
jmp 0x67be
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
jne 0x67e1
jmp 0x67e6
movq %rax, %rbx
jmp 0x67e6
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67d8
callq 0x5230
jmp 0x67d8
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x67e6
callq 0x5230
movq %rbx, %rdi
callq 0x5400
// File: /workspace/github_cpp_makefile_star2_O3/AndreiBarsan[P]uShell/./shell.h
// Function: microshell::core::Shell::get()
static Shell* get() {
    if (nullptr == Shell::instance) {
      cerr << "Tried to access shell before initialization." << endl;
      ::exit(-1);
    }

    return Shell::instance;
  }

// Assembly:
leaq 0xea83(%rip), %rax      # 0x15278
movq (%rax), %rax
testq %rax, %rax
je 0x67fe
retq
pushq %rbp
movq %rsp, %rbp
movq 0xe7e7(%rip), %rdi      # 0x14ff0
leaq 0x68fc(%rip), %rsi      # 0xd10c
callq 0x5250
movq %rax, %rdi
callq 0x5130
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x52e0
// File: /workspace/github_cpp_makefile_star2_O3/AndreiBarsan[P]uShell/main.cc
// Function: handler(int)
void handler(int sig) {
  void *array[10];
  size_t size;

  size = backtrace(array, 10);

  fprintf(stderr, "Error: signal %d:\n", sig);
  backtrace_symbols_fd(array, size, STDERR_FILENO);
  exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %edi, %ebx
leaq -0x70(%rbp), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x5360
movl %eax, %r15d
movq 0xbc16(%rip), %rax      # 0x14fd0
movq (%rax), %rdi
leaq 0x4d48(%rip), %rsi      # 0xe10c
movl %ebx, %edx
xorl %eax, %eax
callq 0x5330
movq %r14, %rdi
movl %r15d, %esi
movl $0x2, %edx
callq 0x53c0
movl $0x1, %edi
callq 0x52e0
// File: /workspace/github_cpp_makefile_star2_O3/AndreiBarsan[P]uShell/main.cc
// Function: main
int main(int argc, char **argv) {
  // Enable stack traces on crashes.
  signal(SIGSEGV, handler);

  microshell::core::Shell *shell = microshell::core::Shell::initialize(util::argv_to_strvec(argc, argv));
  return shell->interactive();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movl %edi, %r14d
leaq -0x71(%rip), %rsi       # 0x9390
movl $0xb, %edi
callq 0x52d0
leaq -0x30(%rbp), %r15
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0xbd80
movq %r15, %rdi
callq 0x9458
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x6c6c
movq %rbx, %rdi
callq 0xa3c4
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x6c6c
movq %rbx, %rdi
callq 0x5400