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

```asm
<get_dump_format>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x5,%edx
  lea    D110(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L96
  mov    $0x1,%eax
  jmp    L151
L96:
  mov    -0x8(%rbp),%rax
  mov    $0x5,%edx
  lea    D46(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L126
  mov    $0x2,%eax
  jmp    L151
L126:
  mov    -0x8(%rbp),%rax
  mov    $0xc,%edx
  lea    D70(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L84
  mov    $0x3,%eax
  jmp    L151
L84:
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D32(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L11
  mov    $0x4,%eax
  jmp    L151
L11:
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D108(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L225
  mov    $0x5,%eax
  jmp    L151
L225:
  mov    -0x8(%rbp),%rax
  mov    $0xa,%edx
  lea    D118(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L132
  mov    $0x6,%eax
  jmp    L151
L132:
  mov    -0x8(%rbp),%rax
  mov    $0x7,%edx
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L95
  mov    $0x7,%eax
  jmp    L151
L95:
  mov    -0x8(%rbp),%rax
  mov    $0xc,%edx
  lea    D91(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L139
  mov    $0x7,%eax
  jmp    L151
L139:
  mov    -0x8(%rbp),%rax
  mov    $0xc,%edx
  lea    D57(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L145
  mov    $0x8,%eax
  jmp    L151
L145:
  mov    -0x8(%rbp),%rax
  mov    $0x8,%edx
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L16
  mov    $0x9,%eax
  jmp    L151
L16:
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D24(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L52
  mov    $0xa,%eax
  jmp    L151
L52:
  mov    -0x8(%rbp),%rax
  mov    $0x8,%edx
  lea    D111(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L60
  mov    $0xb,%eax
  jmp    L151
L60:
  mov    $0x0,%eax
L151:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D110
type: string
name: retrieve_data
arguments: tag: D46
type: string
name: retrieve_data
arguments: tag: D70
type: string
name: retrieve_data
arguments: tag: D32
type: string
name: retrieve_data
arguments: tag: D108
type: string
name: retrieve_data
arguments: tag: D118
type: string
name: retrieve_data
arguments: tag: D30
type: string
name: retrieve_data
arguments: tag: D91
type: string
name: retrieve_data
arguments: tag: D57
type: string
name: retrieve_data
arguments: tag: D2
type: string
name: retrieve_data
arguments: tag: D24
type: string
name: retrieve_data
arguments: tag: D111
type: string

tool: D110: audio

tool: D46: video

tool: D70: applications

tool: D32: groups

tool: D108: events

tool: D118: blog_posts

tool: D30: memlite

tool: D91: members_lite

tool: D57: market_items

tool: D2: question

tool: D24: topics

tool: D111: minifeed

assistant: ```c
int get_dump_format(char *str) {
  if (!strncmp(str, "audio", sizeof("audio") - 1)) {
    return 1;
  }
  if (!strncmp(str, "video", sizeof("video") - 1)) {
    return 2;
  }
  if (!strncmp(str, "applications", sizeof("applications") - 1)) {
    return 3;
  }
  if (!strncmp(str, "groups", sizeof("groups") - 1)) {
    return 4;
  }
  if (!strncmp(str, "events", sizeof("events") - 1)) {
    return 5;
  }
  if (!strncmp(str, "blog_posts", sizeof("blog_posts") - 1)) {
    return 6;
  }
  if (!strncmp(str, "memlite", sizeof("memlite") - 1)) {
    return 7;
  }
  if (!strncmp(str, "members_lite", sizeof("members_lite") - 1)) {
    return 7;
  }
  if (!strncmp(str, "market_items", sizeof("market_items") - 1)) {
    return 8;
  }
  if (!strncmp(str, "question", sizeof("question") - 1)) {
    return 9;
  }
  if (!strncmp(str, "topics", sizeof("topics") - 1)) {
    return 10;
  }
  if (!strncmp(str, "minifeed", sizeof("minifeed") - 1)) {
    return 11;
  }
  return 0;
}
```