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

```asm
<init_gymy>:
  endbr64
  push   %r15
  mov    %rdi,%rax
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %esi,0x28(%rsp)
  mov    0xb0(%rsp),%edi
  mov    %edx,0x2c(%rsp)
  mov    0xb8(%rsp),%esi
  mov    %r8d,0xc(%rsp)
  mov    0xc0(%rsp),%r11
  test   %edx,%edx
  jle    L127
  test   %r15d,%r15d
  jle    L127
  mov    %ecx,%r10d
  mov    %edx,%ecx
  movslq %r8d,%rdx
  mov    %rax,0x18(%rsp)
  mov    %ecx,%eax
  shl    $0x2,%rdx
  movsd  D123(%rip),%xmm11
  movq   D40(%rip),%xmm10
  imul   %r8d,%eax
  mov    %rdx,0x20(%rsp)
  xor    %r8d,%r8d
  pxor   %xmm5,%xmm5
  cltq
  shl    $0x2,%rax
  mov    %rax,0x10(%rsp)
  lea    -0x1(%rsi),%eax
  lea    0x4(%r11,%rax,4),%r13
L26:
  mov    0x18(%rsp),%rcx
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L102:
  movl   $0x0,(%rcx)
  test   %edi,%edi
  jle    L0
  movsd  D38(%rip),%xmm9
  xor    %r15d,%r15d
  xor    %eax,%eax
  xor    %r14d,%r14d
  movsd  D49(%rip),%xmm8
  nopl   0x0(%rax,%rax,1)
L71:
  movapd %xmm5,%xmm1
  test   %esi,%esi
  jle    L111
  pxor   %xmm0,%xmm0
  pxor   %xmm4,%xmm4
  movapd %xmm11,%xmm7
  movslq %r15d,%rax
  cvtsi2sd %r10d,%xmm0
  lea    (%r9,%rax,4),%rbp
  movapd %xmm5,%xmm1
  mov    %r11,%rbx
  cvtsi2sd %r8d,%xmm4
  movsd  D106(%rip),%xmm3
  movapd %xmm10,%xmm2
  movsd  D51(%rip),%xmm6
  divsd  %xmm0,%xmm7
  mulsd  %xmm4,%xmm4
  jmp    L6
L66:
  add    $0x4,%rbx
  subsd  %xmm3,%xmm1
  add    $0x4,%rbp
  cmp    %r13,%rbx
  je     L49
L6:
  mov    %r12d,%edx
  pxor   %xmm0,%xmm0
  pxor   %xmm12,%xmm12
  sub    0x0(%rbp),%edx
  mov    %edx,%eax
  cvtsi2sdl (%rbx),%xmm0
  neg    %eax
  cmovs  %edx,%eax
  cvtsi2sd %eax,%xmm12
  mulsd  %xmm0,%xmm0
  mulsd  %xmm12,%xmm12
  addsd  %xmm4,%xmm0
  addsd  %xmm12,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L69
  sqrtsd %xmm0,%xmm0
L133:
  mulsd  %xmm7,%xmm0
  addsd  %xmm9,%xmm0
  movapd %xmm0,%xmm12
  movapd %xmm0,%xmm13
  andpd  %xmm2,%xmm12
  ucomisd %xmm12,%xmm8
  jbe    L9
  cvttsd2si %xmm0,%rax
  pxor   %xmm12,%xmm12
  cvtsi2sd %rax,%xmm12
  movapd %xmm12,%xmm13
  cmpnlesd %xmm0,%xmm13
  andpd  %xmm3,%xmm13
  subsd  %xmm13,%xmm12
  movapd %xmm2,%xmm13
  andnpd %xmm0,%xmm13
  orpd   %xmm12,%xmm13
L9:
  subsd  %xmm13,%xmm0
  comisd %xmm0,%xmm6
  ja     L66
  add    $0x4,%rbx
  addsd  %xmm3,%xmm1
  add    $0x4,%rbp
  cmp    %r13,%rbx
  jne    L6
L49:
  mulsd  %xmm1,%xmm1
  mov    (%rcx),%eax
L111:
  pxor   %xmm0,%xmm0
  add    $0x1,%r14d
  add    %esi,%r15d
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,(%rcx)
  cmp    %r14d,%edi
  jne    L71
L0:
  add    0xc(%rsp),%r12d
  add    0x10(%rsp),%rcx
  cmp    %r12d,0x28(%rsp)
  jg     L102
  mov    0x20(%rsp),%rcx
  add    0xc(%rsp),%r8d
  add    %rcx,0x18(%rsp)
  cmp    %r8d,0x2c(%rsp)
  jg     L26
L127:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L69:
  mov    %r11,0x68(%rsp)
  mov    %esi,0x64(%rsp)
  mov    %edi,0x60(%rsp)
  mov    %r9,0x58(%rsp)
  mov    %r10d,0x54(%rsp)
  mov    %rcx,0x48(%rsp)
  mov    %r8d,0x50(%rsp)
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm4,0x38(%rsp)
  movsd  %xmm7,0x30(%rsp)
  call   <sqrt@plt>
  mov    D123(%rip),%rax
  mov    0x68(%rsp),%r11
  pxor   %xmm5,%xmm5
  mov    0x64(%rsp),%esi
  mov    0x60(%rsp),%edi
  movq   %rax,%xmm11
  mov    0x58(%rsp),%r9
  mov    0x54(%rsp),%r10d
  mov    D49(%rip),%rax
  mov    0x48(%rsp),%rcx
  mov    0x50(%rsp),%r8d
  movsd  0x40(%rsp),%xmm1
  movq   %rax,%xmm8
  mov    D38(%rip),%rax
  movq   D40(%rip),%xmm10
  movsd  0x38(%rsp),%xmm4
  movsd  0x30(%rsp),%xmm7
  movq   %rax,%xmm9
  mov    D51(%rip),%rax
  movq   %rax,%xmm6
  mov    D106(%rip),%rax
  movq   %rax,%xmm3
  mov    D40(%rip),%rax
  movq   %rax,%xmm2
  jmp    L133
```

tool_calls: name: unpack_data
arguments: label: D123
data_type: f64
name: unpack_data
arguments: label: D40
data_type: qword
name: unpack_data
arguments: label: D38
data_type: f64
name: unpack_data
arguments: label: D49
data_type: f32[2]
name: unpack_data
arguments: label: D106
data_type: f32[2]
name: unpack_data
arguments: label: D51
data_type: f64

tool: D123: 2

tool: D40: 9223372036854775807

tool: D38: 0.75

tool: {"D49": [0.0,176.0]}

tool: {"D106": [0.0,1.875]}

tool: D51: 0.5

assistant: ```c
void init_gymy(int *gymy_space, int width, int height, int q, int skip, int *input, int num_obj, int num_obj_values, int *in_dist) {
  for (int x2 = 0; x2 < height; x2 += skip) {
    for (int x1 = 0; x1 < width; x1 += skip) {
      gymy_space[x1 * height + x2] = 0;
      for (int obj = 0; obj < num_obj; obj++) {
        double sum = 0;
        for (int val = 0; val < num_obj_values; val++) {
          double X = (0.75 + 2.0 / q * (sqrt(((x2) * ((double)x2)) + ((in_dist[val]) * ((double)in_dist[val])) + ((abs(x1 - input[val + obj * num_obj_values])) * ((double)abs(x1 - input[val + obj * num_obj_values]))))));
          int a = ((((double)X) - floor(X)) < 0.5);
          if (a)
            sum -= 1;
          else
            sum += 1;
        }
        gymy_space[x1 * height + x2] += ((sum) * ((double)sum));
      }
    }
  }
}
```