user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<config_send>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x48,%rsp
  mov    0x2080(%rsp),%rbp
  mov    %rcx,0x8(%rsp)
  lea    0x30(%rsp),%rbx
  mov    %edi,%r13d
  mov    %r8,%r12
  mov    %rsi,0x18(%rsp)
  mov    %rbx,%rdi
  xor    %esi,%esi
  mov    %r9,%r15
  mov    %rdx,0x10(%rsp)
  mov    $0x400,%edx
  lea    0x28(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x2038(%rsp)
  xor    %eax,%eax
  call   <memset@plt>
  lea    0x58(%rsp),%rdi
  mov    %r14,%rsi
  xor    %eax,%eax
  movdqa D6(%rip),%xmm0
  mov    $0x1,%edx
  movq   $0x0,0x50(%rsp)
  movq   $0xff,0x28(%rsp)
  movaps %xmm0,0x30(%rsp)
  pxor   %xmm0,%xmm0
  movaps %xmm0,0x40(%rsp)
  call   <memcpy@plt>
  mov    0x18(%rsp),%rsi
  lea    0x60(%rsp),%rdi
  xor    %eax,%eax
  mov    $0x4,%edx
  call   <memcpy@plt>
  mov    $0x1,%edx
  mov    %r14,%rsi
  xor    %eax,%eax
  lea    0x80(%rsp),%rdi
  movq   $0xfe,0x28(%rsp)
  call   <memcpy@plt>
  mov    0x10(%rsp),%rsi
  mov    $0x4,%edx
  xor    %eax,%eax
  lea    0x88(%rsp),%rdi
  call   <memcpy@plt>
  mov    $0x1,%edx
  mov    %r14,%rsi
  xor    %eax,%eax
  lea    0xa8(%rsp),%rdi
  movq   $0xfd,0x28(%rsp)
  call   <memcpy@plt>
  mov    0x8(%rsp),%rsi
  mov    $0x4,%edx
  xor    %eax,%eax
  lea    0xb0(%rsp),%rdi
  call   <memcpy@plt>
  mov    $0x1,%edx
  mov    %r14,%rsi
  xor    %eax,%eax
  lea    0xd0(%rsp),%rdi
  movq   $0xfc,0x28(%rsp)
  call   <memcpy@plt>
  mov    %r12,%rsi
  mov    $0x4,%edx
  xor    %eax,%eax
  lea    0xd8(%rsp),%rdi
  mov    $0x19,%r12d
  call   <memcpy@plt>
  test   %r15,%r15
  je     L128
  mov    $0x1,%edx
  mov    %r14,%rsi
  lea    0xf8(%rsp),%rdi
  xor    %eax,%eax
  movq   $0xfb,0x28(%rsp)
  call   <memcpy@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x100(%rsp),%rdi
  mov    %r15,%rsi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <memcpy@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1b(%rax),%r12d
L128:
  cmpq   $0x0,0x0(%rbp)
  jne    L36
  cmpq   $0x0,0x8(%rbp)
  jne    L36
  cmpq   $0x0,0x10(%rbp)
  jne    L36
  cmpq   $0x0,0x18(%rbp)
  jne    L36
  cmpq   $0x0,0x20(%rbp)
  jne    L36
  cmpq   $0x0,0x28(%rbp)
  jne    L36
  cmpq   $0x0,0x30(%rbp)
  jne    L36
  cmpq   $0x0,0x38(%rbp)
  jne    L36
  cmpq   $0x0,0x40(%rbp)
  jne    L36
  cmpq   $0x0,0x48(%rbp)
  jne    L36
  cmpq   $0x0,0x50(%rbp)
  jne    L36
  cmpq   $0x0,0x58(%rbp)
  jne    L36
  cmpq   $0x0,0x60(%rbp)
  jne    L36
  cmpq   $0x0,0x68(%rbp)
  jne    L36
  cmpq   $0x0,0x70(%rbp)
  jne    L36
  cmpq   $0x0,0x78(%rbp)
  jne    L36
L96:
  lea    -0x5(%r12),%eax
  mov    %r12d,%edx
  mov    %rbx,%rsi
  mov    %r13d,%edi
  movzbl %al,%ecx
  cltq
  shr    $0x8,%rax
  movq   %rcx,%xmm0
  movq   %rax,%xmm1
  punpcklqdq %xmm1,%xmm0
  movups %xmm0,0x48(%rsp)
  call   <write@plt>
  mov    0x2038(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  add    $0x2048,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L36:
  movslq %r12d,%r15
  mov    $0x1,%edx
  mov    %r14,%rsi
  xor    %eax,%eax
  shl    $0x3,%r15
  add    $0x11,%r12d
  movq   $0xfa,0x28(%rsp)
  lea    (%rbx,%r15,1),%rdi
  call   <memcpy@plt>
  lea    0x8(%rbx,%r15,1),%rdi
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0x10,%edx
  call   <memcpy@plt>
  jmp    L96
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D6
type_guessed: byte[16]

tool: {"D6": [0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
int config_send(const int sockfd, const uint8_t ip_address[4], const uint8_t netmask[4], const uint8_t gateway[4], const uint8_t nameserver[4], const char *label, const uint8_t aes_key[16]) {
  ssize_t n = 0;
  uint8_t config_function_code;
  uint8_t buffer[1024];
  int i;
  memset(buffer, 0, 1024);
  buffer[n++] = 0x17;
  buffer[n++] = 1;
  buffer[n++] = 0;
  buffer[n++] = 0x00;
  buffer[n++] = 0x00;
  config_function_code = 255;
  memcpy(buffer + n, &config_function_code, 1);
  n++;
  memcpy(buffer + n, ip_address, 4);
  n += 4;
  config_function_code = 254;
  memcpy(buffer + n, &config_function_code, 1);
  n++;
  memcpy(buffer + n, netmask, 4);
  n += 4;
  config_function_code = 253;
  memcpy(buffer + n, &config_function_code, 1);
  n++;
  memcpy(buffer + n, gateway, 4);
  n += 4;
  config_function_code = 252;
  memcpy(buffer + n, &config_function_code, 1);
  n++;
  memcpy(buffer + n, nameserver, 4);
  n += 4;
  if (NULL != label) {
    config_function_code = 251;
    memcpy(buffer + n, &config_function_code, 1);
    n++;
    memcpy(buffer + n, label, strlen(label));
    n += strlen(label) + 1;
  }
  for (i = 0; i < 16; i++) {
    if (aes_key[i] != 0) {
      break;
    }
  }
  if (i != 16) {
    config_function_code = 250;
    memcpy(buffer + n, &config_function_code, 1);
    n++;
    memcpy(buffer + n, aes_key, 16);
    n += 16;
  }
  size_t packet_length = n - 5;
  buffer[3] = packet_length & 0xff;
  buffer[4] = packet_length >> 8;
  write(sockfd, buffer, n);
  return n;
}
```