user: 这段汇编代码用C语言表示是什么样的?

```asm
<inet_aton>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%r13d
  lea    0x10(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L429
L410:
  movzbl 0x1(%rbp),%r13d
  mov    %r13d,%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  je     L94
  add    $0x1,%rbp
  mov    $0x8,%r15d
  jmp    L51
L94:
  movzbl 0x2(%rbp),%r13d
  lea    0x2(%rbp),%rbp
  mov    $0x10,%r15d
  jmp    L51
L267:
  cmp    $0x10,%r15d
  jne    L268
  mov    %ebx,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L268
  mov    %ebx,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L268
  shl    $0x4,%r12d
  lea    0xa(%rbx),%r13d
  mov    %ebx,%edi
  call   <islower@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0xffffffe0,%eax
  add    $0x61,%eax
  sub    %eax,%r13d
  or     %r13d,%r12d
  movzbl 0x0(%rbp),%r13d
L97:
  add    $0x1,%rbp
L83:
  lea    -0x1(%rbp),%r14
  movsbl %r13b,%ebx
  mov    %ebx,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L267
  mov    %ebx,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L267
  imul   %r15d,%r12d
  lea    -0x30(%rbx,%r12,1),%r12d
  movzbl 0x0(%rbp),%r13d
  jmp    L97
L268:
  cmp    $0x2e,%r13b
  jne    L428
  lea    0x1c(%rsp),%rax
  mov    0x8(%rsp),%rsi
  cmp    %rax,%rsi
  je     L403
  add    $0x4,%rsi
  mov    %rsi,0x8(%rsp)
  mov    %r12d,-0x4(%rsi)
  lea    0x1(%r14),%rbp
  movzbl 0x1(%r14),%r13d
L429:
  movsbl %r13b,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L364
  mov    $0xa,%r15d
  cmp    $0x30,%r13b
  je     L410
L51:
  add    $0x1,%rbp
  mov    $0x0,%r12d
  jmp    L83
L428:
  test   %r13b,%r13b
  jne    L218
L315:
  lea    0x10(%rsp),%rdx
  mov    0x8(%rsp),%rax
  sub    %rdx,%rax
  sar    $0x2,%rax
  lea    0x1(%rax),%edx
  cmp    $0x2,%eax
  je     L397
  cmp    $0x3,%edx
  ja     L320
  test   %edx,%edx
  je     L80
  cmp    $0x2,%edx
  jne    L18
  cmp    $0xffffff,%r12d
  jg     L50
  mov    0x10(%rsp),%edx
  mov    %edx,%eax
  shl    $0x18,%eax
  or     %r12d,%eax
  cmp    $0x100,%edx
  mov    $0x0,%r12d
  cmovl  %eax,%r12d
  jmp    L18
L218:
  mov    %ebx,%edi
  call   <isascii@plt>
  test   %rax,%rax
  jne    L423
  mov    $0x0,%r12d
  jmp    L18
L423:
  mov    %ebx,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L315
  mov    %eax,%r12d
  jmp    L18
L320:
  cmp    $0x4,%edx
  jne    L18
  cmp    $0xff,%r12d
  jg     L294
  mov    0x10(%rsp),%eax
  cmp    $0xff,%eax
  jg     L452
  mov    0x14(%rsp),%ecx
  cmp    $0xff,%ecx
  jg     L158
  mov    0x18(%rsp),%edx
  cmp    $0xff,%edx
  jg     L223
  shl    $0x18,%eax
  shl    $0x10,%ecx
  or     %ecx,%eax
  shl    $0x8,%edx
  or     %edx,%eax
  or     %eax,%r12d
  jmp    L18
L397:
  cmp    $0xffff,%r12d
  jg     L468
  mov    0x10(%rsp),%eax
  cmp    $0xff,%eax
  jg     L217
  mov    0x14(%rsp),%edx
  cmp    $0xff,%edx
  jg     L130
  shl    $0x18,%eax
  shl    $0x10,%edx
  or     %edx,%eax
  or     %eax,%r12d
  jmp    L18
L364:
  mov    $0x0,%r12d
  jmp    L18
L403:
  mov    $0x0,%r12d
L18:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L96
  mov    %r12d,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L80:
  mov    $0x0,%r12d
  jmp    L18
L50:
  mov    $0x0,%r12d
  jmp    L18
L468:
  mov    $0x0,%r12d
  jmp    L18
L217:
  mov    $0x0,%r12d
  jmp    L18
L130:
  mov    $0x0,%r12d
  jmp    L18
L294:
  mov    $0x0,%r12d
  jmp    L18
L452:
  mov    $0x0,%r12d
  jmp    L18
L158:
  mov    $0x0,%r12d
  jmp    L18
L223:
  mov    $0x0,%r12d
  jmp    L18
L96:
  call   <__stack_chk_fail@plt>
```

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);
}
```