LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movslq 0x108(%rdi), %rax
leal 0x1(%rax), %ecx
leal 0x3f(%rax), %edx
testq %rax, %rax
movl %ecx, 0x108(%rdi)
cmovnsl %eax, %edx
sarl $0x6, %edx
movslq %edx, %rcx
shlq $0x3, %rcx
addq 0x18(%rdi), %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
leaq 0x3f(%rdx), %rsi
andq %rax, %rsi
xorl %edi, %edi
cmpq %rdx, %rsi
setbe %dil
movq -0x8(%rcx,%rdi,8), %rcx
btq %rax, %rcx
jae 0xf2e5
movq 0x40(%rbx), %rcx
shlq $0x4, %rax
leaq (%rcx,%rax), %rsi
addq $0x8, %rsi
movq -0x8(%rsi), %rax
movq %rax, 0xb8(%rbx)
leaq 0xc0(%rbx), %rdi
callq 0xbb5a
movq 0xb8(%rbx), %rdi
movq 0xf8(%rbx), %rax
movq %rax, 0x18(%rsp)
movq 0x100(%rbx), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xf373
movq 0x15cec(%rip), %rcx     # 0x24fc0
cmpb $0x0, (%rcx)
je 0xf36f
incl 0x8(%rax)
jmp 0xf373
movq 0x58(%rbx), %r15
movq 0x60(%rbx), %r12
cmpq %r15, %r12
je 0xf30a
movq %r15, %r14
movq %r14, %rdi
callq 0x7636
addq $0x18, %r14
cmpq %r12, %r14
jne 0xf2f5
movq %r15, 0x60(%rbx)
movq 0xe0(%rbx), %r15
movq 0xe8(%rbx), %r12
cmpq %r15, %r12
je 0xf338
movq %r15, %r14
movq %r14, %rdi
callq 0x7636
addq $0x18, %r14
cmpq %r12, %r14
jne 0xf320
movq %r15, 0xe8(%rbx)
movq 0x70(%rbx), %r15
movq 0x78(%rbx), %r12
cmpq %r15, %r12
je 0xf35d
movq %r15, %r14
movq %r14, %rdi
callq 0x7636
addq $0x18, %r14
cmpq %r12, %r14
jne 0xf348
movq %r15, 0x78(%rbx)
movq %rbx, %rdi
callq 0xd582
movq %rbx, %rdi
callq 0xd77e
jmp 0xf38c
lock
incl 0x8(%rax)
leaq 0x18(%rsp), %rsi
callq 0x1a9ba
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xf38c
callq 0x7828
movq 0xb8(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1a98e
movq (%r14), %rdi
cvtsi2sdl 0xb0(%rbx), %xmm0
callq 0x167fa
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xf3bf
callq 0x7828
movq 0xb8(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x1a98e
movq (%r14), %rdi
xorps %xmm0, %xmm0
cvtsi2sdl 0xb4(%rbx), %xmm0
callq 0x1680a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xf3f5
callq 0x7828
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
jmp 0xf415
jmp 0xf40d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xf41f
callq 0x7828
movq %rbx, %rdi
callq 0x5380
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1688e
movb $0x0, 0x20(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5080
testb $0x1, %al
je 0x168fe
movq %rbx, %rdi
callq 0x167ee
movsd 0x57e5(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x16902
xorl %eax, %eax
jmp 0x16910
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5080
testb $0x1, %al
je 0x16986
movq %rbx, %rdi
callq 0x167ee
movsd 0x575d(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x1698a
xorl %eax, %eax
jmp 0x16998
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5080
testb $0x1, %al
je 0x16a0e
movq %rbx, %rdi
callq 0x167ee
movsd 0x56d5(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x16a12
xorl %eax, %eax
jmp 0x16a20
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5080
testb $0x1, %al
je 0x16a96
movq %rbx, %rdi
callq 0x167ee
movsd 0x564d(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x16a9a
xorl %eax, %eax
jmp 0x16aa8
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/kaiming[P]Chamber-Crawler-3k/Enemy/dragon.cc
// Function: Dragon::attack(Goblin&)
bool Dragon::attack(Goblin & g) {
    // 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());

    // 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
je 0x16b1e
movq %rbx, %rdi
callq 0x167ee
movsd 0x55c5(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x16b22
xorl %eax, %eax
jmp 0x16b30
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
movb $0x1, %bpl
callq 0x5080
testb $0x1, %al
je 0x16f0f
movq %rbx, %rdi
callq 0x167ee
movsd 0x51c6(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x16eb9
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x16f48
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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
movb $0x1, %bpl
callq 0x5080
testb $0x1, %al
je 0x17047
movq %rbx, %rdi
callq 0x167ee
movsd 0x508e(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x16ff1
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x17080
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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
movb $0x1, %bpl
callq 0x5080
testb $0x1, %al
je 0x170f7
movq %rbx, %rdi
callq 0x167ee
movsd 0x4fde(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x170a1
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x17130
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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
movb $0x1, %bpl
callq 0x5080
testb $0x1, %al
je 0x171a7
movq %rbx, %rdi
callq 0x167ee
movsd 0x4f2e(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd 0x8(%rsp), %xmm0
callq 0x5050
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x17151
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x171e0
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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
je 0x17e22
movq %rbx, %rdi
callq 0x167ee
movsd 0x42c9(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
mulsd 0x4342(%rip), %xmm0     # 0x1c138
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
addsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x17e26
xorl %eax, %eax
jmp 0x17e34
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x167ee
movsd 0x3bac(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18551
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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 0x167ee
movsd 0x3b1e(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x185df
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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
je 0x18894
movq %rbx, %rdi
callq 0x167ee
movsd 0x384f(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x18898
xorl %eax, %eax
jmp 0x188a6
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x167ee
movsd 0x3750(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x189c0
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x18df8
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x18dfc
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_O3/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 0x167ee
movsd 0x36ae(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x18a62
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x18df8
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x18dfc
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_O3/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
je 0x18d68
movq %r14, %rdi
callq 0x167ee
movsd 0x337b(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x18d6c
xorl %eax, %eax
jmp 0x18d8d
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x18df8
leal 0x5(%rax), %esi
movq %rbx, %rdi
callq 0x18dfc
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x167ee
movsd 0x2994(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
addsd 0x29c3(%rip), %xmm0     # 0x1c110
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19781
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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 0x167ee
movsd 0x28ee(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
addsd 0x2aad(%rip), %xmm0     # 0x1c2a0
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19827
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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 0x167ee
movsd 0x2848(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
addsd 0x2877(%rip), %xmm0     # 0x1c110
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x198cd
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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 0x167ee
movsd 0x2714(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
addsd 0x2743(%rip), %xmm0     # 0x1c110
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19a01
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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 0x167ee
movsd 0x266e(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
addsd 0x269d(%rip), %xmm0     # 0x1c110
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x19aa7
movsd %xmm0, (%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
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_O3/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
je 0x19b3c
movq %rbx, %rdi
callq 0x167ee
movsd 0x25bf(%rip), %xmm1     # 0x1c098
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x167e8
mulsd (%rsp), %xmm0
callq 0x5050
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x167e2
subsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x167f4
movq %r14, %rdi
callq 0x167e2
addsd 0x25ee(%rip), %xmm0     # 0x1c110
movq %r14, %rdi
callq 0x167f4
movq %rbx, %rdi
callq 0x167e2
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x19b40
xorl %eax, %eax
jmp 0x19b4e
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x167f4
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x167e2
movapd %xmm0, %xmm1
movsd 0x232e(%rip), %xmm2     # 0x1c0c8
mulsd 0x8(%rsp), %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm2, %xmm1
jb 0x19dc8
movq %rbx, %rdi
callq 0x167e2
movsd 0x8(%rsp), %xmm1
mulsd 0x2508(%rip), %xmm1     # 0x1c2c8
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x167f4
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/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 0x18e04
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x19f08
movq %rbx, %rdi
callq 0x167e2
movsd 0x21ed(%rip), %xmm1     # 0x1c0c8
mulsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rbx, %rdi
callq 0x18e04
ucomisd 0x8(%rsp), %xmm0
jae 0x19f08
movq %rbx, %rdi
callq 0x18e04
movapd %xmm0, %xmm1
jmp 0x19f21
movq %rbx, %rdi
callq 0x167e2
movsd (%rsp), %xmm1
mulsd 0x21ab(%rip), %xmm1     # 0x1c0c8
addsd %xmm0, %xmm1
movq %rbx, %rdi
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
jmp 0x167f4
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x167e8
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x22c0(%rip), %xmm0     # 0x1c2a0
movsd %xmm0, 0x8(%rsp)
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x1a00a
movq %rbx, %rdi
callq 0x167e8
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x167fa
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x167ee
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x21dc(%rip), %xmm0     # 0x1c2a0
movsd %xmm0, 0x8(%rsp)
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x1a0ee
movq %rbx, %rdi
callq 0x167ee
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x1680a
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1a8b0
leaq 0xa48a(%rip), %rax      # 0x24d80
movq %rax, (%rbx)
movq (%r15), %rax
movq %rax, 0x18(%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x1a922
movq 0xa6ac(%rip), %rcx      # 0x24fc0
cmpb $0x0, (%rcx)
je 0x1a91e
incl 0x8(%rax)
jmp 0x1a922
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 0x1a950
movq 0xa67e(%rip), %rdx      # 0x24fc0
cmpb $0x0, (%rdx)
je 0x1a94c
incl 0x8(%rcx)
jmp 0x1a950
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 0x1a97d
movq 0xa651(%rip), %rdx      # 0x24fc0
cmpb $0x0, (%rdx)
je 0x1a979
incl 0x8(%rax)
jmp 0x1a97d
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_O3/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
xorl %ecx, %ecx
movq %rcx, 0x8(%rdx)
movups %xmm0, (%rax)
movq %rcx, (%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O3/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), %rcx
testq %rcx, %rcx
jne 0x2523
leaq 0x1d28(%rip), %rcx      # 0x4235
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
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 0x25bd
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 0x258f
callq 0x2100
movq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x33e6
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 0x2553
cmpq %r13, 0x8(%r14)
jbe 0x25f8
leaq -0x58(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x2130
leaq -0x58(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x37e2
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25f8
callq 0x2100
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x260a
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 0x2652
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2640
callq 0x2100
jmp 0x2640
jmp 0x263d
jmp 0x263d
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2652
callq 0x2100
movq -0x30(%rbp), %rdi
callq 0x3432
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x26f5
movq %rsi, %r15
cmpq 0x8(%rsi), %r13
ja 0x26f5
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 0x26f5
leaq -0x2c(%rbp), %r12
movslq %r13d, %r13
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x26cc
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x26d7
movq %rbx, %rdi
movq %r12, %rdx
callq 0x39e8
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 0x26b6
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 0x2717
callq 0x2100
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x278d
movq %rsi, %rbx
movq %rdi, %r14
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
movq (%rsi), %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x21e0
shlq $0x20, %rax
cmpq %r12, %rax
je 0x278d
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 0x2761
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x27ce
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 0x27d3
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_O3/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), %rcx
testq %rcx, %rcx
je 0x287c
movq %rdi, %rbx
cmpq 0x8(%rdi), %rcx
ja 0x287c
movq %rsi, %r14
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
movq (%rsi), %rsi
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x21e0
movq %rax, %rdi
shlq $0x20, %rdi
cmpq %r12, %rdi
je 0x285f
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 0x2830
movslq %r15d, %r15
cmpq 0x8(%rbx), %r15
jae 0x287c
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_O3/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 0x28dc
movq %rdi, %rbx
leaq 0x1999(%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 0x28dc
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