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

```asm
<update>:
  endbr64
  sub    $0x8,%rsp
  test   %edx,%edx
  je     L124
  cmp    $0x1,%edx
  je     L53
  cmp    $0x2,%edx
  je     L105
  cmp    $0x3,%edx
  jne    L49
  mov    %esi,%edx
  lea    D65(%rip),%rsi
  call   <sprintf@plt>
L4:
  pop    %rax
  ret
  nop
L53:
  mov    %esi,%edx
  lea    D43(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
L124:
  mov    %esi,%edx
  lea    D47(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
L49:
  cmp    $0x4,%edx
  jne    L101
  mov    %esi,%edx
  lea    D118(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
L101:
  cmp    $0x5,%edx
  jne    L31
  mov    %esi,%edx
  lea    D89(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
  nopw   0x0(%rax,%rax,1)
L31:
  cmp    $0x6,%edx
  jne    L75
  mov    %esi,%edx
  lea    D129(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
  nopl   (%rax)
L75:
  cmp    $0x7,%edx
  jne    L83
  mov    %esi,%edx
  lea    D103(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
  nopl   (%rax)
L105:
  mov    %esi,%edx
  lea    D53(%rip),%rsi
  call   <sprintf@plt>
  pop    %rax
  ret
L83:
  cmp    $0x8,%edx
  jne    L115
  mov    %esi,%edx
  add    $0x8,%rsp
  lea    D31(%rip),%rsi
  jmp    1050 <sprintf@plt>
L115:
  cmp    $0x9,%edx
  jne    L108
  mov    %esi,%edx
  add    $0x8,%rsp
  lea    D66(%rip),%rsi
  jmp    1050 <sprintf@plt>
L108:
  cmp    $0xa,%edx
  jne    L41
  mov    %esi,%edx
  add    $0x8,%rsp
  lea    D59(%rip),%rsi
  jmp    1050 <sprintf@plt>
L41:
  cmp    $0xb,%edx
  jne    L76
  mov    %esi,%edx
  add    $0x8,%rsp
  lea    D33(%rip),%rsi
  jmp    1050 <sprintf@plt>
L76:
  cmp    $0xc,%edx
  jne    L4
  mov    %esi,%edx
  add    $0x8,%rsp
  lea    D119(%rip),%rsi
  jmp    1050 <sprintf@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D65
type_infered: string
name: unpack_data
arguments: data_label: D43
type_infered: string
name: unpack_data
arguments: data_label: D47
type_infered: string
name: unpack_data
arguments: data_label: D118
type_infered: string
name: unpack_data
arguments: data_label: D89
type_infered: string
name: unpack_data
arguments: data_label: D129
type_infered: string
name: unpack_data
arguments: data_label: D103
type_infered: string
name: unpack_data
arguments: data_label: D53
type_infered: string
name: unpack_data
arguments: data_label: D31
type_infered: string
name: unpack_data
arguments: data_label: D66
type_infered: string
name: unpack_data
arguments: data_label: D59
type_infered: string
name: unpack_data
arguments: data_label: D33
type_infered: string
name: unpack_data
arguments: data_label: D119
type_infered: string

tool: D65: select determiner from words where rowid='%d'

tool: D43: select adverb from words where rowid='%d'

tool: D47: select adjective from words where rowid='%d'

tool: D118: select nouns from words where rowid='%d'

tool: D89: select prefix from words where rowid='%d'

tool: D129: select preposition from words where rowid='%d'

tool: D103: select pronoun from words where rowid='%d'

tool: D53: select conjunction from words where rowid='%d'

tool: D31: select suffix from words where rowid='%d'

tool: D66: select verb from words where rowid='%d'

tool: D59: select punctuation from words where rowid='%d'

tool: D33: select intergection from words where rowid='%d'

tool: D119: select unknown from words where rowid='%d'

assistant: ```c
void update(char queries[100], int r_id, int c_id) {
  if (c_id == 0)
    sprintf(queries, "select adjective from words where rowid='%d'", r_id);
  if (c_id == 1)
    sprintf(queries, "select adverb from words where rowid='%d'", r_id);
  if (c_id == 2)
    sprintf(queries, "select conjunction from words where rowid='%d'", r_id);
  if (c_id == 3)
    sprintf(queries, "select determiner from words where rowid='%d'", r_id);
  if (c_id == 4)
    sprintf(queries, "select nouns from words where rowid='%d'", r_id);
  if (c_id == 5)
    sprintf(queries, "select prefix from words where rowid='%d'", r_id);
  if (c_id == 6)
    sprintf(queries, "select preposition from words where rowid='%d'", r_id);
  if (c_id == 7)
    sprintf(queries, "select pronoun from words where rowid='%d'", r_id);
  if (c_id == 8)
    sprintf(queries, "select suffix from words where rowid='%d'", r_id);
  if (c_id == 9)
    sprintf(queries, "select verb from words where rowid='%d'", r_id);
  if (c_id == 10)
    sprintf(queries, "select punctuation from words where rowid='%d'", r_id);
  if (c_id == 11)
    sprintf(queries, "select intergection from words where rowid='%d'", r_id);
  if (c_id == 12)
    sprintf(queries, "select unknown from words where rowid='%d'", r_id);
}
```