// File: /workspace/github_c_makefile_star2_O0/Ziddykins[P]Dawn/src/market.c
// Function: print_materials
void print_materials(struct Message *m) {
    int pindex = get_pindex(m->sender_nick);
    char out[MAX_MESSAGE_BUFFER];
    sprintf(out, "PRIVMSG %s :%s, [Materials: - Wood: %ld - Leather %ld - Ore: %ld - Stone: %ld - "
               " Bronze: %ld - Mail: %ld - Steel: %ld - Diamond: %ld]\r\n",
            m->receiver, m->sender_nick, dawn->players[pindex].materials[WOOD],
            dawn->players[pindex].materials[LEATHER], dawn->players[pindex].materials[ORE],
            dawn->players[pindex].materials[STONE], dawn->players[pindex].materials[BRONZE],
            dawn->players[pindex].materials[MAIL], dawn->players[pindex].materials[STEEL],
            dawn->players[pindex].materials[DIAMOND]);
    add_msg(out, strlen(out));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rdi, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x13ba0
movl %eax, -0x24(%rbp)
leaq -0x1c0(%rbp), %rdi
movq -0x20(%rbp), %rdx
addq $0xc0, %rdx
movq -0x20(%rbp), %rcx
leaq 0x18473(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x25f8(%rax), %r8
leaq 0x1844e(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2600(%rax), %r9
leaq 0x18429(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2608(%rax), %r15
leaq 0x18404(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2610(%rax), %r14
leaq 0x183df(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2618(%rax), %rbx
leaq 0x183ba(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2620(%rax), %r11
leaq 0x18395(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2628(%rax), %r10
leaq 0x18370(%rip), %rax     # 0x28a70
movq (%rax), %rax
addq $0x1a0, %rax            # imm = 0x1A0
movslq -0x24(%rbp), %rsi
imulq $0x26a8, %rsi, %rsi     # imm = 0x26A8
addq %rsi, %rax
movq 0x2630(%rax), %rax
leaq 0xef76(%rip), %rsi      # 0x1f69b
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movb $0x0, %al
callq 0x2050
leaq -0x1c0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x20c0
movq -0x1c8(%rbp), %rdi
movq %rax, %rsi
callq 0x12840
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq