user: What would the C source look like for the assembly code provided here:

```asm
<htoi_new>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movb   $0x0,-0x6(%rbp)
  movl   $0x0,-0x4(%rbp)
  movb   $0x1,-0x5(%rbp)
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L75
  movsbq -0x6(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L63
  movsbq -0x6(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L75
L63:
  movb   $0x2,-0x6(%rbp)
  jmp    L75
L118:
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L59
  cmpb   $0x0,-0x5(%rbp)
  je     L59
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L31
L59:
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L127
  cmpb   $0x0,-0x5(%rbp)
  je     L127
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %eax,%eax
  je     L105
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x57,%eax
  jmp    L21
L105:
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x37,%eax
  jmp    L21
L127:
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L68
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %eax,%eax
  je     L28
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x57,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  jmp    L21
L28:
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x37,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  jmp    L21
L68:
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L31
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%ecx
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  mov    %eax,-0x4(%rbp)
L31:
  movb   $0x0,-0x5(%rbp)
  movzbl -0x6(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x6(%rbp)
L75:
  movsbq -0x6(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L118
  mov    -0x4(%rbp),%eax
L21:
  leave
  ret
```

assistant: ```c
int htoi_new(char string[]) {
  enum bool { FALSE, TRUE };
  char i = 0;
  int num = 0;
  char first_entry = TRUE;
  if (string[i] == '0' && (string[i + 1] == 'x' || string[i + 1] == 'X'))
    i = 2;
  for (; string[i] != '\0'; ++i) {
    if (isdigit(string[i]) && first_entry)
      num = (int)string[i] - 48;
    else if (!isdigit(string[i]) && first_entry)
      if (islower(string[i]))
        return (int)+(string[i] - 87);
      else
        return (int)+(string[i] - 55);
    else if (!isdigit(string[i]))
      if (islower(string[i]))
        return ((num * (int)'\xF') + ((int)+(string[i] - 87)) + num);
      else
        return ((num * (int)'\xF') + ((int)+(string[i] - 55)) + num);
    else if (isdigit(string[i]))
      num = (num * 10) + +(string[i] - 48) + (num * 6);
    first_entry = FALSE;
  }
  return num;
}
```