user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<ti_di>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %edi,-0xf4(%rbp)
  mov    %rsi,-0x100(%rbp)
  mov    %rdx,-0x108(%rbp)
  mov    %rcx,-0x110(%rbp)
  mov    -0x100(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x90(%rbp)
  mov    -0x100(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0x88(%rbp)
  mov    -0x100(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x108(%rbp),%rax
  movsd  (%rax),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xec(%rbp)
  mov    -0x110(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0xe8(%rbp)
  mov    -0x110(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0xe0(%rbp)
  cmpl   $0x0,-0xec(%rbp)
  jg     L110
  mov    $0x1,%eax
  jmp    L150
L110:
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <ti_di_start@plt>
  cmp    %eax,-0xf4(%rbp)
  jg     L17
  mov    $0x0,%eax
  jmp    L150
L17:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xec(%rbp),%xmm0
  movsd  D18(%rip),%xmm1
  subsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xec(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  movl   $0x1,-0xf0(%rbp)
  jmp    L203
L123:
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x38(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movq   D70(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x40(%rbp),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movq   D70(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x38(%rbp),%xmm0
  subsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movsd  -0x28(%rbp),%xmm0
  comisd -0xc0(%rbp),%xmm0
  jbe    L139
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0xc0(%rbp)
L139:
  movsd  -0x20(%rbp),%xmm0
  comisd -0xc0(%rbp),%xmm0
  jbe    L55
  movsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0xc0(%rbp)
L55:
  movsd  -0xc0(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0xd8(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xf0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0xb8(%rbp),%xmm0
  jbe    L112
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  jmp    L200
L112:
  movsd  -0xb8(%rbp),%xmm0
  comisd -0xb0(%rbp),%xmm0
  jbe    L200
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
L200:
  pxor   %xmm0,%xmm0
  comisd -0xb0(%rbp),%xmm0
  jbe    L215
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  jmp    L86
L215:
  movsd  -0xb0(%rbp),%xmm0
  comisd -0xb8(%rbp),%xmm0
  jbe    L86
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
L86:
  movsd  -0xd0(%rbp),%xmm0
  addsd  -0xb8(%rbp),%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  movsd  -0xc8(%rbp),%xmm0
  addsd  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  addl   $0x1,-0xf0(%rbp)
L203:
  mov    -0xf0(%rbp),%eax
  cmp    -0xec(%rbp),%eax
  jl     L123
  movsd  -0xd0(%rbp),%xmm1
  movsd  D46(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0xe8(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  divsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0xc8(%rbp),%xmm1
  movsd  D46(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0xe0(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0xe0(%rbp)
  divsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xec(%rbp),%eax
  mov    %eax,-0xf0(%rbp)
  jmp    L121
L238:
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x68(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movq   D70(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x70(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movq   D70(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x68(%rbp),%xmm0
  subsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  movsd  -0x58(%rbp),%xmm0
  comisd -0xa8(%rbp),%xmm0
  jbe    L237
  movsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
L237:
  movsd  -0x50(%rbp),%xmm0
  comisd -0xa8(%rbp),%xmm0
  jbe    L219
  movsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
L219:
  movsd  -0xa8(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0xd8(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movsd  -0x48(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xf0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  mov    -0xf0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0xf0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0xa0(%rbp),%xmm0
  jbe    L59
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  jmp    L98
L59:
  movsd  -0xa0(%rbp),%xmm0
  comisd -0x98(%rbp),%xmm0
  jbe    L98
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x98(%rbp)
L98:
  pxor   %xmm0,%xmm0
  comisd -0x98(%rbp),%xmm0
  jbe    L153
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  jmp    L37
L153:
  movsd  -0x98(%rbp),%xmm0
  comisd -0xa0(%rbp),%xmm0
  jbe    L37
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
L37:
  movsd  -0xd0(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movsd  -0xa0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  movsd  -0xc8(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movsd  -0x98(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  movsd  -0xd0(%rbp),%xmm1
  movsd  D46(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0xe8(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  divsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0xc8(%rbp),%xmm1
  movsd  D46(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0xe0(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0xe0(%rbp)
  divsd  -0xd8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0xf0(%rbp)
L121:
  mov    -0xf0(%rbp),%eax
  cmp    -0xf4(%rbp),%eax
  jl     L238
  mov    -0x110(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xe8(%rbp),%rax
  sub    %rdx,%rax
  sar    $0x3,%rax
  mov    %rax,%rbx
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <ti_di_start@plt>
  mov    %eax,%edx
  mov    -0xf4(%rbp),%eax
  sub    %edx,%eax
  cltq
  cmp    %rax,%rbx
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x110(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0xe0(%rbp),%rax
  sub    %rdx,%rax
  sar    $0x3,%rax
  mov    %rax,%rbx
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <ti_di_start@plt>
  mov    %eax,%edx
  mov    -0xf4(%rbp),%eax
  sub    %edx,%eax
  cltq
  cmp    %rax,%rbx
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    $0x0,%eax
L150:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D18
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D70
type_infered: qword
name: retrieve_data
arguments: data_tag: D46
type_infered: f64

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

tool: D70: 9223372036854775807

tool: D46: 100

assistant: ```c
int ti_di(int size, double const *const *inputs, double const *options, double *const *outputs) {
  const double *high = inputs[0];
  const double *low = inputs[1];
  const double *close = inputs[2];
  const int period = (int)options[0];
  double *plus_di = outputs[0];
  double *minus_di = outputs[1];
  if (period < 1)
    return 1;
  if (size <= ti_di_start(options))
    return 0;
  const double per = ((double)period - 1) / ((double)period);
  double atr = 0;
  double dmup = 0;
  double dmdown = 0;
  int i;
  for (i = 1; i < period; ++i) {
    double truerange;
    do {
      const double l = low[i];
      const double h = high[i];
      const double c = close[i - 1];
      const double ych = fabs(h - c);
      const double ycl = fabs(l - c);
      double v = h - l;
      if (ych > v)
        v = ych;
      if (ycl > v)
        v = ycl;
      truerange = v;
    } while (0);
    atr += truerange;
    double dp, dm;
    do {
      dp = high[i] - high[i - 1];
      dm = low[i - 1] - low[i];
      if (dp < 0)
        dp = 0;
      else if (dp > dm)
        dm = 0;
      if (dm < 0)
        dm = 0;
      else if (dm > dp)
        dp = 0;
    } while (0);
    dmup += dp;
    dmdown += dm;
  }
  *plus_di++ = 100.0 * dmup / atr;
  *minus_di++ = 100.0 * dmdown / atr;
  for (i = period; i < size; ++i) {
    double truerange;
    do {
      const double l = low[i];
      const double h = high[i];
      const double c = close[i - 1];
      const double ych = fabs(h - c);
      const double ycl = fabs(l - c);
      double v = h - l;
      if (ych > v)
        v = ych;
      if (ycl > v)
        v = ycl;
      truerange = v;
    } while (0);
    atr = atr * per + truerange;
    double dp, dm;
    do {
      dp = high[i] - high[i - 1];
      dm = low[i - 1] - low[i];
      if (dp < 0)
        dp = 0;
      else if (dp > dm)
        dm = 0;
      if (dm < 0)
        dm = 0;
      else if (dm > dp)
        dp = 0;
    } while (0);
    dmup = dmup * per + dp;
    dmdown = dmdown * per + dm;
    *plus_di++ = 100.0 * dmup / atr;
    *minus_di++ = 100.0 * dmdown / atr;
  }
  assert(plus_di - outputs[0] == size - ti_di_start(options));
  assert(minus_di - outputs[1] == size - ti_di_start(options));
  return 0;
}
```