user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
L17:
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x20(%rbp),%eax
  cmp    $0x1,%eax
  jne    L78
  movss  -0x1c(%rbp),%xmm1
  movss  D40(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  jmp    L2
L78:
  mov    -0x20(%rbp),%eax
  cmp    $0x2,%eax
  jne    L80
  movss  -0x18(%rbp),%xmm1
  movss  D40(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  jmp    L2
L83:
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x20(%rbp),%eax
  cmp    $0x1,%eax
  jne    L28
  movss  -0x1c(%rbp),%xmm1
  movss  D40(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  jmp    L80
L28:
  mov    -0x20(%rbp),%eax
  cmp    $0x2,%eax
  jne    L80
  movss  -0x18(%rbp),%xmm1
  movss  D40(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
L80:
  mov    -0x20(%rbp),%eax
  cmp    $0x2,%eax
  jg     L83
  mov    -0x20(%rbp),%eax
  test   %eax,%eax
  jle    L83
L2:
  movss  -0x14(%rbp),%xmm1
  movss  D40(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x21(%rbp),%rax
  mov    %rax,%rsi
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x21(%rbp),%eax
  cmp    $0x73,%al
  je     L17
  movss  -0x1c(%rbp),%xmm0
  movaps %xmm0,%xmm1
  divss  -0x14(%rbp),%xmm1
  movss  D115(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm1
  divss  -0x14(%rbp),%xmm1
  movss  D115(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x10(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd -0x1c(%rbp),%xmm2
  movq   %xmm2,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd -0xc(%rbp),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd -0x18(%rbp),%xmm3
  movq   %xmm3,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm4,%xmm4
  cvtss2sd -0x14(%rbp),%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L20
  call   <__stack_chk_fail@plt>
L20:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D15
type_guessed: string
name: retrieve_data
arguments: tag: D19
type_guessed: string
name: retrieve_data
arguments: tag: D40
type_guessed: byte[4]
name: retrieve_data
arguments: tag: D57
type_guessed: string
name: retrieve_data
arguments: tag: D59
type_guessed: string
name: retrieve_data
arguments: tag: D46
type_guessed: string
name: retrieve_data
arguments: tag: D115
type_guessed: byte[4]
name: retrieve_data
arguments: tag: D82
type_guessed: string
name: retrieve_data
arguments: tag: D39
type_guessed: string
name: retrieve_data
arguments: tag: D62
type_guessed: string

tool: D15: Para votar no Candidato1, digite 1 ou para votar no Candidato2, digite 2:

tool: D19: %d

tool: {"D40": [0x00,0x00,0x80,0x3f]}

tool: D57: 
Vc digitou um numero errado, favor repetir.
Para votar no Candidato1, digite 1 ou para votar no Candidato2, digite 2:

tool: D59: 
Deseja continuar:(s/n)?

tool: D46:  %c

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

tool: D82: 
Total de Votos do Candidato1 = %.0f, com %.0f%% dos Votos.


tool: D39: 
Total de Votos do Candidato2 = %.0f, com %.0f%% dos Votos.


tool: D62: 
Total de Votantes: %.0f.


assistant: ```c
int main() {
  int voto = 0;
  float cand1 = 0, cand2 = 0, percent1 = 0, percent2 = 0, cont = 0;
  char continuar;
  do {
    printf("Para votar no Candidato1, digite 1 ou para votar no Candidato2, digite 2:\n");
    scanf("%d", &voto);
    if (voto == 1) {
      cand1 = cand1 + 1;
    } else if (voto == 2) {
      cand2 = cand2 + 1;
    } else {
      while (voto > 2 || voto < 1) {
        printf("\nVc digitou um numero errado, favor repetir.\nPara votar no Candidato1, digite 1 ou para votar no Candidato2, digite 2:\n");
        scanf("%d", &voto);
        if (voto == 1) {
          cand1 = cand1 + 1;
        } else if (voto == 2) {
          cand2 = cand2 + 1;
        }
      }
    }
    cont = cont + 1;
    printf("\nDeseja continuar:(s/n)?\n");
    scanf(" %c", &continuar);
  } while (continuar == 's');
  percent1 = (100 * (cand1 / cont));
  percent2 = (100 * (cand2 / cont));
  printf("\nTotal de Votos do Candidato1 = %.0f, com %.0f%% dos Votos.\n", cand1, percent1);
  printf("\nTotal de Votos do Candidato2 = %.0f, com %.0f%% dos Votos.\n", cand2, percent2);
  printf("\nTotal de Votantes: %.0f.\n", cont);
  return 0;
}
```