user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<CalcDevBins>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x250,%rsp
  mov    %rdi,-0x238(%rbp)
  mov    %esi,-0x23c(%rbp)
  movss  %xmm0,-0x240(%rbp)
  movss  %xmm1,-0x244(%rbp)
  mov    %rdx,-0x250(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x220(%rbp)
  jmp    L4
L17:
  mov    -0x220(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x250(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x220(%rbp)
L4:
  cmpl   $0x4,-0x220(%rbp)
  jle    L17
  mov    -0x23c(%rbp),%ecx
  mov    -0x238(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  lea    D24(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x210(%rbp),%rax
  lea    D53(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x218(%rbp)
  jmp    L42
L0:
  lea    -0x224(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  lea    D22(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  movss  -0x224(%rbp),%xmm1
  movss  -0x240(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  D15(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x21c(%rbp)
  movss  -0x244(%rbp),%xmm0
  comiss -0x21c(%rbp),%xmm0
  jb     L148
  mov    -0x250(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x250(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L42
L148:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x21c(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x244(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jb     L125
  mov    -0x250(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L42
L125:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x21c(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd -0x244(%rbp),%xmm2
  movsd  D38(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jb     L118
  mov    -0x250(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L42
L118:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x21c(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd -0x244(%rbp),%xmm2
  movsd  D32(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jb     L33
  mov    -0x250(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L42
L33:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x21c(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd -0x244(%rbp),%xmm2
  movsd  D32(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  ja     L45
  jmp    L42
L45:
  mov    -0x250(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
L42:
  mov    -0x218(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    $0x100,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L0
  nop
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L124
  call   <__stack_chk_fail@plt>
L124:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D24
datatype: string
name: unpack_data
arguments: tag: D53
datatype: string
name: unpack_data
arguments: tag: D22
datatype: string
name: unpack_data
arguments: tag: D15
datatype: dword
name: unpack_data
arguments: tag: D38
datatype: f64
name: unpack_data
arguments: tag: D32
datatype: f64

tool: D24: %s/%d/values

tool: D53: r

tool: D22: %*d %f

tool: D15: 2147483647

tool: D38: 3

tool: D32: 4

assistant: ```c
CalcDevBins(char *basename, int readback, float mean, float stdev, int devbins[]) {
  FILE *fp;
  char filename[256];
  char theline[256];
  float theval;
  float delta;
  int x;
  for (x = 0; x < 5; x++)
    devbins[x] = 0;
  sprintf(filename, "%s/%d/values", basename, readback);
  fp = fopen(filename, "r");
  while (fgets(&(theline[0]), 256, fp) != NULL) {
    sscanf(theline, "%*d %f", &theval);
    delta = fabsf(mean - theval);
    if (delta <= (stdev * 1.0))
      devbins[0]++;
    else if (delta <= (stdev * 2.0))
      devbins[1]++;
    else if (delta <= (stdev * 3.0))
      devbins[2]++;
    else if (delta <= (stdev * 4.0))
      devbins[3]++;
    else if (delta > (stdev * 4.0))
      devbins[4]++;
  }
}
```