user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  sub    $0x48,%rsp
  lea    D136(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rcx
  lea    0x18(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  lea    0x28(%rsp),%r8
  call   <scanf@plt>
  movsd  0x10(%rsp),%xmm1
  mov    $0x1,%eax
  movsd  D24(%rip),%xmm0
  mulsd  0x18(%rsp),%xmm0
  lea    D62(%rip),%rdi
  addsd  %xmm1,%xmm1
  addsd  %xmm0,%xmm1
  movsd  D126(%rip),%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  %xmm0,%xmm1
  addsd  0x28(%rsp),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  divsd  D17(%rip),%xmm0
  call   <printf@plt>
  movsd  D21(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  comisd %xmm1,%xmm0
  ja     L61
  comisd D167(%rip),%xmm1
  jae    L55
  lea    D118(%rip),%rdi
  movsd  %xmm1,0x8(%rsp)
  call   <puts@plt>
  lea    0x30(%rsp),%rsi
  lea    D151(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movsd  0x30(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D173(%rip),%rdi
  call   <printf@plt>
  movsd  D17(%rip),%xmm0
  mulsd  0x30(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  comisd D122(%rip),%xmm0
  jae    L53
  lea    D138(%rip),%rdi
  movsd  %xmm1,0x8(%rsp)
  call   <puts@plt>
  movsd  0x8(%rsp),%xmm1
L37:
  movsd  D17(%rip),%xmm0
  mulsd  0x30(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D115(%rip),%rdi
  addsd  %xmm1,%xmm0
  divsd  D122(%rip),%xmm0
  call   <printf@plt>
L0:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  xor    %eax,%eax
  add    $0x48,%rsp
  ret
L53:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  movsd  0x8(%rsp),%xmm1
  jmp    L37
L55:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  jmp    L0
L61:
  lea    D138(%rip),%rdi
  call   <puts@plt>
  jmp    L0
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D136
type_infered: string
name: parse_data
arguments: data_tag: D24
type_infered: byte[8]
name: parse_data
arguments: data_tag: D62
type_infered: string
name: parse_data
arguments: data_tag: D126
type_infered: byte[8]
name: parse_data
arguments: data_tag: D17
type_infered: byte[8]
name: parse_data
arguments: data_tag: D21
type_infered: byte[8]
name: parse_data
arguments: data_tag: D167
type_infered: byte[16]
name: parse_data
arguments: data_tag: D118
type_infered: string
name: parse_data
arguments: data_tag: D151
type_infered: string
name: parse_data
arguments: data_tag: D173
type_infered: string
name: parse_data
arguments: data_tag: D122
type_infered: f64
name: parse_data
arguments: data_tag: D138
type_infered: string
name: parse_data
arguments: data_tag: D115
type_infered: string
name: parse_data
arguments: data_tag: D16
type_infered: string

tool: D136: %lf %lf %lf %lf

tool: {"D24": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: D62: Media: %.1lf


tool: {"D126": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40]}

tool: {"D17": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: {"D21": [0x00,0x00,0x00,0x00,0x00,0x00,0x49,0x40]}

tool: {"D167": [0x00,0x00,0x00,0x00,0x00,0x80,0x51,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x40]}

tool: D118: Aluno em exame.

tool: D151: %lf

tool: D173: Nota do exame: %.1lf


tool: D122: 20

tool: D138: Aluno reprovado.

tool: D115: Media final: %.1lf


tool: D16: Aluno aprovado.

assistant: ```c
int main() {
  double a, b, c, d, e, f;
  scanf("%lf %lf %lf %lf", &a, &b, &c, &d);
  f = 2 * a + 3 * b + 4 * c + d;
  printf("Media: %.1lf\n", f / 10);
  if (f < 50) {
    printf("Aluno reprovado.\n");
    return 0;
  }
  if (f >= 70) {
    printf("Aluno aprovado.\n");
    return 0;
  }
  printf("Aluno em exame.\n");
  scanf("%lf", &e);
  printf("Nota do exame: %.1lf\n", e);
  if (f + 10 * e >= 20.0)
    printf("Aluno aprovado.\n");
  else
    printf("Aluno reprovado.\n");
  printf("Media final: %.1lf\n", (f + 10 * e) / 20);
  return 0;
}
```