user: Demonstrate the C code that generates the assembly output below:

```asm
<del_ip>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x58,%rsp
  lea    0x40(%rsp),%r14
  mov    %edx,%r12d
  mov    %edi,%r13d
  mov    $0x1000,%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x1048(%rsp)
  xor    %eax,%eax
  mov    %rsi,%rbx
  mov    %r14,%rdi
  xor    %esi,%esi
  mov    %rcx,%r15
  call   <memset@plt>
  mov    $0x20,%edi
  call   <NLMSG_LENGTH@plt>
  mov    D0(%rip),%rdx
  mov    D20(%rip),%rcx
  mov    %r14,%rdi
  movd   %eax,%xmm0
  mov    (%rdx),%edx
  mov    %edx,0x48(%rsp)
  mov    D14(%rip),%rdx
  mov    (%rdx),%edx
  or     (%rcx),%edx
  movd   %edx,%xmm1
  punpckldq %xmm1,%xmm0
  movq   %xmm0,0x40(%rsp)
  call   <NLMSG_DATA@plt>
  mov    %r12d,(%rax)
  mov    %rax,%rdi
  mov    D1(%rip),%rax
  movq   $0x0,0x10(%rdi)
  mov    (%rax),%eax
  mov    %eax,0x18(%rdi)
  movabs $0x200000010,%rax
  mov    %rax,0x4(%rdi)
  call   <IFA_RTA@plt>
  mov    %rax,%rbp
  mov    D31(%rip),%rax
  mov    %rbp,%rdi
  mov    (%rax),%eax
  mov    %eax,0x4(%rbp)
  call   <RTA_DATA@plt>
  mov    %r15,%rdx
  mov    %r12d,%edi
  mov    %eax,%esi
  call   <pton@plt>
  mov    %eax,%edi
  call   <RTA_LENGTH@plt>
  mov    0x40(%rsp),%edi
  mov    %eax,0x0(%rbp)
  call   <NLMSG_ALIGN@plt>
  mov    $0x1000,%esi
  add    0x0(%rbp),%eax
  mov    %rbp,%rdi
  sub    %eax,%esi
  mov    %eax,0x40(%rsp)
  call   <RTA_NEXT@plt>
  mov    %rax,%rbp
  mov    D32(%rip),%rax
  mov    %rbp,%rdi
  mov    (%rax),%eax
  mov    %eax,0x4(%rbp)
  call   <RTA_DATA@plt>
  mov    %r15,%rdx
  mov    %r12d,%edi
  mov    %eax,%esi
  call   <pton@plt>
  mov    %eax,%edi
  call   <RTA_LENGTH@plt>
  pxor   %xmm0,%xmm0
  lea    0x10(%rsp),%rsi
  xor    %edx,%edx
  mov    %eax,0x0(%rbp)
  add    0x40(%rsp),%eax
  mov    %r13d,%edi
  mov    %eax,0x40(%rsp)
  cltq
  mov    %rax,0x8(%rsp)
  mov    %rsp,%rax
  mov    %r14d,(%rsp)
  mov    %ebx,0x10(%rsp)
  movl   $0x4,0x14(%rsp)
  mov    %eax,0x18(%rsp)
  movl   $0x1,0x1c(%rsp)
  movq   $0x0,0x30(%rsp)
  movaps %xmm0,0x20(%rsp)
  call   <sendmsg@plt>
  sar    $0x1f,%eax
  mov    0x1048(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L3
  add    $0x1058,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int del_ip(int fd, struct sockaddr_nl *sa, int domain, const char *ip) {
  char buf[4096];
  int ip_len = 0;
  memset(buf, 0, 4096);
  struct nlmsghdr *nl;
  nl = (struct nlmsghdr *)buf;
  nl->nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
  nl->nlmsg_type = RTM_DELADDR;
  nl->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
  struct ifaddrmsg *ifa;
  ifa = (struct ifaddrmsg *)NLMSG_DATA(nl);
  ifa->ifa_family = domain;
  ifa->ifa_prefixlen = 16;
  ifa->ifa_flags = IFA_F_PERMANENT;
  ifa->ifa_scope = 0;
  ifa->ifa_index = 2;
  struct rtattr *rta = (struct rtattr *)IFA_RTA(ifa);
  rta->rta_type = IFA_LOCAL;
  ip_len = pton(domain, RTA_DATA(rta), ip);
  rta->rta_len = RTA_LENGTH(ip_len);
  nl->nlmsg_len = NLMSG_ALIGN(nl->nlmsg_len) + rta->rta_len;
  int l = 4096 - nl->nlmsg_len;
  rta = (struct rtattr *)RTA_NEXT(rta, l);
  rta->rta_type = IFA_ADDRESS;
  ip_len = pton(domain, RTA_DATA(rta), ip);
  rta->rta_len = RTA_LENGTH(ip_len);
  nl->nlmsg_len += rta->rta_len;
  struct iovec iov = {nl, nl->nlmsg_len};
  struct msghdr msg = {sa, sizeof(*sa), &iov, 1, NULL, 0, 0};
  int r = sendmsg(fd, &msg, 0);
  return (r < 0) ? -1 : 0;
}
```