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

```asm
<open_simplex_noise2>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm5
  movapd %xmm0,%xmm8
  push   %r14
  addsd  %xmm1,%xmm5
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  sub    $0x50,%rsp
  mulsd  D99(%rip),%xmm5
  movsd  %xmm0,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  addsd  %xmm5,%xmm8
  addsd  %xmm1,%xmm5
  movapd %xmm8,%xmm0
  movsd  %xmm5,0x8(%rsp)
  movsd  %xmm8,0x10(%rsp)
  call   <fastFloor@plt>
  movsd  0x8(%rsp),%xmm0
  mov    %eax,%ebp
  call   <fastFloor@plt>
  pxor   %xmm4,%xmm4
  pxor   %xmm6,%xmm6
  movsd  D2(%rip),%xmm11
  mov    %eax,%r12d
  cvtsi2sd %ebp,%xmm6
  pxor   %xmm0,%xmm0
  add    %ebp,%eax
  cvtsi2sd %eax,%xmm4
  movsd  0x10(%rsp),%xmm8
  movsd  0x20(%rsp),%xmm2
  cvtsi2sd %r12d,%xmm0
  movsd  0x8(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm1
  subsd  %xmm6,%xmm8
  movapd %xmm1,%xmm3
  mulsd  %xmm11,%xmm4
  subsd  %xmm0,%xmm5
  movapd %xmm8,%xmm10
  addsd  %xmm5,%xmm10
  addsd  %xmm4,%xmm6
  addsd  %xmm4,%xmm0
  movsd  D101(%rip),%xmm4
  subsd  %xmm6,%xmm2
  movsd  D136(%rip),%xmm6
  subsd  %xmm0,%xmm3
  movapd %xmm4,%xmm0
  movapd %xmm2,%xmm13
  movapd %xmm3,%xmm1
  subsd  %xmm6,%xmm13
  subsd  %xmm11,%xmm1
  movapd %xmm13,%xmm7
  subsd  %xmm11,%xmm7
  movapd %xmm7,%xmm9
  mulsd  %xmm7,%xmm9
  subsd  %xmm9,%xmm0
  movapd %xmm1,%xmm9
  mulsd  %xmm1,%xmm9
  subsd  %xmm9,%xmm0
  pxor   %xmm9,%xmm9
  comisd %xmm9,%xmm0
  ja     L125
  movapd %xmm9,%xmm7
L134:
  movapd %xmm3,%xmm14
  movapd %xmm2,%xmm12
  movapd %xmm4,%xmm0
  subsd  %xmm6,%xmm14
  subsd  %xmm11,%xmm12
  movapd %xmm14,%xmm1
  subsd  %xmm11,%xmm1
  movapd %xmm12,%xmm11
  mulsd  %xmm12,%xmm11
  subsd  %xmm11,%xmm0
  movapd %xmm1,%xmm11
  mulsd  %xmm1,%xmm11
  subsd  %xmm11,%xmm0
  comisd %xmm9,%xmm0
  jbe    L118
  mulsd  %xmm0,%xmm0
  lea    0x1(%r12),%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  movsd  %xmm10,0x48(%rsp)
  movsd  %xmm5,0x40(%rsp)
  movsd  %xmm8,0x38(%rsp)
  movsd  %xmm7,0x30(%rsp)
  mulsd  %xmm0,%xmm0
  movsd  %xmm3,0x28(%rsp)
  movsd  %xmm2,0x20(%rsp)
  movsd  %xmm14,0x18(%rsp)
  movsd  %xmm13,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm12,%xmm0
  call   <extrapolate2@plt>
  mulsd  0x8(%rsp),%xmm0
  mov    D101(%rip),%rax
  pxor   %xmm9,%xmm9
  movsd  0x30(%rsp),%xmm7
  movsd  0x48(%rsp),%xmm10
  movq   %rax,%xmm4
  mov    D136(%rip),%rax
  movsd  0x40(%rsp),%xmm5
  movsd  0x38(%rsp),%xmm8
  movsd  0x28(%rsp),%xmm3
  movsd  0x20(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm14
  movq   %rax,%xmm6
  addsd  %xmm0,%xmm7
  movsd  0x10(%rsp),%xmm13
L118:
  comisd %xmm10,%xmm6
  jae    L24
  movapd %xmm4,%xmm0
  subsd  %xmm10,%xmm0
  comisd %xmm0,%xmm8
  jbe    L25
L30:
  comisd %xmm5,%xmm8
  jbe    L88
  subsd  %xmm4,%xmm2
  addsd  %xmm9,%xmm3
  movsd  D138(%rip),%xmm0
  mov    %r12d,%r15d
  lea    0x2(%rbp),%r14d
  movapd %xmm2,%xmm6
  movapd %xmm3,%xmm5
  subsd  %xmm0,%xmm6
  subsd  %xmm0,%xmm5
L82:
  movapd %xmm13,%xmm2
  movapd %xmm14,%xmm3
  add    $0x1,%ebp
  add    $0x1,%r12d
  subsd  %xmm0,%xmm2
  subsd  %xmm0,%xmm3
L123:
  movapd %xmm2,%xmm1
  movapd %xmm4,%xmm0
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  comisd %xmm9,%xmm0
  jbe    L102
  mulsd  %xmm0,%xmm0
  movapd %xmm3,%xmm1
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm2,%xmm0
  call   <extrapolate2@plt>
  mulsd  0x8(%rsp),%xmm0
  pxor   %xmm9,%xmm9
  movsd  0x20(%rsp),%xmm7
  mov    D101(%rip),%rax
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm6
  movq   %rax,%xmm4
  addsd  %xmm0,%xmm7
L102:
  movapd %xmm6,%xmm0
  mulsd  %xmm6,%xmm0
  subsd  %xmm0,%xmm4
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  subsd  %xmm0,%xmm4
  comisd %xmm9,%xmm4
  jbe    L138
  mulsd  %xmm4,%xmm4
  movapd %xmm5,%xmm1
  movapd %xmm6,%xmm0
  mov    %r15d,%edx
  mov    %r14d,%esi
  mov    %r13,%rdi
  movsd  %xmm7,0x10(%rsp)
  mulsd  %xmm4,%xmm4
  movsd  %xmm4,0x8(%rsp)
  call   <extrapolate2@plt>
  mulsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm7
  addsd  %xmm0,%xmm7
L138:
  divsd  D26(%rip),%xmm7
  add    $0x50,%rsp
  movapd %xmm7,%xmm0
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L25:
  comisd %xmm0,%xmm5
  ja     L30
  mov    %r12d,%r15d
  movapd %xmm3,%xmm5
  movapd %xmm2,%xmm6
  mov    %ebp,%r14d
  movsd  D138(%rip),%xmm0
  jmp    L82
  nopl   (%rax)
L125:
  mulsd  %xmm0,%xmm0
  lea    0x1(%rbp),%esi
  mov    %r12d,%edx
  mov    %r13,%rdi
  movsd  %xmm10,0x38(%rsp)
  movsd  %xmm5,0x30(%rsp)
  movsd  %xmm8,0x28(%rsp)
  movsd  %xmm3,0x20(%rsp)
  mulsd  %xmm0,%xmm0
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm13,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm7,%xmm0
  call   <extrapolate2@plt>
  movsd  0x8(%rsp),%xmm7
  mov    D2(%rip),%rax
  pxor   %xmm9,%xmm9
  movsd  0x10(%rsp),%xmm13
  movsd  0x18(%rsp),%xmm2
  mulsd  %xmm0,%xmm7
  movq   %rax,%xmm11
  mov    D136(%rip),%rax
  movsd  0x20(%rsp),%xmm3
  movsd  0x28(%rsp),%xmm8
  movsd  0x30(%rsp),%xmm5
  movq   %rax,%xmm6
  mov    D101(%rip),%rax
  movsd  0x38(%rsp),%xmm10
  movq   %rax,%xmm4
  addsd  %xmm9,%xmm7
  jmp    L134
  nopl   0x0(%rax,%rax,1)
L24:
  movapd %xmm6,%xmm0
  subsd  %xmm10,%xmm0
  comisd %xmm8,%xmm0
  ja     L144
  comisd %xmm5,%xmm0
  jbe    L108
L144:
  comisd %xmm5,%xmm8
  jbe    L62
  addsd  %xmm3,%xmm6
  lea    0x1(%rbp),%r14d
  lea    -0x1(%r12),%r15d
  movapd %xmm6,%xmm5
  movapd %xmm13,%xmm6
  jmp    L123
  nopl   0x0(%rax,%rax,1)
L88:
  subsd  %xmm4,%xmm3
  movapd %xmm2,%xmm6
  lea    0x2(%r12),%r15d
  mov    %ebp,%r14d
  addsd  %xmm9,%xmm6
  movsd  D138(%rip),%xmm0
  movapd %xmm3,%xmm5
  subsd  %xmm0,%xmm6
  subsd  %xmm0,%xmm5
  jmp    L82
  xchg   %ax,%ax
L62:
  addsd  %xmm2,%xmm6
  lea    -0x1(%rbp),%r14d
  movapd %xmm14,%xmm5
  lea    0x1(%r12),%r15d
  jmp    L123
  nopw   0x0(%rax,%rax,1)
L108:
  movapd %xmm13,%xmm6
  movsd  D138(%rip),%xmm0
  movapd %xmm14,%xmm5
  lea    0x1(%rbp),%r14d
  lea    0x1(%r12),%r15d
  subsd  %xmm0,%xmm6
  subsd  %xmm0,%xmm5
  jmp    L123
```

