user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<check_stability>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %esi,-0x9c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0xc8(%rbp)
  mov    -0x9c(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x9c(%rbp),%eax
  mov    %eax,-0x84(%rbp)
  mov    -0x9c(%rbp),%esi
  mov    -0x74(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  movslq %esi,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  movslq %esi,%rax
  lea    0x0(,%rax,8),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  movslq %esi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %edi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L256:
  cmp    %rdx,%rsp
  je     L190
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L256
L190:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L230
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L230:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x9c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L299:
  cmp    %rdx,%rsp
  je     L183
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L299
L183:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L232
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L232:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x80(%rbp)
  jmp    L200
L301:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x40(%rbp),%rax
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x80(%rbp)
L200:
  mov    -0x80(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jl     L301
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movl   $0x0,-0x80(%rbp)
  jmp    L310
L150:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x68(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  addl   $0x1,-0x80(%rbp)
L310:
  mov    -0x80(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jl     L150
  pxor   %xmm0,%xmm0
  comisd -0x68(%rbp),%xmm0
  jb     L344
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L147
L344:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movl   $0x0,-0x80(%rbp)
  jmp    L142
L242:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm4
  movsd  %xmm4,-0xb0(%rbp)
  mov    -0x9c(%rbp),%eax
  sub    $0x1,%eax
  sub    -0x80(%rbp),%eax
  mov    %eax,%esi
  mov    $0xffffffff,%edi
  call   <internal_pow@plt>
  mulsd  -0xb0(%rbp),%xmm0
  movsd  -0x68(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  addl   $0x1,-0x80(%rbp)
L142:
  mov    -0x80(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jl     L242
  mov    -0x9c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  mov    $0xffffffff,%edi
  call   <internal_pow@plt>
  movsd  -0x68(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x68(%rbp),%xmm0
  jb     L357
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L147
L357:
  mov    -0x9c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <internal_abs@plt>
  movq   %xmm0,%rax
  mov    -0x98(%rbp),%rdx
  movsd  (%rdx),%xmm0
  movq   %rax,%xmm5
  comisd %xmm0,%xmm5
  jbe    L231
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L147
L231:
  movl   $0x0,-0x80(%rbp)
  jmp    L247
L31:
  movl   $0x0,-0x7c(%rbp)
  jmp    L83
L287:
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x7c(%rbp)
L83:
  mov    -0x7c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L287
  addl   $0x1,-0x80(%rbp)
L247:
  mov    -0x80(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L31
  movl   $0x0,-0x80(%rbp)
  jmp    L213
L12:
  movl   $0x0,-0x7c(%rbp)
  jmp    L69
L326:
  cmpl   $0x0,-0x80(%rbp)
  jne    L318
  mov    -0x7c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  movsd  (%rax),%xmm0
  mov    -0x50(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  jmp    L75
L318:
  mov    -0x80(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L207
  movl   $0x0,-0x78(%rbp)
  jmp    L279
L223:
  mov    %rbx,%rsi
  shr    $0x3,%rsi
  mov    -0x80(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x84(%rbp),%eax
  sub    -0x78(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x50(%rbp),%rax
  movslq %edi,%rdi
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  mov    -0x50(%rbp),%rax
  mov    -0x78(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x78(%rbp)
L279:
  mov    -0x78(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L223
  subl   $0x1,-0x84(%rbp)
  mov    -0x84(%rbp),%eax
  mov    %eax,-0x7c(%rbp)
  jmp    L75
L207:
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x80(%rbp),%eax
  lea    -0x2(%rax),%esi
  mov    -0x50(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdi
  movslq %esi,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x80(%rbp),%eax
  lea    -0x2(%rax),%esi
  mov    -0x50(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rdi
  movslq %esi,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  movsd  (%rax,%rdx,8),%xmm1
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x80(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  imul   %rcx,%rdx
  movsd  (%rax,%rdx,8),%xmm3
  movapd %xmm1,%xmm2
  divsd  %xmm3,%xmm2
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x80(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x50(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdi
  movslq %esi,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  movsd  (%rax,%rdx,8),%xmm1
  mulsd  %xmm2,%xmm1
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  subsd  %xmm1,%xmm0
  mov    -0x50(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
L75:
  addl   $0x1,-0x7c(%rbp)
L69:
  mov    -0x7c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L326
  addl   $0x1,-0x80(%rbp)
L213:
  mov    -0x80(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L12
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  setae  %al
  movzbl %al,%eax
  mov    %eax,-0x70(%rbp)
  movl   $0x0,-0x80(%rbp)
  jmp    L298
L229:
  mov    -0x80(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L19
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  setae  %al
  movzbl %al,%eax
  mov    %eax,-0x6c(%rbp)
  mov    -0x70(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  je     L294
  mov    $0x0,%eax
  jmp    L147
L294:
  nop
L19:
  addl   $0x1,-0x80(%rbp)
L298:
  mov    -0x80(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L229
  mov    $0x1,%eax
L147:
  mov    -0xc8(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L57
  call   <__stack_chk_fail@plt>
L57:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D18
type: string
name: unpack_data
arguments: data_tag: D5
type: string
name: unpack_data
arguments: data_tag: D19
type: string

tool: D18: [DEBUG] the first constraint of Jury criteria failed: (F(1) > 0)

tool: D5: [DEBUG] the second constraint of Jury criteria failed: (F(-1)*(-1)^n > 0)

tool: D19: [DEBUG] the third constraint of Jury criteria failed: (abs(a0) < a_{n}*z^{n})

assistant: ```c
int check_stability(double a[], int n) {
  int lines = 2 * n - 1;
  int columns = n;
  double m[lines][n];
  int i, j;
  double current_stability[n];
  for (i = 0; i < n; i++) {
    current_stability[i] = a[i];
  }
  double sum = 0;
  for (i = 0; i < n; i++) {
    sum += a[i];
  }
  if (sum <= 0) {
    printf("[DEBUG] the first constraint of Jury criteria failed: (F(1) > 0)");
    return 0;
  }
  sum = 0;
  for (i = 0; i < n; i++) {
    sum += a[i] * internal_pow(-1, n - 1 - i);
  }
  sum = sum * internal_pow(-1, n - 1);
  if (sum <= 0) {
    printf("[DEBUG] the second constraint of Jury criteria "
           "failed: (F(-1)*(-1)^n > 0)");
    return 0;
  }
  if (internal_abs(a[n - 1]) > a[0]) {
    printf("[DEBUG] the third constraint of Jury criteria "
           "failed: (abs(a0) < a_{n}*z^{n})");
    return 0;
  }
  for (i = 0; i < lines; i++) {
    for (j = 0; j < columns; j++) {
      m[i][j] = 0;
    }
  }
  for (i = 0; i < lines; i++) {
    for (j = 0; j < columns; j++) {
      if (i == 0) {
        m[i][j] = a[j];
        continue;
      }
      if (i % 2 != 0) {
        int x;
        for (x = 0; x < columns; x++) {
          m[i][x] = m[i - 1][columns - x - 1];
        }
        columns = columns - 1;
        j = columns;
      } else {
        m[i][j] = m[i - 2][j] - (m[i - 2][columns] / m[i - 2][0]) * m[i - 1][j];
      }
    }
  }
  int first_is_positive = m[0][0] >= 0 ? 1 : 0;
  for (i = 0; i < lines; i++) {
    if (i % 2 == 0) {
      int line_is_positive = m[i][0] >= 0 ? 1 : 0;
      if (first_is_positive != line_is_positive) {
        return 0;
      }
      continue;
    }
  }
  return 1;
}
```