user: Translate the below assembly code into C programming language:

```asm
<SV_WipeSavegame>:
  endbr64
  push   %rbp
  mov    %rdi,%rsi
  push   %rbx
  mov    %rdi,%rbx
  lea    D1(%rip),%rdi
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  call   <Com_DPrintf@plt>
  xor    %eax,%eax
  call   <FS_Gamedir@plt>
  mov    %rbx,%r8
  mov    $0x100,%esi
  mov    %rbp,%rdi
  mov    %eax,%ecx
  lea    D40(%rip),%rdx
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  call   <remove@plt>
  xor    %eax,%eax
  call   <FS_Gamedir@plt>
  mov    %rbx,%r8
  mov    $0x100,%esi
  mov    %rbp,%rdi
  mov    %eax,%ecx
  lea    D34(%rip),%rdx
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  call   <remove@plt>
  xor    %eax,%eax
  call   <FS_Gamedir@plt>
  mov    %rbx,%r8
  mov    $0x100,%esi
  mov    %rbp,%rdi
  mov    %eax,%ecx
  lea    D29(%rip),%rdx
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  call   <remove@plt>
  xor    %eax,%eax
  call   <FS_Gamedir@plt>
  mov    $0x100,%esi
  mov    %rbp,%rdi
  mov    %rbx,%r8
  lea    D45(%rip),%rdx
  mov    %eax,%ecx
  call   <Com_sprintf@plt>
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <Sys_FindFirst@plt>
  test   %rax,%rax
  je     L9
  mov    %rax,%rdi
  nopl   0x0(%rax)
L17:
  call   <remove@plt>
  xor    %edi,%edi
  xor    %esi,%esi
  call   <Sys_FindNext@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L17
L9:
  xor    %eax,%eax
  call   <Sys_FindClose@plt>
  xor    %eax,%eax
  call   <FS_Gamedir@plt>
  mov    %rbx,%r8
  mov    $0x100,%esi
  mov    %rbp,%rdi
  mov    %eax,%ecx
  lea    D38(%rip),%rdx
  call   <Com_sprintf@plt>
  mov    %rbp,%rdi
  xor    %edx,%edx
  xor    %esi,%esi
  call   <Sys_FindFirst@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L39
  nopl   0x0(%rax)
L33:
  call   <remove@plt>
  xor    %edi,%edi
  xor    %esi,%esi
  call   <Sys_FindNext@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L33
L39:
  xor    %eax,%eax
  call   <Sys_FindClose@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  ret
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D1
datatype: string
name: read_data
arguments: label: D40
datatype: string
name: read_data
arguments: label: D34
datatype: string
name: read_data
arguments: label: D29
datatype: string
name: read_data
arguments: label: D45
datatype: string
name: read_data
arguments: label: D38
datatype: string

tool: D1: SV_WipeSaveGame(%s)


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

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

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

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

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

assistant: ```c
void SV_WipeSavegame(char *savename) {
  char name[256];
  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();
}
```