user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D144(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x20(%rbp),%eax
  cmp    $0x1,%eax
  jne    L73
  movss  -0x24(%rbp),%xmm1
  movss  D130(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  D145(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x24(%rbp),%xmm0
  subss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x14(%rbp),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd -0xc(%rbp),%xmm3
  movq   %xmm3,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  jmp    L43
L73:
  mov    -0x20(%rbp),%eax
  cmp    $0x2,%eax
  jne    L25
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x1c(%rbp),%eax
  cmp    $0x2,%eax
  jne    L78
  movss  -0x24(%rbp),%xmm0
  movss  D157(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm4,%xmm4
  cvtss2sd -0x10(%rbp),%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D140(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L43
L78:
  mov    -0x1c(%rbp),%eax
  cmp    $0x3,%eax
  jne    L80
  movss  -0x24(%rbp),%xmm1
  movss  D130(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  D145(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x24(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  D25(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x10(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x14(%rbp),%xmm0
  pxor   %xmm5,%xmm5
  cvtss2sd -0x18(%rbp),%xmm5
  movq   %xmm5,%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  jmp    L43
L80:
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L43
L25:
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L43:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L34
  call   <__stack_chk_fail@plt>
L34:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D5
type_guessed: string
name: disassemble_data
arguments: tag: D144
type_guessed: string
name: disassemble_data
arguments: tag: D97
type_guessed: string
name: disassemble_data
arguments: tag: D85
type_guessed: string
name: disassemble_data
arguments: tag: D130
type_guessed: byte[4]
name: disassemble_data
arguments: tag: D145
type_guessed: byte[4]
name: disassemble_data
arguments: tag: D45
type_guessed: string
name: disassemble_data
arguments: tag: D77
type_guessed: string
name: disassemble_data
arguments: tag: D157
type_guessed: byte[4]
name: disassemble_data
arguments: tag: D140
type_guessed: string
name: disassemble_data
arguments: tag: D25
type_guessed: byte[4]
name: disassemble_data
arguments: tag: D24
type_guessed: string
name: disassemble_data
arguments: tag: D3
type_guessed: string
name: disassemble_data
arguments: tag: D4
type_guessed: string

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

tool: D144: %f

tool: D97: 
Qual a opcao de pagamento

1 - A Vista
2 - A Prazo

-->

tool: D85: %d

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

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

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



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

-->

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

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



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

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



tool: D3: 
Numero de Parcelas invalido


tool: D4: 
Opcao de pagamento invalida


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;
}
```