// File: /workspace/github_cpp_makefile_star2_O3/niekh1234[P]nnchesslib/board.cpp
// Function: nnchesslib::ChessBoard::getPieceChar[abi:cxx11](int)
std::string ChessBoard::getPieceChar(int i)
{
    if(BitBoard(boardinfo.pawns.board & boardinfo.whitePieces.board).get(i)) return "P";
    if(BitBoard(boardinfo.knights.board & boardinfo.whitePieces.board).get(i)) return "N";
    if(BitBoard(boardinfo.bishops.board & boardinfo.whitePieces.board).get(i)) return "B";
    if(BitBoard(boardinfo.rooks.board & boardinfo.whitePieces.board).get(i)) return "R";
    if(BitBoard(boardinfo.queens.board & boardinfo.whitePieces.board).get(i)) return "Q";
    if(BitBoard(boardinfo.kings.board & boardinfo.whitePieces.board).get(i)) return "K";
    if(BitBoard(boardinfo.pawns.board & boardinfo.blackPieces.board).get(i)) return "p";
    if(BitBoard(boardinfo.knights.board & boardinfo.blackPieces.board).get(i)) return "n";
    if(BitBoard(boardinfo.bishops.board & boardinfo.blackPieces.board).get(i)) return "b";
    if(BitBoard(boardinfo.rooks.board & boardinfo.blackPieces.board).get(i)) return "r";
    if(BitBoard(boardinfo.queens.board & boardinfo.blackPieces.board).get(i)) return "q";
    if(BitBoard(boardinfo.kings.board & boardinfo.blackPieces.board).get(i)) return "k";
    return "0";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rsi
andq 0x10(%r15), %rsi
leaq -0x28(%rbp), %r12
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5a0c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3e2b(%rip), %rsi      # 0x982b
leaq 0x3e25(%rip), %rdx      # 0x982c
jmp 0x5c83
movq (%r15), %rsi
andq 0x18(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5a44
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3df5(%rip), %rsi      # 0x982d
leaq 0x3def(%rip), %rdx      # 0x982e
jmp 0x5c83
movq (%r15), %rsi
andq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5a7c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3dbf(%rip), %rsi      # 0x982f
leaq 0x3db9(%rip), %rdx      # 0x9830
jmp 0x5c83
movq (%r15), %rsi
andq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5ab4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3d89(%rip), %rsi      # 0x9831
leaq 0x3d83(%rip), %rdx      # 0x9832
jmp 0x5c83
movq (%r15), %rsi
andq 0x30(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5aec
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3be7(%rip), %rsi      # 0x96c7
leaq 0x3be1(%rip), %rdx      # 0x96c8
jmp 0x5c83
movq (%r15), %rsi
andq 0x38(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5b24
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3c90(%rip), %rsi      # 0x97a8
leaq 0x3c8a(%rip), %rdx      # 0x97a9
jmp 0x5c83
movq 0x8(%r15), %rsi
andq 0x10(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5b5d
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x39e6(%rip), %rsi      # 0x9537
leaq 0x39e0(%rip), %rdx      # 0x9538
jmp 0x5c83
movq 0x8(%r15), %rsi
andq 0x18(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5b96
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ca9(%rip), %rsi      # 0x9833
leaq 0x3ca3(%rip), %rdx      # 0x9834
jmp 0x5c83
movq 0x8(%r15), %rsi
andq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5bcf
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3af7(%rip), %rsi      # 0x96ba
leaq 0x3af1(%rip), %rdx      # 0x96bb
jmp 0x5c83
movq 0x8(%r15), %rsi
andq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5c05
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3c39(%rip), %rsi      # 0x9835
leaq 0x3c33(%rip), %rdx      # 0x9836
jmp 0x5c83
movq 0x8(%r15), %rsi
andq 0x30(%r15), %rsi
movq %r12, %rdi
callq 0x3386
movq %r12, %rdi
movl %r14d, %esi
callq 0x33f8
testl %eax, %eax
je 0x5c3b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3a92(%rip), %rsi      # 0x96c4
leaq 0x3a8c(%rip), %rdx      # 0x96c5
jmp 0x5c83
movq 0x8(%r15), %rsi
andq 0x38(%r15), %rsi
leaq -0x28(%rbp), %r15
movq %r15, %rdi
callq 0x3386
movq %r15, %rdi
movl %r14d, %esi
callq 0x33f8
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
testl %eax, %eax
je 0x5c75
leaq 0x3a51(%rip), %rsi      # 0x96bd
leaq 0x3a4b(%rip), %rdx      # 0x96be
jmp 0x5c83
leaq 0x3bbb(%rip), %rsi      # 0x9837
leaq 0x3bb5(%rip), %rdx      # 0x9838
movq %rbx, %rdi
callq 0x667e
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop