user: Converte this assembly snippet into its equivalent C code:

```asm
<longest_palindrome_expanding>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  lea    D7(%rip),%r8
  test   %eax,%eax
  je     L19
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  jmp    L208
  nopw   0x0(%rax,%rax,1)
L114:
  mov    %ebp,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <expand_around_center@plt>
  cmp    %eax,%r12d
  jge    L202
  mov    %eax,%edx
  mov    %ebp,%r13d
  mov    %eax,%r12d
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  sub    %edx,%r13d
L202:
  add    $0x1,%ebp
L208:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    %ebp,%eax
  jg     L114
  xor    %ebp,%ebp
  jmp    L229
  cs nopw 0x0(%rax,%rax,1)
L21:
  lea    0x1(%rbp),%r14d
  mov    %ebp,%esi
  mov    %rbx,%rdi
  mov    %r14d,%edx
  call   <expand_around_center@plt>
  cmp    %eax,%r12d
  jge    L167
  mov    %eax,%edx
  mov    %eax,%r12d
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  sub    %edx,%ebp
  lea    0x1(%rbp),%r13d
L167:
  mov    %r14d,%ebp
L229:
  mov    %rbx,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  cmp    %ebp,%eax
  jg     L21
  lea    0x1(%r12),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,%rdx
  mov    %rax,%r8
  test   %r12d,%r12d
  jle    L19
  movslq %r13d,%rsi
  mov    %rdx,%rcx
  lea    -0x1(%r12),%eax
  mov    %r12d,%edi
  lea    0x1(%rbx,%rsi,1),%r9
  sub    %r9,%rcx
  cmp    $0xe,%rcx
  jbe    L58
  cmp    $0x6,%eax
  jbe    L58
  cmp    $0xe,%eax
  jbe    L181
  mov    %r12d,%ecx
  mov    %rsi,%rdi
  mov    %rdx,%rax
  shr    $0x4,%ecx
  sub    %rdx,%rdi
  shl    $0x4,%rcx
  add    %rbx,%rdi
  add    %rdx,%rcx
  nopl   0x0(%rax,%rax,1)
L4:
  movdqu (%rax,%rdi,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L4
  mov    %r12d,%eax
  and    $0xfffffff0,%eax
  mov    %eax,%ecx
  add    %eax,%r13d
  cmp    %eax,%r12d
  je     L19
  mov    %r12d,%edi
  sub    %eax,%edi
  lea    -0x1(%rdi),%r9d
  cmp    $0x6,%r9d
  jbe    L133
L117:
  add    %rbx,%rsi
  mov    (%rsi,%rax,1),%rsi
  mov    %rsi,(%rdx,%rax,1)
  mov    %edi,%eax
  and    $0xfffffff8,%eax
  add    %eax,%r13d
  add    %eax,%ecx
  cmp    %eax,%edi
  je     L19
L133:
  movslq %r13d,%rax
  lea    0x1(%r13),%esi
  movzbl (%rbx,%rax,1),%edi
  movslq %ecx,%rax
  mov    %dil,(%rdx,%rax,1)
  lea    0x1(%rcx),%eax
  cmp    %eax,%r12d
  jle    L19
  movslq %esi,%rsi
  cltq
  lea    0x2(%r13),%edi
  movzbl (%rbx,%rsi,1),%esi
  mov    %sil,(%rdx,%rax,1)
  lea    0x2(%rcx),%eax
  cmp    %eax,%r12d
  jle    L19
  movslq %edi,%rdi
  cltq
  lea    0x3(%r13),%esi
  movzbl (%rbx,%rdi,1),%edi
  mov    %dil,(%rdx,%rax,1)
  lea    0x3(%rcx),%eax
  cmp    %eax,%r12d
  jle    L19
  movslq %esi,%rsi
  cltq
  lea    0x4(%r13),%edi
  movzbl (%rbx,%rsi,1),%esi
  mov    %sil,(%rdx,%rax,1)
  lea    0x4(%rcx),%eax
  cmp    %eax,%r12d
  jle    L19
  movslq %edi,%rdi
  cltq
  lea    0x5(%r13),%esi
  movzbl (%rbx,%rdi,1),%edi
  mov    %dil,(%rdx,%rax,1)
  lea    0x5(%rcx),%eax
  cmp    %eax,%r12d
  jle    L19
  movslq %esi,%rsi
  cltq
  add    $0x6,%ecx
  add    $0x6,%r13d
  movzbl (%rbx,%rsi,1),%esi
  mov    %sil,(%rdx,%rax,1)
  cmp    %ecx,%r12d
  jle    L19
  movslq %r13d,%r13
  movslq %ecx,%rcx
  movzbl (%rbx,%r13,1),%eax
  mov    %al,(%rdx,%rcx,1)
L19:
  pop    %rbx
  mov    %r8,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L58:
  sub    %rdx,%rsi
  add    %rdx,%r12
  add    %rsi,%rbx
  nopl   0x0(%rax)
L134:
  movzbl (%rbx,%rdx,1),%eax
  add    $0x1,%rdx
  mov    %al,-0x1(%rdx)
  cmp    %r12,%rdx
  jne    L134
  pop    %rbx
  mov    %r8,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L181:
  xor    %eax,%eax
  xor    %ecx,%ecx
  jmp    L117
```

tool_calls: name: disassemble_data
arguments: data_label: D7
datatype: string

tool: 

assistant: ```c
char *longest_palindrome_expanding(char *s) {
  int max_sub = 0;
  int max_start;
  int tmp_sub;
  if (strlen(s) == 0)
    return "";
  for (int c = 0; c < strlen(s); c++) {
    tmp_sub = expand_around_center(s, c, c);
    if (tmp_sub > max_sub) {
      max_sub = tmp_sub;
      max_start = c - (max_sub / 2);
    }
  }
  for (int c = 0; c < strlen(s) - 1; c++) {
    tmp_sub = expand_around_center(s, c, c + 1);
    if (tmp_sub > max_sub) {
      max_sub = tmp_sub;
      max_start = c - (max_sub / 2) + 1;
    }
  }
  char *out = (char *)calloc(max_sub + 1, sizeof(char));
  for (int c = 0; c < max_sub; c++)
    out[c] = s[max_start++];
  return out;
}
```