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

```asm
<inet_network>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    -0x1c(%rbp),%rax
  mov    %rax,-0x28(%rbp)
L46:
  movb   $0x0,-0x30(%rbp)
  movb   $0xa,-0x2f(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L166
  movb   $0x8,-0x2f(%rbp)
  addq   $0x1,-0x38(%rbp)
L166:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L160
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L105
L160:
  movb   $0x10,-0x2f(%rbp)
  addq   $0x1,-0x38(%rbp)
  jmp    L105
L129:
  movsbl -0x2e(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L150
  movzbl -0x30(%rbp),%eax
  movzbl -0x2f(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,%edx
  movzbl -0x2e(%rbp),%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %al,-0x30(%rbp)
  addq   $0x1,-0x38(%rbp)
  jmp    L105
L150:
  cmpb   $0x10,-0x2f(%rbp)
  jne    L84
  movsbl -0x2e(%rbp),%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L84
  movzbl -0x30(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%r12d
  movzbl -0x2e(%rbp),%ebx
  movsbl -0x2e(%rbp),%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L197
  mov    $0x61,%edx
  jmp    L177
L197:
  mov    $0x41,%edx
L177:
  mov    %ebx,%eax
  sub    %edx,%eax
  add    %r12d,%eax
  add    $0xa,%eax
  mov    %al,-0x30(%rbp)
  addq   $0x1,-0x38(%rbp)
  nop
L105:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x2e(%rbp)
  cmpb   $0x0,-0x2e(%rbp)
  jne    L129
  jmp    L44
L84:
  nop
L44:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L38
  lea    -0x1c(%rbp),%rax
  add    $0x3,%rax
  cmp    %rax,-0x28(%rbp)
  jb     L0
  mov    D16(%rip),%rax
  movzbl (%rax),%eax
  jmp    L14
L0:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  movzbl -0x30(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x38(%rbp)
  jmp    L46
L38:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L102
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L102
  mov    D16(%rip),%rax
  movzbl (%rax),%eax
  jmp    L14
L102:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  movzbl -0x30(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x1c(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  sub    %rdx,%rax
  mov    %al,-0x2d(%rbp)
  movb   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L19
L60:
  movsbl -0x30(%rbp),%eax
  shl    $0x8,%eax
  mov    %al,-0x30(%rbp)
  movsbl -0x2d(%rbp),%eax
  cmp    %eax,-0x2c(%rbp)
  jge    L204
  mov    -0x2c(%rbp),%eax
  cltq
  movzbl -0x1c(%rbp,%rax,1),%eax
  or     %al,-0x30(%rbp)
L204:
  addl   $0x1,-0x2c(%rbp)
L19:
  cmpl   $0x3,-0x2c(%rbp)
  jle    L60
  movzbl -0x30(%rbp),%eax
L14:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L214
  call   <__stack_chk_fail@plt>
L214:
  add    $0x30,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

assistant: ```c
in_addr_t inet_network(const char *cp) {
  in_addr_t val, base, n;
  u_char c;
  in_addr_t parts[4], *pp = parts;
  int i;
again:
  val = 0;
  base = 10;
  if (*cp == '0')
    base = 8, cp++;
  if (*cp == 'x' || *cp == 'X')
    base = 16, cp++;
  while ((c = *cp)) {
    if (isdigit(c)) {
      val = (val * base) + (c - '0');
      cp++;
      continue;
    }
    if (base == 16 && isxdigit(c)) {
      val = (val << 4) + (c + 10 - (islower(c) ? 'a' : 'A'));
      cp++;
      continue;
    }
    break;
  }
  if (*cp == '.') {
    if (pp >= parts + 3)
      return (INADDR_NONE);
    *pp++ = val, cp++;
    goto again;
  }
  if (*cp && !isspace(*cp))
    return (INADDR_NONE);
  *pp++ = val;
  n = pp - parts;
  for (val = 0, i = 0; i < 4; i++) {
    val <<= 8;
    if (i < n)
      val |= parts[i] & 0xff;
  }
  return (val);
}
```