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

```asm
<filt_f_message>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  mov    $0x3e,%esi
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  call   <strchr@plt>
  mov    $0x3c,%esi
  mov    %r12,%rdi
  mov    %rax,%rbx
  call   <strchr@plt>
  lea    D14(%rip),%rsi
  mov    %r12,%rdi
  mov    %rax,%r13
  call   <strstr@plt>
  xor    %r8d,%r8d
  mov    %rax,%rbp
  test   %rax,%rax
  je     L87
L100:
  mov    %rbx,%r15
  mov    %r12,%rsi
  mov    %r8d,0xc(%rsp)
  sub    %r13,%r15
  lea    0x10(%rsp),%r13
  lea    0x1(%r15),%edx
  mov    %r13,%rdi
  lea    0x1(%r13,%r15,1),%r15
  call   <strncpy@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %r14,%rcx
  lea    D8(%rip),%rdx
  mov    %r15,%rdi
  lea    0x5(%rax),%esi
  call   <snprintf@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  lea    0x1(%rbx),%rcx
  mov    %rbp,%rbx
  cltq
  sub    %rcx,%rbx
  lea    0x4(%r15,%rax,1),%r14
  lea    D41(%rip),%r15
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    %r15,%rdx
  lea    -0x1(%r14,%rbx,1),%r14
  call   <snprintf@plt>
  mov    0xc(%rsp),%r8d
  test   %r8d,%r8d
  jne    L43
  lea    D9(%rip),%rdi
  call   <strlen@plt>
  cltq
  lea    0x0(%rbp,%rax,1),%rcx
L15:
  mov    %r13d,%eax
  mov    %r15,%rdx
  mov    %r14,%rdi
  sub    %r14d,%eax
  lea    0x100(%rax),%esi
  call   <snprintf@plt>
  mov    $0x100,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L102
  add    $0x128,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L43:
  mov    $0x3a,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  mov    %rax,%rcx
  jmp    L15
  nopw   0x0(%rax,%rax,1)
L87:
  mov    $0x28,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L41
  lea    D21(%rip),%rsi
  mov    %r12,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L8
L40:
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L39
  mov    $0x2,%r8d
  jmp    L100
  nopl   0x0(%rax)
L8:
  lea    D66(%rip),%rsi
  mov    %r12,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L40
L39:
  lea    D2(%rip),%rdi
  call   <strlen@plt>
  mov    $0x3,%r8d
  movslq %eax,%rbp
  add    %r12,%rbp
  jmp    L100
L102:
  call   <__stack_chk_fail@plt>
L41:
  mov    $0x1,%r8d
  jmp    L100
```

tool_calls: name: retrieve_data
arguments: tag: D14
type_guessed: string
name: retrieve_data
arguments: tag: D8
type_guessed: string
name: retrieve_data
arguments: tag: D41
type_guessed: string
name: retrieve_data
arguments: tag: D9
type_guessed: string
name: retrieve_data
arguments: tag: D21
type_guessed: string
name: retrieve_data
arguments: tag: D66
type_guessed: string
name: retrieve_data
arguments: tag: D2
type_guessed: string

tool: D14: EZP_

tool: D8: 	<%s>	

tool: D41: %s

tool: D9: EZP_XXX

tool: D21: ]: 

tool: D66: : 

tool: D2: <13>Jul 27 11:27:46

assistant: ```c
void filt_f_message(char *msg, char *keycat) {
  char *p1, *p2, *p3;
  char dst[256];
  char *cur = &dst[0];
  int n;
  int check_EZP = 0;
  p1 = strchr(msg, '>');
  p2 = strchr(msg, '<');
  p3 = strstr(msg, "EZP_");
  if (!p3) {
    p3 = strstr(msg, "(");
    check_EZP = 1;
  }
  if (!p3) {
    p3 = strstr(msg, "]: ");
    if (!p3) {
      p3 = strstr(msg, ": ");
    }
    if (p3) {
      p3 = strrchr(p3, ' ');
      check_EZP = 2;
    }
  }
  if (!p3) {
    p3 = msg + strlen("<13>Jul 27 11:27:46");
    check_EZP = 3;
  }
  strncpy(cur, msg, p1 - p2 + 1);
  cur = cur + (p1 - p2 + 1);
  snprintf(cur, strlen(keycat) + 5, "\t<%s>\t", keycat);
  cur = cur + (strlen(keycat) + 4);
  p1 += 1;
  n = snprintf(cur, p3 - p1, "%s", p1);
  cur = cur + (p3 - p1) - 1;
  switch (check_EZP) {
  case 0:
    p3 += strlen("EZP_XXX");
    break;
  case 1:
  case 2:
  default:
    p3 = strchr(p3, ':');
    break;
  }
  n = snprintf(cur, 256 - (cur - &dst[0]), "%s", p3);
  strncpy(msg, dst, 256);
}
```