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

```asm
<get_region_name_TH>:
  endbr64
  cmp    $0x51,%edi
  ja     L1
  mov    %edi,%edi
  lea    D129(%rip),%rdx
  movslq (%rdx,%rdi,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D135(%rip),%rax
  ret
  lea    D717(%rip),%rax
  ret
  lea    D731(%rip),%rax
  ret
  lea    D673(%rip),%rax
  ret
  lea    D723(%rip),%rax
  ret
  lea    D360(%rip),%rax
  ret
  lea    D803(%rip),%rax
  ret
  lea    D435(%rip),%rax
  ret
  lea    D29(%rip),%rax
  ret
  lea    D44(%rip),%rax
  ret
  lea    D48(%rip),%rax
  ret
  lea    D773(%rip),%rax
  ret
  lea    D575(%rip),%rax
  ret
  lea    D252(%rip),%rax
  ret
  lea    D430(%rip),%rax
  ret
  lea    D393(%rip),%rax
  ret
  lea    D442(%rip),%rax
  ret
  lea    D632(%rip),%rax
  ret
  lea    D127(%rip),%rax
  ret
  lea    D450(%rip),%rax
  ret
  lea    D721(%rip),%rax
  ret
  lea    D728(%rip),%rax
  ret
  lea    D610(%rip),%rax
  ret
  lea    D283(%rip),%rax
  ret
  lea    D744(%rip),%rax
  ret
  lea    D26(%rip),%rax
  ret
  lea    D392(%rip),%rax
  ret
  lea    D209(%rip),%rax
  ret
  lea    D529(%rip),%rax
  ret
  lea    D57(%rip),%rax
  ret
  lea    D270(%rip),%rax
  ret
  lea    D354(%rip),%rax
  ret
  lea    D713(%rip),%rax
  ret
  lea    D734(%rip),%rax
  ret
  lea    D560(%rip),%rax
  ret
  lea    D133(%rip),%rax
  ret
  lea    D517(%rip),%rax
  ret
  lea    D434(%rip),%rax
  ret
  lea    D708(%rip),%rax
  ret
  lea    D563(%rip),%rax
  ret
  lea    D751(%rip),%rax
  ret
  lea    D519(%rip),%rax
  ret
  lea    D217(%rip),%rax
  ret
  lea    D750(%rip),%rax
  ret
  lea    D553(%rip),%rax
  ret
  lea    D776(%rip),%rax
  ret
  lea    D452(%rip),%rax
  ret
  lea    D35(%rip),%rax
  ret
  lea    D143(%rip),%rax
  ret
  lea    D418(%rip),%rax
  ret
  lea    D60(%rip),%rax
  ret
  lea    D358(%rip),%rax
  ret
  lea    D43(%rip),%rax
  ret
  lea    D187(%rip),%rax
  ret
  lea    D230(%rip),%rax
  ret
  lea    D93(%rip),%rax
  ret
  lea    D597(%rip),%rax
  ret
  lea    D732(%rip),%rax
  ret
  lea    D646(%rip),%rax
  ret
  lea    D304(%rip),%rax
  ret
  lea    D238(%rip),%rax
  ret
  lea    D473(%rip),%rax
  ret
  lea    D650(%rip),%rax
  ret
  lea    D51(%rip),%rax
  ret
  lea    D585(%rip),%rax
  ret
  lea    D403(%rip),%rax
  ret
  lea    D485(%rip),%rax
  ret
  lea    D696(%rip),%rax
  ret
  lea    D205(%rip),%rax
  ret
  lea    D401(%rip),%rax
  ret
  lea    D127(%rip),%rax
  ret
  lea    D217(%rip),%rax
  ret
  lea    D205(%rip),%rax
  ret
  lea    D458(%rip),%rax
  ret
  lea    D58(%rip),%rax
  ret
  lea    D300(%rip),%rax
  ret
  lea    D20(%rip),%rax
  ret
  lea    D159(%rip),%rax
  ret
  lea    D82(%rip),%rax
  ret
L1:
  mov    $0x0,%eax
  ret
  lea    D94(%rip),%rax
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D135
datatype: string
name: parse_data
arguments: data_tag: D717
datatype: string
name: parse_data
arguments: data_tag: D731
datatype: string
name: parse_data
arguments: data_tag: D673
datatype: string
name: parse_data
arguments: data_tag: D723
datatype: string
name: parse_data
arguments: data_tag: D360
datatype: string
name: parse_data
arguments: data_tag: D803
datatype: string
name: parse_data
arguments: data_tag: D435
datatype: string
name: parse_data
arguments: data_tag: D29
datatype: string
name: parse_data
arguments: data_tag: D44
datatype: string
name: parse_data
arguments: data_tag: D48
datatype: string
name: parse_data
arguments: data_tag: D773
datatype: string
name: parse_data
arguments: data_tag: D575
datatype: string
name: parse_data
arguments: data_tag: D252
datatype: string
name: parse_data
arguments: data_tag: D430
datatype: string
name: parse_data
arguments: data_tag: D393
datatype: string
name: parse_data
arguments: data_tag: D442
datatype: string
name: parse_data
arguments: data_tag: D632
datatype: string
name: parse_data
arguments: data_tag: D127
datatype: string
name: parse_data
arguments: data_tag: D450
datatype: string
name: parse_data
arguments: data_tag: D721
datatype: string
name: parse_data
arguments: data_tag: D728
datatype: string
name: parse_data
arguments: data_tag: D610
datatype: string
name: parse_data
arguments: data_tag: D283
datatype: string
name: parse_data
arguments: data_tag: D744
datatype: string
name: parse_data
arguments: data_tag: D26
datatype: string
name: parse_data
arguments: data_tag: D392
datatype: string
name: parse_data
arguments: data_tag: D209
datatype: string
name: parse_data
arguments: data_tag: D529
datatype: string
name: parse_data
arguments: data_tag: D57
datatype: string
name: parse_data
arguments: data_tag: D270
datatype: string
name: parse_data
arguments: data_tag: D354
datatype: string
name: parse_data
arguments: data_tag: D713
datatype: string
name: parse_data
arguments: data_tag: D734
datatype: string
name: parse_data
arguments: data_tag: D560
datatype: string
name: parse_data
arguments: data_tag: D133
datatype: string
name: parse_data
arguments: data_tag: D517
datatype: string
name: parse_data
arguments: data_tag: D434
datatype: string
name: parse_data
arguments: data_tag: D708
datatype: string
name: parse_data
arguments: data_tag: D563
datatype: string
name: parse_data
arguments: data_tag: D751
datatype: string
name: parse_data
arguments: data_tag: D519
datatype: string
name: parse_data
arguments: data_tag: D217
datatype: string
name: parse_data
arguments: data_tag: D750
datatype: string
name: parse_data
arguments: data_tag: D553
datatype: string
name: parse_data
arguments: data_tag: D776
datatype: string
name: parse_data
arguments: data_tag: D452
datatype: string
name: parse_data
arguments: data_tag: D35
datatype: string
name: parse_data
arguments: data_tag: D143
datatype: string
name: parse_data
arguments: data_tag: D418
datatype: string
name: parse_data
arguments: data_tag: D60
datatype: string
name: parse_data
arguments: data_tag: D358
datatype: string
name: parse_data
arguments: data_tag: D43
datatype: string
name: parse_data
arguments: data_tag: D187
datatype: string
name: parse_data
arguments: data_tag: D230
datatype: string
name: parse_data
arguments: data_tag: D93
datatype: string
name: parse_data
arguments: data_tag: D597
datatype: string
name: parse_data
arguments: data_tag: D732
datatype: string
name: parse_data
arguments: data_tag: D646
datatype: string
name: parse_data
arguments: data_tag: D304
datatype: string
name: parse_data
arguments: data_tag: D238
datatype: string
name: parse_data
arguments: data_tag: D473
datatype: string
name: parse_data
arguments: data_tag: D650
datatype: string
name: parse_data
arguments: data_tag: D51
datatype: string
name: parse_data
arguments: data_tag: D585
datatype: string
name: parse_data
arguments: data_tag: D403
datatype: string
name: parse_data
arguments: data_tag: D485
datatype: string
name: parse_data
arguments: data_tag: D696
datatype: string
name: parse_data
arguments: data_tag: D205
datatype: string
name: parse_data
arguments: data_tag: D401
datatype: string
name: parse_data
arguments: data_tag: D458
datatype: string
name: parse_data
arguments: data_tag: D58
datatype: string
name: parse_data
arguments: data_tag: D300
datatype: string
name: parse_data
arguments: data_tag: D20
datatype: string
name: parse_data
arguments: data_tag: D159
datatype: string
name: parse_data
arguments: data_tag: D82
datatype: string
name: parse_data
arguments: data_tag: D94
datatype: string

tool: D135: Chiang Mai

tool: D717: Chiang Rai

tool: D731: Nan

tool: D673: Lamphun

tool: D723: Lampang

tool: D360: Phrae

tool: D803: Tak

tool: D435: Sukhothai

tool: D29: Uttaradit

tool: D44: Kamphaeng Phet

tool: D48: Phitsanulok

tool: D773: Phichit

tool: D575: Phetchabun

tool: D252: Uthai Thani

tool: D430: Nakhon Sawan

tool: D393: Nong Khai

tool: D442: Loei

tool: D632: Sakon Nakhon

tool: D127: Nakhon Phanom

tool: D450: Khon Kaen

tool: D721: Kalasin

tool: D728: Maha Sarakham

tool: D610: Roi Et

tool: D283: Chaiyaphum

tool: D744: Nakhon Ratchasima

tool: D26: Buriram

tool: D392: Surin

tool: D209: Sisaket

tool: D529: Narathiwat

tool: D57: Chai Nat

tool: D270: Sing Buri

tool: D354: Lop Buri

tool: D713: Ang Thong

tool: D734: Phra Nakhon Si Ayutthaya

tool: D560: Saraburi

tool: D133: Nonthaburi

tool: D517: Pathum Thani

tool: D434: Krung Thep

tool: D708: Phayao

tool: D563: Samut Prakan

tool: D751: Nakhon Nayok

tool: D519: Chachoengsao

tool: D217: Prachin Buri

tool: D750: Chon Buri

tool: D553: Rayong

tool: D776: Chanthaburi

tool: D452: Trat

tool: D35: Kanchanaburi

tool: D143: Suphan Buri

tool: D418: Ratchaburi

tool: D60: Nakhon Pathom

tool: D358: Samut Songkhram

tool: D43: Samut Sakhon

tool: D187: Phetchaburi

tool: D230: Prachuap Khiri Khan

tool: D93: Chumphon

tool: D597: Ranong

tool: D732: Surat Thani

tool: D646: Phangnga

tool: D304: Phuket

tool: D238: Krabi

tool: D473: Nakhon Si Thammarat

tool: D650: Trang

tool: D51: Phatthalung

tool: D585: Satun

tool: D403: Songkhla

tool: D485: Pattani

tool: D696: Yala

tool: D205: Ubon Ratchathani

tool: D401: Yasothon

tool: D458: Udon Thani

tool: D58: Amnat Charoen

tool: D300: Mukdahan

tool: D20: Nong Bua Lamphu

tool: D159: Sa Kaeo

tool: D82: Bueng Kan

tool: D94: Mae Hong Son

assistant: ```c
const char *get_region_name_TH(int region_code) {
  switch (region_code) {
  case 1:
    return "Mae Hong Son";
  case 2:
    return "Chiang Mai";
  case 3:
    return "Chiang Rai";
  case 4:
    return "Nan";
  case 5:
    return "Lamphun";
  case 6:
    return "Lampang";
  case 7:
    return "Phrae";
  case 8:
    return "Tak";
  case 9:
    return "Sukhothai";
  case 10:
    return "Uttaradit";
  case 11:
    return "Kamphaeng Phet";
  case 12:
    return "Phitsanulok";
  case 13:
    return "Phichit";
  case 14:
    return "Phetchabun";
  case 15:
    return "Uthai Thani";
  case 16:
    return "Nakhon Sawan";
  case 17:
    return "Nong Khai";
  case 18:
    return "Loei";
  case 20:
    return "Sakon Nakhon";
  case 21:
    return "Nakhon Phanom";
  case 22:
    return "Khon Kaen";
  case 23:
    return "Kalasin";
  case 24:
    return "Maha Sarakham";
  case 25:
    return "Roi Et";
  case 26:
    return "Chaiyaphum";
  case 27:
    return "Nakhon Ratchasima";
  case 28:
    return "Buriram";
  case 29:
    return "Surin";
  case 30:
    return "Sisaket";
  case 31:
    return "Narathiwat";
  case 32:
    return "Chai Nat";
  case 33:
    return "Sing Buri";
  case 34:
    return "Lop Buri";
  case 35:
    return "Ang Thong";
  case 36:
    return "Phra Nakhon Si Ayutthaya";
  case 37:
    return "Saraburi";
  case 38:
    return "Nonthaburi";
  case 39:
    return "Pathum Thani";
  case 40:
    return "Krung Thep";
  case 41:
    return "Phayao";
  case 42:
    return "Samut Prakan";
  case 43:
    return "Nakhon Nayok";
  case 44:
    return "Chachoengsao";
  case 45:
    return "Prachin Buri";
  case 46:
    return "Chon Buri";
  case 47:
    return "Rayong";
  case 48:
    return "Chanthaburi";
  case 49:
    return "Trat";
  case 50:
    return "Kanchanaburi";
  case 51:
    return "Suphan Buri";
  case 52:
    return "Ratchaburi";
  case 53:
    return "Nakhon Pathom";
  case 54:
    return "Samut Songkhram";
  case 55:
    return "Samut Sakhon";
  case 56:
    return "Phetchaburi";
  case 57:
    return "Prachuap Khiri Khan";
  case 58:
    return "Chumphon";
  case 59:
    return "Ranong";
  case 60:
    return "Surat Thani";
  case 61:
    return "Phangnga";
  case 62:
    return "Phuket";
  case 63:
    return "Krabi";
  case 64:
    return "Nakhon Si Thammarat";
  case 65:
    return "Trang";
  case 66:
    return "Phatthalung";
  case 67:
    return "Satun";
  case 68:
    return "Songkhla";
  case 69:
    return "Pattani";
  case 70:
    return "Yala";
  case 71:
    return "Ubon Ratchathani";
  case 72:
    return "Yasothon";
  case 73:
    return "Nakhon Phanom";
  case 74:
    return "Prachin Buri";
  case 75:
    return "Ubon Ratchathani";
  case 76:
    return "Udon Thani";
  case 77:
    return "Amnat Charoen";
  case 78:
    return "Mukdahan";
  case 79:
    return "Nong Bua Lamphu";
  case 80:
    return "Sa Kaeo";
  case 81:
    return "Bueng Kan";
  default:
    return NULL;
  }
}
```