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

```asm
<getmove>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x20(%rbp),%rax
  lea    D10(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L62
  mov    $0x0,%eax
  jmp    L35
L62:
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  lea    D43(%rip),%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  cmp    $0x2,%eax
  jne    L19
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L35
L19:
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  lea    D91(%rip),%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  cmp    $0x2,%eax
  jne    L37
  mov    $0x2,%eax
  jmp    L35
L37:
  lea    -0x20(%rbp),%rax
  lea    D64(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L89
  mov    $0x3,%eax
  jmp    L35
L89:
  lea    -0x20(%rbp),%rax
  lea    D8(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L131
  mov    $0x4,%eax
  jmp    L35
L131:
  lea    -0x20(%rbp),%rax
  lea    D70(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L4
  mov    $0x5,%eax
  jmp    L35
L4:
  lea    -0x20(%rbp),%rax
  lea    D63(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L104
  mov    $0x6,%eax
  jmp    L35
L104:
  mov    $0x7,%eax
L35:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L102
  call   <__stack_chk_fail@plt>
L102:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D16
datatype: string
name: retrieve_data
arguments: data_label: D75
datatype: string
name: retrieve_data
arguments: data_label: D10
datatype: string
name: retrieve_data
arguments: data_label: D43
datatype: string
name: retrieve_data
arguments: data_label: D54
datatype: string
name: retrieve_data
arguments: data_label: D91
datatype: string
name: retrieve_data
arguments: data_label: D64
datatype: string
name: retrieve_data
arguments: data_label: D8
datatype: string
name: retrieve_data
arguments: data_label: D70
datatype: string
name: retrieve_data
arguments: data_label: D63
datatype: string

tool: D16: 
enter your move ? 

tool: D75: %20s

tool: D10: part

tool: D43: %d-%d

tool: D54: MOVE: %d - %d


tool: D91: %dx%d

tool: D64: quit

tool: D8: load

tool: D70: save

tool: D63: time

assistant: ```c
int getmove(int *start, int *end) {
  char str[20];
  printf("\nenter your move ? ");
  scanf("%20s", &str[0]);
  if (strstr(str, "part"))
    return 0;
  else if (sscanf(str, "%d-%d", start, end) == 2) {
    printf("MOVE: %d - %d\n", *start, *end);
    return 1;
  } else if (sscanf(str, "%dx%d", start, end) == 2)
    return 2;
  else if (strstr(str, "quit"))
    return 3;
  else if (strstr(str, "load"))
    return 4;
  else if (strstr(str, "save"))
    return 5;
  else if (strstr(str, "time"))
    return 6;
  return 7;
}
```