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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  D87(%rip),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  D10(%rip),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  D13(%rip),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  D92(%rip),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  D67(%rip),%xmm0
  movss  %xmm0,-0xc(%rbp)
  lea    -0x20(%rbp),%rdx
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x24(%rbp),%eax
  cmp    $0x1,%eax
  jne    L30
  mov    -0x20(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x1c(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  movd   %eax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L40
L30:
  mov    -0x24(%rbp),%eax
  cmp    $0x2,%eax
  jne    L47
  mov    -0x20(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x18(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  movd   %eax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L40
L47:
  mov    -0x24(%rbp),%eax
  cmp    $0x3,%eax
  jne    L9
  mov    -0x20(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x14(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  movd   %eax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L40
L9:
  mov    -0x24(%rbp),%eax
  cmp    $0x4,%eax
  jne    L98
  mov    -0x20(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0x10(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  movd   %eax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L40
L98:
  mov    -0x24(%rbp),%eax
  cmp    $0x5,%eax
  jne    L40
  mov    -0x20(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  -0xc(%rbp),%xmm1
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  movd   %eax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L40:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L89
  call   <__stack_chk_fail@plt>
L89:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D87
type: f32
name: retrieve_data
arguments: label: D10
type: f32
name: retrieve_data
arguments: label: D13
type: f32
name: retrieve_data
arguments: label: D92
type: f32
name: retrieve_data
arguments: label: D67
type: f32
name: retrieve_data
arguments: label: D15
type: string
name: retrieve_data
arguments: label: D81
type: string

tool: D87: 4

tool: D10: 4.5

tool: D13: 5

tool: D92: 2

tool: D67: 1.5

tool: D15: %d%d

tool: D81: Total: R$ %0.2f


assistant: ```c
int main() {
  float p1 = 4.00, p2 = 4.50, p3 = 5.00, p4 = 2.00, p5 = 1.50;
  int X, Y;
  scanf("%d%d", &X, &Y);
  if (X == 1) {
    p1 = p1 * Y;
    printf("Total: R$ %0.2f\n", p1);
  } else if (X == 2) {
    p2 = p2 * Y;
    printf("Total: R$ %0.2f\n", p2);
  } else if (X == 3) {
    p3 = p3 * Y;
    printf("Total: R$ %0.2f\n", p3);
  } else if (X == 4) {
    p4 = p4 * Y;
    printf("Total: R$ %0.2f\n", p4);
  } else if (X == 5) {
    p5 = p5 * Y;
    printf("Total: R$ %0.2f\n", p5);
  }
  return 0;
}
```