// File: /workspace/github_c_makefile_star2_O1/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, %rbx
callq 0xd89c
leaq 0x13ccf(%rip), %rdx     # 0x21a80
movq (%rdx), %rcx
movq %rdx, %r14
cltq
imulq $0x26a8, %rax, %rbp     # imm = 0x26A8
movl 0x2810(%rcx,%rbp), %eax
leaq 0x70(%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 0xeeec
movq (%r14), %r15
leaq (%r15,%rbp), %rdi
addq $0x1a0, %rdi            # imm = 0x1A0
movl 0x2694(%rdi), %eax
cmpl $-0x19, %eax
leaq 0x3eef(%rip), %rcx      # 0x11d30
leaq 0x6395(%rip), %rdx      # 0x141dd
cmovgeq %rdx, %rcx
cmpl $0x1a, %eax
leaq 0x8976(%rip), %r14      # 0x167cc
cmovlq %rcx, %r14
leaq 0xc0(%rbx), %rax
movq %rax, 0x48(%rsp)
movl 0x18(%r12), %eax
movl %eax, 0x30(%rsp)
movl 0x2668(%rdi), %eax
movl %eax, 0x2c(%rsp)
movq 0x2650(%rdi), %rax
movq %rax, 0x40(%rsp)
movl 0x2680(%rdi), %eax
movl %eax, 0x28(%rsp)
movl (%r12), %eax
movl %eax, 0x24(%rsp)
movl 0x4(%r12), %eax
movl %eax, 0x20(%rsp)
movl 0x8(%r12), %eax
movl %eax, 0x1c(%rsp)
movl 0xc(%r12), %eax
movl %eax, 0x18(%rsp)
movl 0x10(%r12), %eax
movl %eax, 0x14(%rsp)
movl 0x14(%r12), %eax
movl %eax, 0x10(%rsp)
movups 0x2638(%rdi), %xmm0
movaps %xmm0, 0x60(%rsp)
movq 0x2658(%rdi), %rax
movq %rax, 0x38(%rsp)
callq 0xdd3a
movq %rax, %r12
movq %rbx, %rdi
callq 0xd89c
movl %eax, %r13d
movq %rbx, %rdi
callq 0xdd3a
testq %rax, %rax
movl $0x5, %ecx
cmovneq %rax, %rcx
movslq %r13d, %rax
imulq $0x26a8, %rax, %rax     # imm = 0x26A8
movq 0x27f8(%r15,%rax), %rax
movq %rax, 0x50(%rsp)
xorl %edx, %edx
testq %rax, %rax
sets %dl
fildll 0x50(%rsp)
leaq 0x9773(%rip), %rax      # 0x176a0
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 0x9764(%rip)            # 0x176b0
fdivs 0x9762(%rip)            # 0x176b4
fnstcw 0xc(%rsp)
movzwl 0xc(%rsp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, 0xe(%rsp)
fldcw 0xe(%rsp)
fistpl 0x34(%rsp)
fldcw 0xc(%rsp)
movl 0x34(%rsp), %r8d
movl $0x9, %r10d
subl %r8d, %r10d
incl %r8d
leaq 0x8ce2(%rip), %r11      # 0x16c6b
leaq 0x13ac0(%rip), %r13     # 0x21a50
leaq 0x9c2a(%rip), %rdx      # 0x17bc1
leaq 0x9c38(%rip), %rcx      # 0x17bd6
movl $0x2f, %esi
movq %r13, %rdi
xorl %r9d, %r9d
xorl %eax, %eax
leaq 0x622b(%rip), %r15      # 0x141dd
pushq %r15
pushq $0x0
pushq %r10
pushq %r11
callq 0x2390
addq $0x20, %rsp
leaq 0x13ab6(%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 0x8c5d(%rip), %rax      # 0x16c57
movq %rax, 0x78(%rsp)
movq %r13, 0x70(%rsp)
movq %r12, 0x68(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq %r15, 0x88(%rsp)
movaps 0x100(%rsp), %xmm0
movups %xmm0, 0x50(%rsp)
movl 0xb0(%rsp), %ecx
movl %ecx, 0x48(%rsp)
movl 0xb4(%rsp), %ecx
movl %ecx, 0x40(%rsp)
movl 0xb8(%rsp), %ecx
movl %ecx, 0x38(%rsp)
movl 0xbc(%rsp), %ecx
movl %ecx, 0x30(%rsp)
movl 0xc0(%rsp), %ecx
movl %ecx, 0x28(%rsp)
movl 0xc8(%rsp), %ecx
movl %ecx, 0x20(%rsp)
movl 0xc4(%rsp), %ecx
movl %ecx, 0x18(%rsp)
movq 0xe0(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movl 0xcc(%rsp), %ecx
movl %ecx, 0x8(%rsp)
movq %r15, (%rsp)
leaq 0x981b(%rip), %rsi      # 0x178b6
leaq 0x130(%rsp), %r12
movq %r12, %rdi
movq 0xe8(%rsp), %rdx
movq %rbx, %rcx
movq %r14, %r8
movl 0xd0(%rsp), %r9d
xorl %eax, %eax
callq 0x2050
addq $0xa0, %rsp
movq %r12, %rdi
callq 0x20c0
movq %r12, %rdi
movq %rax, %rsi
callq 0xcd1c
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq