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

```asm
<main>:
  endbr64
  push   %r15
  lea    D62(%rip),%r15
  push   %r14
  lea    D7(%rip),%r14
  push   %r13
  lea    D36(%rip),%r13
  push   %r12
  lea    D33(%rip),%r12
  push   %rbp
  lea    D103(%rip),%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x28(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x30(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x38(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x40(%rsp),%rax
  mov    %rax,(%rsp)
L58:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %rbp,%rdi
  lea    (%rax,%rbx,1),%rsi
  call   <scanf@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x10(%rsp),%rax
  mov    %rbp,%rdi
  lea    (%rax,%rbx,1),%rsi
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  mov    %rbp,%rdi
  lea    (%rax,%rbx,1),%rsi
  call   <scanf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%rsp),%rax
  mov    %rbp,%rdi
  lea    (%rax,%rbx,1),%rsi
  add    $0x4,%rbx
  call   <scanf@plt>
  cmp    $0x8,%rbx
  jne    L58
  cmpl   $0x63,0x30(%rsp)
  jg     L21
L29:
  cmpl   $0x63,0x34(%rsp)
  jg     L4
L31:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L21:
  mov    0x28(%rsp),%esi
  lea    D42(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x30(%rsp),%esi
  lea    D16(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%esi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x40(%rsp),%esi
  lea    D124(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L29
L4:
  mov    0x2c(%rsp),%esi
  lea    D42(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x34(%rsp),%esi
  lea    D16(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x3c(%rsp),%esi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x44(%rsp),%esi
  lea    D124(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L31
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D62
type: string
name: disassemble_data
arguments: tag: D7
type: string
name: disassemble_data
arguments: tag: D36
type: string
name: disassemble_data
arguments: tag: D33
type: string
name: disassemble_data
arguments: tag: D103
type: string
name: disassemble_data
arguments: tag: D42
type: string
name: disassemble_data
arguments: tag: D16
type: string
name: disassemble_data
arguments: tag: D10
type: string
name: disassemble_data
arguments: tag: D124
type: string

tool: D62: Digite a matricula do aluno

tool: D7: Digite a quantidade de acertos 

tool: D36: Digite a quantidade de erros

tool: D33: Digite a quantidade de questoes em brancos

tool: D103: %d

tool: D42: matricula : %d acertou mais de 50 por cento das questoes


tool: D16: com %d acertos


tool: D10: errou %d questoes


tool: D124: com %d questoes nao respondidas

assistant: ```c
int main() {
  int i, c, matricula[2], qtdacerto[2], qtderros[2], qtdbranco[2];
  for (c = 0; c < 2; c++) {
    printf("Digite a matricula do aluno");
    scanf("%d", &matricula[c]);
    printf("Digite a quantidade de acertos ");
    scanf("%d", &qtdacerto[c]);
    printf("Digite a quantidade de erros");
    scanf("%d", &qtderros[c]);
    printf("Digite a quantidade de questoes em brancos");
    scanf("%d", &qtdbranco[c]);
  }
  for (c = 0; c < 2; c++) {
    if (qtdacerto[c] >= 100) {
      printf("matricula : %d acertou mais de 50 por cento das questoes\n", matricula[c]);
      printf("com %d acertos\n", qtdacerto[c]);
      printf("errou %d questoes\n", qtderros[c]);
      printf("com %d questoes nao respondidas", qtdbranco[c]);
    }
  }
}
```