user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D20(%rip),%rdi
  lea    D3(%rip),%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D138(%rip),%rdi
  call   <scanf@plt>
  lea    D59(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D136(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movss  0x20(%rsp),%xmm2
  movss  0x1c(%rsp),%xmm0
  lea    D167(%rip),%rdi
  movss  0x24(%rsp),%xmm4
  movss  D149(%rip),%xmm3
  mov    $0x1,%eax
  movaps %xmm2,%xmm1
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm5
  mulss  %xmm3,%xmm5
  addss  %xmm0,%xmm1
  addss  %xmm2,%xmm0
  addss  %xmm4,%xmm0
  addss  %xmm5,%xmm1
  divss  %xmm3,%xmm0
  addss  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  divss  D121(%rip),%xmm1
  movss  %xmm1,0xc(%rsp)
  cvtss2sd %xmm1,%xmm0
  call   <printf@plt>
  movss  0xc(%rsp),%xmm1
  comiss D108(%rip),%xmm1
  jae    L7
  comiss D56(%rip),%xmm1
  jae    L17
  comiss D124(%rip),%xmm1
  jae    L72
  comiss D25(%rip),%xmm1
  jb     L27
  lea    D133(%rip),%rdi
  call   <puts@plt>
  jmp    L38
L17:
  lea    D51(%rip),%rdi
  call   <puts@plt>
L38:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  add    $0x30,%rsp
  pop    %rbp
  ret
L7:
  lea    D76(%rip),%rdi
  call   <puts@plt>
  jmp    L38
L27:
  lea    D19(%rip),%rdi
  call   <puts@plt>
  jmp    L38
L72:
  lea    D88(%rip),%rdi
  call   <puts@plt>
  jmp    L38
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D20
type_infered: string
name: disassemble_data
arguments: tag: D3
type_infered: string
name: disassemble_data
arguments: tag: D138
type_infered: string
name: disassemble_data
arguments: tag: D59
type_infered: string
name: disassemble_data
arguments: tag: D136
type_infered: string
name: disassemble_data
arguments: tag: D167
type_infered: string
name: disassemble_data
arguments: tag: D149
type_infered: f32
name: disassemble_data
arguments: tag: D121
type_infered: f32
name: disassemble_data
arguments: tag: D108
type_infered: byte[4]
name: disassemble_data
arguments: tag: D56
type_infered: f32
name: disassemble_data
arguments: tag: D124
type_infered: byte[4]
name: disassemble_data
arguments: tag: D25
type_infered: byte[4]
name: disassemble_data
arguments: tag: D133
type_infered: string
name: disassemble_data
arguments: tag: D51
type_infered: string
name: disassemble_data
arguments: tag: D76
type_infered: string
name: disassemble_data
arguments: tag: D19
type_infered: string
name: disassemble_data
arguments: tag: D88
type_infered: string

tool: D20: Digite a primeira nota: 

tool: D3:  %f

tool: D138: %f

tool: D59: Digite a segunda nota: 

tool: D136: Digite a terceira nota: 

tool: D167: 
Media de aproveitamento: %.2f.


tool: D149: 3

tool: D121: 7

tool: {"D108": [0x00,0x00,0x10,0x41]}

tool: D56: 7.5

tool: {"D124": [0x00,0x00,0xc0,0x40]}

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

tool: D133: Conceito D.

tool: D51: Conceito B.

tool: D76: Conceito A.

tool: D19: Conceito E.

tool: D88: Conceito C.

assistant: ```c
void main() {
  float n1, n2, n3, me, ma;
  printf("Digite a primeira nota: ");
  scanf("%f", &n1);
  printf("Digite a segunda nota: ");
  scanf(" %f", &n2);
  printf("Digite a terceira nota: ");
  scanf(" %f", &n3);
  me = (n1 + n2 + n3) / 3.0;
  ma = (n1 + 2 * n2 + 3 * n3 + me) / 7.0;
  printf("\nMedia de aproveitamento: %.2f.\n", ma);
  if (ma >= 9)
    printf("Conceito A.\n");
  else if (ma >= 7.5)
    printf("Conceito B.\n");
  else if (ma >= 6)
    printf("Conceito C.\n");
  else if (ma >= 4)
    printf("Conceito D.\n");
  else
    printf("Conceito E.\n");
}
```