// File: /workspace/github_c_makefile_star2_O0/Ziddykins[P]Dawn/src/items.c
// Function: get_item_info
void get_item_info(struct Message *message, int slot) {
    char item_name[128];
    char out[MAX_MESSAGE_BUFFER];
    int index = get_pindex(message->sender_nick);
    int total_items = MAX_INVENTORY_SLOTS - dawn->players[index].available_slots;
    int str    = dawn->players[index].inventory[slot].attr_strength;
    int intel  = dawn->players[index].inventory[slot].attr_intelligence;
    int def    = dawn->players[index].inventory[slot].attr_defense;
    int mdef   = dawn->players[index].inventory[slot].attr_mdef;
    int hp     = dawn->players[index].inventory[slot].attr_health;
    int mp     = dawn->players[index].inventory[slot].attr_mana;
    int weight = dawn->players[index].inventory[slot].weight;
    int reqlvl = dawn->players[index].inventory[slot].req_level;

    if (slot < total_items && slot > -1) {
        strcpy(item_name, dawn->players[index].inventory[slot].name);
        sprintf(out, "PRIVMSG %s :%s - STR: %d - DEF: %d - INT: %d - MDEF: %d - HP: %d - MP: %d"
               " - Weight: %d - Req lvl: %d\r\n", message->receiver, item_name, str, def, intel, mdef, hp, mp, weight, reqlvl);
        add_msg(out, strlen(out));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdi, -0x20(%rbp)
movl %esi, -0x24(%rbp)
movq -0x20(%rbp), %rdi
callq 0x13ba0
movl %eax, -0x244(%rbp)
leaq 0x1d673(%rip), %rax     # 0x28a70
movq (%rax), %rcx
addq $0x1a0, %rcx            # imm = 0x1A0
movslq -0x244(%rbp), %rax
imulq $0x26a8, %rax, %rax     # imm = 0x26A8
addq %rax, %rcx
movl $0x19, %eax
subl 0x2678(%rcx), %eax
movl %eax, -0x248(%rbp)
leaq 0x1d640(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x70(%rax), %eax
movl %eax, -0x24c(%rbp)
leaq 0x1d602(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x6c(%rax), %eax
movl %eax, -0x250(%rbp)
leaq 0x1d5c4(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x68(%rax), %eax
movl %eax, -0x254(%rbp)
leaq 0x1d586(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x74(%rax), %eax
movl %eax, -0x258(%rbp)
leaq 0x1d548(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x64(%rax), %eax
movl %eax, -0x25c(%rbp)
leaq 0x1d50a(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x90(%rax), %eax
movl %eax, -0x260(%rbp)
leaq 0x1d4c9(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x7c(%rax), %eax
movl %eax, -0x264(%rbp)
leaq 0x1d48b(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x244(%rbp), %rcx
imulq $0x26a8, %rcx, %rcx     # imm = 0x26A8
addq %rcx, %rax
addq $0x190, %rax            # imm = 0x190
movslq -0x24(%rbp), %rcx
imulq $0x9c, %rcx, %rcx
addq %rcx, %rax
movl 0x78(%rax), %eax
movl %eax, -0x268(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x248(%rbp), %eax
jge 0xb719
cmpl $-0x1, -0x24(%rbp)
jle 0xb719
leaq -0xb0(%rbp), %rdi
leaq 0x1d42d(%rip), %rax     # 0x28a70
movq (%rax), %rsi
addq $0x1a0, %rsi            # imm = 0x1A0
movslq -0x244(%rbp), %rax
imulq $0x26a8, %rax, %rax     # imm = 0x26A8
addq %rax, %rsi
addq $0x190, %rsi            # imm = 0x190
movslq -0x24(%rbp), %rax
imulq $0x9c, %rax, %rax
addq %rax, %rsi
callq 0x21c0
leaq -0x240(%rbp), %rdi
movq -0x20(%rbp), %rdx
addq $0xc0, %rdx
leaq -0xb0(%rbp), %rcx
movl -0x24c(%rbp), %r8d
movl -0x254(%rbp), %r9d
movl -0x250(%rbp), %r15d
movl -0x258(%rbp), %r14d
movl -0x25c(%rbp), %ebx
movl -0x260(%rbp), %r11d
movl -0x264(%rbp), %r10d
movl -0x268(%rbp), %eax
leaq 0x11f91(%rip), %rsi     # 0x1d65f
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0x2050
leaq -0x240(%rbp), %rax
movq %rax, -0x270(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x20c0
movq -0x270(%rbp), %rdi
movq %rax, %rsi
callq 0x12840
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)