user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D25(%rip),%r13
  push   %r12
  mov    %r13,%rdi
  push   %rbp
  push   %rbx
  sub    $0xfc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xfb8(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  lea    0xc(%rsp),%r15
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L20
  nopl   0x0(%rax)
L63:
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L57
  xor    %ebx,%ebx
  xor    %r14d,%r14d
  lea    0x10(%rsp),%r12
  nopl   0x0(%rax)
L113:
  lea    (%r12,%rbx,4),%rsi
  mov    %r13,%rdi
  mov    %r12,%rbp
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  add    (%r12,%rbx,4),%r14d
  add    $0x1,%rbx
  cmp    %ebx,%eax
  jg     L113
  pxor   %xmm5,%xmm5
  pxor   %xmm4,%xmm4
  cvtsi2ss %eax,%xmm5
  cvtsi2ss %r14d,%xmm4
  divss  %xmm5,%xmm4
  test   %eax,%eax
  jle    L115
  lea    -0x1(%rax),%edx
  cmp    $0x2,%edx
  jbe    L52
  mov    %eax,%edx
  movaps %xmm4,%xmm3
  pxor   %xmm0,%xmm0
  shr    $0x2,%edx
  shufps $0x0,%xmm3,%xmm3
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x20(%rsp,%rdx,1),%rdx
  nopl   0x0(%rax)
L135:
  movaps %xmm3,%xmm1
  cvtdq2ps 0x0(%rbp),%xmm2
  add    $0x10,%rbp
  cmpltps %xmm2,%xmm1
  psubd  %xmm1,%xmm0
  cmp    %rdx,%rbp
  jne    L135
  movdqa %xmm0,%xmm1
  mov    %eax,%ecx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%ecx
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%edx
  test   $0x3,%al
  je     L134
L69:
  movslq %ecx,%rsi
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x10(%rsp,%rsi,4),%xmm0
  xor    %esi,%esi
  comiss %xmm4,%xmm0
  seta   %sil
  add    %esi,%edx
  lea    0x1(%rcx),%esi
  cmp    %esi,%eax
  jle    L134
  movslq %esi,%rsi
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x10(%rsp,%rsi,4),%xmm0
  xor    %esi,%esi
  comiss %xmm4,%xmm0
  seta   %sil
  add    $0x2,%ecx
  add    %esi,%edx
  cmp    %ecx,%eax
  jle    L134
  movslq %ecx,%rcx
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  cvtsi2ssl 0x10(%rsp,%rcx,4),%xmm0
  comiss %xmm4,%xmm0
  seta   %al
  add    %eax,%edx
L134:
  pxor   %xmm0,%xmm0
  cvtsi2ss %edx,%xmm0
  mulss  D6(%rip),%xmm0
L14:
  divss  %xmm5,%xmm0
  lea    D28(%rip),%rdi
  cvttss2si %xmm0,%esi
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  jne    L63
L20:
  mov    0xfb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L137
  add    $0xfc8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L57:
  pxor   %xmm5,%xmm5
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm5
  jmp    L14
L52:
  xor    %edx,%edx
  xor    %ecx,%ecx
  jmp    L69
L115:
  pxor   %xmm0,%xmm0
  jmp    L14
L137:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D25
type: string
name: unpack_data
arguments: data_tag: D6
type: byte[4]
name: unpack_data
arguments: data_tag: D28
type: string

tool: D25: %d

tool: {"D6": [0x00,0x00,0xc8,0x42]}

tool: D28: %.3f%%


assistant: ```c
int main() {
  int i, num, students;
  int data[1000];
  int sum = 0;
  float average = 0;
  scanf("%d", &num);
  while (num--) {
    scanf("%d", &students);
    sum = 0;
    for (i = 0; i < students; i++) {
      scanf("%d", &data[i]);
      sum += data[i];
    }
    average = (float)sum / students;
    sum = 0;
    for (i = 0; i < students; i++) {
      sum += data[i] > average ? 1 : 0;
    }
    printf("%.3f%%\n", 100 * (float)sum / students);
  }
  return 0;
}
```