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

```asm
<inet_network>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  movzbl (%rbx),%r15d
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x14(%rsp),%rax
  movb   $0xa,0x7(%rsp)
  mov    %rax,0x8(%rsp)
  mov    %rax,%r12
  cmp    $0x30,%r15b
  je     L144
  nopl   (%rax)
L54:
  test   %r15b,%r15b
  je     L182
L160:
  add    $0x1,%rbx
  xor    %ebp,%ebp
L99:
  movsbl %r15b,%r14d
  lea    -0x1(%rbx),%r13
  mov    %r14d,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L92
  cmpb   $0x10,0x7(%rsp)
  jne    L186
  mov    %r14d,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  jne    L83
L186:
  movzbl 0x0(%r13),%r15d
  cmp    $0x2e,%r15b
  jne    L19
  lea    0x18(%rsp),%rax
  cmp    %rax,%r12
  je     L86
  movzbl 0x1(%r13),%r15d
  add    $0x1,%r12
  lea    0x1(%r13),%rbx
  movb   $0xa,0x7(%rsp)
  mov    %bpl,-0x1(%r12)
  cmp    $0x30,%r15b
  jne    L54
L144:
  movzbl 0x1(%rbx),%r15d
  mov    %r15d,%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L98
  movzbl 0x2(%rbx),%r15d
  movb   $0x10,0x7(%rsp)
  add    $0x2,%rbx
  test   %r15b,%r15b
  jne    L160
  nopl   0x0(%rax)
L182:
  mov    %r15b,(%r12)
  add    $0x1,%r12
  sub    0x8(%rsp),%r12
  cmp    $0x4,%r12b
  jg     L86
  xor    %eax,%eax
  test   %r12b,%r12b
  jle    L100
  movsbl %r12b,%eax
  sub    $0x1,%eax
  cltq
  movzbl 0x14(%rsp,%rax,1),%eax
  jmp    L100
  nopw   0x0(%rax,%rax,1)
L92:
  movzbl 0x7(%rsp),%eax
  imul   %ebp,%eax
  mov    %eax,%ebp
  lea    -0x30(%r15,%rbp,1),%ebp
L162:
  movzbl (%rbx),%r15d
  add    $0x1,%rbx
  test   %r15b,%r15b
  jne    L99
L21:
  mov    %ebp,%r15d
  jmp    L182
  nopl   (%rax)
L83:
  mov    %r14d,%edi
  shl    $0x4,%ebp
  call   <islower@plt>
  lea    0xa(%r15,%rbp,1),%ebp
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0xffffffe0,%eax
  add    $0x61,%eax
  sub    %eax,%ebp
  jmp    L162
L19:
  test   %r15b,%r15b
  je     L21
  movsbl %r15b,%edi
  mov    %ebp,%r15d
  call   <isspace@plt>
  test   %eax,%eax
  jne    L182
  nopl   0x0(%rax)
L86:
  mov    D7(%rip),%rax
  movzbl (%rax),%eax
L100:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L67
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L98:
  movb   $0x8,0x7(%rsp)
  add    $0x1,%rbx
  jmp    L54
L67:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
u_int32_t inet_network(const char *cp) {
  register u_long val, base, n;
  register char c;
  u_long parts[4], *pp = parts;
  register int i;
again:
  val = 0;
  base = 10;
  if (*cp == '0') {
    if (*++cp == 'x' || *cp == 'X')
      base = 16, cp++;
    else
      base = 8;
  }
  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 + 4)
      return (INADDR_NONE);
    *pp++ = val, cp++;
    goto again;
  }
  if (*cp && !isspace(*cp))
    return (INADDR_NONE);
  *pp++ = val;
  n = pp - parts;
  if (n > 4)
    return (INADDR_NONE);
  for (val = 0, i = 0; i < n; i++) {
    val <<= 8;
    val |= parts[i] & 0xff;
  }
  return (val);
}
```