user: 下面的汇编指令对应的C源代码是什么：

```asm
<str_trim>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jg     L6
  lea    D17(%rip),%rax
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <m2s_opencl_panic@plt>
L6:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L88
L24:
  addl   $0x1,-0x14(%rbp)
  subl   $0x1,-0xc(%rbp)
L88:
  cmpl   $0x0,-0xc(%rbp)
  js     L94
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L24
L94:
  mov    -0x14(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  setle  %al
  movzbl %al,%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <assert@plt>
  mov    -0x14(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jne    L59
  mov    -0x28(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L101
L59:
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L56
L89:
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0xc(%rbp)
L56:
  mov    -0xc(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jge    L83
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L89
L83:
  mov    -0x8(%rbp),%eax
  sub    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  setg   %al
  movzbl %al,%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <assert@plt>
  mov    -0x2c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x4(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <MIN@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  not    %eax
  shr    $0x1f,%eax
  movzbl %al,%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <assert@plt>
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0xc(%rbp)
  jmp    L80
L42:
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0xc(%rbp)
L80:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L42
L101:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D17
type_infered: string
name: retrieve_data
arguments: data_tag: D13
type_infered: string

tool: D17: str_trim

tool: D13: %s: invalid value for 'size'

assistant: ```c
void str_trim(char *dest, int size, char *src) {
  int len;
  int new_len;
  int right_trim;
  int left_trim;
  int i;
  if (size < 1)
    m2s_opencl_panic("%s: invalid value for 'size'", __FUNCTION__);
  len = strlen(src);
  right_trim = 0;
  for (i = len - 1; i >= 0 && isspace(src[i]); i--)
    right_trim++;
  assert(right_trim <= len);
  if (right_trim == len) {
    *dest = '\0';
    return;
  }
  left_trim = 0;
  for (i = 0; i < len && isspace(src[i]); i++)
    left_trim++;
  new_len = len - left_trim - right_trim;
  assert(new_len > 0);
  new_len = MIN(new_len, size - 1);
  assert(new_len >= 0);
  dest[new_len] = '\0';
  for (i = 0; i < new_len; i++)
    dest[i] = src[i + left_trim];
}
```