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

```asm
<taylor_iter>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movq   %xmm0,%r14
  movq   %xmm1,%r13
  movsd  %xmm2,0x8(%rsp)
  mov    $0x8,%ebp
  jmp    L111
L7:
  mov    $0x0,%ebp
  jmp    L2
L90:
  lea    0x0(%rbp,%rbp,4),%ebp
  add    %ebp,%ebp
L111:
  movq   %r14,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  mov    %ebp,%edi
  movq   %r14,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  call   <my_abs@plt>
  movsd  0x8(%rsp),%xmm5
  comisd %xmm0,%xmm5
  jb     L90
  mov    %ebp,%r12d
  mov    $0xcccccccd,%eax
  imul   %rax,%r12
  shr    $0x23,%r12
  add    %ebp,%r12d
  mov    %r12d,%ebp
  shr    %ebp
  cmp    $0x1,%ebp
  je     L7
L8:
  movq   %r14,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  mov    %ebp,%edi
  movq   %r14,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  call   <my_abs@plt>
  movsd  0x8(%rsp),%xmm3
  comisd %xmm0,%xmm3
  jae    L40
  add    %r12d,%ebp
  shr    %ebp
  jmp    L42
L40:
  movq   %r14,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  lea    -0x1(%rbp),%edi
  movq   %r14,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  call   <my_abs@plt>
  comisd 0x8(%rsp),%xmm0
  ja     L2
  mov    %ebp,%r12d
  shr    %ebp
L42:
  test   %ebp,%ebp
  jne    L8
L2:
  mov    $0x1,%r12d
  jmp    L132
L10:
  lea    (%r12,%r12,4),%r12d
  add    %r12d,%r12d
L132:
  movq   %r13,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  mov    %r12d,%edi
  movq   %r13,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  call   <my_abs@plt>
  comisd 0x8(%rsp),%xmm0
  jbe    L10
  mov    $0x0,%ebx
  cmp    $0x1,%r12d
  je     L94
  mov    %r12d,%r15d
  mov    $0xcccccccd,%eax
  imul   %rax,%r15
  shr    $0x23,%r15
  add    %r12d,%r15d
  mov    %r15d,%ebx
  shr    %ebx
  cmp    $0x1,%ebx
  je     L22
L140:
  movq   %r13,%xmm0
  call   <log@plt>
  movq   %xmm0,%r12
  mov    %ebx,%edi
  movq   %r13,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %r12,%xmm0
  subsd  %xmm1,%xmm0
  call   <my_abs@plt>
  movsd  0x8(%rsp),%xmm4
  comisd %xmm0,%xmm4
  jae    L142
  add    %r15d,%ebx
  shr    %ebx
L130:
  test   %ebx,%ebx
  jne    L140
L94:
  cmp    %ebx,%ebp
  cmovae %ebp,%ebx
  mov    %ebx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  lea    D18(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  movq   %r14,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %r14,%xmm0
  lea    D3(%rip),%rbp
  mov    %rbp,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  movq   %r13,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %r13,%xmm0
  mov    %rbp,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L142:
  movq   %r13,%xmm0
  call   <log@plt>
  movq   %xmm0,%r12
  lea    -0x1(%rbx),%edi
  movq   %r13,%xmm0
  call   <taylor_log@plt>
  movapd %xmm0,%xmm1
  movq   %r12,%xmm0
  subsd  %xmm1,%xmm0
  call   <my_abs@plt>
  comisd 0x8(%rsp),%xmm0
  ja     L94
  mov    %ebx,%r15d
  shr    %ebx
  jmp    L130
L22:
  mov    $0x0,%ebx
  jmp    L94
```

tool_calls: name: retrieve_data
arguments: label: D18
type: string
name: retrieve_data
arguments: label: D3
type: string

tool: D18: taylor polynomial iterations = %d


tool: D3: taylor_log(%g) = %.12g


assistant: ```c
void taylor_iter(double min, double max, double eps) {
  unsigned int hodnota_min;
  unsigned int hodnota_max;
  int pravda = 1;
  unsigned int max_interval = 8;
  unsigned int min_interval;
  unsigned int stred;
  while (pravda) {
    if (my_abs(log(min) - taylor_log(min, max_interval)) <= eps)
      pravda = 0;
    else
      max_interval *= 10;
  }
  if (max_interval == 1)
    min_interval = 1;
  else
    min_interval = max_interval / 10;
  stred = (min_interval + max_interval) / 2;
  max_interval = max_interval + min_interval;
  pravda = 1;
  int pom_pravda = 1;
  if (stred - 1 == 0) {
    pravda = 0;
    hodnota_min = 0;
  }
  while (pravda) {
    if (my_abs(log(min) - taylor_log(min, stred)) <= eps)
      pom_pravda = 1;
    else
      pom_pravda = 0;
    if (pom_pravda && (my_abs(log(min) - taylor_log(min, stred - 1)) > eps)) {
      pravda = 0;
      hodnota_min = stred;
      break;
    }
    if (pom_pravda) {
      max_interval = stred;
      stred = stred / 2;
    } else {
      stred = (max_interval + stred) / 2;
    }
    if (stred == 0) {
      pravda = 0;
      hodnota_min = stred;
    }
  }
  pravda = 1;
  max_interval = 1;
  while (pravda) {
    if (my_abs(log(max) - taylor_log(max, max_interval)) > eps)
      pravda = 0;
    else
      max_interval *= 10;
  }
  if (max_interval == 1)
    min_interval = 1;
  else
    min_interval = max_interval / 10;
  pravda = 1;
  stred = (min_interval + max_interval) / 2;
  max_interval = max_interval + min_interval;
  if (stred - 1 == 0) {
    pravda = 0;
    hodnota_max = 0;
  }
  while (pravda) {
    if (my_abs(log(max) - taylor_log(max, stred)) <= eps)
      pom_pravda = 1;
    else
      pom_pravda = 0;
    if (pom_pravda && (my_abs(log(max) - taylor_log(max, stred - 1)) > eps)) {
      pravda = 0;
      hodnota_max = stred;
      break;
    }
    if (pom_pravda) {
      max_interval = stred;
      stred = stred / 2;
    } else {
      stred = (max_interval + stred) / 2;
    }
    if (stred == 0) {
      pravda = 0;
      hodnota_max = stred;
    }
  }
  if (hodnota_min < hodnota_max)
    stred = hodnota_max;
  else
    stred = hodnota_min;
  printf("taylor polynomial iterations = %d\n", stred);
  printf("taylor_log(%g) = %.12g\n", min, taylor_log(min, stred));
  printf("taylor_log(%g) = %.12g\n", max, taylor_log(max, stred));
  return;
}
```