// File: /workspace/github_c_makefile_star2_O3/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 $0x228, %rsp            # imm = 0x228
movq %rdi, %r13
callq 0xda6c
leaq 0x13aff(%rip), %rdx     # 0x21a80
movq (%rdx), %rcx
movq %rdx, %r15
cltq
imulq $0x26a8, %rax, %rbp     # imm = 0x26A8
movl 0x2810(%rcx,%rbp), %eax
leaq 0x70(%rsp), %r14
movl %eax, (%r14)
movl 0x2814(%rcx,%rbp), %eax
movl %eax, 0x4(%r14)
movl 0x2824(%rcx,%rbp), %eax
movl %eax, 0x8(%r14)
movl 0x2828(%rcx,%rbp), %eax
movl %eax, 0xc(%r14)
movl 0x2830(%rcx,%rbp), %eax
movl %eax, 0x10(%r14)
movl 0x282c(%rcx,%rbp), %eax
movl %eax, 0x14(%r14)
movl 0x2834(%rcx,%rbp), %eax
movl %eax, 0x18(%r14)
movq %r13, %rdi
movq %r13, 0x38(%rsp)
movq %r14, %rsi
callq 0xf1cc
movq (%r15), %r15
leaq (%r15,%rbp), %rdi
addq $0x1a0, %rdi            # imm = 0x1A0
movl 0x2694(%rdi), %r12d
movl 0x18(%r14), %eax
movl %eax, 0x28(%rsp)
movl 0x2668(%rdi), %eax
movl %eax, 0x24(%rsp)
movq 0x2650(%rdi), %rax
movq %rax, 0x48(%rsp)
movl 0x2680(%rdi), %eax
movl %eax, 0x20(%rsp)
movl (%r14), %eax
movl %eax, 0x1c(%rsp)
movl 0x4(%r14), %eax
movl %eax, 0x18(%rsp)
movl 0x8(%r14), %eax
movl %eax, 0x14(%rsp)
movl 0xc(%r14), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%r14), %eax
movl %eax, 0xc(%rsp)
movl 0x14(%r14), %eax
movl %eax, 0x8(%rsp)
movups 0x2638(%rdi), %xmm0
movaps %xmm0, 0x60(%rsp)
movq 0x2658(%rdi), %rax
movq %rax, 0x40(%rsp)
callq 0xda6c
cltq
imulq $0x26a8, %rax, %rax     # imm = 0x26A8
movslq 0x2808(%r15,%rax), %rbx
movq %r13, %rdi
callq 0xda6c
cltq
imulq $0x26a8, %rax, %rax     # imm = 0x26A8
movslq 0x2808(%r15,%rax), %rcx
movq %rcx, %rsi
imulq %rcx, %rsi
cmpq $0xb, %rcx
movl $0x1f4, %edi            # imm = 0x1F4
movl $0x64, %r13d
movl $0x64, %edx
cmovaeq %rdi, %rdx
imulq %rsi, %rdx
movq $-0x1f4, %rsi           # imm = 0xFE0C
leaq (%rdx,%rsi), %r8
addq $-0x64, %rdx
cmpq $0xb, %rcx
cmovaeq %r8, %rdx
movq %rbx, %r8
imulq %rbx, %r8
cmpq $0xb, %rbx
cmovaeq %rdi, %r13
imulq %r8, %r13
addq %r13, %rsi
addq $-0x64, %r13
cmpq $0xb, %rbx
cmovaeq %rsi, %r13
cmpl $-0x19, %r12d
leaq 0x3c5d(%rip), %rsi      # 0x11d68
leaq 0x6103(%rip), %rdi      # 0x14215
cmovgeq %rdi, %rsi
cmpl $0x1a, %r12d
leaq 0x870b(%rip), %r14      # 0x1682c
cmovlq %rsi, %r14
imulq %rbx, %r13
imulq %rcx, %rdx
testq %rdx, %rdx
movl $0x5, %ecx
cmovneq %rdx, %rcx
movq 0x27f8(%r15,%rax), %rax
movq %rax, 0x50(%rsp)
xorl %edx, %edx
testq %rax, %rax
sets %dl
fildll 0x50(%rsp)
leaq 0x95a7(%rip), %rax      # 0x17700
fadds (%rax,%rdx,4)
movq %rcx, 0x58(%rsp)
xorl %edx, %edx
testq %rcx, %rcx
sets %dl
fildll 0x58(%rsp)
fadds (%rax,%rdx,4)
fdivrp %st, %st(1)
fmuls 0x9598(%rip)            # 0x17710
fdivs 0x9596(%rip)            # 0x17714
fnstcw 0x4(%rsp)
movzwl 0x4(%rsp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, 0x6(%rsp)
fldcw 0x6(%rsp)
movq 0x38(%rsp), %rbx
leaq 0xc0(%rbx), %rax
movq %rax, 0x30(%rsp)
fistpl 0x2c(%rsp)
fldcw 0x4(%rsp)
movl 0x2c(%rsp), %r8d
movl $0x9, %r10d
subl %r8d, %r10d
incl %r8d
leaq 0x8b05(%rip), %r11      # 0x16ccb
leaq 0x13883(%rip), %r12     # 0x21a50
leaq 0x9a4d(%rip), %rdx      # 0x17c21
leaq 0x9a5b(%rip), %rcx      # 0x17c36
movl $0x2f, %esi
movq %r12, %rdi
xorl %r9d, %r9d
xorl %eax, %eax
leaq 0x6026(%rip), %r15      # 0x14215
pushq %r15
pushq $0x0
pushq %r10
pushq %r11
callq 0x2390
addq $0x20, %rsp
leaq 0x13879(%rip), %rax     # 0x21a80
movq (%rax), %rax
movq 0x27e8(%rax,%rbp), %rcx
movswl 0x2842(%rax,%rbp), %eax
subq $0xa0, %rsp
movl %eax, 0x90(%rsp)
movq %rcx, 0x80(%rsp)
leaq 0x8a80(%rip), %rax      # 0x16cb7
movq %rax, 0x78(%rsp)
movq %r12, 0x70(%rsp)
movq %r13, 0x68(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq %r15, 0x88(%rsp)
movaps 0x100(%rsp), %xmm0
movups %xmm0, 0x50(%rsp)
movl 0xa8(%rsp), %eax
movl %eax, 0x48(%rsp)
movl 0xac(%rsp), %eax
movl %eax, 0x40(%rsp)
movl 0xb0(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0x30(%rsp)
movl 0xb8(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0xc0(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0x18(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0xc4(%rsp), %eax
movl %eax, 0x8(%rsp)
movq %r15, (%rsp)
leaq 0x963e(%rip), %rsi      # 0x17916
leaq 0x130(%rsp), %r12
movq %r12, %rdi
movq 0xd0(%rsp), %rdx
movq %rbx, %rcx
movq %r14, %r8
movl 0xc8(%rsp), %r9d
xorl %eax, %eax
callq 0x2050
addq $0xa0, %rsp
movq %r12, %rdi
callq 0x20c0
movq %r12, %rdi
movq %rax, %rsi
callq 0xcefe
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq