user: Demonstrate the C code that generates the assembly output below:

```asm
<NumberIO_StrToHexInt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %eax,%edx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  mov    %eax,%edx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  mov    %eax,%edx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L148:
  cmp    %rdx,%rsp
  je     L64
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L148
L64:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L54
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L54:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x4c(%rbp),%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x4c(%rbp),%esi
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <StrLib_StrRemoveWhitePrefix@plt>
  mov    -0x4c(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <StrLib_StrLen@plt>
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x1,-0x30(%rbp)
  jmp    L81
L144:
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L44
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L124
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x39,%al
  jle    L173
L124:
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x40,%al
  jle    L5
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x46,%al
  jg     L5
L173:
  movl   $0x0,-0x30(%rbp)
  jmp    L81
L5:
  addl   $0x1,-0x34(%rbp)
  jmp    L81
L44:
  movl   $0x0,-0x30(%rbp)
L81:
  cmpl   $0x0,-0x30(%rbp)
  jne    L144
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L257
  movl   $0x1,-0x30(%rbp)
L61:
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L165
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x39,%al
  jg     L165
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L150
L165:
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x40,%al
  jle    L150
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x46,%al
  jg     L150
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  sub    $0x37,%eax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
L150:
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jae    L131
  addl   $0x1,-0x34(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L248
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x39,%al
  jle    L141
L248:
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x40,%al
  jle    L42
  mov    -0x20(%rbp),%rdx
  mov    -0x34(%rbp),%eax
  movzbl (%rdx,%rax,1),%eax
  cmp    $0x46,%al
  jle    L141
L42:
  movl   $0x0,-0x30(%rbp)
  jmp    L141
L131:
  movl   $0x0,-0x30(%rbp)
L141:
  cmpl   $0x0,-0x30(%rbp)
  jne    L61
L257:
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L51
  call   <__stack_chk_fail@plt>
L51:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void NumberIO_StrToHexInt(char *a_, unsigned int _a_high, int *x) {
  unsigned int i;
  unsigned int ok;
  unsigned int higha;
  char a[_a_high + 1];
  memcpy(a, a_, _a_high + 1);
  StrLib_StrRemoveWhitePrefix((char *)a, _a_high, (char *)a, _a_high);
  higha = StrLib_StrLen((char *)a, _a_high);
  i = 0;
  ok = (1 == 1);
  while (ok) {
    if (i < higha) {
      if (((a[i] >= '0') && (a[i] <= '9')) || ((a[i] >= 'A') && (a[i] <= 'F'))) {
        ok = (1 == 0);
      } else {
        i += 1;
      }
    } else {
      ok = (1 == 0);
    }
  }
  (*x) = 0;
  if (i < higha) {
    ok = (1 == 1);
    do {
      if ((a[i] >= '0') && (a[i] <= '9')) {
        (*x) = (0x010 * (*x)) + ((int)(((unsigned int)(a[i])) - ((unsigned int)('0'))));
      } else if ((a[i] >= 'A') && (a[i] <= 'F')) {
        (*x) = (0x010 * (*x)) + ((int)((((unsigned int)(a[i])) - ((unsigned int)('A'))) + 10));
      }
      if (i < higha) {
        i += 1;
        if (((a[i] < '0') || (a[i] > '9')) && ((a[i] < 'A') || (a[i] > 'F'))) {
          ok = (1 == 0);
        }
      } else {
        ok = (1 == 0);
      }
    } while (!(!ok));
  }
}
```