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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    D42(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D30(%rip),%rdi
  call   <scanf@plt>
  lea    D76(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L102
  lea    0x10(%rsp),%rbp
  mov    $0x0,%ebx
  lea    D31(%rip),%r13
  lea    D30(%rip),%r12
L42:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0xc(%rsp)
  jg     L42
L102:
  lea    D84(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D30(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%ebx
  cmp    $0x1,%ebx
  jle    L166
  lea    -0x1(%rbx),%edi
  mov    $0x1,%r10d
  mov    $0x0,%r8d
  mov    $0x0,%edx
  mov    $0x1,%r9d
  mov    $0x0,%r11d
  jmp    L131
L77:
  cmp    %edi,%eax
  jge    L71
L91:
  mov    %eax,%edx
L131:
  movslq %edx,%rax
  mov    0x10(%rsp,%rax,4),%ecx
  lea    0x1(%rdx),%eax
  movslq %eax,%rsi
  mov    0x10(%rsp,%rsi,4),%esi
  cmp    %esi,%ecx
  jge    L77
  movslq %edx,%rdx
  mov    %esi,0x10(%rsp,%rdx,4)
  movslq %eax,%rdx
  mov    %ecx,0x10(%rsp,%rdx,4)
  mov    %r9d,%r8d
  jmp    L77
L71:
  add    $0x1,%r10d
  cmp    $0x1,%r8d
  jne    L166
  cmp    %ebx,%r10d
  jge    L166
  mov    %r11d,%r8d
  mov    %r11d,%eax
  jmp    L91
L166:
  lea    D74(%rip),%rdi
  call   <puts@plt>
  imul   $0x64,0x8(%rsp),%eax
  mov    %eax,0x8(%rsp)
  lea    D9(%rip),%rbp
  test   %eax,%eax
  jns    L98
L92:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L141:
  add    $0x1,%rbx
  cmp    %ebx,0xc(%rsp)
  jle    L31
L80:
  mov    0x10(%rsp,%rbx,4),%ecx
  mov    0x8(%rsp),%eax
  cmp    %eax,%ecx
  jg     L141
  cltd
  idiv   %ecx
  mov    %edx,0x8(%rsp)
  movslq %ecx,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x25,%rdx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  pxor   %xmm0,%xmm0
  cvtsi2ss %edx,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    %eax,%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L141
L31:
  cmpl   $0x0,0x8(%rsp)
  js     L92
L98:
  mov    $0x0,%ebx
  cmpl   $0x0,0xc(%rsp)
  jg     L80
  jmp    L31
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D42
type_infered: string
name: disassemble_data
arguments: label: D30
type_infered: string
name: disassemble_data
arguments: label: D76
type_infered: string
name: disassemble_data
arguments: label: D31
type_infered: string
name: disassemble_data
arguments: label: D84
type_infered: string
name: disassemble_data
arguments: label: D74
type_infered: string
name: disassemble_data
arguments: label: D9
type_infered: string

tool: D42: Quantos valores de moedas voce tem? 

tool: D30: %d

tool: D76: 
Se o valor da moeda for 0.01, digite 1: se for 1: digite 100 !!


tool: D31: Entre com o valor das moedas: 

tool: D84: Entre com o troco: 

tool: D74: TROCO!!  

tool: D9:   - %d moedas de %.2f

assistant: ```c
int main() {
  int moedas[10], troco;
  int qntMoedas, i, vals, j, flag = 1, aux;
  float valF;
  printf("Quantos valores de moedas voce tem? ");
  scanf("%d", &qntMoedas);
  printf("\nSe o valor da moeda for 0.01, digite 1: se for 1: digite 100 !!\n\n");
  for (i = 0; i < qntMoedas; i++) {
    printf("Entre com o valor das moedas: ");
    scanf("%d", &moedas[i]);
  }
  printf("Entre com o troco: ");
  scanf("%d", &troco);
  for (i = 1; i < qntMoedas && flag == 1; i++) {
    flag = 0;
    for (j = 0; j < qntMoedas - 1; j++) {
      if (moedas[j] < moedas[j + 1]) {
        aux = moedas[j];
        moedas[j] = moedas[j + 1];
        moedas[j + 1] = aux;
        flag = 1;
      }
    }
  }
  printf("TROCO!!  \n");
  troco = troco * 100;
  while (troco >= 0) {
    for (i = 0; i < qntMoedas; i++) {
      if (troco >= moedas[i]) {
        vals = troco / moedas[i];
        troco = troco - (vals * moedas[i]);
        valF = moedas[i] / 100;
        printf("  - %d moedas de %.2f", vals, valF);
      }
    }
  }
  return 0;
}
```