user: What is the c source code of the assembly code below?

```asm
<__inet_aton>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L74
L49:
  lea    -0x48(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtoul@plt>
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    %rax,-0x30(%rbp,%rdx,8)
  mov    -0x48(%rbp),%rax
  cmp    %rax,-0x40(%rbp)
  je     L12
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L142
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L12
L142:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L149
L12:
  mov    $0x0,%eax
  jmp    L72
L149:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L176
  mov    -0x48(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x40(%rbp)
  addl   $0x1,-0x4c(%rbp)
L74:
  cmpl   $0x3,-0x4c(%rbp)
  jle    L49
  jmp    L166
L176:
  nop
L166:
  cmpl   $0x4,-0x4c(%rbp)
  jne    L158
  mov    $0x0,%eax
  jmp    L72
L158:
  cmpl   $0x2,-0x4c(%rbp)
  je     L147
  cmpl   $0x2,-0x4c(%rbp)
  jg     L68
  cmpl   $0x0,-0x4c(%rbp)
  je     L117
  cmpl   $0x1,-0x4c(%rbp)
  je     L64
  jmp    L68
L117:
  mov    -0x30(%rbp),%rax
  and    $0xffffff,%eax
  mov    %rax,-0x28(%rbp)
  mov    -0x30(%rbp),%rax
  shr    $0x18,%rax
  mov    %rax,-0x30(%rbp)
L64:
  mov    -0x28(%rbp),%rax
  movzwl %ax,%eax
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  shr    $0x10,%rax
  mov    %rax,-0x28(%rbp)
L147:
  mov    -0x20(%rbp),%rax
  movzbl %al,%eax
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,-0x20(%rbp)
L68:
  movl   $0x0,-0x4c(%rbp)
  jmp    L101
L208:
  mov    -0x4c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,8),%rax
  cmp    $0xff,%rax
  jbe    L4
  mov    $0x0,%eax
  jmp    L72
L4:
  mov    -0x4c(%rbp),%eax
  cltq
  mov    -0x30(%rbp,%rax,8),%rdx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x4c(%rbp)
L101:
  cmpl   $0x3,-0x4c(%rbp)
  jle    L208
  mov    $0x1,%eax
L72:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L108
  call   <__stack_chk_fail@plt>
L108:
  leave
  ret
```

assistant: ```c
int __inet_aton(const char *s0, struct in_addr *dest) {
  const char *s = s0;
  unsigned char *d = (void *)dest;
  unsigned long a[4] = {0};
  char *z;
  int i;
  for (i = 0; i < 4; i++) {
    a[i] = strtoul(s, &z, 0);
    if (z == s || (*z && *z != '.') || !isdigit(*s))
      return 0;
    if (!*z)
      break;
    s = z + 1;
  }
  if (i == 4)
    return 0;
  switch (i) {
  case 0:
    a[1] = a[0] & 0xffffff;
    a[0] >>= 24;
  case 1:
    a[2] = a[1] & 0xffff;
    a[1] >>= 16;
  case 2:
    a[3] = a[2] & 0xff;
    a[2] >>= 8;
  }
  for (i = 0; i < 4; i++) {
    if (a[i] > 255)
      return 0;
    d[i] = a[i];
  }
  return 1;
}
```