// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x30, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
orb %al, %cl
jne 0x52d9
movq %rsi, %rbx
movq %rdi, %r12
movq 0x10(%rsi), %rdi
callq 0x3f12
movq %r12, %rdi
callq 0x45d4
testq %rax, %rax
je 0x52d9
movq %rax, %r15
movabsq $0x2054204120542053, %rax # imm = 0x2054204120542053
movq %rsp, %r14
movq %rax, (%r14)
movl $0x203a53, 0x8(%r14)    # imm = 0x203A53
movq 0x10(%rbx), %rdi
movl $0x2, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r15, %rdi
callq 0x42d6
leaq 0x194a(%rip), %rsi      # 0x6aa8
xorl %ebp, %ebp
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0x3, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r12, %rdi
callq 0x4573
leaq 0x1924(%rip), %rsi      # 0x6ab5
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0x5, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r12, %rdi
callq 0x4585
leaq 0x1906(%rip), %rsi      # 0x6ac8
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0x6, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r12, %rdi
callq 0x4597
leaq 0x18e4(%rip), %rsi      # 0x6ad7
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0x7, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r15, %rdi
callq 0x41f0
leaq 0x18c2(%rip), %rsi      # 0x6ae6
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0x8, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r15, %rdi
callq 0x4220
leaq 0x18a0(%rip), %rsi      # 0x6af5
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0x9, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r15, %rdi
callq 0x426e
leaq 0x1879(%rip), %rsi      # 0x6aff
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0xa, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movq %r15, %rdi
callq 0x4247
leaq 0x1855(%rip), %rsi      # 0x6b0c
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x11a0
movq 0x10(%rbx), %rdi
movl $0xe, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x4025
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq