user: 下面的汇编指令对应的C源代码是什么:

```asm
<inet_aton>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x50,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    -0x30(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x45(%rbp)
L165:
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L353
  mov    $0x0,%eax
  jmp    L115
L353:
  movl   $0x0,-0x44(%rbp)
  movl   $0xa,-0x40(%rbp)
  cmpb   $0x30,-0x45(%rbp)
  jne    L225
  addq   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x45(%rbp)
  cmpb   $0x78,-0x45(%rbp)
  je     L378
  cmpb   $0x58,-0x45(%rbp)
  jne    L243
L378:
  movl   $0x10,-0x40(%rbp)
  addq   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x45(%rbp)
  jmp    L225
L243:
  movl   $0x8,-0x40(%rbp)
L225:
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L307
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L307
  mov    -0x44(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,%edx
  movsbl -0x45(%rbp),%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x44(%rbp)
  addq   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x45(%rbp)
  jmp    L200
L307:
  cmpl   $0x10,-0x40(%rbp)
  jne    L405
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L405
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L405
  mov    -0x44(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%r12d
  movsbl -0x45(%rbp),%eax
  lea    0xa(%rax),%ebx
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L363
  mov    $0x61,%edx
  jmp    L227
L363:
  mov    $0x41,%edx
L227:
  mov    %ebx,%eax
  sub    %edx,%eax
  or     %r12d,%eax
  mov    %eax,-0x44(%rbp)
  addq   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x45(%rbp)
L200:
  jmp    L225
L405:
  cmpb   $0x2e,-0x45(%rbp)
  jne    L37
  lea    -0x30(%rbp),%rax
  add    $0xc,%rax
  cmp    %rax,-0x38(%rbp)
  jb     L222
  mov    $0x0,%eax
  jmp    L115
L222:
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x44(%rbp),%edx
  mov    %edx,(%rax)
  addq   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x45(%rbp)
  jmp    L165
L37:
  nop
  cmpb   $0x0,-0x45(%rbp)
  je     L229
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L95
  movsbl -0x45(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L229
L95:
  mov    $0x0,%eax
  jmp    L115
L229:
  lea    -0x30(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  sub    %rdx,%rax
  sar    $0x2,%rax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x4,-0x3c(%rbp)
  ja     L44
  mov    -0x3c(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D12(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D12(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x0,%eax
  jmp    L115
  cmpl   $0xffffff,-0x44(%rbp)
  jg     L119
  mov    -0x30(%rbp),%eax
  cmp    $0xff,%eax
  jle    L276
L119:
  mov    $0x0,%eax
  jmp    L115
L276:
  mov    -0x30(%rbp),%eax
  shl    $0x18,%eax
  or     %eax,-0x44(%rbp)
  jmp    L44
  cmpl   $0xffff,-0x44(%rbp)
  jg     L66
  mov    -0x30(%rbp),%eax
  cmp    $0xff,%eax
  jg     L66
  mov    -0x2c(%rbp),%eax
  cmp    $0xff,%eax
  jle    L109
L66:
  mov    $0x0,%eax
  jmp    L115
L109:
  mov    -0x30(%rbp),%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  shl    $0x10,%eax
  or     %edx,%eax
  or     %eax,-0x44(%rbp)
  jmp    L44
  cmpl   $0xff,-0x44(%rbp)
  jg     L213
  mov    -0x30(%rbp),%eax
  cmp    $0xff,%eax
  jg     L213
  mov    -0x2c(%rbp),%eax
  cmp    $0xff,%eax
  jg     L213
  mov    -0x28(%rbp),%eax
  cmp    $0xff,%eax
  jle    L6
L213:
  mov    $0x0,%eax
  jmp    L115
L6:
  mov    -0x30(%rbp),%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x8,%eax
  or     %edx,%eax
  or     %eax,-0x44(%rbp)
  jmp    L44
  nop
L44:
  mov    -0x44(%rbp),%eax
L115:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L121
  call   <__stack_chk_fail@plt>
L121:
  add    $0x50,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

assistant: ```c
uint32_t inet_aton(const char *cp) {
  uint32_t val;
  uint8_t base, n;
  char c;
  uint32_t parts[4];
  uint32_t *pp = parts;
  c = *cp;
  for (;;) {
    if (!isdigit(c))
      return false;
    val = 0;
    base = 10;
    if (c == '0') {
      c = *++cp;
      if (c == 'x' || c == 'X')
        base = 16, c = *++cp;
      else
        base = 8;
    }
    for (;;) {
      if (isascii(c) && isdigit(c)) {
        val = (val * base) + (c - '0');
        c = *++cp;
      } else if (base == 16 && isascii(c) && isxdigit(c)) {
        val = (val << 4) | (c + 10 - (islower(c) ? 'a' : 'A'));
        c = *++cp;
      } else
        break;
    }
    if (c == '.') {
      if (pp >= parts + 3)
        return false;
      *pp++ = val;
      c = *++cp;
    } else
      break;
  }
  if (c != '\0' && (!isascii(c) || !isspace(c)))
    return false;
  n = pp - parts + 1;
  switch (n) {
  case 0:
    return false;
  case 1:
    break;
  case 2:
    if ((val > 0xffffff) || (parts[0] > 0xff))
      return false;
    val |= parts[0] << 24;
    break;
  case 3:
    if ((val > 0xffff) || (parts[0] > 0xff) || (parts[1] > 0xff))
      return false;
    val |= (parts[0] << 24) | (parts[1] << 16);
    break;
  case 4:
    if ((val > 0xff) || (parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff))
      return false;
    val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
    break;
  }
  return (val);
}
```