user: 请从给定的汇编指令推导出C源代码：

```asm
<test_any>:
  endbr64
  push   %r15
  lea    D23(%rip),%r15
  push   %r14
  lea    D29(%rip),%r14
  push   %r13
  lea    D5(%rip),%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  lea    D1(%rip),%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  call   <assert@plt>
  xor    %ecx,%ecx
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  xor    %edx,%edx
  xor    %esi,%esi
  mov    $0x1,%ecx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  xor    %ecx,%ecx
  xor    %esi,%esi
  mov    $0xffffffffffffffff,%rdx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  xor    %ecx,%ecx
  xor    %esi,%esi
  mov    %rbx,%rdx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x1,%ecx
  mov    %r13,%rdx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x1,%ecx
  mov    %r15,%rdx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x2,%ecx
  mov    %r13,%rdx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0x2,%ecx
  mov    %r14,%rdx
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  xor    %ecx,%ecx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  movl   $0x78,(%rsp)
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  test   %eax,%eax
  jne    L49
  xor    %edi,%edi
  cmpl   $0x78,(%rsp)
  sete   %dil
L49:
  call   <assert@plt>
  mov    $0x1,%ecx
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  or     (%rsp),%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  mov    $0x1,%ecx
  mov    %r15,%rdx
  mov    %r12,%rsi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  jne    L28
  xor    %edi,%edi
  cmpl   $0x62,(%rsp)
  sete   %dil
L28:
  call   <assert@plt>
  mov    $0x2,%ecx
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  or     (%rsp),%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  mov    $0x2,%ecx
  mov    %r14,%rdx
  mov    %r12,%rsi
  call   <charset_mbtowc@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  jne    L42
  xor    %edi,%edi
  cmpl   $0x63,(%rsp)
  sete   %dil
L42:
  call   <assert@plt>
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <charset_wctomb@plt>
  xor    %edi,%edi
  lea    0x6(%rsp),%r12
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x2e2e,%eax
  mov    %rbp,%rdi
  xor    %edx,%edx
  mov    %r12,%rsi
  mov    %ax,0x6(%rsp)
  call   <charset_wctomb@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  je     L62
L38:
  call   <assert@plt>
  mov    %rbp,%rdi
  mov    $0x78,%edx
  mov    %r12,%rsi
  call   <charset_wctomb@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  je     L93
L19:
  call   <assert@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L86
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L62:
  cmpb   $0x0,0x6(%rsp)
  jne    L38
  xor    %edi,%edi
  cmpb   $0x2e,0x7(%rsp)
  sete   %dil
  jmp    L38
  nopl   0x0(%rax)
L93:
  cmpb   $0x78,0x6(%rsp)
  jne    L19
  xor    %edi,%edi
  cmpb   $0x2e,0x7(%rsp)
  sete   %dil
  jmp    L19
L86:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D23
type_infered: string
name: unpack_data
arguments: data_tag: D29
type_infered: string
name: unpack_data
arguments: data_tag: D5
type_infered: string
name: unpack_data
arguments: data_tag: D1
type_infered: string

tool: D23: b

tool: D29: c

tool: 

tool: D1: a

assistant: ```c
void test_any(struct charset *charset) {
  int wc;
  char s[2];
  assert(charset);
  assert(charset_mbtowc(charset, 0, 0, 0) == 0);
  assert(charset_mbtowc(charset, 0, 0, 1) == 0);
  assert(charset_mbtowc(charset, 0, (char *)(-1), 0) == 0);
  assert(charset_mbtowc(charset, 0, "a", 0) == 0);
  assert(charset_mbtowc(charset, 0, "", 1) == 0);
  assert(charset_mbtowc(charset, 0, "b", 1) == 1);
  assert(charset_mbtowc(charset, 0, "", 2) == 0);
  assert(charset_mbtowc(charset, 0, "c", 2) == 1);
  wc = 'x';
  assert(charset_mbtowc(charset, &wc, "a", 0) == 0 && wc == 'x');
  assert(charset_mbtowc(charset, &wc, "", 1) == 0 && wc == 0);
  assert(charset_mbtowc(charset, &wc, "b", 1) == 1 && wc == 'b');
  assert(charset_mbtowc(charset, &wc, "", 2) == 0 && wc == 0);
  assert(charset_mbtowc(charset, &wc, "c", 2) == 1 && wc == 'c');
  assert(charset_wctomb(charset, 0, 0) == 0);
  s[0] = s[1] = '.';
  assert(charset_wctomb(charset, s, 0) == 1 && s[0] == '\0' && s[1] == '.');
  assert(charset_wctomb(charset, s, 'x') == 1 && s[0] == 'x' && s[1] == '.');
}
```