// File: /workspace/github_c_makefile_star2_O0/bokunimowakaru[P]petit15term/lpc21isp/lpcprog.c
// Function: NxpOutputErrorMessage
static void NxpOutputErrorMessage(unsigned char ErrorNumber)
{
    switch (ErrorNumber)
    {
    case   0:
        DebugPrintf(1, "CMD_SUCCESS\n");
        break;

    case   1:
        DebugPrintf(1, "INVALID_COMMAND\n");
        break;

    case   2:
        DebugPrintf(1, "SRC_ADDR_ERROR: Source address is not on word boundary.\n");
        break;

    case   3:
        DebugPrintf(1, "DST_ADDR_ERROR: Destination address is not on a correct boundary.\n");
        break;

    case   4:
        DebugPrintf(1, "SRC_ADDR_NOT_MAPPED: Source address is not mapped in the memory map.\n"
                       "                     Count value is taken into consideration where applicable.\n");
        break;

    case   5:
        DebugPrintf(1, "DST_ADDR_NOT_MAPPED: Destination address is not mapped in the memory map.\n"
                       "                     Count value is taken into consideration where applicable.\n");
        break;

    case   6:
        DebugPrintf(1, "COUNT_ERROR: Byte count is not multiple of 4 or is not a permitted value.\n");
        break;

    case   7:
        DebugPrintf(1, "INVALID_SECTOR: Sector number is invalid or end sector number is\n"
                       "                greater than start sector number.\n");
        break;

    case   8:
        DebugPrintf(1, "SECTOR_NOT_BLANK\n");
        break;

    case   9:
        DebugPrintf(1, "SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION:\n"
                       "Command to prepare sector for write operation was not executed.\n");
        break;

    case  10:
        DebugPrintf(1, "COMPARE_ERROR: Source and destination data not equal.\n");
        break;

    case  11:
        DebugPrintf(1, "BUSY: Flash programming hardware interface is busy.\n");
        break;

    case  12:
        DebugPrintf(1, "PARAM_ERROR: Insufficient number of parameters or invalid parameter.\n");
        break;

    case  13:
        DebugPrintf(1, "ADDR_ERROR: Address is not on word boundary.\n");
        break;

    case  14:
        DebugPrintf(1, "ADDR_NOT_MAPPED: Address is not mapped in the memory map.\n"
                       "                 Count value is taken in to consideration where applicable.\n");
        break;

    case  15:
        DebugPrintf(1, "CMD_LOCKED\n");
        break;

    case  16:
        DebugPrintf(1, "INVALID_CODE: Unlock code is invalid.\n");
        break;

    case  17:
        DebugPrintf(1, "INVALID_BAUD_RATE: Invalid baud rate setting.\n");
        break;

    case  18:
        DebugPrintf(1, "INVALID_STOP_BIT: Invalid stop bit setting.\n");
        break;

    case  19:
        DebugPrintf( 1, "CODE READ PROTECTION ENABLED\n");
        break;

    case 255:
        break;

    default:
        DebugPrintf(1, "unknown error %u\n", ErrorNumber);
        break;
    }

    //DebugPrintf(1, "error (%u), see  NxpOutputErrorMessage() in lpc21isp.c for help \n\r", ErrorNumber);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
movzbl -0x1(%rbp), %eax
movl %eax, -0x8(%rbp)
testl %eax, %eax
je 0xa95c
jmp 0xa83f
movl -0x8(%rbp), %eax
subl $0x1, %eax
je 0xa974
jmp 0xa84d
movl -0x8(%rbp), %eax
subl $0x2, %eax
je 0xa98c
jmp 0xa85b
movl -0x8(%rbp), %eax
subl $0x3, %eax
je 0xa9a4
jmp 0xa869
movl -0x8(%rbp), %eax
subl $0x4, %eax
je 0xa9bc
jmp 0xa877
movl -0x8(%rbp), %eax
subl $0x5, %eax
je 0xa9d4
jmp 0xa885
movl -0x8(%rbp), %eax
subl $0x6, %eax
je 0xa9ec
jmp 0xa893
movl -0x8(%rbp), %eax
subl $0x7, %eax
je 0xaa04
jmp 0xa8a1
movl -0x8(%rbp), %eax
subl $0x8, %eax
je 0xaa1c
jmp 0xa8af
movl -0x8(%rbp), %eax
subl $0x9, %eax
je 0xaa34
jmp 0xa8bd
movl -0x8(%rbp), %eax
subl $0xa, %eax
je 0xaa4c
jmp 0xa8cb
movl -0x8(%rbp), %eax
subl $0xb, %eax
je 0xaa64
jmp 0xa8d9
movl -0x8(%rbp), %eax
subl $0xc, %eax
je 0xaa7c
jmp 0xa8e7
movl -0x8(%rbp), %eax
subl $0xd, %eax
je 0xaa94
jmp 0xa8f5
movl -0x8(%rbp), %eax
subl $0xe, %eax
je 0xaaac
jmp 0xa903
movl -0x8(%rbp), %eax
subl $0xf, %eax
je 0xaac4
jmp 0xa911
movl -0x8(%rbp), %eax
subl $0x10, %eax
je 0xaad9
jmp 0xa91f
movl -0x8(%rbp), %eax
subl $0x11, %eax
je 0xaaee
jmp 0xa92d
movl -0x8(%rbp), %eax
subl $0x12, %eax
je 0xab03
jmp 0xa93b
movl -0x8(%rbp), %eax
subl $0x13, %eax
je 0xab18
jmp 0xa949
movl -0x8(%rbp), %eax
subl $0xff, %eax
je 0xab2d
jmp 0xab2f
movl $0x1, %edi
leaq 0x2090(%rip), %rsi      # 0xc9f8
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x2085(%rip), %rsi      # 0xca05
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x207e(%rip), %rsi      # 0xca16
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x209f(%rip), %rsi      # 0xca4f
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x20ca(%rip), %rsi      # 0xca92
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x2147(%rip), %rsi      # 0xcb27
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x21c9(%rip), %rsi      # 0xcbc1
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x21fc(%rip), %rsi      # 0xcc0c
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x2258(%rip), %rsi      # 0xcc80
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x2252(%rip), %rsi      # 0xcc92
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x22a4(%rip), %rsi      # 0xccfc
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x22c3(%rip), %rsi      # 0xcd33
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x22e0(%rip), %rsi      # 0xcd68
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x230e(%rip), %rsi      # 0xcdae
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x2324(%rip), %rsi      # 0xcddc
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x2393(%rip), %rsi      # 0xce63
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x238a(%rip), %rsi      # 0xce6f
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x239c(%rip), %rsi      # 0xce96
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x23b6(%rip), %rsi      # 0xcec5
movb $0x0, %al
callq 0x44e0
jmp 0xab46
movl $0x1, %edi
leaq 0x23ce(%rip), %rsi      # 0xcef2
movb $0x0, %al
callq 0x44e0
jmp 0xab46
jmp 0xab46
movzbl -0x1(%rbp), %edx
movl $0x1, %edi
leaq 0x23d1(%rip), %rsi      # 0xcf10
movb $0x0, %al
callq 0x44e0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)