user: Converte this assembly snippet into its equivalent C code:

```asm
<get_region_name_AF>:
  endbr64
  cmp    $0x2a,%edi
  ja     L5
  lea    D332(%rip),%rdx
  mov    %edi,%edi
  movslq (%rdx,%rdi,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L5:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D268(%rip),%rax
  ret
  lea    D32(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D307(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D226(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D273(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D298(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D257(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D265(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D90(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D105(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D16(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D164(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D67(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D217(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D244(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D203(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D195(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D245(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D26(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D171(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D76(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D62(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D179(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D42(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D69(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D234(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D276(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D242(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D320(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D14(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D183(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D295(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D331(%rip),%rax
  ret
  nopl   0x0(%rax,%rax,1)
  lea    D18(%rip),%rax
  ret
```

tool_calls: name: read_data
arguments: tag: D268
type_guessed: string
name: read_data
arguments: tag: D32
type_guessed: string
name: read_data
arguments: tag: D307
type_guessed: string
name: read_data
arguments: tag: D226
type_guessed: string
name: read_data
arguments: tag: D273
type_guessed: string
name: read_data
arguments: tag: D298
type_guessed: string
name: read_data
arguments: tag: D257
type_guessed: string
name: read_data
arguments: tag: D265
type_guessed: string
name: read_data
arguments: tag: D90
type_guessed: string
name: read_data
arguments: tag: D105
type_guessed: string
name: read_data
arguments: tag: D16
type_guessed: string
name: read_data
arguments: tag: D164
type_guessed: string
name: read_data
arguments: tag: D67
type_guessed: string
name: read_data
arguments: tag: D217
type_guessed: string
name: read_data
arguments: tag: D244
type_guessed: string
name: read_data
arguments: tag: D203
type_guessed: string
name: read_data
arguments: tag: D195
type_guessed: string
name: read_data
arguments: tag: D245
type_guessed: string
name: read_data
arguments: tag: D26
type_guessed: string
name: read_data
arguments: tag: D171
type_guessed: string
name: read_data
arguments: tag: D76
type_guessed: string
name: read_data
arguments: tag: D62
type_guessed: string
name: read_data
arguments: tag: D179
type_guessed: string
name: read_data
arguments: tag: D42
type_guessed: string
name: read_data
arguments: tag: D69
type_guessed: string
name: read_data
arguments: tag: D234
type_guessed: string
name: read_data
arguments: tag: D276
type_guessed: string
name: read_data
arguments: tag: D242
type_guessed: string
name: read_data
arguments: tag: D320
type_guessed: string
name: read_data
arguments: tag: D14
type_guessed: string
name: read_data
arguments: tag: D183
type_guessed: string
name: read_data
arguments: tag: D295
type_guessed: string
name: read_data
arguments: tag: D331
type_guessed: string
name: read_data
arguments: tag: D18
type_guessed: string

tool: D268: Panjshir

tool: D32: Daykondi

tool: D307: Parvan

tool: D226: Oruzgan

tool: D273: Nurestan

tool: D298: Khowst

tool: D257: Paktia

tool: D265: Laghman

tool: D90: Konar

tool: D105: Sar-e Pol

tool: D16: Samangan

tool: D164: Jowzjan

tool: D67: Balkh

tool: D217: Paktika

tool: D244: Zabol

tool: D203: Vardak

tool: D195: Takhar

tool: D245: Kondoz

tool: D26: Kandahar

tool: D171: Nimruz

tool: D76: Nangarhar

tool: D62: Lowgar

tool: D179: Kapisa

tool: D42: Kabol

tool: D69: Herat

tool: D234: Helmand

tool: D276: Ghowr

tool: D242: Ghazni

tool: D320: Faryab

tool: D14: Farah

tool: D183: Bamian

tool: D295: Baghlan

tool: D331: Badakhshan

tool: D18: 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;
  }
}
```