// File: /workspace/github_c_makefile_star2_O2/rafa9811[P]theIndiependenceGame/interface.c
// Function: interface_printStat
int interface_printStat(Interact *interact, Interface* interface){
    char line[STAT_LINE];
    Stat *s;
    if(!interact || !interface) return -1;

    win_cls(interface->stats);

    s=interact_getStat(interact);
    if(!s) return -1;

    sprintf(line,"S T A T S: ");
    win_write_line_at(interface->stats,2,2,line);

    sprintf(line,"Danger: %d/5",stat_get_stars(s));
    win_write_line_at(interface->stats,3,2,line);

    sprintf(line,"Ballot boxes: %d/5",interact_getBoxes(interact));
    win_write_line_at(interface->stats,5,2,line);

    sprintf(line,"Printers: %d/5",interact_getPrinters(interact));
    win_write_line_at(interface->stats,6,2,line);

    sprintf(line,"Meetings: %d/5",interact_getMeetings(interact));
    win_write_line_at(interface->stats,7,2,line);

    sprintf(line,"Motivation: %d",stat_get_motivation(s));
    win_write_line_at(interface->stats,8,2,line);

    sprintf(line,"Chaos: %d",stat_get_chaos(s));
    win_write_line_at(interface->stats,9,2,line);

    sprintf(line,"Money: %d Ç",stat_get_money(s));
    win_write_line_at(interface->stats,10,2,line);

    sprintf(line,"(danger: %d)",stat_get_danger(s));
    win_write_line_at(interface->stats,14,2,line);


    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
pushq $-0x1
popq %rbp
orb %al, %cl
jne 0x4f1a
movq %rsi, %rbx
movq %rdi, %r13
movq 0x10(%rsi), %rdi
callq 0x3c71
movq %r13, %rdi
callq 0x42d3
testq %rax, %rax
je 0x4f1a
movq %rax, %r12
movabsq $0x2054204120542053, %rax # imm = 0x2054204120542053
movq %rsp, %r14
movq %rax, (%r14)
movl $0x203a53, 0x8(%r14)    # imm = 0x203A53
movq 0x10(%rbx), %rdi
pushq $0x2
popq %r15
movl %r15d, %esi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r12, %rdi
callq 0x3ff1
leaq 0x1ce9(%rip), %rsi      # 0x6aa8
xorl %ebp, %ebp
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0x3
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r13, %rdi
callq 0x4278
leaq 0x1cc7(%rip), %rsi      # 0x6ab5
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0x5
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r13, %rdi
callq 0x4288
leaq 0x1cad(%rip), %rsi      # 0x6ac8
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0x6
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r13, %rdi
callq 0x4298
leaq 0x1c8f(%rip), %rsi      # 0x6ad7
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0x7
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r12, %rdi
callq 0x3f21
leaq 0x1c71(%rip), %rsi      # 0x6ae6
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0x8
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r12, %rdi
callq 0x3f4f
leaq 0x1c53(%rip), %rsi      # 0x6af5
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0x9
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r12, %rdi
callq 0x3f99
leaq 0x1c30(%rip), %rsi      # 0x6aff
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0xa
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movq %r12, %rdi
callq 0x3f74
leaq 0x1c10(%rip), %rsi      # 0x6b0c
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11b0
movq 0x10(%rbx), %rdi
pushq $0xe
popq %rsi
movl %r15d, %edx
movq %r14, %rcx
callq 0x3d9a
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq