// File: /workspace/github_c_makefile_star2_O3/bokunimowakaru[P]petit15term/lpc21isp/lpcprog.c
// Function: GetAndReportErrorNumber
static unsigned char GetAndReportErrorNumber(const char *Answer)
{
    unsigned char Result = 0xFF;                            // Error !!!
    unsigned int i = 0;

    while (1)
    {
        if (Answer[i] == 0x00)
        {
            break;
        }

        if (Answer[i] == 0x0a)
        {
            i++;

            if (Answer[i] < '0' || Answer[i] > '9')
            {
                DebugPrintf(1, "ErrorString: %s", &Answer[i]);
                break;
            }

            Result = (unsigned char) (atoi(&Answer[i]));
            break;
        }

        i++;
    }

    NxpOutputErrorMessage(Result);

    return Result;
}

// Assembly:
pushq %rbx
movl $0x1, %eax
leal -0x1(%rax), %ecx
movzbl (%rdi,%rcx), %ecx
testl %ecx, %ecx
je 0x8330
cmpl $0xa, %ecx
je 0x830e
incl %eax
jmp 0x82fa
movl %eax, %eax
leaq (%rdi,%rax), %rdx
movb (%rdi,%rax), %al
addb $-0x3a, %al
cmpb $-0xb, %al
ja 0x8336
leaq 0x2b78(%rip), %rsi      # 0xae9c
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $-0x1, %bl
movl %ebx, %eax
popq %rbx
retq
movq %rdx, %rdi
callq 0x4220
movl %eax, %ebx
movzbl %bl, %eax
cmpb $0x13, %al
ja 0x836e
leaq 0x1f3a(%rip), %rcx      # 0xa288
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2b4e(%rip), %rsi      # 0xaeac
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
jmp 0x8332
cmpl $0xff, %eax
je 0x8332
movzbl %bl, %edx
leaq 0x3045(%rip), %rsi      # 0xb3c4
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
jmp 0x8332
leaq 0x2f8f(%rip), %rsi      # 0xb323
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x10, %bl
jmp 0x8332
leaq 0x2ee5(%rip), %rsi      # 0xb290
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0xe, %bl
jmp 0x8332
leaq 0x2e22(%rip), %rsi      # 0xb1e7
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0xb, %bl
jmp 0x8332
leaq 0x2b67(%rip), %rsi      # 0xaf46
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x4, %bl
jmp 0x8332
leaq 0x2e23(%rip), %rsi      # 0xb21c
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0xc, %bl
jmp 0x8332
leaq 0x2d33(%rip), %rsi      # 0xb146
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x9, %bl
jmp 0x8332
leaq 0x2a9d(%rip), %rsi      # 0xaeca
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x2, %bl
jmp 0x8332
leaq 0x2ed0(%rip), %rsi      # 0xb317
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0xf, %bl
jmp 0x8332
leaq 0x2aa2(%rip), %rsi      # 0xaf03
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x3, %bl
jmp 0x8332
leaq 0x2c45(%rip), %rsi      # 0xb0c0
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x7, %bl
jmp 0x8332
leaq 0x2a24(%rip), %rsi      # 0xaeb9
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x1, %bl
jmp 0x8332
leaq 0x2e9b(%rip), %rsi      # 0xb34a
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x11, %bl
jmp 0x8332
leaq 0x2b12(%rip), %rsi      # 0xafdb
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x5, %bl
jmp 0x8332
leaq 0x2d7f(%rip), %rsi      # 0xb262
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0xd, %bl
jmp 0x8332
leaq 0x2b78(%rip), %rsi      # 0xb075
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x6, %bl
jmp 0x8332
leaq 0x2e62(%rip), %rsi      # 0xb379
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x12, %bl
jmp 0x8332
leaq 0x2c7f(%rip), %rsi      # 0xb1b0
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0xa, %bl
jmp 0x8332
leaq 0x2be9(%rip), %rsi      # 0xb134
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x8, %bl
jmp 0x8332
leaq 0x2e41(%rip), %rsi      # 0xb3a6
movl $0x1, %edi
xorl %eax, %eax
callq 0x43fd
movb $0x13, %bl
jmp 0x8332