// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x7a31
cmpq $0x0, -0x18(%rbp)
jne 0x7a3d
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ca1
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x5b90
movq -0x10(%rbp), %rdi
callq 0x68e0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x7a6a
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ca1
leaq -0x40(%rbp), %rdi
leaq 0x2033(%rip), %rsi      # 0x9aa8
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x2, %edx
movl %edx, %esi
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x48(%rbp), %rdi
callq 0x6410
movq -0x88(%rbp), %rdi
movl %eax, %edx
leaq 0x1ffc(%rip), %rsi      # 0x9ab4
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x3, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
callq 0x67c0
movq -0x80(%rbp), %rdi
movl %eax, %edx
leaq 0x1fc9(%rip), %rsi      # 0x9ac1
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x5, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
callq 0x67f0
movq -0x78(%rbp), %rdi
movl %eax, %edx
leaq 0x1f9c(%rip), %rsi      # 0x9ad4
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x6, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6820
movq -0x70(%rbp), %rdi
movl %eax, %edx
leaq 0x1f6b(%rip), %rsi      # 0x9ae3
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x7, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rdi
callq 0x60e0
movq -0x68(%rbp), %rdi
movl %eax, %edx
leaq 0x1f3a(%rip), %rsi      # 0x9af2
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x8, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rdi
callq 0x61a0
movq -0x60(%rbp), %rdi
movl %eax, %edx
leaq 0x1f09(%rip), %rsi      # 0x9b01
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0x9, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rdi
callq 0x6300
movq -0x58(%rbp), %rdi
movl %eax, %edx
leaq 0x1ed3(%rip), %rsi      # 0x9b0b
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0xa, %esi
movl $0x2, %edx
callq 0x5dd0
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
callq 0x6250
movq -0x50(%rbp), %rdi
movl %eax, %edx
leaq 0x1ea0(%rip), %rsi      # 0x9b18
movb $0x0, %al
callq 0x11a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
leaq -0x40(%rbp), %rcx
movl $0xe, %esi
movl $0x2, %edx
callq 0x5dd0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)