// File: /workspace/github_cpp_makefile_star2_O2/ATOMIC-LICHESS[P]ATOMKRAFT/evaluate.cpp
// Function: (anonymous namespace)::trace_row(char const*, int)
void trace_row(const char *name, int idx) {

    Score wScore = TracedScores[WHITE][idx];
    Score bScore = TracedScores[BLACK][idx];

    switch (idx) {
    case PST: case IMBALANCE: case PAWN: case UNSTOPPABLE: case TOTAL:
        TraceStream << std::setw(20) << name << " |   ---   --- |   ---   --- | "
                    << std::setw(6)  << to_cp(mg_value(wScore)) << " "
                    << std::setw(6)  << to_cp(eg_value(wScore)) << " \n";
        break;
    default:
        TraceStream << std::setw(20) << name << " | " << std::noshowpos
                    << std::setw(5)  << to_cp(mg_value(wScore)) << " "
                    << std::setw(5)  << to_cp(eg_value(wScore)) << " | "
                    << std::setw(5)  << to_cp(mg_value(bScore)) << " "
                    << std::setw(5)  << to_cp(eg_value(bScore)) << " | "
                    << std::showpos
                    << std::setw(6)  << to_cp(mg_value(wScore - bScore)) << " "
                    << std::setw(6)  << to_cp(eg_value(wScore - bScore)) << " \n";
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rax
movl %esi, %ecx
leaq 0x39aa24(%rip), %rdx    # 0x3ab940
movl (%rdx,%rcx,4), %r15d
cmpl $0xf, %esi
ja 0x11007
movl $0xa302, %edi           # imm = 0xA302
btl %esi, %edi
jae 0x11007
leaq 0x39a862(%rip), %rdi    # 0x3ab7a0
leaq 0x39a84b(%rip), %rcx    # 0x3ab790
movq 0x39a854(%rip), %rdx    # 0x3ab7a0
movq -0x18(%rdx), %rdx
movq $0x14, 0x20(%rdx,%rcx)
movq %rax, %rsi
callq 0x53b0
leaq 0x18144(%rip), %rsi     # 0x290ac
movq %rax, %rdi
callq 0x53b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x6, 0x10(%rax,%rcx)
movl $0x8000, %r14d          # imm = 0x8000
leal (%r15,%r14), %ecx
sarl $0x10, %ecx
cvtsi2sd %ecx, %xmm0
leaq 0x244b0(%rip), %rbx     # 0x35448
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x56a0
leaq 0x175b1(%rip), %rsi     # 0x28560
movq %rax, %rdi
callq 0x53b0
movl %r15d, %ecx
andl %r14d, %r15d
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
andl $0x7fff, %ecx           # imm = 0x7FFF
subl %r15d, %ecx
cvtsi2sd %ecx, %xmm0
movq $0x6, 0x10(%rax,%rdx)
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x56a0
leaq 0x17fa0(%rip), %rsi     # 0x28f91
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x53b0
movl 0x40(%rdx,%rcx,4), %r12d
leaq 0x39a78d(%rip), %rdi    # 0x3ab7a0
leaq 0x39a776(%rip), %rcx    # 0x3ab790
movq 0x39a77f(%rip), %rdx    # 0x3ab7a0
movq -0x18(%rdx), %rdx
movq $0x14, 0x20(%rdx,%rcx)
movq %rax, %rsi
callq 0x53b0
leaq 0x1808b(%rip), %rsi     # 0x290c8
movq %rax, %rdi
callq 0x53b0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
andl $0xfffff7ff, 0x18(%rax,%rdx) # imm = 0xFFFFF7FF
movq -0x18(%rcx), %rcx
pushq $0x5
popq %r13
movq %r13, 0x10(%rax,%rcx)
movl $0x8000, %ebp           # imm = 0x8000
leal (%r15,%rbp), %ecx
sarl $0x10, %ecx
cvtsi2sd %ecx, %xmm0
leaq 0x243d0(%rip), %rbx     # 0x35448
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x56a0
leaq 0x174d1(%rip), %rsi     # 0x28560
movq %rax, %rdi
callq 0x53b0
movl $0x7fff, %r14d          # imm = 0x7FFF
movl %r15d, %ecx
andl %r14d, %ecx
movl %r15d, %edx
andl %ebp, %edx
subl %edx, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
cvtsi2sd %ecx, %xmm0
movq %r13, 0x10(%rax,%rdx)
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x56a0
movq %rax, %rdi
leaq 0x17ff4(%rip), %rsi     # 0x290c8
callq 0x53b0
leal (%r12,%rbp), %ecx
sarl $0x10, %ecx
cvtsi2sd %ecx, %xmm0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r13, 0x10(%rax,%rcx)
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x56a0
movq %rax, %rdi
leaq 0x17456(%rip), %rsi     # 0x28560
callq 0x53b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
andl %r12d, %r14d
andl %r12d, %ebp
subl %ebp, %r14d
cvtsi2sd %r14d, %xmm0
movq %r13, 0x10(%rax,%rcx)
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x56a0
movq %rax, %rdi
leaq 0x17f85(%rip), %rsi     # 0x290c8
callq 0x53b0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
orl $0x800, 0x18(%rax,%rdx) # imm = 0x800
movq -0x18(%rcx), %rcx
movq $0x6, 0x10(%rax,%rcx)
subl %r12d, %r15d
jmp 0x10f80