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

```asm
<G_LayoutList>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x3d0,%rsp
  mov    %rdi,-0x3b8(%rbp)
  mov    %rsi,-0x3c0(%rbp)
  mov    %edx,-0x3c4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x290(%rbp)
  movq   $0x0,-0x288(%rbp)
  lea    -0x280(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x4e,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  movq   $0x0,-0x390(%rbp)
  movq   $0x0,-0x388(%rbp)
  movq   $0x0,-0x380(%rbp)
  movq   $0x0,-0x378(%rbp)
  movq   $0x0,-0x370(%rbp)
  movq   $0x0,-0x368(%rbp)
  movq   $0x0,-0x360(%rbp)
  movq   $0x0,-0x358(%rbp)
  movq   $0x0,-0x350(%rbp)
  movq   $0x0,-0x348(%rbp)
  movq   $0x0,-0x340(%rbp)
  movq   $0x0,-0x338(%rbp)
  movq   $0x0,-0x330(%rbp)
  movq   $0x0,-0x328(%rbp)
  movq   $0x0,-0x320(%rbp)
  movq   $0x0,-0x318(%rbp)
  movq   $0x0,-0x310(%rbp)
  movq   $0x0,-0x308(%rbp)
  movq   $0x0,-0x300(%rbp)
  movq   $0x0,-0x2f8(%rbp)
  movq   $0x0,-0x2f0(%rbp)
  movq   $0x0,-0x2e8(%rbp)
  movq   $0x0,-0x2e0(%rbp)
  movq   $0x0,-0x2d8(%rbp)
  movq   $0x0,-0x2d0(%rbp)
  movq   $0x0,-0x2c8(%rbp)
  movq   $0x0,-0x2c0(%rbp)
  movq   $0x0,-0x2b8(%rbp)
  movq   $0x0,-0x2b0(%rbp)
  movq   $0x0,-0x2a8(%rbp)
  movq   $0x0,-0x2a0(%rbp)
  movq   $0x0,-0x298(%rbp)
  movl   $0x0,-0x3a4(%rbp)
  movl   $0x0,-0x3a8(%rbp)
  lea    -0x390(%rbp),%rax
  lea    D10(%rip),%rdx
  mov    $0x100,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Q_strcat@plt>
  mov    -0x3b8(%rbp),%rax
  mov    %rax,%rsi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <va@plt>
  mov    %eax,%edi
  lea    -0x290(%rbp),%rax
  mov    $0x280,%ecx
  mov    %rax,%rdx
  lea    D1(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%eax
  call   <trap_FS_GetFileList@plt>
  mov    %eax,-0x3a0(%rbp)
  lea    -0x290(%rbp),%rax
  mov    %rax,-0x398(%rbp)
  movl   $0x0,-0x3ac(%rbp)
  jmp    L24
L60:
  mov    -0x398(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x3a4(%rbp)
  lea    -0x390(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x39c(%rbp)
  cmpl   $0x4,-0x3a4(%rbp)
  jle    L14
  mov    -0x39c(%rbp),%edx
  mov    -0x3a4(%rbp),%eax
  add    %edx,%eax
  cmp    $0xff,%eax
  ja     L59
  mov    -0x398(%rbp),%rdx
  lea    -0x390(%rbp),%rax
  mov    $0x100,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Q_strcat@plt>
  lea    -0x390(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x39c(%rbp)
  mov    -0x39c(%rbp),%eax
  sub    $0x4,%eax
  cltq
  movb   $0x20,-0x390(%rbp,%rax,1)
  mov    -0x39c(%rbp),%eax
  sub    $0x3,%eax
  cltq
  movb   $0x0,-0x390(%rbp,%rax,1)
  addl   $0x1,-0x3a8(%rbp)
  jmp    L21
L14:
  nop
L21:
  addl   $0x1,-0x3ac(%rbp)
  mov    -0x3a4(%rbp),%eax
  cltq
  add    $0x1,%rax
  add    %rax,-0x398(%rbp)
L24:
  mov    -0x3ac(%rbp),%eax
  cmp    -0x3a0(%rbp),%eax
  jl     L60
  jmp    L47
L59:
  nop
L47:
  mov    -0x3a8(%rbp),%eax
  cmp    -0x3a0(%rbp),%eax
  je     L65
  mov    -0x3b8(%rbp),%rcx
  mov    -0x3a0(%rbp),%edx
  mov    -0x3a8(%rbp),%eax
  mov    %eax,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <G_Printf@plt>
L65:
  mov    -0x3c4(%rbp),%edx
  lea    -0x390(%rbp),%rcx
  mov    -0x3c0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Q_strncpyz@plt>
  mov    -0x3a8(%rbp),%eax
  add    $0x1,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D10
type_infered: string
name: extract_symbolic_data
arguments: data_label: D11
type_infered: string
name: extract_symbolic_data
arguments: data_label: D1
type_infered: string
name: extract_symbolic_data
arguments: data_label: D14
type_infered: string

tool: D10: *BUILTIN* 

tool: D11: layouts/%s

tool: D1: .dat

tool: D14: ^3WARNING: layout list was truncated to %d layouts, but %d layout files exist in layouts/%s/.


assistant: ```c
int G_LayoutList(const char *map, char *list, int len) {
  char fileList[(256 / 2) * 5] = {""};
  char layouts[256] = {""};
  int numFiles, i, fileLen = 0, listLen;
  int count = 0;
  char *filePtr;
  Q_strcat(layouts, sizeof(layouts), "*BUILTIN* ");
  numFiles = trap_FS_GetFileList(va("layouts/%s", map), ".dat", fileList, sizeof(fileList));
  filePtr = fileList;
  for (i = 0; i < numFiles; i++, filePtr += fileLen + 1) {
    fileLen = strlen(filePtr);
    listLen = strlen(layouts);
    if (fileLen < 5)
      continue;
    if ((listLen + fileLen) >= sizeof(layouts))
      break;
    Q_strcat(layouts, sizeof(layouts), filePtr);
    listLen = strlen(layouts);
    layouts[listLen - 4] = ' ';
    layouts[listLen - 3] = '\0';
    count++;
  }
  if (count != numFiles) {
    G_Printf("^3"
             "WARNING: layout list was truncated to %d "
             "layouts, but %d layout files exist in layouts/%s/.\n",
             count, numFiles, map);
  }
  Q_strncpyz(list, layouts, len);
  return count + 1;
}
```