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

```asm
<GifErrorString>:
  endbr64
  cmp    $0x71,%edi
  ja     L5
  lea    D28(%rip),%rdx
  mov    %edi,%edi
  movslq (%rdx,%rdi,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  lea    D22(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D103(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D141(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D32(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
L5:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D35(%rip),%rax
  ret
  lea    D16(%rip),%rax
  ret
  lea    D76(%rip),%rax
  ret
  lea    D26(%rip),%rax
  ret
  lea    D188(%rip),%rax
  ret
  lea    D134(%rip),%rax
  ret
  lea    D184(%rip),%rax
  ret
  lea    D174(%rip),%rax
  ret
  lea    D36(%rip),%rax
  ret
  lea    D73(%rip),%rax
  ret
  lea    D5(%rip),%rax
  ret
  lea    D160(%rip),%rax
  ret
  lea    D166(%rip),%rax
  ret
  lea    D126(%rip),%rax
  ret
```

tool_calls: name: unpack_data
arguments: label: D22
datatype: string
name: unpack_data
arguments: label: D103
datatype: string
name: unpack_data
arguments: label: D141
datatype: string
name: unpack_data
arguments: label: D32
datatype: string
name: unpack_data
arguments: label: D35
datatype: string
name: unpack_data
arguments: label: D16
datatype: string
name: unpack_data
arguments: label: D76
datatype: string
name: unpack_data
arguments: label: D26
datatype: string
name: unpack_data
arguments: label: D188
datatype: string
name: unpack_data
arguments: label: D134
datatype: string
name: unpack_data
arguments: label: D184
datatype: string
name: unpack_data
arguments: label: D174
datatype: string
name: unpack_data
arguments: label: D36
datatype: string
name: unpack_data
arguments: label: D73
datatype: string
name: unpack_data
arguments: label: D5
datatype: string
name: unpack_data
arguments: label: D160
datatype: string
name: unpack_data
arguments: label: D166
datatype: string
name: unpack_data
arguments: label: D126
datatype: string

tool: D22: Neither global nor local color map

tool: D103: Failed to close given file

tool: D141: Number of pixels bigger than width * height

tool: D32: Failed to allocate required memory

tool: D35: Failed to open given file

tool: D16: Given file was not opened for read

tool: D76: Data is not in GIF format

tool: D26: Failed to read from given file

tool: D188: Image descriptor is still active

tool: D134: Screen descriptor has already been set

tool: D184: No screen descriptor detected

tool: D174: No Image Descriptor detected

tool: D36: Image is defective, decoding aborted

tool: D73: Given file was not opened for write

tool: D5: Image EOF detected before image complete

tool: D160: Write failed (disk full?)

tool: D166: Wrong record type detected

tool: D126: Failed to write to given file

assistant: ```c
char *GifErrorString(int ErrorCode) {
  char *Err;
  switch (ErrorCode) {
  case 1:
    Err = "Failed to open given file";
    break;
  case 2:
    Err = "Failed to write to given file";
    break;
  case 3:
    Err = "Screen descriptor has already been set";
    break;
  case 4:
    Err = "Image descriptor is still active";
    break;
  case 5:
    Err = "Neither global nor local color map";
    break;
  case 6:
    Err = "Number of pixels bigger than width * height";
    break;
  case 7:
    Err = "Failed to allocate required memory";
    break;
  case 8:
    Err = "Write failed (disk full?)";
    break;
  case 9:
    Err = "Failed to close given file";
    break;
  case 10:
    Err = "Given file was not opened for write";
    break;
  case 101:
    Err = "Failed to open given file";
    break;
  case 102:
    Err = "Failed to read from given file";
    break;
  case 103:
    Err = "Data is not in GIF format";
    break;
  case 104:
    Err = "No screen descriptor detected";
    break;
  case 105:
    Err = "No Image Descriptor detected";
    break;
  case 106:
    Err = "Neither global nor local color map";
    break;
  case 107:
    Err = "Wrong record type detected";
    break;
  case 108:
    Err = "Number of pixels bigger than width * height";
    break;
  case 109:
    Err = "Failed to allocate required memory";
    break;
  case 110:
    Err = "Failed to close given file";
    break;
  case 111:
    Err = "Given file was not opened for read";
    break;
  case 112:
    Err = "Image is defective, decoding aborted";
    break;
  case 113:
    Err = "Image EOF detected before image complete";
    break;
  default:
    Err = NULL;
    break;
  }
  return Err;
}
```