// File: /workspace/github_cpp_makefile_star2_O1/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 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5a2e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3e09(%rip), %rsi      # 0x982b
leaq 0x3e03(%rip), %rdx      # 0x982c
jmp 0x5ca5
movq (%r15), %rsi
andq 0x18(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5a66
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3dd3(%rip), %rsi      # 0x982d
leaq 0x3dcd(%rip), %rdx      # 0x982e
jmp 0x5ca5
movq (%r15), %rsi
andq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5a9e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3d9d(%rip), %rsi      # 0x982f
leaq 0x3d97(%rip), %rdx      # 0x9830
jmp 0x5ca5
movq (%r15), %rsi
andq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5ad6
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3d67(%rip), %rsi      # 0x9831
leaq 0x3d61(%rip), %rdx      # 0x9832
jmp 0x5ca5
movq (%r15), %rsi
andq 0x30(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5b0e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3bc5(%rip), %rsi      # 0x96c7
leaq 0x3bbf(%rip), %rdx      # 0x96c8
jmp 0x5ca5
movq (%r15), %rsi
andq 0x38(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5b46
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3c6e(%rip), %rsi      # 0x97a8
leaq 0x3c68(%rip), %rdx      # 0x97a9
jmp 0x5ca5
movq 0x8(%r15), %rsi
andq 0x10(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5b7f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x39c4(%rip), %rsi      # 0x9537
leaq 0x39be(%rip), %rdx      # 0x9538
jmp 0x5ca5
movq 0x8(%r15), %rsi
andq 0x18(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5bb8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3c87(%rip), %rsi      # 0x9833
leaq 0x3c81(%rip), %rdx      # 0x9834
jmp 0x5ca5
movq 0x8(%r15), %rsi
andq 0x20(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5bf1
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ad5(%rip), %rsi      # 0x96ba
leaq 0x3acf(%rip), %rdx      # 0x96bb
jmp 0x5ca5
movq 0x8(%r15), %rsi
andq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5c27
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3c17(%rip), %rsi      # 0x9835
leaq 0x3c11(%rip), %rdx      # 0x9836
jmp 0x5ca5
movq 0x8(%r15), %rsi
andq 0x30(%r15), %rsi
movq %r12, %rdi
callq 0x334a
movq %r12, %rdi
movl %r14d, %esi
callq 0x33bc
testl %eax, %eax
je 0x5c5d
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3a70(%rip), %rsi      # 0x96c4
leaq 0x3a6a(%rip), %rdx      # 0x96c5
jmp 0x5ca5
movq 0x8(%r15), %rsi
andq 0x38(%r15), %rsi
leaq -0x28(%rbp), %r15
movq %r15, %rdi
callq 0x334a
movq %r15, %rdi
movl %r14d, %esi
callq 0x33bc
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
testl %eax, %eax
je 0x5c97
leaq 0x3a2f(%rip), %rsi      # 0x96bd
leaq 0x3a29(%rip), %rdx      # 0x96be
jmp 0x5ca5
leaq 0x3b99(%rip), %rsi      # 0x9837
leaq 0x3b93(%rip), %rdx      # 0x9838
movq %rbx, %rdi
callq 0x6688
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop