// File: AndreRenaud[P]simple_uart/./acutest.h
// Function: acutest_finish_test_line_
static void
acutest_finish_test_line_(enum acutest_state_ state)
{
    if(acutest_tap_) {
        printf("%s %d - %s%s\n",
                (state == ACUTEST_STATE_SUCCESS || state == ACUTEST_STATE_SKIPPED) ? "ok" : "not ok",
                acutest_current_index_ + 1,
                acutest_current_test_->name,
                (state == ACUTEST_STATE_SKIPPED) ? " # SKIP" : "");

        if(state == ACUTEST_STATE_SUCCESS  &&  acutest_timer_) {
            printf("# Duration: ");
            acutest_timer_print_diff_();
            printf("\n");
        }
    } else {
        int color;
        const char* str;

        switch(state) {
            case ACUTEST_STATE_SUCCESS: color = ACUTEST_COLOR_GREEN_INTENSIVE_; str = "OK"; break;
            case ACUTEST_STATE_SKIPPED: color = ACUTEST_COLOR_YELLOW_INTENSIVE_; str = "SKIPPED"; break;
            case ACUTEST_STATE_FAILED:  /* Fall through. */
            default:                    color = ACUTEST_COLOR_RED_INTENSIVE_; str = "FAILED"; break;
        }

        printf("[ ");
        acutest_colored_printf_(color, "%s", str);
        printf(" ]");

        if(state == ACUTEST_STATE_SUCCESS  &&  acutest_timer_) {
            printf("  ");
            acutest_timer_print_diff_();
        }

        printf("\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
cmpl $0x0, 0xab42(%rip)      # 0xd474
je 0x29d3
movb $0x1, %al
cmpl $0x0, -0x4(%rbp)
movb %al, -0x11(%rbp)
je 0x294d
cmpl $0x2, -0x4(%rbp)
sete %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
leaq 0x6f28(%rip), %rsi      # 0x987f
leaq 0x6f25(%rip), %rax      # 0x9883
testb $0x1, %cl
cmovneq %rax, %rsi
movl 0xab25(%rip), %edx      # 0xd490
addl $0x1, %edx
movq 0xa9b3(%rip), %rax      # 0xd328
movq (%rax), %rcx
movl -0x4(%rbp), %edi
leaq 0x70fe(%rip), %r8       # 0x9a80
leaq 0x6efd(%rip), %rax      # 0x9886
cmpl $0x2, %edi
cmoveq %rax, %r8
leaq 0x6eda(%rip), %rdi      # 0x9871
movb $0x0, %al
callq 0x2160
cmpl $0x0, -0x4(%rbp)
jne 0x29ce
cmpl $0x0, 0xaae9(%rip)      # 0xd494
je 0x29ce
leaq 0x6eda(%rip), %rdi      # 0x988e
movb $0x0, %al
callq 0x2160
callq 0x5b70
leaq 0x70b8(%rip), %rdi      # 0x9a7f
movb $0x0, %al
callq 0x2160
jmp 0x2a90
movl -0x4(%rbp), %eax
movl %eax, -0x18(%rbp)
testl %eax, %eax
je 0x29f3
jmp 0x29df
movl -0x18(%rbp), %eax
subl $0x1, %eax
je 0x2a1b
jmp 0x29e9
movl -0x18(%rbp), %eax
subl $0x2, %eax
je 0x2a07
jmp 0x2a1d
movl $0xc, -0x8(%rbp)
leaq 0x6e9a(%rip), %rax      # 0x989b
movq %rax, -0x10(%rbp)
jmp 0x2a2f
movl $0xd, -0x8(%rbp)
leaq 0x6e89(%rip), %rax      # 0x989e
movq %rax, -0x10(%rbp)
jmp 0x2a2f
jmp 0x2a1d
movl $0xb, -0x8(%rbp)
leaq 0x6e7b(%rip), %rax      # 0x98a6
movq %rax, -0x10(%rbp)
leaq 0x6e77(%rip), %rdi      # 0x98ad
movb $0x0, %al
callq 0x2160
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rdx
leaq 0x6eb9(%rip), %rsi      # 0x9904
movb $0x0, %al
callq 0x2b70
leaq 0x6e57(%rip), %rdi      # 0x98b0
movb $0x0, %al
callq 0x2160
cmpl $0x0, -0x4(%rbp)
jne 0x2a82
cmpl $0x0, 0xaa27(%rip)      # 0xd494
je 0x2a82
leaq 0x66c3(%rip), %rdi      # 0x9139
movb $0x0, %al
callq 0x2160
callq 0x5b70
leaq 0x6ff6(%rip), %rdi      # 0x9a7f
movb $0x0, %al
callq 0x2160
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)