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

```asm
<main>:
  endbr64
  push   %r15
  lea    D41(%rip),%rdi
  push   %r14
  push   %rbp
  lea    D29(%rip),%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D348(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D119(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D370(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sdl 0x10(%rsp),%xmm1
  mulsd  D315(%rip),%xmm1
  mov    $0x1,%eax
  cvtsi2sdl 0x14(%rsp),%xmm0
  mulsd  D359(%rip),%xmm0
  lea    D253(%rip),%rdi
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x18(%rsp),%xmm0
  mulsd  D9(%rip),%xmm0
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x1c(%rsp),%xmm0
  mulsd  D317(%rip),%xmm0
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x20(%rsp),%xmm0
  mulsd  D295(%rip),%xmm0
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  cvtss2sd %xmm1,%xmm2
  movapd %xmm2,%xmm0
  movq   %xmm2,%r14
  movss  %xmm1,0xc(%rsp)
  call   <printf@plt>
  lea    D76(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movss  0xc(%rsp),%xmm1
  movss  0x24(%rsp),%xmm0
  lea    D299(%rip),%rdi
  subss  %xmm1,%xmm0
  movd   %xmm0,%r15d
  call   <system@plt>
  mov    0x10(%rsp),%esi
  xor    %eax,%eax
  lea    D247(%rip),%rdi
  call   <printf@plt>
  cmpl   $0x1,0x10(%rsp)
  je     L3
  lea    D38(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L23:
  pxor   %xmm1,%xmm1
  mov    $0x73,%ebp
  mov    $0x20,%ebx
  mov    D315(%rip),%rax
  cvtsi2sdl 0x10(%rsp),%xmm1
  mulsd  D315(%rip),%xmm1
  lea    D92(%rip),%rdi
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  pxor   %xmm1,%xmm1
  mov    D359(%rip),%rax
  movsbl %bpl,%edx
  lea    D93(%rip),%rdi
  cvtsi2sd %esi,%xmm1
  mulsd  D359(%rip),%xmm1
  cmp    $0x1,%esi
  cmove  %ebx,%edx
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  pxor   %xmm1,%xmm1
  mov    D9(%rip),%rax
  movsbl %bpl,%edx
  lea    D17(%rip),%rdi
  cvtsi2sd %esi,%xmm1
  mulsd  D9(%rip),%xmm1
  cmp    $0x1,%esi
  cmove  %ebx,%edx
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  pxor   %xmm1,%xmm1
  mov    D317(%rip),%rax
  movsbl %bpl,%edx
  lea    D242(%rip),%rdi
  cvtsi2sd %esi,%xmm1
  mulsd  D317(%rip),%xmm1
  cmp    $0x1,%esi
  cmove  %ebx,%edx
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x20(%rsp),%esi
  pxor   %xmm1,%xmm1
  mov    D295(%rip),%rax
  movsbl %bpl,%edx
  lea    D308(%rip),%rdi
  lea    D148(%rip),%rbp
  cvtsi2sd %esi,%xmm1
  mulsd  D295(%rip),%xmm1
  cmp    $0x1,%esi
  cmove  %ebx,%edx
  movq   %rax,%xmm0
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x20,%esi
  lea    D367(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movq   %r14,%xmm0
  mov    %rbp,%rdi
  lea    D4(%rip),%rsi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D26(%rip),%rsi
  mov    %rbp,%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x24(%rsp),%xmm0
  call   <printf@plt>
  movd   %r15d,%xmm3
  pxor   %xmm0,%xmm0
  lea    D198(%rip),%rdi
  lea    D151(%rip),%rsi
  mov    $0x1,%eax
  cvtss2sd %xmm3,%xmm0
  call   <printf@plt>
  lea    D286(%rip),%rdi
  call   <system@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r14
  pop    %r15
  ret
L3:
  lea    D314(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L23
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D41
data_type: string
name: disassemble_data
arguments: label: D29
data_type: string
name: disassemble_data
arguments: label: D348
data_type: string
name: disassemble_data
arguments: label: D119
data_type: string
name: disassemble_data
arguments: label: D157
data_type: string
name: disassemble_data
arguments: label: D370
data_type: string
name: disassemble_data
arguments: label: D315
data_type: f64
name: disassemble_data
arguments: label: D359
data_type: f64
name: disassemble_data
arguments: label: D253
data_type: string
name: disassemble_data
arguments: label: D9
data_type: f64
name: disassemble_data
arguments: label: D317
data_type: f64
name: disassemble_data
arguments: label: D295
data_type: f64
name: disassemble_data
arguments: label: D76
data_type: string
name: disassemble_data
arguments: label: D64
data_type: string
name: disassemble_data
arguments: label: D299
data_type: string
name: disassemble_data
arguments: label: D247
data_type: string
name: disassemble_data
arguments: label: D38
data_type: string
name: disassemble_data
arguments: label: D92
data_type: string
name: disassemble_data
arguments: label: D93
data_type: string
name: disassemble_data
arguments: label: D17
data_type: string
name: disassemble_data
arguments: label: D242
data_type: string
name: disassemble_data
arguments: label: D308
data_type: string
name: disassemble_data
arguments: label: D148
data_type: string
name: disassemble_data
arguments: label: D367
data_type: string
name: disassemble_data
arguments: label: D4
data_type: string
name: disassemble_data
arguments: label: D26
data_type: string
name: disassemble_data
arguments: label: D198
data_type: string
name: disassemble_data
arguments: label: D151
data_type: string
name: disassemble_data
arguments: label: D286
data_type: string
name: disassemble_data
arguments: label: D314
data_type: string

tool: D41: Bocadillos de chorizo: 

tool: D29: %d

tool: D348: Bocadillos de atun: 

tool: D119: Botellas de agua: 

tool: D157: Refrescos de cola: 

tool: D370: Refrescos de naranja: 

tool: D315: 1.1

tool: D359: 1.4

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


tool: D9: 0.5

tool: D317: 0.75

tool: D295: 0.7

tool: D76: 
Entregado: 

tool: D64: %f

tool: D299: cls

tool: D247:  %2d 

tool: D38: bocadillos

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


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


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


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


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


tool: D148: %42s  %6.2f euros


tool: D367: %42c --------


tool: D4: TOTAL:

tool: D26: Entrega:

tool: D198: %42s  %6.2f euros



tool: D151: Devolucion:

tool: D286: pause

tool: D314: 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;
}
```