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

```asm
<test_case>:
  endbr64
  push   %rbp
  lea    D7(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x3c(%rbp),%rdx
  lea    -0x40(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x40(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L115
L89:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L89
L115:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L104
L125:
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rdi
  mov    %rsp,-0x48(%rbp)
  mov    %rax,%rdx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rdi
  and    $0xfffffffffffffff0,%rsi
  cmp    %rdi,%rsp
  je     L36
L41:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdi,%rsp
  jne    L41
L36:
  and    $0xfff,%esi
  sub    %rsi,%rsp
  test   %rsi,%rsi
  jne    L163
L180:
  mov    %rsp,%r12
  test   %ecx,%ecx
  jle    L75
  mov    -0x48(%rbp),%r15
  xor    %ebx,%ebx
  xor    %r13d,%r13d
  lea    D36(%rip),%r14
  nopl   0x0(%rax,%rax,1)
L155:
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <scanf@plt>
  movslq (%r15),%rax
  add    $0x4,%r15
  add    %rax,%r13
  cmp    %ebx,-0x40(%rbp)
  jg     L155
  mov    -0x3c(%rbp),%eax
  test   %eax,%eax
  jle    L99
L6:
  xor    %ebx,%ebx
  xor    %r15d,%r15d
  nopw   0x0(%rax,%rax,1)
L140:
  mov    %r12,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <scanf@plt>
  movslq (%r12),%rax
  add    $0x4,%r12
  add    %rax,%r15
  mov    -0x3c(%rbp),%eax
  cmp    %ebx,%eax
  jg     L140
  pxor   %xmm2,%xmm2
  cvtsi2sd %r15,%xmm2
L67:
  mov    -0x40(%rbp),%edx
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13,%xmm1
  cvtsi2sd %edx,%xmm0
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  %xmm0,%xmm2
  test   %edx,%edx
  jle    L90
  mov    -0x48(%rbp),%rax
  xor    %esi,%esi
  lea    (%rax,%rdx,4),%rdx
  nopl   (%rax)
L112:
  pxor   %xmm0,%xmm0
  cvtsi2sdl (%rax),%xmm0
  comisd %xmm0,%xmm1
  jbe    L86
  xor    %ecx,%ecx
  comisd %xmm2,%xmm0
  seta   %cl
  add    %ecx,%esi
L86:
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L112
L98:
  lea    D19(%rip),%rdi
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L123
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L104:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L125
L75:
  xor    %r13d,%r13d
  lea    D36(%rip),%r14
  test   %edx,%edx
  jg     L6
  nopl   (%rax)
L90:
  xor    %esi,%esi
  jmp    L98
  nopl   0x0(%rax)
L99:
  pxor   %xmm2,%xmm2
  jmp    L67
L163:
  orq    $0x0,-0x8(%rsp,%rsi,1)
  jmp    L180
L123:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D7
data_type: string
name: disassemble_data
arguments: tag: D36
data_type: string
name: disassemble_data
arguments: tag: D19
data_type: string

tool: D7: %d %d

tool: D36: %d

tool: D19: %d


assistant: ```c
void test_case() {
  int cs, e;
  scanf("%d %d", &cs, &e);
  long long cs_total = 0L, e_total = 0L;
  int cs_students[cs], e_students[e];
  for (int i = 0; i < cs; i++) {
    scanf("%d", cs_students + i);
    cs_total += cs_students[i];
  }
  for (int i = 0; i < e; i++) {
    scanf("%d", e_students + i);
    e_total += e_students[i];
  }
  double cs_av = cs_total / (double)cs;
  double e_av = e_total / (double)e;
  int counter = 0;
  for (int i = 0; i < cs; i++) {
    if (cs_students[i] < cs_av && cs_students[i] > e_av)
      counter++;
  }
  printf("%d\n", counter);
}
```