tool_calls: name: parse_data
arguments: data_label: D99
datatype: byte[8]
name: parse_data
arguments: data_label: D2
datatype: f64
name: parse_data
arguments: data_label: D101
datatype: f64
name: parse_data
arguments: data_label: D136
datatype: f64
name: parse_data
arguments: data_label: D138
datatype: byte[8]
name: parse_data
arguments: data_label: D26
datatype: f64

tool: {"D99": [0xc3,0x99,0xdf,0x74,0xb1,0x0c,0xcb,0xbf]}

tool: D2: 0.366025403784439

tool: D101: 2

tool: D136: 1

tool: {"D138": [0x5b,0x99,0xb0,0xd0,0xf5,0x6c,0xe7,0x3f]}

tool: D26: 47

assistant: ```c
double open_simplex_noise2(struct osn_context *ctx, double x, double y) {
  double stretchOffset = (x + y) * (-0.211324865405187);
  double xs = x + stretchOffset;
  double ys = y + stretchOffset;
  int xsb = fastFloor(xs);
  int ysb = fastFloor(ys);
  double squishOffset = (xsb + ysb) * (0.366025403784439);
  double xb = xsb + squishOffset;
  double yb = ysb + squishOffset;
  double xins = xs - xsb;
  double yins = ys - ysb;
  double inSum = xins + yins;
  double dx0 = x - xb;
  double dy0 = y - yb;
  double dx_ext, dy_ext;
  int xsv_ext, ysv_ext;
  double value = 0;
  double dx1 = dx0 - 1 - (0.366025403784439);
  double dy1 = dy0 - 0 - (0.366025403784439);
  double attn1 = 2 - dx1 * dx1 - dy1 * dy1;
  if (attn1 > 0) {
    attn1 *= attn1;
    value += attn1 * attn1 * extrapolate2(ctx, xsb + 1, ysb + 0, dx1, dy1);
  }
  double dx2 = dx0 - 0 - (0.366025403784439);
  double dy2 = dy0 - 1 - (0.366025403784439);
  double attn2 = 2 - dx2 * dx2 - dy2 * dy2;
  if (attn2 > 0) {
    attn2 *= attn2;
    value += attn2 * attn2 * extrapolate2(ctx, xsb + 0, ysb + 1, dx2, dy2);
  }
  if (inSum <= 1) {
    double zins = 1 - inSum;
    if (zins > xins || zins > yins) {
      if (xins > yins) {
        xsv_ext = xsb + 1;
        ysv_ext = ysb - 1;
        dx_ext = dx0 - 1;
        dy_ext = dy0 + 1;
      } else {
        xsv_ext = xsb - 1;
        ysv_ext = ysb + 1;
        dx_ext = dx0 + 1;
        dy_ext = dy0 - 1;
      }
    } else {
      xsv_ext = xsb + 1;
      ysv_ext = ysb + 1;
      dx_ext = dx0 - 1 - 2 * (0.366025403784439);
      dy_ext = dy0 - 1 - 2 * (0.366025403784439);
    }
  } else {
    double zins = 2 - inSum;
    if (zins < xins || zins < yins) {
      if (xins > yins) {
        xsv_ext = xsb + 2;
        ysv_ext = ysb + 0;
        dx_ext = dx0 - 2 - 2 * (0.366025403784439);
        dy_ext = dy0 + 0 - 2 * (0.366025403784439);
      } else {
        xsv_ext = xsb + 0;
        ysv_ext = ysb + 2;
        dx_ext = dx0 + 0 - 2 * (0.366025403784439);
        dy_ext = dy0 - 2 - 2 * (0.366025403784439);
      }
    } else {
      dx_ext = dx0;
      dy_ext = dy0;
      xsv_ext = xsb;
      ysv_ext = ysb;
    }
    xsb += 1;
    ysb += 1;
    dx0 = dx0 - 1 - 2 * (0.366025403784439);
    dy0 = dy0 - 1 - 2 * (0.366025403784439);
  }
  double attn0 = 2 - dx0 * dx0 - dy0 * dy0;
  if (attn0 > 0) {
    attn0 *= attn0;
    value += attn0 * attn0 * extrapolate2(ctx, xsb, ysb, dx0, dy0);
  }
  double attn_ext = 2 - dx_ext * dx_ext - dy_ext * dy_ext;
  if (attn_ext > 0) {
    attn_ext *= attn_ext;
    value += attn_ext * attn_ext * extrapolate2(ctx, xsv_ext, ysv_ext, dx_ext, dy_ext);
  }
  return value / (47.0);
}
```