LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/kaiming[P]Chamber-Crawler-3k/Board/board.cc
// Function: Board::changeFloor()
void Board::changeFloor() {
    // Change Floor
    floorNum += 1;

    // Check if floors[floorNum-1] is populated
    if (filled[floorNum-1]) {
        // Floor has been pre-generated
        player = playerSpawns[floorNum-1];
        player->setOccupant(playerPtr);
    } else {
        // Floor has not been pre-generated
        enemies.clear();
        chambers.clear();
        dragonHoards.clear();
        assignChambers();
        generateFloor();
    }

    player->getOccupant()->setAtk(defaultAtk);
    player->getOccupant()->setDef(defaultDef);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movslq 0x108(%rdi), %rsi
leal 0x1(%rsi), %eax
movl %eax, 0x108(%rdi)
addq $0x18, %rdi
callq 0x9ba2
testq %rdx, (%rax)
je 0xe3a3
movslq 0x108(%rbx), %rax
movq 0x40(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $-0x10, %rsi
leaq 0xb8(%rbx), %rdi
callq 0x1275e
movq 0xb8(%rbx), %r14
leaq 0xf8(%rbx), %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x12db4
movq %r14, %rdi
movq %r15, %rsi
callq 0x17436
leaq 0x18(%rsp), %rdi
callq 0x6c00
jmp 0xe3d1
leaq 0x58(%rbx), %rdi
callq 0x123f4
leaq 0xe0(%rbx), %rdi
callq 0x123f4
leaq 0x70(%rbx), %rdi
callq 0x123f4
movq %rbx, %rdi
callq 0xcce0
movq %rbx, %rdi
callq 0xce80
movq 0xb8(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x17424
movq (%r14), %rdi
cvtsi2sdl 0xb0(%rbx), %xmm0
callq 0x135f2
leaq 0x8(%rsp), %rdi
callq 0x6c00
movq 0xb8(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x17424
movq (%r14), %rdi
cvtsi2sdl 0xb4(%rbx), %xmm0
callq 0x13602
leaq 0x8(%rsp), %rdi
callq 0x6c00
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
jmp 0xe447
jmp 0xe43f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6c00
movq %rbx, %rdi
callq 0x5390
// File: /workspace/github_cpp_makefile_star2_O2/kaiming[P]Chamber-Crawler-3k/Enemy/dragon.cc
// Function: Dragon::getAttacked(Player&)
bool Dragon::getAttacked(Player & p) {
    
    bool Killed = p.attack(*this);

    // Check if Dragon is dead
    if (Killed) {
        isAlive = false;
    }

    return Killed;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
movq %rbx, %rsi
callq *0x38(%rax)
testb %al, %al
je 0x13684
movb $0x0, 0x20(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/kaiming[P]Chamber-Crawler-3k/Enemy/dragon.cc
// Function: Dragon::attack(Shade&)
bool Dragon::attack(Shade & s) {
    // 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 + 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 %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5090
testb $0x1, %al
je 0x136f4
movq %rbx, %rdi
callq 0x135e6
movsd 0x59ef(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x136f8
xorl %eax, %eax
jmp 0x13706
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/kaiming[P]Chamber-Crawler-3k/Enemy/dragon.cc
// Function: Dragon::attack(Drow&)
bool Dragon::attack(Drow & d) {
    // 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 + 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
callq 0x5090
testb $0x1, %al
je 0x1377c
movq %rbx, %rdi
callq 0x135e6
movsd 0x5967(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x13780
xorl %eax, %eax
jmp 0x1378e
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/kaiming[P]Chamber-Crawler-3k/Enemy/dragon.cc
// Function: Dragon::attack(Vampire&)
bool Dragon::attack(Vampire & v) {
    // 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 + 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 %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5090
testb $0x1, %al
je 0x13804
movq %rbx, %rdi
callq 0x135e6
movsd 0x58df(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x13808
xorl %eax, %eax
jmp 0x13816
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/kaiming[P]Chamber-Crawler-3k/Enemy/dragon.cc
// Function: Dragon::attack(Troll&)
bool Dragon::attack(Troll & t) {
    // 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 + 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 %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5090
testb $0x1, %al
je 0x1388c
movq %rbx, %rdi
callq 0x135e6
movsd 0x5857(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x13890
xorl %eax, %eax
jmp 0x1389e
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x2
popq %rbp
subl $0x1, %ebp
jb 0x13d0c
callq 0x5090
testb $0x1, %al
je 0x13caf
movq %rbx, %rdi
callq 0x135e6
movsd 0x53cb(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd 0x8(%rsp), %xmm0
callq 0x5040
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x135da
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
jmp 0x13caf
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x13d3a
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x2
popq %rbp
subl $0x1, %ebp
jb 0x13e40
callq 0x5090
testb $0x1, %al
je 0x13de3
movq %rbx, %rdi
callq 0x135e6
movsd 0x5297(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd 0x8(%rsp), %xmm0
callq 0x5040
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x135da
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
jmp 0x13de3
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x13e6e
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x2
popq %rbp
subl $0x1, %ebp
jb 0x13eec
callq 0x5090
testb $0x1, %al
je 0x13e8f
movq %rbx, %rdi
callq 0x135e6
movsd 0x51eb(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd 0x8(%rsp), %xmm0
callq 0x5040
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x135da
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
jmp 0x13e8f
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x13f1a
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
xorpd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
setae %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x2
popq %rbp
subl $0x1, %ebp
jb 0x13f98
callq 0x5090
testb $0x1, %al
je 0x13f3b
movq %rbx, %rdi
callq 0x135e6
movsd 0x513f(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd 0x8(%rsp), %xmm0
callq 0x5040
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x135da
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
jmp 0x13f3b
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x13fc6
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/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 0x5090
testb $0x1, %al
je 0x14c04
movq %rbx, %rdi
callq 0x135e6
movsd 0x44e7(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
mulsd 0x4560(%rip), %xmm0     # 0x19138
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
addsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x14c08
xorl %eax, %eax
jmp 0x14c16
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x135e6
movsd 0x3d58(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x153a5
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/kaiming[P]Chamber-Crawler-3k/Player/drow.cc
// Function: Drow::attack(Orc&)
bool Drow::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);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x135e6
movsd 0x3bae(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x1554f
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/kaiming[P]Chamber-Crawler-3k/Player/drow.cc
// Function: Drow::attack(Dragon&)
bool Drow::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);
        return true;
    }

    // Defender alive otherwise
    return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x135e6
movsd 0x3a92(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x1566b
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/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 0x5090
testb $0x1, %al
je 0x156e8
movq %rbx, %rdi
callq 0x135e6
movsd 0x39fb(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x156ec
xorl %eax, %eax
jmp 0x156fa
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x135e6
movsd 0x38fc(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x15814
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x15c44
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x15c48
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_O2/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 0x135e6
movsd 0x385a(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x158b6
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x15c44
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x15c48
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_O2/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 0x135e6
movsd 0x3716(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x159fa
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x15c44
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x15c48
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_O2/kaiming[P]Chamber-Crawler-3k/Player/goblin.cc
// Function: Goblin::attack(Merchant&)
bool Goblin::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);
        // 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 0x135e6
movsd 0x3674(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x15a9c
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x15c44
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x15c48
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_O2/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 0x5090
testb $0x1, %al
je 0x15bbc
movq %r14, %rdi
callq 0x135e6
movsd 0x3527(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x15bc0
xorl %eax, %eax
jmp 0x15be1
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x15c44
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x15c48
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x135e6
movsd 0x2b50(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
addsd 0x2b7f(%rip), %xmm0     # 0x19110
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x165c5
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/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 0x135e6
movsd 0x2aaa(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
addsd 0x2c69(%rip), %xmm0     # 0x192a0
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x1666b
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/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 0x135e6
movsd 0x2a04(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
addsd 0x2a33(%rip), %xmm0     # 0x19110
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x16711
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/kaiming[P]Chamber-Crawler-3k/Player/vampire.cc
// Function: Vampire::attack(Merchant&)
bool Vampire::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);

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

    // 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 0x135e6
movsd 0x28d0(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
addsd 0x28ff(%rip), %xmm0     # 0x19110
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x16845
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/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 0x135e6
movsd 0x282a(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
addsd 0x2859(%rip), %xmm0     # 0x19110
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x168eb
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
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_O2/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 0x5090
testb $0x1, %al
je 0x16980
movq %rbx, %rdi
callq 0x135e6
movsd 0x277b(%rip), %xmm1     # 0x19098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x135e0
mulsd (%rsp), %xmm0
callq 0x5040
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x135da
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x135ec
movq %r14, %rdi
callq 0x135da
addsd 0x27aa(%rip), %xmm0     # 0x19110
movq %r14, %rdi
callq 0x135ec
movq %rbx, %rdi
callq 0x135da
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x16984
xorl %eax, %eax
jmp 0x16992
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x135ec
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x135da
movapd %xmm0, %xmm1
movsd 0x255a(%rip), %xmm2     # 0x190c8
mulsd 0x8(%rsp), %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm2, %xmm1
jb 0x16b9c
movq %rbx, %rdi
callq 0x135da
movsd 0x8(%rsp), %xmm1
mulsd 0x2734(%rip), %xmm1     # 0x192c8
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x135ec
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/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 0x15c50
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x16c90
movq %rbx, %rdi
callq 0x135da
movsd 0x2465(%rip), %xmm1     # 0x190c8
mulsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rbx, %rdi
callq 0x15c50
ucomisd 0x8(%rsp), %xmm0
jae 0x16c90
movq %rbx, %rdi
callq 0x15c50
movapd %xmm0, %xmm1
jmp 0x16ca9
movq %rbx, %rdi
callq 0x135da
movsd (%rsp), %xmm1
mulsd 0x2423(%rip), %xmm1     # 0x190c8
addsd %xmm0, %xmm1
movq %rbx, %rdi
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x135ec
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x135e0
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x255c(%rip), %xmm0     # 0x192a0
movsd %xmm0, 0x8(%rsp)
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x16d6e
movq %rbx, %rdi
callq 0x135e0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x135f2
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x135e6
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x249c(%rip), %xmm0     # 0x192a0
movsd %xmm0, 0x8(%rsp)
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x16e2e
movq %rbx, %rdi
callq 0x135e6
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x13602
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movq %rdi, %rbx
movb 0x38(%rsp), %bpl
movq 0x30(%rsp), %r12
callq 0x17398
leaq 0xd9a5(%rip), %rax      # 0x24d90
movq %rax, (%rbx)
leaq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0x15158
leaq 0x28(%rbx), %rdi
movq %r14, %rsi
callq 0x1277a
leaq 0x38(%rbx), %rdi
movq %r12, %rsi
callq 0x9df8
movb %bpl, 0x48(%rbx)
orl $-0x1, 0x4c(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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)
movups (%rdx), %xmm0
andq $0x0, 0x8(%rdx)
movups %xmm0, (%rax)
andq $0x0, (%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, -0x30(%rbp)
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x2200
movq %rax, %r12
leaq -0x50(%rbp), %r13
movslq %r14d, %rdx
cmpl $-0x1, %r12d
je 0x23e1
movl %r12d, %eax
subl %edx, %eax
movslq %eax, %rcx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2130
leaq -0x70(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x21f0
movq %r13, %rdi
callq 0x2080
movq %r14, %rdi
movq -0x30(%rbp), %rsi
callq 0x21f0
addq 0x8(%r15), %r12
movslq %r12d, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2200
movl %r12d, %r14d
movq %rax, %r12
jmp 0x2388
cmpq %rdx, 0x8(%rbx)
jbe 0x240c
leaq -0x50(%rbp), %rdi
pushq $-0x1
popq %rcx
movq %rbx, %rsi
callq 0x2130
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x21f0
leaq -0x50(%rbp), %rdi
callq 0x2080
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x20b0
leaq -0x70(%rbp), %rdi
callq 0x2080
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2438
jmp 0x2446
jmp 0x2446
jmp 0x2446
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x2080
jmp 0x2449
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq %rsi, %r14
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, -0x30(%rbp)
movups %xmm0, (%rdi)
movq 0x8(%rdx), %rcx
movq %rcx, -0x38(%rbp)
testq %rcx, %rcx
jne 0x24a4
leaq 0x1da1(%rip), %rsi      # 0x4235
movq %rbx, %rdi
callq 0x21e0
movq 0x8(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %edx, %edx
leaq -0x58(%rbp), %r12
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %r13
movq %rbx, %rsi
callq 0x2200
movq %rax, %rbx
movslq %r15d, %rdx
cmpl $-0x1, %ebx
je 0x2519
movl %ebx, %eax
subl %edx, %eax
movslq %eax, %rcx
movq %r12, %rdi
movq %r14, %rsi
callq 0x2130
leaq -0x78(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
movq %r12, %rdi
callq 0x2080
movq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x2df6
addl -0x38(%rbp), %ebx
movslq %ebx, %rdx
movl %ebx, %r15d
movq %r13, %rbx
jmp 0x24bd
cmpq %rdx, 0x8(%r14)
jbe 0x2544
leaq -0x58(%rbp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
callq 0x2130
leaq -0x58(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x30b4
leaq -0x58(%rbp), %rdi
callq 0x2080
leaq -0x78(%rbp), %rdi
callq 0x2080
movq -0x30(%rbp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2583
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x2080
jmp 0x257a
jmp 0x2577
jmp 0x2577
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x2080
movq -0x30(%rbp), %rdi
callq 0x2e32
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/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
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq 0x8(%rdx), %r13
testq %r13, %r13
je 0x25c2
movq %rsi, %r15
cmpq 0x8(%rsi), %r13
jbe 0x25d4
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r14
movq %r15, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x2200
leaq -0x2c(%rbp), %r12
movslq %r13d, %r13
movl %eax, -0x2c(%rbp)
cmpl $-0x1, %eax
je 0x25c2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2e5e
movslq -0x2c(%rbp), %rdx
addq %r13, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2200
jmp 0x25eb
movq %rax, %r14
movq %rbx, %rdi
callq 0x31a6
movq %r14, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/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), %rax
decq %rax
cmpq 0x8(%rdi), %rax
jae 0x26b8
movq %rsi, %r14
movq %rdi, %rbx
xorl %edx, %edx
callq 0x2200
shlq $0x20, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jne 0x26bd
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 0x2030
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2747
movq %rdi, %rbx
cmpq 0x8(%rdi), %rax
ja 0x2747
movq %rsi, %r14
xorl %ecx, %ecx
movabsq $-0x100000000, %r15     # imm = 0xFFFFFFFF00000000
xorl %r12d, %r12d
movslq %ecx, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2200
movq %rax, %rcx
shlq $0x20, %rcx
cmpq %r15, %rcx
je 0x272a
sarq $0x20, %rcx
addq 0x8(%r14), %rcx
movq %rax, %r12
jmp 0x2703
movslq %r12d, %rsi
cmpq 0x8(%rbx), %rsi
jae 0x2747
movq 0x8(%r14), %rdx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2030
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq