// File: /workspace/github_c_makefile_star2_O1/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 0x52ff
movq %rsi, %rbx
movq %rdi, %r12
movq 0x10(%rsi), %rdi
callq 0x3f6e
movq %r12, %rdi
callq 0x4600
testq %rax, %rax
je 0x52ff
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 0x4081
movq %r15, %rdi
callq 0x433d
leaq 0x1924(%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 0x4081
movq %r12, %rdi
callq 0x459f
leaq 0x18fe(%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 0x4081
movq %r12, %rdi
callq 0x45b1
leaq 0x18e0(%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 0x4081
movq %r12, %rdi
callq 0x45c3
leaq 0x18be(%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 0x4081
movq %r15, %rdi
callq 0x4242
leaq 0x189c(%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 0x4081
movq %r15, %rdi
callq 0x4278
leaq 0x187a(%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 0x4081
movq %r15, %rdi
callq 0x42d2
leaq 0x1853(%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 0x4081
movq %r15, %rdi
callq 0x42a5
leaq 0x182f(%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 0x4081
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq