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

```asm
<parse_hostnetworkmask>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %rdi,-0x138(%rbp)
  mov    %rsi,-0x140(%rbp)
  mov    %rdx,-0x148(%rbp)
  mov    %rcx,-0x150(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x138(%rbp),%rcx
  lea    -0x110(%rbp),%rax
  mov    $0xff,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  lea    -0x110(%rbp),%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,-0x118(%rbp)
  cmpq   $0x0,-0x118(%rbp)
  je     L40
  mov    -0x118(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x118(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <parse_mask@plt>
  mov    %rax,-0x120(%rbp)
  jmp    L90
L40:
  mov    $0x0,%edi
  call   <parse_mask@plt>
  mov    %rax,-0x120(%rbp)
L90:
  mov    -0x120(%rbp),%rdx
  mov    -0x148(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <inaddrcpy@plt>
  mov    -0x148(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L82
  lea    -0x110(%rbp),%rax
  lea    D8(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L82:
  mov    -0x150(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <parse_hostnetwork@plt>
  mov    -0x140(%rbp),%rdx
  mov    %rax,(%rdx)
  mov    -0x140(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x120(%rbp)
  mov    -0x150(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x124(%rbp)
  movl   $0x0,-0x130(%rbp)
  movl   $0x0,-0x12c(%rbp)
  jmp    L17
L13:
  mov    -0x12c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x12c(%rbp)
  movslq %eax,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x120(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x148(%rbp),%rdx
  mov    (%rdx),%rdx
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x120(%rbp),%rax
  add    %rsi,%rax
  and    %rcx,%rdx
  mov    %rdx,(%rax)
  movl   $0x0,-0x128(%rbp)
  jmp    L60
L55:
  mov    -0x128(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x12c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rcx
  mov    -0x120(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L95
  mov    -0x150(%rbp),%rax
  mov    (%rax),%eax
  lea    -0x1(%rax),%edx
  mov    -0x150(%rbp),%rax
  mov    %edx,(%rax)
  subl   $0x1,-0x12c(%rbp)
  jmp    L93
L95:
  addl   $0x1,-0x128(%rbp)
L60:
  mov    -0x12c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x128(%rbp)
  jl     L55
L93:
  addl   $0x1,-0x130(%rbp)
L17:
  mov    -0x130(%rbp),%eax
  cmp    -0x124(%rbp),%eax
  jl     L13
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L29
  call   <__stack_chk_fail@plt>
L29:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D8
data_type: string

tool: D8: 0.0.0.0

assistant: ```c
void parse_hostnetworkmask(const char *name, struct in_addr **addrpp, struct in_addr *maskp, unsigned int *naddrs) {
  struct in_addr *addrp;
  char buf[256];
  char *p;
  int i, j, k, n;
  strncpy(buf, name, sizeof(buf) - 1);
  if ((p = strrchr(buf, '/')) != NULL) {
    *p = '\0';
    addrp = parse_mask(p + 1);
  } else
    addrp = parse_mask(NULL);
  inaddrcpy(maskp, addrp);
  if (maskp->s_addr == 0L)
    strcpy(buf, "0.0.0.0");
  addrp = *addrpp = parse_hostnetwork(buf, naddrs);
  n = *naddrs;
  for (i = 0, j = 0; i < n; i++) {
    addrp[j++].s_addr &= maskp->s_addr;
    for (k = 0; k < j - 1; k++) {
      if (addrp[k].s_addr == addrp[j - 1].s_addr) {
        (*naddrs)--;
        j--;
        break;
      }
    }
  }
}
```