LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Enemy/elf.cc
// Function: Elf::attack(Shade&)
bool Elf::attack(Shade & s) {
    // SPECIAL EFFECT: gets two attacks 
    for (int i = 0; i < 2; i++) {
        // Determine attack success/fail
        if (std::rand() % 2 == 0) {
            // Attack failed
            continue;
        } // Else, attack proceeds
        
        // Calculate damage dealt
        double damage = std::ceil(100/(100 + s.getDef()) * this->getAtk());

        // Set new defender HP
        s.setHP(s.getHP() - damage);
    }

    // Check if defender died
    if (s.getHP() <= 0) {
        s.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %ebp
callq 0x5080
testb $0x1, %al
je 0x17371
movq %rbx, %rdi
callq 0x16c26
movsd 0x5d24(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
decl %ebp
je 0x1731b
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x173a3
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Enemy/elf.cc
// Function: Elf::attack(Vampire&)
bool Elf::attack(Vampire & v) {
    // SPECIAL EFFECT: gets two attacks
    for (int i = 0; i < 2; i++) {
        // Determine attack success/fail
        if (std::rand() % 2 == 0) {
            // Attack failed
            continue;
        } // Else, attack proceeds
        
        // Calculate damage dealt
        double damage = std::ceil(100/(100 + v.getDef()) * this->getAtk());

        // Set new defender HP
        v.setHP(v.getHP() - damage);
    }

    // Check if defender died
    if (v.getHP() <= 0) {
        v.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %ebp
callq 0x5080
testb $0x1, %al
je 0x174a9
movq %rbx, %rdi
callq 0x16c26
movsd 0x5bec(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
decl %ebp
je 0x17453
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x174db
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Enemy/elf.cc
// Function: Elf::attack(Troll&)
bool Elf::attack(Troll & t) {
    // SPECIAL EFFECT: gets two attacks 
    for (int i = 0; i < 2; i++) {
        // Determine attack success/fail
        if (std::rand() % 2 == 0) {
            // Attack failed
            continue;
        } // Else, attack proceeds
        
        // Calculate damage dealt
        double damage = std::ceil(100/(100 + t.getDef()) * this->getAtk());

        // Set new defender HP
        t.setHP(t.getHP() - damage);
    }

    // Check if defender died
    if (t.getHP() <= 0) {
        t.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %ebp
callq 0x5080
testb $0x1, %al
je 0x17555
movq %rbx, %rdi
callq 0x16c26
movsd 0x5b40(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
decl %ebp
je 0x174ff
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x17587
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Enemy/elf.cc
// Function: Elf::attack(Goblin&)
bool Elf::attack(Goblin & g) {
    // SPECIAL EFFECT: gets two attacks 
    for (int i = 0; i < 2; i++) {
        // Determine attack success/fail
        if (std::rand() % 2 == 0) {
            // Attack failed
            continue;
        } // Else, attack proceeds
        
        // Calculate damage dealt
        double damage = std::ceil(100/(100 + g.getDef()) * this->getAtk());

        // Set new defender HP
        g.setHP(g.getHP() - damage);
    }

    // Check if defender died
    if (g.getHP() <= 0) {
        g.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %ebp
callq 0x5080
testb $0x1, %al
je 0x17601
movq %rbx, %rdi
callq 0x16c26
movsd 0x5a94(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
decl %ebp
je 0x175ab
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x17633
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Enemy/orc.cc
// Function: Orc::attack(Goblin&)
bool Orc::attack(Goblin & g) {
    // SPECIAL EFFECT: does 50% more damage
    // Determine attack success/fail
    if (std::rand() % 2 == 0) {
        // Attack failed
        return false;
    } // Else, attack proceeds
    
    // Calculate damage dealt
    double damage = std::ceil(100/(100 + g.getDef()) * this->getAtk()) * 1.5;

    // Set new defender HP
    g.setHP(g.getHP() - damage);

    // Check if defender died
    if (g.getHP() <= 0) {
        g.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5080
testb $0x1, %al
jne 0x18263
xorl %eax, %eax
jmp 0x182d7
movq %rbx, %rdi
callq 0x16c26
movsd 0x4de5(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
mulsd 0x4e5e(%rip), %xmm0     # 0x1d0f8
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
addsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
setae %al
jb 0x182d7
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/drow.cc
// Function: Drow::attack(Human&)
bool Drow::attack(Human& h) {    
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + h.getDef()) * this->getAtk());

    // Set new defender HP
    h.setHP(h.getHP() - damage);

    // Check if defender died
    if (h.getHP() <= 0) {
        h.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x46a8(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18a15
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/drow.cc
// Function: Drow::attack(Dwarf&)
bool Drow::attack(Dwarf& d) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + d.getDef()) * this->getAtk());

    // Set new defender HP
    d.setHP(d.getHP() - damage);

    // Check if defender died
    if (d.getHP() <= 0) {
        d.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x461a(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18aa3
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/drow.cc
// Function: Drow::attack(Merchant&)
bool Drow::attack(Merchant& m) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + m.getDef()) * this->getAtk());

    // Set new defender HP
    m.setHP(m.getHP() - damage);

    // Check if defender died
    if (m.getHP() <= 0) {
        m.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x4470(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18c4d
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/drow.cc
// Function: Drow::attack(Halfling&)
bool Drow::attack(Halfling& half) {
    // Determine attack success/fail
    if (std::rand() % 2 == 0) {
        // Attack failed
        return false;
    } // Else, attack proceeds

    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + half.getDef()) * this->getAtk());

    // Set new defender HP
    half.setHP(half.getHP() - damage);

    // Check if defender died
    if (half.getHP() <= 0) {
        half.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5080
testb $0x1, %al
jne 0x18d01
xorl %eax, %eax
jmp 0x18d6d
movq %rbx, %rdi
callq 0x16c26
movsd 0x4347(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
setae %al
jb 0x18d6d
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Human&)
bool Goblin::attack(Human& h) {    
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + h.getDef()) * this->getAtk());

    // Set new defender HP
    h.setHP(h.getHP() - damage);

    // Check if defender died
    if (h.getHP() <= 0) {
        h.setHP(0);
        // add 5 gold to inventory
        this->setGold(this->getGold() + 5);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x16c26
movsd 0x4248(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18e88
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x192c0
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x192c4
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Dwarf&)
bool Goblin::attack(Dwarf& d) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + d.getDef()) * this->getAtk());

    // Set new defender HP
    d.setHP(d.getHP() - damage);

    // Check if defender died
    if (d.getHP() <= 0) {
        d.setHP(0);
        // add 5 gold to inventory
        this->setGold(this->getGold() + 5);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x16c26
movsd 0x41a6(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18f2a
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x192c0
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x192c4
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Elf&)
bool Goblin::attack(Elf& e) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + e.getDef()) * this->getAtk());

    // Set new defender HP
    e.setHP(e.getHP() - damage);

    // Check if defender died
    if (e.getHP() <= 0) {
        e.setHP(0);
        // add 5 gold to inventory
        this->setGold(this->getGold() + 5);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x16c26
movsd 0x4104(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18fcc
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x192c0
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x192c4
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Orc&)
bool Goblin::attack(Orc& o) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + o.getDef()) * this->getAtk());

    // Set new defender HP
    o.setHP(o.getHP() - damage);

    // Check if defender died
    if (o.getHP() <= 0) {
        o.setHP(0);
        // add 5 gold to inventory
        this->setGold(this->getGold() + 5);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x16c26
movsd 0x4062(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x1906e
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x192c0
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x192c4
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Dragon&)
bool Goblin::attack(Dragon& drag) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + drag.getDef()) * this->getAtk());

    // Set new defender HP
    drag.setHP(drag.getHP() - damage);

    // Check if defender died
    if (drag.getHP() <= 0) {
        drag.setHP(0);
        // add 5 gold to inventory
        this->setGold(this->getGold() + 5);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x16c26
movsd 0x3f1e(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x191b2
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x192c0
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x192c4
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Halfling&)
bool Goblin::attack(Halfling& half) {
    // Determine attack success/fail
    if (std::rand() % 2 == 0) {
        // Attack failed
        return false;
    } // Else, attack proceeds
    
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + half.getDef()) * this->getAtk());

    // Set new defender HP
    half.setHP(half.getHP() - damage);

    // Check if defender died
    if (half.getHP() <= 0) {
        half.setHP(0);
        // add 5 gold to inventory
        this->setGold(this->getGold() + 5);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x5080
testb $0x1, %al
jne 0x191d9
xorl %eax, %eax
jmp 0x19258
movq %r14, %rdi
callq 0x16c26
movsd 0x3e6f(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
setae %al
jb 0x19258
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x192c0
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x192c4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/vampire.cc
// Function: Vampire::attack(Human&)
bool Vampire::attack(Human& h) {    
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + h.getDef()) * this->getAtk());

    // Set new defender HP
    h.setHP(h.getHP() - damage);

    // gains 5 health every successful attack
    this->setHP(this->getHP() + 5);

    // Check if defender died
    if (h.getHP() <= 0) {
        h.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x3484(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
addsd 0x34b3(%rip), %xmm0     # 0x1d0d0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19c51
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/vampire.cc
// Function: Vampire::attack(Dwarf&)
bool Vampire::attack(Dwarf& d) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + d.getDef()) * this->getAtk());

    // Set new defender HP
    d.setHP(d.getHP() - damage);

    // alergic to Dwarfs so lose 5 health every successful attack
    this->setHP(this->getHP() - 5);

    // Check if defender died
    if (d.getHP() <= 0) {
        d.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x33de(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
addsd 0x359d(%rip), %xmm0     # 0x1d260
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19cf7
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/vampire.cc
// Function: Vampire::attack(Elf&)
bool Vampire::attack(Elf& e) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + e.getDef()) * this->getAtk());

    // Set new defender HP
    e.setHP(e.getHP() - damage);

    // gains 5 health every successful attack
    this->setHP(this->getHP() + 5);

    // Check if defender died
    if (e.getHP() <= 0) {
        e.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x3338(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
addsd 0x3367(%rip), %xmm0     # 0x1d0d0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19d9d
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/vampire.cc
// Function: Vampire::attack(Dragon&)
bool Vampire::attack(Dragon& drag) {
    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + drag.getDef()) * this->getAtk());

    // Set new defender HP
    drag.setHP(drag.getHP() - damage);

    // gains 5 health every successful attack
    this->setHP(this->getHP() + 5);

    // Check if defender died
    if (drag.getHP() <= 0) {
        drag.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x16c26
movsd 0x315e(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
addsd 0x318d(%rip), %xmm0     # 0x1d0d0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19f77
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
xorpd %xmm1, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Player/vampire.cc
// Function: Vampire::attack(Halfling&)
bool Vampire::attack(Halfling& half) {
    // Determine attack success/fail
    if (std::rand() % 2 == 0) {
        // Attack failed
        return false;
    } // Else, attack proceeds

    // Calculate damage dealt
    double damage = std::ceil(100 / (100 + half.getDef()) * this->getAtk());

    // Set new defender HP
    half.setHP(half.getHP() - damage);

    // gains 5 health every successful attack
    this->setHP(this->getHP() + 5);

    // Check if defender died
    if (half.getHP() <= 0) {
        half.setHP(0);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5080
testb $0x1, %al
jne 0x19fa0
xorl %eax, %eax
jmp 0x1a024
movq %rbx, %rdi
callq 0x16c26
movsd 0x30a8(%rip), %xmm1     # 0x1d058
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x16c20
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x16c1a
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x16c2c
movq %r14, %rdi
callq 0x16c1a
addsd 0x30d7(%rip), %xmm0     # 0x1d0d0
movq %r14, %rdi
callq 0x16c2c
movq %rbx, %rdi
callq 0x16c1a
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
setae %al
jb 0x1a024
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x16c2c
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Potion/ph.cc
// Function: PH::applyEffects(Player&, double)
void PH::applyEffects(Player& player, double multiplier) {
    // if players HP is at least 10 HP
    if (player.getHP() >= (10 * multiplier)) {
        player.setHP(player.getHP() - (10 * multiplier));
    } else {
        player.setHP(0);
    } // else set HP to 0
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x16c1a
movapd %xmm0, %xmm1
movsd 0x2e1a(%rip), %xmm2     # 0x1d088
mulsd 0x8(%rsp), %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm2, %xmm1
jb 0x1a29c
movq %rbx, %rdi
callq 0x16c1a
movsd 0x8(%rsp), %xmm1
mulsd 0x2ff4(%rip), %xmm1     # 0x1d288
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x16c2c
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Potion/rh.cc
// Function: RH::applyEffects(Player&, double)
void RH::applyEffects(Player& player, double multiplier) {
    // if player is a vampire or player health is at least 10 HP away from max
    if ((player.getMaxHP() < 0) || (player.getHP() + (10 * multiplier) <= player.getMaxHP())) {
        player.setHP(player.getHP() + (10 * multiplier));
    } else {
        player.setHP(player.getMaxHP());
    } // else add health to full
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, (%rsp)
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x192cc
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x1a3dc
movq %rbx, %rdi
callq 0x16c1a
movsd 0x2cd9(%rip), %xmm1     # 0x1d088
mulsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rbx, %rdi
callq 0x192cc
ucomisd 0x8(%rsp), %xmm0
jae 0x1a3dc
movq %rbx, %rdi
callq 0x192cc
movapd %xmm0, %xmm1
jmp 0x1a3f5
movq %rbx, %rdi
callq 0x16c1a
movsd (%rsp), %xmm1
mulsd 0x2c97(%rip), %xmm1     # 0x1d088
addsd %xmm0, %xmm1
movq %rbx, %rdi
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x16c2c
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Potion/wa.cc
// Function: WA::applyEffects(Player&, double)
void WA::applyEffects(Player& player, double multiplier) {
    if (player.getAtk() - (5 * multiplier) >= 0) {
        player.setAtk(player.getAtk() - (5 * multiplier));
    } else {
        player.setAtk(0);
    }
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x16c20
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x2dac(%rip), %xmm0     # 0x1d260
movsd %xmm0, 0x8(%rsp)
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x1a4de
movq %rbx, %rdi
callq 0x16c20
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x16c32
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Potion/wd.cc
// Function: WD::applyEffects(Player&, double)
void WD::applyEffects(Player& player, double multiplier) {
    // player def can never drop below 0
    if (player.getDef() - (5 * multiplier) >= 0) {
        player.setDef(player.getDef() - (5 * multiplier));
    } else {
        player.setDef(0);
    }
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x16c26
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x2cc8(%rip), %xmm0     # 0x1d260
movsd %xmm0, 0x8(%rsp)
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x1a5c2
movq %rbx, %rdi
callq 0x16c26
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x16c42
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Tile/walkabletile.cc
// Function: WalkableTile::WalkableTile(char, int, int, std::shared_ptr<Character>, std::shared_ptr<Potion>, std::shared_ptr<Gold>, bool)
WalkableTile::WalkableTile(char type, int x, int y, std::shared_ptr<Character> occupant, std::shared_ptr<Potion> potion, std::shared_ptr<Gold> gold, bool exit) :
    Tile {type, x, y},
    occupant {occupant},
    potion {potion},
    gold {gold},
    exit {exit},
    roomNum {-1}
{}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movq %rdi, %rbx
callq 0x1ad70
leaq 0xafca(%rip), %rax      # 0x25d80
movq %rax, (%rbx)
movq (%r15), %rax
movq %rax, 0x18(%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x1ade2
movq 0xb1ec(%rip), %rcx      # 0x25fc0
cmpb $0x0, (%rcx)
je 0x1adde
incl 0x8(%rax)
jmp 0x1ade2
lock
incl 0x8(%rax)
movq 0x20(%rsp), %rax
movq (%r14), %rcx
movq %rcx, 0x28(%rbx)
movq 0x8(%r14), %rcx
movq %rcx, 0x30(%rbx)
testq %rcx, %rcx
je 0x1ae10
movq 0xb1be(%rip), %rdx      # 0x25fc0
cmpb $0x0, (%rdx)
je 0x1ae0c
incl 0x8(%rcx)
jmp 0x1ae10
lock
incl 0x8(%rcx)
movb 0x28(%rsp), %cl
movq (%rax), %rdx
movq %rdx, 0x38(%rbx)
movq 0x8(%rax), %rax
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x1ae3d
movq 0xb191(%rip), %rdx      # 0x25fc0
cmpb $0x0, (%rdx)
je 0x1ae39
incl 0x8(%rax)
jmp 0x1ae3d
lock
incl 0x8(%rax)
movb %cl, 0x48(%rbx)
movl $0xffffffff, 0x4c(%rbx) # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kaiming[P]Chamber-Crawler-3k/Tile/walkabletile.cc
// Function: WalkableTile::move(std::shared_ptr<WalkableTile>)
std::shared_ptr<WalkableTile> WalkableTile::move(std::shared_ptr<WalkableTile> destination) {
    // move the occupant to destination
    std::swap(occupant, destination->occupant);

    // return destination tile
    return destination;
}

// Assembly:
movq %rdi, %rax
movq (%rdx), %rcx
movq 0x18(%rsi), %rdi
movq 0x18(%rcx), %r8
movq %r8, 0x18(%rsi)
movq %rdi, 0x18(%rcx)
movq 0x20(%rcx), %rdi
movq 0x20(%rsi), %r8
movq %r8, 0x20(%rcx)
movq %rdi, 0x20(%rsi)
movq (%rdx), %rcx
movq %rcx, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq 0x8(%rdx), %rsi
movq %rcx, 0x8(%rdx)
movq %rsi, 0x8(%rax)
movq %rcx, (%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::replace_all(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void replace_all(std::string& sourceString, std::string subString, std::string newSubstring)
	{
		std::string tempString;
		int startPos = 0;
		int pos = sourceString.find(subString, startPos);
		while(pos != std::string::npos)
		{
			tempString += sourceString.substr(startPos, pos - startPos);
			tempString += newSubstring;
			startPos = pos + subString.size();
			pos = sourceString.find(subString, startPos);
		}
		if(startPos <  sourceString.size())
		{
			tempString += sourceString.substr(startPos);
		}
		sourceString = tempString;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rsi), %rsi
movq 0x8(%r15), %rcx
xorl %r12d, %r12d
xorl %edx, %edx
callq 0x21e0
movq %rax, %r13
cmpl $-0x1, %r13d
je 0x2421
movslq %r12d, %rdx
movl %r13d, %eax
subl %edx, %eax
movslq %eax, %rcx
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0x2130
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x2060
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x23ed
callq 0x2100
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq -0x68(%rbp), %rdi
callq 0x2060
movq (%r15), %rsi
movq 0x8(%r15), %rcx
movq %r13, %r12
addq %rcx, %r12
movslq %r12d, %rdx
movq %rbx, %rdi
callq 0x21e0
movq %rax, %r13
cmpl $-0x1, %r13d
jne 0x23b3
movslq %r12d, %r12
cmpq %r12, 0x8(%rbx)
jbe 0x2460
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x2130
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x2060
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2460
callq 0x2100
leaq -0x68(%rbp), %rsi
movq %rbx, %rdi
callq 0x20a0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x247e
callq 0x2100
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x24ab
jmp 0x24b7
jmp 0x24b7
jmp 0x24b7
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x24ba
callq 0x2100
jmp 0x24ba
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x24cc
callq 0x2100
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
StringVector split(std::string sourceString, std::string delemeter)
	{
		StringVector result;
		if(delemeter.empty())
		{
			delemeter = " ";
		}
		int delemeterSize = delemeter.size();
		std::string token;
		int startPos = 0;
		int pos = sourceString.find(delemeter);
		while(pos != std::string::npos)
		{
			token = sourceString.substr(startPos, pos - startPos);
			result.push_back(token);
			startPos = pos + delemeterSize;
			pos = sourceString.find(delemeter, startPos);
		}
		if(startPos < sourceString.size())
		{
			result.push_back(sourceString.substr(startPos));
		}	
		return result;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x30(%rbp)
movq $0x0, 0x10(%rdi)
movq 0x8(%rdx), %rdx
testq %rdx, %rdx
jne 0x251d
leaq 0x1d28(%rip), %rcx      # 0x4235
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2180
movq 0x8(%r15), %rcx
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r15), %rsi
xorl %r12d, %r12d
movq %r14, %rdi
xorl %edx, %edx
movq %rcx, -0x38(%rbp)
callq 0x21e0
movq %rax, %rbx
movl $0x0, %r13d
cmpl $-0x1, %ebx
je 0x25bb
movslq %r12d, %rdx
movl %ebx, %eax
subl %edx, %eax
movslq %eax, %rcx
leaq -0x58(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2130
leaq -0x78(%rbp), %rdi
movq %r12, %rsi
callq 0x2150
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x258d
callq 0x2100
movq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x33f4
movl %ebx, %r12d
addl -0x38(%rbp), %r12d
movslq %r12d, %r13
movq (%r15), %rsi
movq 0x8(%r15), %rcx
movq %r14, %rdi
movq %r13, %rdx
callq 0x21e0
movq %rax, %rbx
jmp 0x2551
cmpq %r13, 0x8(%r14)
jbe 0x25f6
leaq -0x58(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x2130
leaq -0x58(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x3810
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25f6
callq 0x2100
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2608
callq 0x2100
movq -0x30(%rbp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2650
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x263e
callq 0x2100
jmp 0x263e
jmp 0x263b
jmp 0x263b
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2650
callq 0x2100
movq -0x30(%rbp), %rdi
callq 0x3440
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::find_all_occourance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
IntVector find_all_occourance(std::string sourceString, std::string subString)
	{
		IntVector result;
		if(subString.empty() || (subString.size() > sourceString.size()))
		{
			return result;
		}
		int substringSize = subString.size();
		int pos = sourceString.find(subString);
		while(pos != std::string::npos)
		{
			result.push_back(pos);
			pos = sourceString.find(subString, pos + substringSize);
		}
		return result;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rdx), %r13
testq %r13, %r13
je 0x26f3
movq %rsi, %r15
cmpq 0x8(%rsi), %r13
ja 0x26f3
movq %rdx, %r14
movq (%rdx), %rsi
movq %r15, %rdi
xorl %edx, %edx
movq %r13, %rcx
callq 0x21e0
movl %eax, -0x2c(%rbp)
cmpl $-0x1, %eax
je 0x26f3
leaq -0x2c(%rbp), %r12
movslq %r13d, %r13
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x26ca
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x26d5
movq %rbx, %rdi
movq %r12, %rdx
callq 0x3a16
movslq -0x2c(%rbp), %rdx
addq %r13, %rdx
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %r15, %rdi
callq 0x21e0
movl %eax, -0x2c(%rbp)
cmpl $-0x1, %eax
jne 0x26b4
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2715
callq 0x2100
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::remove_all_occourance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void remove_all_occourance(std::string& sourceString, std::string subString)
	{
		if(subString.empty() || (subString.size() > sourceString.size()))
		{
			return;
		}	
		int startPos = 0;
		int substrPos = 0;
		int substrSize = subString.size();
		while((substrPos = sourceString.find(subString, startPos)) != std::string::npos)
		{
			sourceString.erase(substrPos, substrSize);
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rsi), %r15
leaq -0x1(%r15), %rax
cmpq 0x8(%rdi), %rax
jae 0x278c
movq %rsi, %rbx
movq %rdi, %r14
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
movq (%rsi), %rsi
movq 0x8(%rbx), %rcx
xorl %edx, %edx
callq 0x21e0
shlq $0x20, %rax
cmpq %r12, %rax
je 0x278c
movslq %r15d, %r15
sarq $0x20, %rax
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x2040
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x21e0
shlq $0x20, %rax
cmpq %r12, %rax
jne 0x2760
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::remove_first_occourance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void remove_first_occourance(std::string& sourceString, std::string subString)
	{
		if(subString.empty() || (subString.size() > sourceString.size()))
		{
			return;
		}
		int pos = sourceString.find(subString);
		if(pos != std::string::npos)
		{
			sourceString.erase(pos, subString.size());
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rsi), %rcx
leaq -0x1(%rcx), %rax
cmpq 0x8(%rdi), %rax
jae 0x27cd
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
xorl %edx, %edx
callq 0x21e0
shlq $0x20, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jne 0x27d2
popq %rbx
popq %r14
popq %rbp
retq
sarq $0x20, %rax
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::remove_last_occourance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void remove_last_occourance(std::string& sourceString, std::string subString)
	{
		if(subString.empty() || (subString.size() > sourceString.size()))
		{
			return;
		}
		int startPos = 0;
		int oldPos = 0;
		int pos = 0;
		while((pos = sourceString.find(subString, startPos)) != std::string::npos)
		{
			oldPos = pos;
			startPos = pos + subString.size();
		}	
		if(oldPos < sourceString.size())
		{
			sourceString.erase(oldPos, subString.size());
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x2883
movq %rdi, %rbx
cmpq 0x8(%rdi), %rax
ja 0x2883
movq %rsi, %r14
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
movq (%rsi), %rsi
movq 0x8(%r14), %rcx
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x21e0
movq %rax, %rdi
shlq $0x20, %rdi
cmpq %r12, %rdi
je 0x2866
movq %rax, %r15
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rcx, %rdx
shlq $0x20, %rdx
addq %rdi, %rdx
sarq $0x20, %rdx
movq %rbx, %rdi
callq 0x21e0
movq %rax, %rdi
shlq $0x20, %rdi
cmpq %r12, %rdi
jne 0x2837
movslq %r15d, %r15
cmpq 0x8(%rbx), %r15
jae 0x2883
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movq %r15, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2040
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::trim_leading_spaces(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void trim_leading_spaces(std::string& sourceString)
	{
		if(sourceString.empty())
		{
			return;
		}
		int found = sourceString.find_first_not_of(" ");
		if(found != std::string::npos && found != 0)
		{
			sourceString.erase(0, found);
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rdi)
je 0x28e3
movq %rdi, %rbx
leaq 0x1992(%rip), %rsi      # 0x4235
movl $0x1, %ecx
xorl %edx, %edx
callq 0x21c0
movq %rax, %rdx
shlq $0x20, %rdx
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rdx
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
jne 0x28e3
sarq $0x20, %rdx
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2040
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sagardesd[P]CoolString/include/stringops.hpp
// Function: cool::stringops::trim_trailing_spaces(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void trim_trailing_spaces(std::string& sourceString)
	{
		if(sourceString.empty())
		{
			return;
		}
		int found = sourceString.find_last_not_of(" ");
		std::cout << "found - " << found << std::endl;
		if(found != std::string::npos)
		{
			sourceString.erase(found + 1, sourceString.size());
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rdi)
je 0x296f
movq %rdi, %rbx
leaq 0x1930(%rip), %rsi      # 0x4235
movl $0x1, %ecx
movq $-0x1, %rdx
callq 0x2190
movq %rax, %r14
movq 0x36b8(%rip), %r15      # 0x5fd8
leaq 0x16dd(%rip), %rsi      # 0x4004
movl $0x8, %edx
movq %r15, %rdi
callq 0x2140
movq %r15, %rdi
movl %r14d, %esi
callq 0x21d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
cmpl $-0x1, %r14d
jne 0x297a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
incl %r14d
movslq %r14d, %rsi
movq 0x8(%rbx), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2040