user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D5(%rip),%rdi
  lea    D53(%rip),%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D142(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x10(%rsp),%eax
  cmp    $0x1,%eax
  je     L26
  cmp    $0x2,%eax
  je     L13
  lea    D75(%rip),%rdi
  call   <puts@plt>
L73:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x20,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L13:
  lea    D136(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x14(%rsp),%eax
  cmp    $0x2,%eax
  je     L21
  cmp    $0x3,%eax
  je     L32
  lea    D91(%rip),%rdi
  call   <puts@plt>
  jmp    L73
L26:
  movss  0xc(%rsp),%xmm1
  movss  D32(%rip),%xmm0
  mov    $0x2,%eax
  lea    D149(%rip),%rdi
  mulss  %xmm1,%xmm0
  divss  D72(%rip),%xmm0
  subss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  jmp    L73
L32:
  movss  0xc(%rsp),%xmm1
  movss  D32(%rip),%xmm0
  lea    D147(%rip),%rdi
  mulss  %xmm1,%xmm0
  divss  D72(%rip),%xmm0
  addss  %xmm0,%xmm1
  cvtss2sd %xmm0,%xmm0
  movaps %xmm1,%xmm2
  cvtss2sd %xmm1,%xmm1
  divss  D145(%rip),%xmm2
  cvtss2sd %xmm2,%xmm2
  call   <printf@plt>
  jmp    L73
L21:
  movss  D107(%rip),%xmm0
  mulss  0xc(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D42(%rip),%rdi
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  jmp    L73
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D5
type_guessed: string
name: disassemble_data
arguments: data_tag: D53
type_guessed: string
name: disassemble_data
arguments: data_tag: D21
type_guessed: string
name: disassemble_data
arguments: data_tag: D142
type_guessed: string
name: disassemble_data
arguments: data_tag: D75
type_guessed: string
name: disassemble_data
arguments: data_tag: D136
type_guessed: string
name: disassemble_data
arguments: data_tag: D91
type_guessed: string
name: disassemble_data
arguments: data_tag: D32
type_guessed: byte[4]
name: disassemble_data
arguments: data_tag: D149
type_guessed: string
name: disassemble_data
arguments: data_tag: D72
type_guessed: byte[4]
name: disassemble_data
arguments: data_tag: D147
type_guessed: string
name: disassemble_data
arguments: data_tag: D145
type_guessed: byte[4]
name: disassemble_data
arguments: data_tag: D107
type_guessed: byte[4]
name: disassemble_data
arguments: data_tag: D42
type_guessed: string

tool: D5: 
Qual o valor da compra
-->

tool: D53: %d

tool: D21: %f

tool: D142: 
Qual a opcao de pagamento

1 - A Vista
2 - A Prazo

-->

tool: D75: 
Opcao de pagamento invalida


tool: D136: 
Numero de Parcelas (2 ou 3):

-->

tool: D91: 
Numero de Parcelas invalido


tool: {"D32": [0x00,0x00,0x20,0x41]}

tool: D149: 
Voce ganhou um desconto de R$%.2f
Valor a pagar %.2f



tool: {"D72": [0x00,0x00,0xc8,0x42]}

tool: D147: 
Valor do acrecimo R$%.2f
Valor a Pagar R$%.2f
Valor de cada parcela R$%.2f



tool: {"D145": [0x00,0x00,0x40,0x40]}

tool: {"D107": [0x00,0x00,0x00,0x3f]}

tool: D42: 
Valor de cada parcela R$%.2f



assistant: ```c
int main() {
  float vlr_compra, a_pag, parc, desc, acres;
  int op_pag, n_parc;
  printf("\nQual o valor da compra\n-->");
  scanf("%f", &vlr_compra);
  printf("\nQual a opcao de pagamento\n\n1 - A Vista\n2 - A Prazo\n\n-->");
  scanf("%d", &op_pag);
  if (op_pag == 1) {
    desc = vlr_compra * 10 / 100;
    a_pag = vlr_compra - desc;
    printf("\nVoce ganhou um desconto de R$%.2f\nValor a pagar %.2f\n\n", desc, a_pag);
  } else {
    if (op_pag == 2) {
      printf("\nNumero de Parcelas (2 ou 3):\n\n-->");
      scanf("%d", &n_parc);
      if (n_parc == 2) {
        parc = vlr_compra / 2;
        printf("\nValor de cada parcela R$%.2f\n\n", parc);
      } else {
        if (n_parc == 3) {
          acres = vlr_compra * 10 / 100;
          a_pag = vlr_compra + acres;
          parc = a_pag / 3;
          printf("\nValor do acrecimo R$%.2f\nValor a Pagar R$%.2f\nValor de cada parcela R$%.2f\n\n", acres, a_pag, parc);
        } else {
          printf("\nNumero de Parcelas invalido\n\n");
        }
      }
    } else {
      printf("\nOpcao de pagamento invalida\n\n");
    }
  }
  return 0;
}
```