// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/player.c
// Function: print_sheet
void print_sheet(struct Message *message) {
    int i = get_pindex(message->sender_nick);
    char out[MAX_MESSAGE_BUFFER];
    int stats[7] = {dawn->players[i].max_health, dawn->players[i].max_mana,
                    dawn->players[i].strength, dawn->players[i].intelligence,
                    dawn->players[i].m_def, dawn->players[i].defense, dawn->players[i].alignment};
    get_stat(message, stats);

    sprintf(out,
            "PRIVMSG %s :[%s (%s%d%s)(Lv: %d)] [%ld/%d \0034HP\003] - [%d/%d \00310MP\003] Str: %d - Int: %d - MDef: %d"
            " - Def: %d (%ldK/%ldD) [EXP: %llu / %llu %s - Gold: %s%ld%s] [Fullness: %hd%%]\r\n", message->receiver, message->sender_nick,
            dawn->players[i].alignment > 25 ? IRC_YELLOW : dawn->players[i].alignment < -25 ? IRC_RED : IRC_NORMAL, stats[6], IRC_NORMAL,
            dawn->players[i].level, dawn->players[i].health, stats[0], dawn->players[i].mana, stats[1],
            stats[2], stats[3], stats[4], stats[5], dawn->players[i].kills, dawn->players[i].deaths,
            dawn->players[i].experience, get_nextlvl_exp(dawn->players[i].username),
            progress_bar(message->sender_nick), IRC_ORANGE, dawn->players[i].gold, IRC_NORMAL,
            dawn->players[i].fullness);

    add_msg(out, strlen(out));
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdi, %rbx
callq 0xc860
leaq 0x12ce3(%rip), %rdx     # 0x1fa80
movq (%rdx), %rcx
movq %rdx, %r14
cltq
imulq $0x26a8, %rax, %rbp     # imm = 0x26A8
movl 0x2810(%rcx,%rbp), %eax
leaq 0x100(%rsp), %r12
movl %eax, (%r12)
movl 0x2814(%rcx,%rbp), %eax
movl %eax, 0x4(%r12)
movl 0x2824(%rcx,%rbp), %eax
movl %eax, 0x8(%r12)
movl 0x2828(%rcx,%rbp), %eax
movl %eax, 0xc(%r12)
movl 0x2830(%rcx,%rbp), %eax
movl %eax, 0x10(%r12)
movl 0x282c(%rcx,%rbp), %eax
movl %eax, 0x14(%r12)
movl 0x2834(%rcx,%rbp), %eax
movl %eax, 0x18(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdee4
movq (%r14), %r15
leaq (%r15,%rbp), %rdi
addq $0x1a0, %rdi            # imm = 0x1A0
movl 0x2694(%rdi), %eax
cmpl $-0x19, %eax
leaq 0x3f00(%rip), %rcx      # 0x10d30
leaq 0x63a6(%rip), %rdx      # 0x131dd
cmovgeq %rdx, %rcx
cmpl $0x1a, %eax
leaq 0x8997(%rip), %r14      # 0x157dc
cmovlq %rcx, %r14
leaq 0xc0(%rbx), %rax
movq %rax, 0xd8(%rsp)
movl 0x18(%r12), %eax
movl %eax, 0xc0(%rsp)
movl 0x2668(%rdi), %eax
movl %eax, 0xbc(%rsp)
movq 0x2650(%rdi), %rax
movq %rax, 0xd0(%rsp)
movl 0x2680(%rdi), %eax
movl %eax, 0xb8(%rsp)
movl (%r12), %eax
movl %eax, 0xb4(%rsp)
movl 0x4(%r12), %eax
movl %eax, 0xb0(%rsp)
movl 0x8(%r12), %eax
movl %eax, 0xac(%rsp)
movl 0xc(%r12), %eax
movl %eax, 0xa8(%rsp)
movl 0x10(%r12), %eax
movl %eax, 0xa4(%rsp)
movl 0x14(%r12), %eax
movl %eax, 0xa0(%rsp)
movups 0x2638(%rdi), %xmm0
movaps %xmm0, 0xf0(%rsp)
movq 0x2658(%rdi), %rax
movq %rax, 0xc8(%rsp)
callq 0xcd28
movq %rax, %r12
movq %rbx, %rdi
callq 0xc860
movl %eax, %r13d
movq %rbx, %rdi
callq 0xcd28
testq %rax, %rax
pushq $0x5
popq %rcx
cmovneq %rax, %rcx
movslq %r13d, %rax
imulq $0x26a8, %rax, %rax     # imm = 0x26A8
movq 0x27f8(%r15,%rax), %rax
movq %rax, 0xe0(%rsp)
xorl %edx, %edx
testq %rax, %rax
sets %dl
fildll 0xe0(%rsp)
leaq 0x9789(%rip), %rax      # 0x166d0
fadds (%rax,%rdx,4)
movq %rcx, 0xe8(%rsp)
xorl %edx, %edx
testq %rcx, %rcx
sets %dl
fildll 0xe8(%rsp)
fadds (%rax,%rdx,4)
fdivrp %st, %st(1)
fmuls 0x9774(%rip)            # 0x166e0
fdivs 0x9772(%rip)            # 0x166e4
fnstcw 0x9c(%rsp)
movzwl 0x9c(%rsp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, 0x9e(%rsp)
fldcw 0x9e(%rsp)
fistpl 0xc4(%rsp)
fldcw 0x9c(%rsp)
movl 0xc4(%rsp), %r8d
pushq $0x9
popq %rax
subl %r8d, %eax
incl %r8d
leaq 0x6222(%rip), %r15      # 0x131dd
movq %r15, 0x18(%rsp)
leaq 0x8cb4(%rip), %rcx      # 0x15c7b
movq %rcx, (%rsp)
andl $0x0, 0x10(%rsp)
movl %eax, 0x8(%rsp)
leaq 0x12a75(%rip), %r13     # 0x1fa50
leaq 0x9c0f(%rip), %rdx      # 0x16bf1
leaq 0x9c1d(%rip), %rcx      # 0x16c06
pushq $0x2f
popq %rsi
movq %r13, %rdi
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x23a0
leaq 0x12a80(%rip), %rax     # 0x1fa80
movq (%rax), %rax
movq 0x27e8(%rax,%rbp), %rcx
movswl 0x2842(%rax,%rbp), %eax
movl %eax, 0x90(%rsp)
movq %rcx, 0x80(%rsp)
leaq 0x8c3e(%rip), %rax      # 0x15c67
movq %rax, 0x78(%rsp)
movq %r13, 0x70(%rsp)
movq %r12, 0x68(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq %r15, 0x88(%rsp)
movaps 0xf0(%rsp), %xmm0
movups %xmm0, 0x50(%rsp)
movl 0xa0(%rsp), %ecx
movl %ecx, 0x48(%rsp)
movl 0xa4(%rsp), %ecx
movl %ecx, 0x40(%rsp)
movl 0xa8(%rsp), %ecx
movl %ecx, 0x38(%rsp)
movl 0xac(%rsp), %ecx
movl %ecx, 0x30(%rsp)
movl 0xb0(%rsp), %ecx
movl %ecx, 0x28(%rsp)
movl 0xb8(%rsp), %ecx
movl %ecx, 0x20(%rsp)
movl 0xb4(%rsp), %ecx
movl %ecx, 0x18(%rsp)
movq 0xd0(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movl 0xbc(%rsp), %ecx
movl %ecx, 0x8(%rsp)
movq %r15, (%rsp)
leaq 0x981c(%rip), %rsi      # 0x168e6
leaq 0x120(%rsp), %r12
movq %r12, %rdi
movq 0xd8(%rsp), %rdx
movq %rbx, %rcx
movq %r14, %r8
movl 0xc0(%rsp), %r9d
xorl %eax, %eax
callq 0x2050
movq %r12, %rdi
callq 0x20c0
movq %r12, %rdi
movq %rax, %rsi
callq 0xbd04
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq