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

```asm
<pieCalCheckResultGMSP>:
  endbr64
  sub    $0x18,%rsp
  pxor   %xmm1,%xmm1
  cvtsi2sd %edi,%xmm1
  movsd  D70(%rip),%xmm0
  divsd  %xmm1,%xmm0
  pxor   %xmm3,%xmm3
  cvtsd2ss %xmm0,%xmm3
  test   %edi,%edi
  jle    L15
  add    $0x1,%edi
  mov    $0x1,%eax
  pxor   %xmm1,%xmm1
  movsd  D5(%rip),%xmm7
  pxor   %xmm6,%xmm6
  cvtss2sd %xmm3,%xmm6
  movsd  D70(%rip),%xmm5
  movsd  D118(%rip),%xmm4
L60:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm7,%xmm0
  mulsd  %xmm6,%xmm0
  cvtsd2ss %xmm0,%xmm0
  mulss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm5,%xmm0
  movapd %xmm4,%xmm2
  divsd  %xmm0,%xmm2
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm2
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm2,%xmm1
  add    $0x1,%eax
  cmp    %edi,%eax
  jne    L60
L27:
  mulss  %xmm1,%xmm3
  movaps %xmm3,%xmm1
  subss  (%rsi),%xmm1
  divss  %xmm3,%xmm1
  ucomiss D70(%rip),%xmm1
  setp   %al
  mov    $0x1,%edx
  cmovne %edx,%eax
  test   %al,%al
  je     L38
  comiss D11(%rip),%xmm1
  ja     L3
L38:
  lea    D43(%rip),%rdi
  call   <puts@plt>
L47:
  mov    $0x0,%eax
  add    $0x18,%rsp
  ret
L15:
  pxor   %xmm1,%xmm1
  jmp    L27
L3:
  movss  %xmm1,0xc(%rsp)
  comiss D70(%rip),%xmm1
  jbe    L38
  lea    D90(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsd  D106(%rip),%xmm0
  lea    D108(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  lea    D48(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L47
```

tool_calls: name: extract_symbolic_data
arguments: label: D70
type_infered: f64
name: extract_symbolic_data
arguments: label: D5
type_infered: f64
name: extract_symbolic_data
arguments: label: D118
type_infered: f64
name: extract_symbolic_data
arguments: label: D11
type_infered: byte[4]
name: extract_symbolic_data
arguments: label: D43
type_infered: string
name: extract_symbolic_data
arguments: label: D90
type_infered: string
name: extract_symbolic_data
arguments: label: D106
type_infered: byte[8]
name: extract_symbolic_data
arguments: label: D108
type_infered: string
name: extract_symbolic_data
arguments: label: D48
type_infered: string

tool: D70: 1

tool: D5: 0.5

tool: D118: 4

tool: {"D11": [0x77,0xcc,0x2b,0x32]}

tool: D43: 
		 Result Verification success


tool: D90:  
 Results verfication : Failed

tool: {"D106": [0x00,0x00,0x00,0xe0,0x8e,0x79,0x45,0x3e]}

tool: D108:  
 Considered machine precision : %e

tool: D48:  
 Relative Error                  : %e

assistant: ```c
int pieCalCheckResultGMSP(int noOfIntervals, float *finalPieValue) {
  float totalsum = 0.0f, x = 0.0f;
  float h = 1.0 / noOfIntervals;
  int i;
  float errorNorm = 0.0f;
  float eps = 1.0e-8f;
  float relativeError = 0.0f;
  int flag = 0;
  for (i = 1; i < noOfIntervals + 1; i = i + 1) {
    x = h * (i + 0.5);
    totalsum = totalsum + 4.0 / (1.0 + x * x);
  }
  totalsum = totalsum * h;
  relativeError = ((totalsum - ((*finalPieValue))) / totalsum);
  if (relativeError > eps && relativeError != 0.0e+00) {
    if (errorNorm < relativeError) {
      errorNorm = relativeError;
      flag = 1;
    }
  }
  if (flag == 1) {
    printf(" \n Results verfication : Failed");
    printf(" \n Considered machine precision : %e", eps);
    printf(" \n Relative Error                  : %e", errorNorm);
  }
  if (flag == 0) {
    printf("\n\t\t Result Verification success\n\n");
  }
  return 0;
}
```