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

```asm
<inet_network>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x50(%rbp),%rax
  mov    %rax,-0x58(%rbp)
L52:
  mov    $0x0,%r12d
  mov    $0xa,%r14d
  movzbl (%rbx),%eax
  cmp    $0x30,%al
  jne    L83
  mov    $0x8,%r14d
  add    $0x1,%rbx
L83:
  movzbl (%rbx),%eax
  cmp    $0x78,%al
  je     L109
  movzbl (%rbx),%eax
  cmp    $0x58,%al
  jne    L118
L109:
  mov    $0x10,%r14d
  add    $0x1,%rbx
  jmp    L118
L171:
  movsbl %r13b,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L96
  mov    %r12d,%edx
  imul   %r14d,%edx
  movsbl %r13b,%eax
  sub    $0x30,%eax
  lea    (%rdx,%rax,1),%r12d
  add    $0x1,%rbx
  jmp    L118
L96:
  cmp    $0x10,%r14d
  jne    L97
  movsbl %r13b,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L97
  mov    %r12d,%r15d
  shl    $0x4,%r15d
  movsbl %r13b,%eax
  lea    0xa(%rax),%r12d
  movsbl %r13b,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L91
  mov    $0x61,%edx
  jmp    L211
L91:
  mov    $0x41,%edx
L211:
  mov    %r12d,%eax
  sub    %edx,%eax
  lea    (%r15,%rax,1),%r12d
  add    $0x1,%rbx
  nop
L118:
  movzbl (%rbx),%r13d
  test   %r13b,%r13b
  jne    L171
  jmp    L19
L97:
  nop
L19:
  movzbl (%rbx),%eax
  cmp    $0x2e,%al
  jne    L125
  lea    -0x50(%rbp),%rax
  add    $0x10,%rax
  cmp    %rax,-0x58(%rbp)
  jb     L213
  mov    $0xffffffff,%eax
  jmp    L93
L213:
  mov    -0x58(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  mov    %r12d,(%rax)
  add    $0x1,%rbx
  jmp    L52
L125:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L152
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L152
  mov    $0xffffffff,%eax
  jmp    L93
L152:
  mov    -0x58(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  mov    %r12d,(%rax)
  lea    -0x50(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  sub    %rdx,%rax
  sar    $0x2,%rax
  mov    %eax,%r13d
  cmp    $0x4,%r13d
  jle    L100
  mov    $0xffffffff,%eax
  jmp    L93
L100:
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  jmp    L6
L27:
  shl    $0x8,%r12d
  movslq %ebx,%rax
  mov    -0x50(%rbp,%rax,4),%eax
  movzbl %al,%eax
  or     %eax,%r12d
  add    $0x1,%ebx
L6:
  cmp    %r13d,%ebx
  jl     L27
  mov    %r12d,%eax
L93:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L149
  call   <__stack_chk_fail@plt>
L149:
  add    $0x38,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
u_long inet_network(register 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')
    base = 8, cp++;
  if (*cp == 'x' || *cp == 'X')
    base = 16, cp++;
  while ((c = *cp) != '\0') {
    if (isdigit(c)) {
      val = (val * base) + ((u_long)c - '0');
      cp++;
      continue;
    }
    if (base == 16 && isxdigit(c)) {
      val = (val << 4) + ((u_long)c + 10 - (islower(c) ? 'a' : 'A'));
      cp++;
      continue;
    }
    break;
  }
  if (*cp == '.') {
    if (pp >= parts + 4)
      return (-1);
    *pp++ = val, cp++;
    goto again;
  }
  if (*cp && !isspace(*cp))
    return (-1);
  *pp++ = val;
  n = pp - parts;
  if (n > 4)
    return (-1);
  for (val = 0, i = 0; i < n; i++) {
    val <<= 8;
    val |= parts[i] & 0xff;
  }
  return (val);
}
```