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

```asm
<inet_aton>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x48,%rsp
  movzbl (%rdi),%ebp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rax
  mov    %rax,0x18(%rsp)
  mov    %rax,0x8(%rsp)
L263:
  movsbl %bpl,%r14d
  mov    %r14d,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L121
  mov    $0xa,%ecx
  cmp    $0x30,%bpl
  je     L241
L106:
  mov    %rbx,%r13
  xor    %r12d,%r12d
  nopl   (%rax)
L280:
  mov    %r14d,%edi
  mov    %ecx,0x14(%rsp)
  mov    %r14d,%r15d
  call   <isascii@plt>
  test   %rax,%rax
  jne    L150
L96:
  cmp    $0x2e,%bpl
  jne    L329
  mov    0x8(%rsp),%rsi
  lea    0x2c(%rsp),%rax
  cmp    %rax,%rsi
  je     L121
  add    $0x4,%rsi
  movzbl 0x1(%r13),%ebp
  lea    0x1(%r13),%rbx
  mov    %r12d,-0x4(%rsi)
  mov    %rsi,0x8(%rsp)
  jmp    L263
  nopl   (%rax)
L241:
  movzbl 0x1(%rbx),%ebp
  mov    %ebp,%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  je     L279
  add    $0x1,%rbx
  mov    $0x8,%ecx
  movsbl %bpl,%r14d
  jmp    L106
  nopl   0x0(%rax)
L279:
  movzbl 0x2(%rbx),%ebp
  xor    %r12d,%r12d
  add    $0x3,%rbx
  jmp    L56
  nopl   (%rax)
L124:
  mov    %r15d,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L96
  mov    %r15d,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L96
  mov    %r15d,%edi
  shl    $0x4,%r12d
  lea    0xa(%r15),%ebp
  call   <islower@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0xffffffe0,%eax
  add    $0x61,%eax
  sub    %eax,%ebp
  or     %ebp,%r12d
  movzbl (%rbx),%ebp
L317:
  add    $0x1,%rbx
L56:
  movsbl %bpl,%r15d
  lea    -0x1(%rbx),%r13
  mov    %r15d,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L124
  mov    %r15d,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L124
  shl    $0x4,%r12d
  movzbl (%rbx),%ebp
  lea    -0x30(%r15,%r12,1),%r12d
  jmp    L317
L181:
  mov    %r15d,%edi
  call   <isascii@plt>
  test   %rax,%rax
  je     L121
  mov    %r15d,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L266
  nop
L121:
  xor    %r12d,%r12d
L170:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L368
  add    $0x48,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L150:
  mov    %r14d,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L96
  mov    0x14(%rsp),%ecx
  add    $0x1,%r13
  imul   %ecx,%r12d
  lea    -0x30(%r12,%r14,1),%r12d
  movsbl 0x0(%r13),%r14d
  mov    %r14d,%ebp
  jmp    L280
L329:
  test   %bpl,%bpl
  jne    L181
L266:
  mov    0x8(%rsp),%rax
  sub    0x18(%rsp),%rax
  sar    $0x2,%rax
  add    $0x1,%eax
  cmp    $0x3,%eax
  je     L326
  ja     L366
  test   %eax,%eax
  je     L121
  cmp    $0x2,%eax
  jne    L170
  cmp    $0xffffff,%r12d
  jg     L121
  mov    0x20(%rsp),%eax
  cmp    $0xff,%eax
  jg     L121
  shl    $0x18,%eax
  or     %eax,%r12d
  jmp    L170
  nopl   0x0(%rax,%rax,1)
L366:
  cmp    $0x4,%eax
  jne    L170
  cmp    $0xff,%r12d
  jg     L121
  mov    0x20(%rsp),%eax
  cmp    $0xff,%eax
  jg     L121
  mov    0x24(%rsp),%ecx
  cmp    $0xff,%ecx
  jg     L121
  mov    0x28(%rsp),%edx
  cmp    $0xff,%edx
  jg     L121
  shl    $0x18,%eax
  shl    $0x10,%ecx
  or     %ecx,%eax
  shl    $0x8,%edx
  or     %edx,%eax
  or     %eax,%r12d
  jmp    L170
L326:
  cmp    $0xffff,%r12d
  jg     L121
  mov    0x20(%rsp),%eax
  cmp    $0xff,%eax
  jg     L121
  mov    0x24(%rsp),%edx
  cmp    $0xff,%edx
  jg     L121
  shl    $0x18,%eax
  shl    $0x10,%edx
  or     %edx,%eax
  or     %eax,%r12d
  jmp    L170
L368:
  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);
}
```