user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<grab_emails>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%rbp
  mov    %esi,%ebx
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%rdi
  mov    $0x32,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    %rsp,%rdi
  mov    $0x32,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  test   %ebx,%ebx
  js     L203
  mov    %rsp,%rax
  mov    %rax,%rdx
  mov    $0x81ffb,%r8d
  mov    $0x1,%edi
  sub    %eax,%edi
  jmp    L169
L153:
  cmp    $0x44,%al
  jne    L117
  cmpb   $0x33,-0x1(%rbp,%rcx,1)
  je     L40
L213:
  movb   $0x44,(%rdx)
L248:
  sub    $0x1,%ebx
  lea    (%rdi,%rdx,1),%eax
  cmp    $0x31,%eax
  setle  %cl
  mov    %ebx,%eax
  not    %eax
  shr    $0x1f,%eax
  add    $0x1,%rdx
  test   %al,%cl
  je     L203
L169:
  movslq %ebx,%rcx
  movzbl 0x0(%rbp,%rcx,1),%eax
  lea    -0x2d(%rax),%esi
  cmp    $0x13,%sil
  ja     L108
  bt     %rsi,%r8
  jae    L108
L117:
  mov    %al,(%rdx)
  cmp    $0x3e,%al
  jne    L248
  cmpb   $0x62,-0x1(%rbp,%rcx,1)
  je     L70
L189:
  cmpb   $0x62,-0x1(%rbp,%rcx,1)
  jne    L248
  cmpb   $0x3c,-0x2(%rbp,%rcx,1)
  jne    L248
  sub    $0x3,%ebx
  jmp    L248
L40:
  cmpb   $0x25,-0x2(%rbp,%rcx,1)
  jne    L213
  jmp    L203
L70:
  cmpb   $0x2f,-0x2(%rbp,%rcx,1)
  jne    L189
  cmpb   $0x3c,-0x3(%rbp,%rcx,1)
  jne    L189
  sub    $0x4,%ebx
  movslq %ebx,%rcx
  cmpb   $0x3e,0x0(%rbp,%rcx,1)
  je     L189
  jmp    L248
L108:
  mov    %eax,%esi
  and    $0xffffffdf,%esi
  sub    $0x41,%esi
  cmp    $0x19,%sil
  jbe    L153
L203:
  mov    %rsp,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%eax
  cmp    $0x31,%edx
  jle    L120
L186:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L207
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L120:
  mov    %rsp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  js     L127
  movslq %eax,%rdx
  lea    (%rsp,%rdx,1),%rbx
  lea    -0x1(%rsp,%rdx,1),%rbp
  mov    %eax,%eax
  sub    %rax,%rbp
  lea    0x40(%rsp),%r13
L121:
  mov    %r13,%rdi
  call   <strlen@plt>
  cltq
  movzbl (%rbx),%edx
  mov    %dl,0x40(%rsp,%rax,1)
  sub    $0x1,%rbx
  cmp    %rbp,%rbx
  jne    L121
L127:
  lea    0x40(%rsp),%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L186
  lea    0x40(%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%eax
  cmp    $0x31,%edx
  jg     L186
  cmpb   $0x40,0x40(%rsp)
  je     L186
  lea    0x40(%rsp),%rdi
  lea    D9(%rip),%rsi
  call   <strstr@plt>
  test   %eax,%eax
  je     L186
  lea    0x40(%rsp),%rdi
  mov    %r12,%rsi
  call   <emaillist@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L186
L207:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D9
data_type: string

tool: D9: @

assistant: ```c
int grab_emails(char *buff, int pointer, char *host) {
  int ctr = 0;
  char flippedemail[50];
  char email[50];
  memset(email, '\0', sizeof(email));
  memset(flippedemail, '\0', sizeof(flippedemail));
  while (pointer >= 0 && ctr < 50 && (buff[pointer] == '-' || buff[pointer] == 64 || buff[pointer] == 46 || (buff[pointer] >= 48 && buff[pointer] <= 57) || (buff[pointer] >= 65 && buff[pointer] <= 90) || (buff[pointer] >= 97 && buff[pointer] <= 122))) {
    if (buff[pointer] == 'D' && buff[pointer - 1] == '3' && buff[pointer - 2] == '%')
      break;
    flippedemail[ctr] = buff[pointer];
    if (buff[pointer] == '>' && buff[pointer - 1] == 'b' && buff[pointer - 2] == '/' && buff[pointer - 3] == '<')
      pointer -= 4;
    if (buff[pointer] == '>' && buff[pointer - 1] == 'b' && buff[pointer - 2] == '<')
      pointer -= 3;
    ctr++;
    pointer--;
  }
  if (strlen(flippedemail) >= 50)
    return 0;
  for (ctr = (int)strlen(flippedemail); ctr >= 0; ctr--) {
    email[strlen(email)] = flippedemail[ctr];
  }
  if (!strlen(email) || strlen(email) >= 50 || email[0] == '@' || !strstr(email, "@"))
    return 0;
  if (emaillist(email, host))
    return 1;
  return 0;
}
```