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

```asm
<get_region_name_TH>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x4(%rbp)
  cmpl   $0x51,-0x4(%rbp)
  ja     L804
  mov    -0x4(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D272(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D272(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D277(%rip),%rax
  jmp    L249
  lea    D816(%rip),%rax
  jmp    L249
  lea    D195(%rip),%rax
  jmp    L249
  lea    D588(%rip),%rax
  jmp    L249
  lea    D464(%rip),%rax
  jmp    L249
  lea    D54(%rip),%rax
  jmp    L249
  lea    D549(%rip),%rax
  jmp    L249
  lea    D166(%rip),%rax
  jmp    L249
  lea    D244(%rip),%rax
  jmp    L249
  lea    D131(%rip),%rax
  jmp    L249
  lea    D52(%rip),%rax
  jmp    L249
  lea    D666(%rip),%rax
  jmp    L249
  lea    D276(%rip),%rax
  jmp    L249
  lea    D781(%rip),%rax
  jmp    L249
  lea    D107(%rip),%rax
  jmp    L249
  lea    D423(%rip),%rax
  jmp    L249
  lea    D149(%rip),%rax
  jmp    L249
  lea    D448(%rip),%rax
  jmp    L249
  lea    D22(%rip),%rax
  jmp    L249
  lea    D606(%rip),%rax
  jmp    L249
  lea    D280(%rip),%rax
  jmp    L249
  lea    D454(%rip),%rax
  jmp    L249
  lea    D532(%rip),%rax
  jmp    L249
  lea    D250(%rip),%rax
  jmp    L249
  lea    D662(%rip),%rax
  jmp    L249
  lea    D715(%rip),%rax
  jmp    L249
  lea    D137(%rip),%rax
  jmp    L249
  lea    D542(%rip),%rax
  jmp    L249
  lea    D609(%rip),%rax
  jmp    L249
  lea    D178(%rip),%rax
  jmp    L249
  lea    D128(%rip),%rax
  jmp    L249
  lea    D669(%rip),%rax
  jmp    L249
  lea    D712(%rip),%rax
  jmp    L249
  lea    D203(%rip),%rax
  jmp    L249
  lea    D460(%rip),%rax
  jmp    L249
  lea    D251(%rip),%rax
  jmp    L249
  lea    D324(%rip),%rax
  jmp    L249
  lea    D152(%rip),%rax
  jmp    L249
  lea    D619(%rip),%rax
  jmp    L249
  lea    D488(%rip),%rax
  jmp    L249
  lea    D230(%rip),%rax
  jmp    L249
  lea    D364(%rip),%rax
  jmp    L249
  lea    D37(%rip),%rax
  jmp    L249
  lea    D352(%rip),%rax
  jmp    L249
  lea    D728(%rip),%rax
  jmp    L249
  lea    D69(%rip),%rax
  jmp    L249
  lea    D598(%rip),%rax
  jmp    L249
  lea    D515(%rip),%rax
  jmp    L249
  lea    D681(%rip),%rax
  jmp    L249
  lea    D650(%rip),%rax
  jmp    L249
  lea    D275(%rip),%rax
  jmp    L249
  lea    D637(%rip),%rax
  jmp    L249
  lea    D231(%rip),%rax
  jmp    L249
  lea    D734(%rip),%rax
  jmp    L249
  lea    D629(%rip),%rax
  jmp    L249
  lea    D570(%rip),%rax
  jmp    L249
  lea    D784(%rip),%rax
  jmp    L249
  lea    D656(%rip),%rax
  jmp    L249
  lea    D333(%rip),%rax
  jmp    L249
  lea    D164(%rip),%rax
  jmp    L249
  lea    D170(%rip),%rax
  jmp    L249
  lea    D171(%rip),%rax
  jmp    L249
  lea    D104(%rip),%rax
  jmp    L249
  lea    D768(%rip),%rax
  jmp    L249
  lea    D222(%rip),%rax
  jmp    L249
  lea    D758(%rip),%rax
  jmp    L249
  lea    D294(%rip),%rax
  jmp    L249
  lea    D80(%rip),%rax
  jmp    L249
  lea    D815(%rip),%rax
  jmp    L249
  lea    D217(%rip),%rax
  jmp    L249
  lea    D694(%rip),%rax
  jmp    L249
  lea    D606(%rip),%rax
  jmp    L249
  lea    D352(%rip),%rax
  jmp    L249
  lea    D217(%rip),%rax
  jmp    L249
  lea    D630(%rip),%rax
  jmp    L249
  lea    D378(%rip),%rax
  jmp    L249
  lea    D129(%rip),%rax
  jmp    L249
  lea    D393(%rip),%rax
  jmp    L249
  lea    D652(%rip),%rax
  jmp    L249
  lea    D269(%rip),%rax
  jmp    L249
L804:
  mov    $0x0,%eax
L249:
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D277
data_type: string
name: parse_data
arguments: data_label: D816
data_type: string
name: parse_data
arguments: data_label: D195
data_type: string
name: parse_data
arguments: data_label: D588
data_type: string
name: parse_data
arguments: data_label: D464
data_type: string
name: parse_data
arguments: data_label: D54
data_type: string
name: parse_data
arguments: data_label: D549
data_type: string
name: parse_data
arguments: data_label: D166
data_type: string
name: parse_data
arguments: data_label: D244
data_type: string
name: parse_data
arguments: data_label: D131
data_type: string
name: parse_data
arguments: data_label: D52
data_type: string
name: parse_data
arguments: data_label: D666
data_type: string
name: parse_data
arguments: data_label: D276
data_type: string
name: parse_data
arguments: data_label: D781
data_type: string
name: parse_data
arguments: data_label: D107
data_type: string
name: parse_data
arguments: data_label: D423
data_type: string
name: parse_data
arguments: data_label: D149
data_type: string
name: parse_data
arguments: data_label: D448
data_type: string
name: parse_data
arguments: data_label: D22
data_type: string
name: parse_data
arguments: data_label: D606
data_type: string
name: parse_data
arguments: data_label: D280
data_type: string
name: parse_data
arguments: data_label: D454
data_type: string
name: parse_data
arguments: data_label: D532
data_type: string
name: parse_data
arguments: data_label: D250
data_type: string
name: parse_data
arguments: data_label: D662
data_type: string
name: parse_data
arguments: data_label: D715
data_type: string
name: parse_data
arguments: data_label: D137
data_type: string
name: parse_data
arguments: data_label: D542
data_type: string
name: parse_data
arguments: data_label: D609
data_type: string
name: parse_data
arguments: data_label: D178
data_type: string
name: parse_data
arguments: data_label: D128
data_type: string
name: parse_data
arguments: data_label: D669
data_type: string
name: parse_data
arguments: data_label: D712
data_type: string
name: parse_data
arguments: data_label: D203
data_type: string
name: parse_data
arguments: data_label: D460
data_type: string
name: parse_data
arguments: data_label: D251
data_type: string
name: parse_data
arguments: data_label: D324
data_type: string
name: parse_data
arguments: data_label: D152
data_type: string
name: parse_data
arguments: data_label: D619
data_type: string
name: parse_data
arguments: data_label: D488
data_type: string
name: parse_data
arguments: data_label: D230
data_type: string
name: parse_data
arguments: data_label: D364
data_type: string
name: parse_data
arguments: data_label: D37
data_type: string
name: parse_data
arguments: data_label: D352
data_type: string
name: parse_data
arguments: data_label: D728
data_type: string
name: parse_data
arguments: data_label: D69
data_type: string
name: parse_data
arguments: data_label: D598
data_type: string
name: parse_data
arguments: data_label: D515
data_type: string
name: parse_data
arguments: data_label: D681
data_type: string
name: parse_data
arguments: data_label: D650
data_type: string
name: parse_data
arguments: data_label: D275
data_type: string
name: parse_data
arguments: data_label: D637
data_type: string
name: parse_data
arguments: data_label: D231
data_type: string
name: parse_data
arguments: data_label: D734
data_type: string
name: parse_data
arguments: data_label: D629
data_type: string
name: parse_data
arguments: data_label: D570
data_type: string
name: parse_data
arguments: data_label: D784
data_type: string
name: parse_data
arguments: data_label: D656
data_type: string
name: parse_data
arguments: data_label: D333
data_type: string
name: parse_data
arguments: data_label: D164
data_type: string
name: parse_data
arguments: data_label: D170
data_type: string
name: parse_data
arguments: data_label: D171
data_type: string
name: parse_data
arguments: data_label: D104
data_type: string
name: parse_data
arguments: data_label: D768
data_type: string
name: parse_data
arguments: data_label: D222
data_type: string
name: parse_data
arguments: data_label: D758
data_type: string
name: parse_data
arguments: data_label: D294
data_type: string
name: parse_data
arguments: data_label: D80
data_type: string
name: parse_data
arguments: data_label: D815
data_type: string
name: parse_data
arguments: data_label: D217
data_type: string
name: parse_data
arguments: data_label: D694
data_type: string
name: parse_data
arguments: data_label: D630
data_type: string
name: parse_data
arguments: data_label: D378
data_type: string
name: parse_data
arguments: data_label: D129
data_type: string
name: parse_data
arguments: data_label: D393
data_type: string
name: parse_data
arguments: data_label: D652
data_type: string
name: parse_data
arguments: data_label: D269
data_type: string

tool: D277: Mae Hong Son

tool: D816: Chiang Mai

tool: D195: Chiang Rai

tool: D588: Nan

tool: D464: Lamphun

tool: D54: Lampang

tool: D549: Phrae

tool: D166: Tak

tool: D244: Sukhothai

tool: D131: Uttaradit

tool: D52: Kamphaeng Phet

tool: D666: Phitsanulok

tool: D276: Phichit

tool: D781: Phetchabun

tool: D107: Uthai Thani

tool: D423: Nakhon Sawan

tool: D149: Nong Khai

tool: D448: Loei

tool: D22: Sakon Nakhon

tool: D606: Nakhon Phanom

tool: D280: Khon Kaen

tool: D454: Kalasin

tool: D532: Maha Sarakham

tool: D250: Roi Et

tool: D662: Chaiyaphum

tool: D715: Nakhon Ratchasima

tool: D137: Buriram

tool: D542: Surin

tool: D609: Sisaket

tool: D178: Narathiwat

tool: D128: Chai Nat

tool: D669: Sing Buri

tool: D712: Lop Buri

tool: D203: Ang Thong

tool: D460: Phra Nakhon Si Ayutthaya

tool: D251: Saraburi

tool: D324: Nonthaburi

tool: D152: Pathum Thani

tool: D619: Krung Thep

tool: D488: Phayao

tool: D230: Samut Prakan

tool: D364: Nakhon Nayok

tool: D37: Chachoengsao

tool: D352: Prachin Buri

tool: D728: Chon Buri

tool: D69: Rayong

tool: D598: Chanthaburi

tool: D515: Trat

tool: D681: Kanchanaburi

tool: D650: Suphan Buri

tool: D275: Ratchaburi

tool: D637: Nakhon Pathom

tool: D231: Samut Songkhram

tool: D734: Samut Sakhon

tool: D629: Phetchaburi

tool: D570: Prachuap Khiri Khan

tool: D784: Chumphon

tool: D656: Ranong

tool: D333: Surat Thani

tool: D164: Phangnga

tool: D170: Phuket

tool: D171: Krabi

tool: D104: Nakhon Si Thammarat

tool: D768: Trang

tool: D222: Phatthalung

tool: D758: Satun

tool: D294: Songkhla

tool: D80: Pattani

tool: D815: Yala

tool: D217: Ubon Ratchathani

tool: D694: Yasothon

tool: D630: Udon Thani

tool: D378: Amnat Charoen

tool: D129: Mukdahan

tool: D393: Nong Bua Lamphu

tool: D652: Sa Kaeo

tool: D269: Bueng Kan

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;
  }
}
```