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

```asm
<SV_WipeSavegame>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rdi,%rsi
  lea    D57(%rip),%rdi
  call   <Com_DPrintf@plt>
  mov    $0x0,%eax
  call   <FS_Gamedir@plt>
  mov    %eax,%ecx
  mov    %rsp,%rbp
  mov    %rbx,%r8
  lea    D49(%rip),%rdx
  mov    $0x80,%esi
  mov    %rbp,%rdi
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  call   <remove@plt>
  mov    $0x0,%eax
  call   <FS_Gamedir@plt>
  mov    %eax,%ecx
  mov    %rbx,%r8
  lea    D20(%rip),%rdx
  mov    $0x80,%esi
  mov    %rbp,%rdi
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  call   <remove@plt>
  mov    $0x0,%eax
  call   <FS_Gamedir@plt>
  mov    %eax,%ecx
  mov    %rbx,%r8
  lea    D8(%rip),%rdx
  mov    $0x80,%esi
  mov    %rbp,%rdi
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  call   <remove@plt>
  mov    $0x0,%eax
  call   <FS_Gamedir@plt>
  mov    %eax,%ecx
  mov    %rbx,%r8
  lea    D17(%rip),%rdx
  mov    $0x80,%esi
  mov    %rbp,%rdi
  call   <Com_sprintf@plt>
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <Sys_FindFirst@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L36
L42:
  call   <remove@plt>
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <Sys_FindNext@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L42
L36:
  mov    $0x0,%eax
  call   <Sys_FindClose@plt>
  mov    $0x0,%eax
  call   <FS_Gamedir@plt>
  mov    %eax,%ecx
  mov    %rsp,%rbp
  mov    %rbx,%r8
  lea    D50(%rip),%rdx
  mov    $0x80,%esi
  mov    %rbp,%rdi
  call   <Com_sprintf@plt>
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <Sys_FindFirst@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L26
L40:
  call   <remove@plt>
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <Sys_FindNext@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L40
L26:
  mov    $0x0,%eax
  call   <Sys_FindClose@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L12
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  ret
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D57
datatype: string
name: unpack_data
arguments: data_tag: D49
datatype: string
name: unpack_data
arguments: data_tag: D20
datatype: string
name: unpack_data
arguments: data_tag: D8
datatype: string
name: unpack_data
arguments: data_tag: D17
datatype: string
name: unpack_data
arguments: data_tag: D50
datatype: string

tool: D57: SV_WipeSaveGame(%s)


tool: D49: %s/save/%s/server.ssv

tool: D20: %s/save/%s/game.ssv

tool: D8: %s/save/%s/shot.jpg

tool: D17: %s/save/%s/*.sav

tool: D50: %s/save/%s/*.sv2

assistant: ```c
void SV_WipeSavegame(char *savename) {
  char name[128];
  char *s;
  Com_DPrintf("SV_WipeSaveGame(%s)\n", savename);
  Com_sprintf(name, sizeof(name), "%s/save/%s/server.ssv", FS_Gamedir(), savename);
  remove(name);
  Com_sprintf(name, sizeof(name), "%s/save/%s/game.ssv", FS_Gamedir(), savename);
  remove(name);
  Com_sprintf(name, sizeof(name), "%s/save/%s/shot.jpg", FS_Gamedir(), savename);
  remove(name);
  Com_sprintf(name, sizeof(name), "%s/save/%s/*.sav", FS_Gamedir(), savename);
  s = Sys_FindFirst(name, 0, 0);
  while (s) {
    remove(s);
    s = Sys_FindNext(0, 0);
  }
  Sys_FindClose();
  Com_sprintf(name, sizeof(name), "%s/save/%s/*.sv2", FS_Gamedir(), savename);
  s = Sys_FindFirst(name, 0, 0);
  while (s) {
    remove(s);
    s = Sys_FindNext(0, 0);
  }
  Sys_FindClose();
}
```