user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<reverse_parse_known_options>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x50,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r12
  cmpl   $0x0,-0x44(%rbp)
  jne    L98
  mov    $0x0,%eax
  jmp    L26
L98:
  movq   $0x800,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x30(%rbp)
  mov    %rax,%r10
  mov    $0x0,%r11d
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L34:
  cmp    %rdx,%rsp
  je     L58
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L34
L58:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L60
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L60:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movq   $0x0,-0x40(%rbp)
  jmp    L21
L95:
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    -0x44(%rbp),%eax
  test   %eax,%eax
  je     L88
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x28(%rbp),%rdx
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rbx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rsi
  mov    -0x20(%rbp),%rax
  mov    %rbx,%rcx
  lea    D1(%rip),%rdx
  mov    %rax,%rdi
  call   <snprintf@plt>
L88:
  addq   $0x1,-0x40(%rbp)
L21:
  mov    -0x48(%rbp),%eax
  cltq
  cmp    %rax,-0x40(%rbp)
  jb     L95
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L40
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  jmp    L26
L40:
  mov    $0x0,%eax
L26:
  mov    %r12,%rsp
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  lea    -0x10(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D1
type_infered: string

tool: D1: %s 

assistant: ```c
char *reverse_parse_known_options(int option_code, const int *atflags, const char **atstrings, const int arr_size) {
  if (option_code == 0) {
    return NULL;
  }
  size_t idx, bufsiz = 2048;
  char options[bufsiz];
  memset(options, 0, bufsiz);
  for (idx = 0; idx < arr_size; idx++) {
    if (0 != (atflags[idx] & option_code)) {
      char *cur = &(options[strlen(options)]);
      snprintf(cur, bufsiz - strlen(cur), "%s ", atstrings[idx]);
    }
  }
  if (strlen(options) > 0) {
    return strdup(options);
  }
  return NULL;
}
```