user: What would the C source look like for the assembly code provided here?

```asm
<getvalue>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D1(%rip),%rax
  mov    %rax,-0x40(%rbp)
  lea    D51(%rip),%rax
  mov    %rax,-0x38(%rbp)
  lea    D59(%rip),%rax
  mov    %rax,-0x30(%rbp)
  lea    D46(%rip),%rax
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x60(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L121
L21:
  mov    -0x70(%rbp),%rdx
  lea    -0x12(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,8),%rdx
  lea    -0x12(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  lea    -0x12(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <stringpos@plt>
  mov    %eax,-0x60(%rbp)
  addl   $0x1,-0x5c(%rbp)
L121:
  cmpl   $0x0,-0x60(%rbp)
  jne    L32
  cmpl   $0x3,-0x5c(%rbp)
  jle    L21
L32:
  cmpl   $0x0,-0x60(%rbp)
  jne    L124
  mov    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L124:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x73,%eax
  je     L34
  cmp    $0x73,%eax
  jg     L6
  cmp    $0x66,%eax
  je     L96
  cmp    $0x66,%eax
  jg     L6
  cmp    $0x46,%eax
  je     L60
  cmp    $0x64,%eax
  jne    L6
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    -0x80(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    $0x0,%eax
  jmp    L77
L96:
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mov    -0x50(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    $0x0,%eax
  jmp    L77
L60:
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <atof@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x48(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    $0x0,%eax
  jmp    L77
L34:
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    $0x0,%eax
  jmp    L77
L6:
  mov    -0x78(%rbp),%rax
  mov    %rax,%rsi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L77:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L128
  call   <__stack_chk_fail@plt>
L128:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D1
type_guessed: string
name: unpack_data
arguments: label: D51
type_guessed: string
name: unpack_data
arguments: label: D59
type_guessed: string
name: unpack_data
arguments: label: D46
type_guessed: string
name: unpack_data
arguments: label: D9
type_guessed: string
name: unpack_data
arguments: label: D36
type_guessed: string

tool: D1: =

tool: D51: :

tool: D59:  =

tool: D46:  :

tool: D9: Variable "%s" not found!


tool: D36: WARNING: bad argument type "%s" found!


assistant: ```c
int getvalue(char *s, char *arg, char *type, int *var) {
  int pos, inum;
  double *dbl;
  float *flt;
  char argt[10], *str, *symb[4];
  symb[0] = "=";
  symb[1] = ":";
  symb[2] = " =";
  symb[3] = " :";
  pos = 0;
  inum = 0;
  while (pos == 0 && inum < 4) {
    strcpy(argt, arg);
    strcat(argt, symb[inum]);
    pos = stringpos(s, argt);
    inum++;
  }
  if (pos == 0) {
    printf("Variable \"%s\" not found!\n", arg);
    exit(-1);
  }
  switch (type[0]) {
  case 'd':
    *var = atoi(&s[pos]);
    return (0);
  case 'f':
    flt = (float *)var;
    *flt = atof(&s[pos]);
    return (0);
  case 'F':
    dbl = (double *)var;
    *dbl = atof(&s[pos]);
    return (0);
  case 's':
    str = (char *)var;
    strcpy(str, &s[pos]);
    return (0);
  default:
    printf("WARNING: bad argument type \"%s\" found!\n", type);
    exit(-1);
  }
}
```