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

```asm
<get_region_name_AF>:
  endbr64
  cmp    $0x2a,%edi
  ja     L8
  lea    D338(%rip),%rdx
  mov    %edi,%edi
  movslq (%rdx,%rdi,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L8:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D212(%rip),%rax
  ret
  lea    D288(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D121(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D9(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D211(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D56(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D264(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D138(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D347(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D290(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D247(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D61(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D196(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D87(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D184(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D55(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D327(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D286(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D180(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D3(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D346(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D341(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D72(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D266(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D200(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D301(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D25(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D257(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D64(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D234(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D33(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D27(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D42(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D339(%rip),%rax
  ret
```

tool_calls: name: unpack_data
arguments: label: D212
type_guessed: string
name: unpack_data
arguments: label: D288
type_guessed: string
name: unpack_data
arguments: label: D121
type_guessed: string
name: unpack_data
arguments: label: D9
type_guessed: string
name: unpack_data
arguments: label: D211
type_guessed: string
name: unpack_data
arguments: label: D56
type_guessed: string
name: unpack_data
arguments: label: D264
type_guessed: string
name: unpack_data
arguments: label: D138
type_guessed: string
name: unpack_data
arguments: label: D347
type_guessed: string
name: unpack_data
arguments: label: D290
type_guessed: string
name: unpack_data
arguments: label: D247
type_guessed: string
name: unpack_data
arguments: label: D61
type_guessed: string
name: unpack_data
arguments: label: D196
type_guessed: string
name: unpack_data
arguments: label: D87
type_guessed: string
name: unpack_data
arguments: label: D184
type_guessed: string
name: unpack_data
arguments: label: D55
type_guessed: string
name: unpack_data
arguments: label: D327
type_guessed: string
name: unpack_data
arguments: label: D286
type_guessed: string
name: unpack_data
arguments: label: D180
type_guessed: string
name: unpack_data
arguments: label: D3
type_guessed: string
name: unpack_data
arguments: label: D346
type_guessed: string
name: unpack_data
arguments: label: D341
type_guessed: string
name: unpack_data
arguments: label: D72
type_guessed: string
name: unpack_data
arguments: label: D266
type_guessed: string
name: unpack_data
arguments: label: D200
type_guessed: string
name: unpack_data
arguments: label: D301
type_guessed: string
name: unpack_data
arguments: label: D25
type_guessed: string
name: unpack_data
arguments: label: D257
type_guessed: string
name: unpack_data
arguments: label: D64
type_guessed: string
name: unpack_data
arguments: label: D234
type_guessed: string
name: unpack_data
arguments: label: D33
type_guessed: string
name: unpack_data
arguments: label: D27
type_guessed: string
name: unpack_data
arguments: label: D42
type_guessed: string
name: unpack_data
arguments: label: D339
type_guessed: string

tool: D212: Panjshir

tool: D288: Daykondi

tool: D121: Parvan

tool: D9: Oruzgan

tool: D211: Nurestan

tool: D56: Khowst

tool: D264: Paktia

tool: D138: Laghman

tool: D347: Konar

tool: D290: Sar-e Pol

tool: D247: Samangan

tool: D61: Jowzjan

tool: D196: Balkh

tool: D87: Paktika

tool: D184: Zabol

tool: D55: Vardak

tool: D327: Takhar

tool: D286: Kondoz

tool: D180: Kandahar

tool: D3: Nimruz

tool: D346: Nangarhar

tool: D341: Lowgar

tool: D72: Kapisa

tool: D266: Kabol

tool: D200: Herat

tool: D301: Helmand

tool: D25: Ghowr

tool: D257: Ghazni

tool: D64: Faryab

tool: D234: Farah

tool: D33: Bamian

tool: D27: Baghlan

tool: D42: Badakhshan

tool: D339: Badghis

assistant: ```c
const char *get_region_name_AF(int region_code) {
  switch (region_code) {
  case 1:
    return "Badakhshan";
  case 2:
    return "Badghis";
  case 3:
    return "Baghlan";
  case 5:
    return "Bamian";
  case 6:
    return "Farah";
  case 7:
    return "Faryab";
  case 8:
    return "Ghazni";
  case 9:
    return "Ghowr";
  case 10:
    return "Helmand";
  case 11:
    return "Herat";
  case 13:
    return "Kabol";
  case 14:
    return "Kapisa";
  case 17:
    return "Lowgar";
  case 18:
    return "Nangarhar";
  case 19:
    return "Nimruz";
  case 23:
    return "Kandahar";
  case 24:
    return "Kondoz";
  case 26:
    return "Takhar";
  case 27:
    return "Vardak";
  case 28:
    return "Zabol";
  case 29:
    return "Paktika";
  case 30:
    return "Balkh";
  case 31:
    return "Jowzjan";
  case 32:
    return "Samangan";
  case 33:
    return "Sar-e Pol";
  case 34:
    return "Konar";
  case 35:
    return "Laghman";
  case 36:
    return "Paktia";
  case 37:
    return "Khowst";
  case 38:
    return "Nurestan";
  case 39:
    return "Oruzgan";
  case 40:
    return "Parvan";
  case 41:
    return "Daykondi";
  case 42:
    return "Panjshir";
  default:
    return NULL;
  }
}
```