// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rax
leal -0x1(%rax), %ecx
movzbl (%rdi,%rcx), %ecx
testl %ecx, %ecx
je 0x7c16
cmpl $0xa, %ecx
je 0x7bf6
incl %eax
jmp 0x7be2
movl %eax, %eax
leaq (%rdi,%rax), %rdx
movb (%rdi,%rax), %al
addb $-0x3a, %al
cmpb $-0xb, %al
ja 0x7c1c
leaq 0x31f0(%rip), %rsi      # 0xadfc
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $-0x1, %bl
movl %ebx, %eax
popq %rbx
retq
movq %rdx, %rdi
callq 0x4220
movl %eax, %ebx
movzbl %bl, %eax
cmpb $0x13, %al
ja 0x7c52
leaq 0x25b4(%rip), %rcx      # 0xa1e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x31c8(%rip), %rsi      # 0xae0c
xorl %ebx, %ebx
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
jmp 0x7c18
cmpl $0xff, %eax
je 0x7c18
movzbl %bl, %edx
leaq 0x36c1(%rip), %rsi      # 0xb324
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
jmp 0x7c18
leaq 0x360d(%rip), %rsi      # 0xb283
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x10, %bl
jmp 0x7c18
leaq 0x3565(%rip), %rsi      # 0xb1f0
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0xe, %bl
jmp 0x7c18
leaq 0x34a4(%rip), %rsi      # 0xb147
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0xb, %bl
jmp 0x7c18
leaq 0x31eb(%rip), %rsi      # 0xaea6
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x4, %bl
jmp 0x7c18
leaq 0x34a9(%rip), %rsi      # 0xb17c
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0xc, %bl
jmp 0x7c18
leaq 0x33bb(%rip), %rsi      # 0xb0a6
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x9, %bl
jmp 0x7c18
leaq 0x3127(%rip), %rsi      # 0xae2a
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x2, %bl
jmp 0x7c18
leaq 0x355c(%rip), %rsi      # 0xb277
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0xf, %bl
jmp 0x7c18
leaq 0x3130(%rip), %rsi      # 0xae63
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x3, %bl
jmp 0x7c18
leaq 0x32d5(%rip), %rsi      # 0xb020
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x7, %bl
jmp 0x7c18
leaq 0x30b6(%rip), %rsi      # 0xae19
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x1, %bl
jmp 0x7c18
leaq 0x352f(%rip), %rsi      # 0xb2aa
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x11, %bl
jmp 0x7c18
leaq 0x31a8(%rip), %rsi      # 0xaf3b
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x5, %bl
jmp 0x7c18
leaq 0x3417(%rip), %rsi      # 0xb1c2
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0xd, %bl
jmp 0x7c18
leaq 0x3212(%rip), %rsi      # 0xafd5
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x6, %bl
jmp 0x7c18
leaq 0x34fe(%rip), %rsi      # 0xb2d9
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x12, %bl
jmp 0x7c18
leaq 0x331d(%rip), %rsi      # 0xb110
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0xa, %bl
jmp 0x7c18
leaq 0x3289(%rip), %rsi      # 0xb094
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x8, %bl
jmp 0x7c18
leaq 0x34e3(%rip), %rsi      # 0xb306
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x43f9
movb $0x13, %bl
jmp 0x7c18