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

```asm
<main>:
  endbr64
  push   %r15
  lea    D35(%rip),%rsi
  push   %r14
  lea    D107(%rip),%r14
  push   %r13
  mov    %r14,%rdi
  push   %r12
  push   %rbp
  lea    D69(%rip),%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r12
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movss  D14(%rip),%xmm4
  ucomiss 0x10(%rsp),%xmm4
  jp     L53
  je     L56
L53:
  lea    0x14(%rsp),%rax
  pxor   %xmm5,%xmm5
  xor    %ebx,%ebx
  mov    %rax,0x8(%rsp)
  lea    D21(%rip),%r15
  lea    D58(%rip),%r13
  movss  %xmm5,(%rsp)
  nopw   0x0(%rax,%rax,1)
L19:
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D78(%rip),%rsi
  mov    %r13,%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  movss  0x14(%rsp),%xmm1
  divss  0x10(%rsp),%xmm1
  cvtss2sd %xmm1,%xmm0
  movss  %xmm1,0x4(%rsp)
  call   <printf@plt>
  movss  0x4(%rsp),%xmm1
  mov    %r14,%rdi
  xor    %eax,%eax
  addss  (%rsp),%xmm1
  lea    D101(%rip),%rsi
  movss  %xmm1,(%rsp)
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movss  D14(%rip),%xmm3
  ucomiss 0x10(%rsp),%xmm3
  jp     L19
  jne    L19
  test   %ebx,%ebx
  je     L56
  pxor   %xmm1,%xmm1
  movss  (%rsp),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  cvtsi2ss %rbx,%xmm1
  lea    D37(%rip),%rsi
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
L30:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  lea    D0(%rip),%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L30
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D35
datatype: string
name: unpack_data
arguments: data_tag: D107
datatype: string
name: unpack_data
arguments: data_tag: D69
datatype: string
name: unpack_data
arguments: data_tag: D14
datatype: byte[4]
name: unpack_data
arguments: data_tag: D21
datatype: string
name: unpack_data
arguments: data_tag: D58
datatype: string
name: unpack_data
arguments: data_tag: D78
datatype: string
name: unpack_data
arguments: data_tag: D101
datatype: string
name: unpack_data
arguments: data_tag: D37
datatype: string
name: unpack_data
arguments: data_tag: D0
datatype: string

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

tool: D107: %s

tool: D69: %f

tool: {"D14": [0x00,0x00,0x80,0xbf]}

tool: D21: Enter the miles driven: 

tool: D58: %s %f

tool: D78: The miles/gallon for this tank was 

tool: D101: 

Enter the gallons used (-1 to end): 

tool: D37: 

The overall average miles/gallon was 

tool: D0: 

Tough Luck....

assistant: ```c
int main(void) {
  unsigned int counter = 0;
  float gallons = 0.0;
  float miles = 0.0;
  float milesPerGallon;
  float average = 0.0;
  printf("%s", "Enter the gallons used (-1 to end): ");
  scanf("%f", &gallons);
  while (gallons != -1) {
    printf("%s", "Enter the miles driven: ");
    scanf("%f", &miles);
    milesPerGallon = miles / gallons;
    printf("%s %f", "The miles/gallon for this tank was ", milesPerGallon);
    average = average + milesPerGallon;
    counter++;
    printf("%s", "\n\nEnter the gallons used (-1 to end): ");
    scanf("%f", &gallons);
  }
  if (counter != 0)
    printf("%s %f", "\n\nThe overall average miles/gallon was ", (average / counter));
  else
    printf("%s", "\n\nTough Luck....");
  return 0;
}
```