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

```asm
<get_dump_format>:
  endbr64
  push   %rbp
  mov    $0xd,%edx
  lea    D90(%rip),%rsi
  mov    %rdi,%rbp
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x2,%eax
  test   %r8d,%r8d
  je     L138
  mov    $0xd,%edx
  lea    D104(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  jne    L124
L138:
  pop    %rbp
  ret
  nopl   0x0(%rax)
L124:
  mov    $0xc,%edx
  lea    D26(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  mov    %eax,%r8d
  mov    $0x3,%eax
  test   %r8d,%r8d
  je     L138
  mov    $0x11,%edx
  lea    D82(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L105
  mov    $0x14,%edx
  lea    D66(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L105
  mov    $0x11,%edx
  lea    D27(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L189
  mov    $0x14,%edx
  lea    D41(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L189
  mov    $0x10,%edx
  lea    D40(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L165
  mov    $0x13,%edx
  lea    D165(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L165
  mov    $0xf,%edx
  lea    D123(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L174
  mov    $0x12,%edx
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L174
  mov    $0xf,%edx
  lea    D180(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L49
  mov    $0x12,%edx
  lea    D49(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L49
  mov    $0x8,%edx
  lea    D176(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L78
  mov    $0xb,%edx
  lea    D145(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L78
  mov    $0x8,%edx
  lea    D52(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L98
  mov    $0xb,%edx
  lea    D247(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L98
  mov    $0x6,%edx
  lea    D175(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L18
  mov    $0xf,%edx
  lea    D139(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L52
  mov    $0xc,%edx
  lea    D192(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L200
  mov    $0xa,%edx
  lea    D207(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L177
  mov    $0xc,%edx
  lea    D197(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L70
  mov    $0x8,%edx
  lea    D111(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L88
  mov    $0xa,%edx
  lea    D170(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L54
  mov    %rbp,%rdi
  mov    $0x9,%edx
  lea    D53(%rip),%rsi
  call   <strncmp@plt>
  pop    %rbp
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0x12,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L105:
  mov    $0x6,%eax
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L189:
  mov    $0x7,%eax
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L165:
  mov    $0xa,%eax
  pop    %rbp
  ret
L174:
  mov    $0x8,%eax
  pop    %rbp
  ret
L49:
  mov    $0x9,%eax
  pop    %rbp
  ret
L78:
  mov    $0x4,%eax
  pop    %rbp
  ret
L98:
  mov    $0x5,%eax
  pop    %rbp
  ret
L18:
  mov    $0xb,%eax
  pop    %rbp
  ret
L200:
  mov    $0xd,%eax
  pop    %rbp
  ret
L52:
  mov    $0xc,%eax
  pop    %rbp
  ret
L54:
  mov    $0x11,%eax
  pop    %rbp
  ret
L88:
  mov    $0x10,%eax
  pop    %rbp
  ret
L70:
  mov    $0xf,%eax
  pop    %rbp
  ret
L177:
  mov    $0xe,%eax
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D90
type_infered: string
name: retrieve_data
arguments: label: D104
type_infered: string
name: retrieve_data
arguments: label: D26
type_infered: string
name: retrieve_data
arguments: label: D82
type_infered: string
name: retrieve_data
arguments: label: D66
type_infered: string
name: retrieve_data
arguments: label: D27
type_infered: string
name: retrieve_data
arguments: label: D41
type_infered: string
name: retrieve_data
arguments: label: D40
type_infered: string
name: retrieve_data
arguments: label: D165
type_infered: string
name: retrieve_data
arguments: label: D123
type_infered: string
name: retrieve_data
arguments: label: D74
type_infered: string
name: retrieve_data
arguments: label: D180
type_infered: string
name: retrieve_data
arguments: label: D49
type_infered: string
name: retrieve_data
arguments: label: D176
type_infered: string
name: retrieve_data
arguments: label: D145
type_infered: string
name: retrieve_data
arguments: label: D52
type_infered: string
name: retrieve_data
arguments: label: D247
type_infered: string
name: retrieve_data
arguments: label: D175
type_infered: string
name: retrieve_data
arguments: label: D139
type_infered: string
name: retrieve_data
arguments: label: D192
type_infered: string
name: retrieve_data
arguments: label: D207
type_infered: string
name: retrieve_data
arguments: label: D197
type_infered: string
name: retrieve_data
arguments: label: D111
type_infered: string
name: retrieve_data
arguments: label: D170
type_infered: string
name: retrieve_data
arguments: label: D53
type_infered: string

tool: D90: member_groups

tool: D104: group_members

tool: D26: groups_short

tool: D82: app_fans_settings

tool: D66: app_members_settings

tool: D27: fan_apps_settings

tool: D41: member_apps_settings

tool: D40: fan_apps_balance

tool: D165: member_apps_balance

tool: D123: app_fans_notify

tool: D74: app_members_notify

tool: D180: fan_apps_notify

tool: D49: member_apps_notify

tool: D176: app_fans

tool: D145: app_members

tool: D52: fan_apps

tool: D247: member_apps

tool: D175: family

tool: D139: widget_comments

tool: D192: widget_votes

tool: D207: blacklist

tool: D197: blacklisted

tool: D111: banlist

tool: D170: banlisted

tool: D53: photorev

assistant: ```c
int get_dump_format(char *str) {
  if (!strncmp(str, "member_groups", 13)) {
    return 2;
  }
  if (!strncmp(str, "group_members", 13)) {
    return 1;
  }
  if (!strncmp(str, "groups_short", 12)) {
    return 3;
  }
  if (!strncmp(str, "app_fans_settings", 17) || !strncmp(str, "app_members_settings", 20)) {
    return 6;
  }
  if (!strncmp(str, "fan_apps_settings", 17) || !strncmp(str, "member_apps_settings", 20)) {
    return 7;
  }
  if (!strncmp(str, "fan_apps_balance", 16) || !strncmp(str, "member_apps_balance", 19)) {
    return 10;
  }
  if (!strncmp(str, "app_fans_notify", 15) || !strncmp(str, "app_members_notify", 18)) {
    return 8;
  }
  if (!strncmp(str, "fan_apps_notify", 15) || !strncmp(str, "member_apps_notify", 18)) {
    return 9;
  }
  if (!strncmp(str, "app_fans", 8) || !strncmp(str, "app_members", 11)) {
    return 4;
  }
  if (!strncmp(str, "fan_apps", 8) || !strncmp(str, "member_apps", 11)) {
    return 5;
  }
  if (!strncmp(str, "family", 6)) {
    return 11;
  }
  if (!strncmp(str, "widget_comments", 15)) {
    return 12;
  }
  if (!strncmp(str, "widget_votes", 12)) {
    return 13;
  }
  if (!strncmp(str, "blacklist", 10)) {
    return 14;
  }
  if (!strncmp(str, "blacklisted", 12)) {
    return 15;
  }
  if (!strncmp(str, "banlist", 8)) {
    return 16;
  }
  if (!strncmp(str, "banlisted", 10)) {
    return 17;
  }
  if (!strncmp(str, "photorev", 9)) {
    return 18;
  }
  return 0;
}
```