user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  jmp    L21
L23:
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x20(%rbp),%eax
  cmp    $0xffffffff,%eax
  je     L49
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x1c(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mov    -0x20(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x20(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x14(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x1c(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x10(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  jmp    L57
L49:
  pxor   %xmm2,%xmm2
  cvtss2sd -0x18(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L43
L57:
  movss  -0x10(%rbp),%xmm0
  divss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  pxor   %xmm3,%xmm3
  cvtss2sd -0xc(%rbp),%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L21:
  mov    -0x20(%rbp),%eax
  cmp    $0xffffffff,%eax
  jne    L23
L43:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L29
  call   <__stack_chk_fail@plt>
L29:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D20
datatype: string
name: unpack_data
arguments: data_label: D40
datatype: string
name: unpack_data
arguments: data_label: D36
datatype: string
name: unpack_data
arguments: data_label: D10
datatype: string
name: unpack_data
arguments: data_label: D54
datatype: string

tool: D20: Enter the gallons used ( -1 to end):

tool: D40: %d

tool: D36: Enter the miles driven:

tool: D10: The overall average Miles/Gallon was %f


tool: D54: The Miles / Gallon for this tank was %f


assistant: ```c
int main(void) {
  int GallonsUsed, MilesDriven;
  float MilesPerGallon, OverallAverageMilesPerGallon, iTotGas, iTotMiles;
  iTotGas = 0;
  iTotMiles = 0;
  while (GallonsUsed != -1) {
    printf("Enter the gallons used ( -1 to end):\n");
    scanf("%d", &GallonsUsed);
    if (GallonsUsed != -1) {
      printf("Enter the miles driven:\n");
      scanf("%d", &MilesDriven);
      MilesPerGallon = (float)MilesDriven / GallonsUsed;
      iTotGas = iTotGas + GallonsUsed;
      iTotMiles = iTotMiles + MilesDriven;
    } else {
      printf("The overall average Miles/Gallon was %f\n", OverallAverageMilesPerGallon);
      break;
    }
    OverallAverageMilesPerGallon = iTotMiles / iTotGas;
    printf("The Miles / Gallon for this tank was %f\n", MilesPerGallon);
  }
  return 0;
}
```