user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<inet_network>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    -0x2c(%rbp),%rax
  mov    %rax,-0x38(%rbp)
L186:
  mov    $0x0,%ebx
  mov    $0xa,%r13d
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L54
  addq   $0x1,-0x48(%rbp)
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L244
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L11
L244:
  mov    $0x10,%r13d
  addq   $0x1,-0x48(%rbp)
  jmp    L37
L11:
  mov    $0x8,%r13d
L37:
  jmp    L54
L116:
  movsbl %r12b,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L220
  mov    %ebx,%eax
  mov    %r13d,%edx
  imul   %edx,%eax
  mov    %r12d,%edx
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %eax,%ebx
  addq   $0x1,-0x48(%rbp)
  jmp    L54
L220:
  cmp    $0x10,%r13b
  jne    L163
  movsbl %r12b,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L163
  mov    %ebx,%eax
  shl    $0x4,%eax
  mov    %eax,%ebx
  mov    %r12d,%r14d
  movsbl %r12b,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L35
  mov    $0x61,%edx
  jmp    L147
L35:
  mov    $0x41,%edx
L147:
  mov    %r14d,%eax
  sub    %edx,%eax
  add    %ebx,%eax
  add    $0xa,%eax
  mov    %eax,%ebx
  addq   $0x1,-0x48(%rbp)
  nop
L54:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%r12d
  test   %r12b,%r12b
  jne    L116
  jmp    L155
L163:
  nop
L155:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L246
  lea    -0x2c(%rbp),%rax
  add    $0x4,%rax
  cmp    %rax,-0x38(%rbp)
  jb     L238
  mov    D1(%rip),%rax
  movzbl (%rax),%eax
  jmp    L132
L238:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %bl,(%rax)
  addq   $0x1,-0x48(%rbp)
  jmp    L186
L246:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L70
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L70
  mov    D1(%rip),%rax
  movzbl (%rax),%eax
  jmp    L132
L70:
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %bl,(%rax)
  lea    -0x2c(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  sub    %rdx,%rax
  mov    %eax,%r13d
  cmp    $0x4,%r13b
  jle    L76
  mov    D1(%rip),%rax
  movzbl (%rax),%eax
  jmp    L132
L76:
  mov    $0x0,%ebx
  mov    $0x0,%r12d
  jmp    L53
L117:
  movsbl %bl,%eax
  shl    $0x8,%eax
  mov    %eax,%ebx
  movslq %r12d,%rax
  movzbl -0x2c(%rbp,%rax,1),%eax
  or     %eax,%ebx
  add    $0x1,%r12d
L53:
  movsbl %r13b,%eax
  cmp    %eax,%r12d
  jl     L117
  mov    %ebx,%eax
L132:
  mov    -0x28(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L242
  call   <__stack_chk_fail@plt>
L242:
  add    $0x30,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
```

assistant: ```c
in_addr_t inet_network(const char *cp) {
  register in_addr_t val, base, n;
  register char c;
  in_addr_t 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);
}
```