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

```asm
<prob2>:
  endbr64
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    D139(%rip),%rdi
  call   <system@plt>
  movsd  D59(%rip),%xmm0
  movsd  %xmm0,0x20(%rsp)
  mov    D87(%rip),%rax
  mov    %rax,0x28(%rsp)
  mov    D52(%rip),%rax
  mov    %rax,0x30(%rsp)
  mov    D108(%rip),%rax
  mov    %rax,0x38(%rsp)
  mov    D77(%rip),%rax
  mov    %rax,0x40(%rsp)
  mov    D80(%rip),%rax
  mov    %rax,0x48(%rsp)
  mov    D78(%rip),%rax
  mov    %rax,0x50(%rsp)
  movsd  %xmm0,0x58(%rsp)
  mov    D113(%rip),%rax
  mov    %rax,(%rsp)
  mov    D60(%rip),%rax
  mov    %rax,0x8(%rsp)
  mov    D123(%rip),%rax
  mov    %rax,0x10(%rsp)
  mov    D50(%rip),%rax
  mov    %rax,0x18(%rsp)
  lea    0x20(%rsp),%rax
  mov    %rsp,%rdx
  lea    0x60(%rsp),%rcx
  pxor   %xmm1,%xmm1
  movapd %xmm1,%xmm0
L8:
  movsd  (%rdx),%xmm2
  movapd %xmm2,%xmm3
  mulsd  (%rax),%xmm3
  addsd  %xmm3,%xmm0
  mulsd  0x8(%rax),%xmm2
  addsd  %xmm2,%xmm1
  add    $0x10,%rax
  add    $0x8,%rdx
  cmp    %rcx,%rax
  jne    L8
  movsd  D56(%rip),%xmm2
  divsd  %xmm2,%xmm0
  divsd  %xmm2,%xmm1
  lea    D114(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <pause@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  add    $0x78,%rsp
  ret
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D139
type_infered: string
name: read_data
arguments: tag: D59
type_infered: f64
name: read_data
arguments: tag: D87
type_infered: f32[2]
name: read_data
arguments: tag: D52
type_infered: f64
name: read_data
arguments: tag: D108
type_infered: f64
name: read_data
arguments: tag: D77
type_infered: f32[2]
name: read_data
arguments: tag: D80
type_infered: f64
name: read_data
arguments: tag: D78
type_infered: f32[2]
name: read_data
arguments: tag: D113
type_infered: f32[2]
name: read_data
arguments: tag: D60
type_infered: byte[8]
name: read_data
arguments: tag: D123
type_infered: byte[8]
name: read_data
arguments: tag: D50
type_infered: byte[8]
name: read_data
arguments: tag: D56
type_infered: byte[8]
name: read_data
arguments: tag: D114
type_infered: string

tool: D139: clear

tool: D59: 5

tool: {"D87": [0.0,-2.25]}

tool: D52: 4

tool: D108: 3

tool: {"D77": [0.0,-1.875]}

tool: D80: 6

tool: {"D78": [0.0,-2.53125]}

tool: {"D113": [0.0,1.625]}

tool: {"D60": [0x3d,0x0a,0xd7,0xa3,0x70,0x3d,0xe2,0x3f]}

tool: {"D123": [0x29,0x5c,0x8f,0xc2,0xf5,0x28,0xe4,0x3f]}

tool: {"D50": [0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f]}

tool: {"D56": [0xcd,0xcc,0xcc,0xcc,0xcc,0xcc,0xf8,0x3f]}

tool: D114: Centroid = %.2lf, %.2lf

assistant: ```c
void prob2(void) {
  system("clear");
  int loop;
  double centroidx = 0;
  double centroidy = 0;
  double intensitytotal = 0;
  double pixel[][2] = {5.0, -4.0, 4.0, 3.0, -1.0, 6.0, -9.0, 5.0};
  double intensity[] = {.25, .57, .63, .1};
  for (loop = 0; loop <= 3; loop++) {
    centroidx += (pixel[loop][0] * intensity[loop]);
    centroidy += (pixel[loop][1] * intensity[loop]);
  }
  for (loop = 0; loop <= 3; loop++) {
    intensitytotal += intensity[loop];
  }
  centroidx /= intensitytotal;
  centroidy /= intensitytotal;
  printf("Centroid = %.2lf, %.2lf", centroidx, centroidy);
  pause();
}
```