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

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    D54(%rip),%rdi
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    D299(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D164(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D145(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D333(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D12(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x10(%rsp),%xmm0
  mulsd  D301(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x14(%rsp),%xmm1
  mulsd  D20(%rip),%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x18(%rsp),%xmm1
  mulsd  D16(%rip),%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x1c(%rsp),%xmm1
  mulsd  D50(%rip),%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x20(%rsp),%xmm1
  mulsd  D284(%rip),%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm2,%xmm2
  cvtsd2ss %xmm0,%xmm2
  movss  %xmm2,0xc(%rsp)
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm2,%xmm3
  movq   %xmm3,%rbx
  movapd %xmm3,%xmm0
  lea    D15(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  lea    D308(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  0x24(%rsp),%xmm0
  subss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  lea    D285(%rip),%rdi
  call   <system@plt>
  mov    0x10(%rsp),%esi
  lea    D261(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x1,0x10(%rsp)
  je     L5
  lea    D72(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L27:
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x10(%rsp),%xmm1
  movsd  D301(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  lea    D74(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  cmp    $0x1,%esi
  mov    $0x20,%edx
  mov    $0x73,%eax
  cmovne %eax,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  movsd  D20(%rip),%xmm0
  movsbl %dl,%edx
  mulsd  %xmm0,%xmm1
  lea    D117(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  cmp    $0x1,%esi
  mov    $0x20,%edx
  mov    $0x73,%eax
  cmovne %eax,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  movsd  D16(%rip),%xmm0
  movsbl %dl,%edx
  mulsd  %xmm0,%xmm1
  lea    D80(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  cmp    $0x1,%esi
  mov    $0x20,%edx
  mov    $0x73,%eax
  cmovne %eax,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  movsd  D50(%rip),%xmm0
  movsbl %dl,%edx
  mulsd  %xmm0,%xmm1
  lea    D331(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x20(%rsp),%esi
  cmp    $0x1,%esi
  mov    $0x20,%edx
  mov    $0x73,%eax
  cmovne %eax,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  movsd  D284(%rip),%xmm0
  movsbl %dl,%edx
  mulsd  %xmm0,%xmm1
  lea    D208(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x20,%esi
  lea    D89(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movq   %rbx,%xmm0
  lea    D76(%rip),%rsi
  lea    D267(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x24(%rsp),%xmm0
  lea    D141(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  lea    D312(%rip),%rsi
  lea    D206(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D177(%rip),%rdi
  call   <system@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  ret
L5:
  lea    D283(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L27
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D54
data_type: string
name: unpack_data
arguments: data_tag: D299
data_type: string
name: unpack_data
arguments: data_tag: D164
data_type: string
name: unpack_data
arguments: data_tag: D145
data_type: string
name: unpack_data
arguments: data_tag: D333
data_type: string
name: unpack_data
arguments: data_tag: D12
data_type: string
name: unpack_data
arguments: data_tag: D301
data_type: f64
name: unpack_data
arguments: data_tag: D20
data_type: f64
name: unpack_data
arguments: data_tag: D16
data_type: f64
name: unpack_data
arguments: data_tag: D50
data_type: f64
name: unpack_data
arguments: data_tag: D284
data_type: f64
name: unpack_data
arguments: data_tag: D15
data_type: string
name: unpack_data
arguments: data_tag: D99
data_type: string
name: unpack_data
arguments: data_tag: D308
data_type: string
name: unpack_data
arguments: data_tag: D285
data_type: string
name: unpack_data
arguments: data_tag: D261
data_type: string
name: unpack_data
arguments: data_tag: D72
data_type: string
name: unpack_data
arguments: data_tag: D74
data_type: string
name: unpack_data
arguments: data_tag: D117
data_type: string
name: unpack_data
arguments: data_tag: D80
data_type: string
name: unpack_data
arguments: data_tag: D331
data_type: string
name: unpack_data
arguments: data_tag: D208
data_type: string
name: unpack_data
arguments: data_tag: D89
data_type: string
name: unpack_data
arguments: data_tag: D76
data_type: string
name: unpack_data
arguments: data_tag: D267
data_type: string
name: unpack_data
arguments: data_tag: D141
data_type: string
name: unpack_data
arguments: data_tag: D312
data_type: string
name: unpack_data
arguments: data_tag: D206
data_type: string
name: unpack_data
arguments: data_tag: D177
data_type: string
name: unpack_data
arguments: data_tag: D283
data_type: string

tool: D54: Bocadillos de chorizo: 

tool: D299: %d

tool: D164: Bocadillos de atun: 

tool: D145: Botellas de agua: 

tool: D333: Refrescos de cola: 

tool: D12: Refrescos de naranja: 

tool: D301: 1.1

tool: D20: 1.4

tool: D16: 0.5

tool: D50: 0.75

tool: D284: 0.7

tool: D15: 
En total son %.2f euros.


tool: D99: 
Entregado: 

tool: D308: %f

tool: D285: cls

tool: D261:  %2d 

tool: D72: bocadillos

tool: D74:  de chorizo a %5.2f euros son %6.2f euros


tool: D117:  %2d bocadillo%c de atun a    %5.2f euros son %6.2f euros


tool: D80:  %2d botella%c de agua a      %5.2f euros son %6.2f euros


tool: D331:  %2d refresco%c de cola a     %5.2f euros son %6.2f euros


tool: D208:  %2d refresco%c de naranja a  %5.2f euros son %6.2f euros


tool: D89: %42c --------


tool: D76: TOTAL:

tool: D267: %42s  %6.2f euros


tool: D141: Entrega:

tool: D312: Devolucion:

tool: D206: %42s  %6.2f euros



tool: D177: pause

tool: D283: bocadillo 

assistant: ```c
int main() {
  int n_chorizo, n_atun, n_agua, n_cola, n_naranja;
  float total, entrega, devolucion;
  char s;
  printf("Bocadillos de chorizo: ");
  scanf("%d", &n_chorizo);
  printf("Bocadillos de atun: ");
  scanf("%d", &n_atun);
  printf("Botellas de agua: ");
  scanf("%d", &n_agua);
  printf("Refrescos de cola: ");
  scanf("%d", &n_cola);
  printf("Refrescos de naranja: ");
  scanf("%d", &n_naranja);
  total = 1.10 * n_chorizo + 1.40 * n_atun + 0.50 * n_agua + 0.75 * n_cola + 0.70 * n_naranja;
  printf("\nEn total son %.2f euros.\n", total);
  printf("\nEntregado: ");
  scanf("%f", &entrega);
  devolucion = entrega - total;
  system("cls");
  printf(" %2d ", n_chorizo);
  if (n_chorizo == 1)
    printf("bocadillo ");
  else
    printf("bocadillos");
  printf(" de chorizo a %5.2f euros son %6.2f euros\n", 1.10, 1.10 * n_chorizo);
  if (n_atun == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d bocadillo%c de atun a    %5.2f euros son %6.2f euros\n", n_atun, s, 1.40, 1.40 * n_atun);
  if (n_agua == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d botella%c de agua a      %5.2f euros son %6.2f euros\n", n_agua, s, 0.50, 0.50 * n_agua);
  if (n_cola == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d refresco%c de cola a     %5.2f euros son %6.2f euros\n", n_cola, s, 0.75, 0.75 * n_cola);
  if (n_naranja == 1)
    s = ' ';
  else
    s = 's';
  printf(" %2d refresco%c de naranja a  %5.2f euros son %6.2f euros\n", n_naranja, s, 0.70, 0.70 * n_naranja);
  printf("%42c --------\n", ' ');
  printf("%42s  %6.2f euros\n", "TOTAL:", total);
  printf("%42s  %6.2f euros\n", "Entrega:", entrega);
  printf("%42s  %6.2f euros\n\n", "Devolucion:", devolucion);
  system("pause");
  return 0;
}
```