user: 请从给定的汇编指令推导出C源代码：

```asm
<Varianta_C>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r12
  push   %rbx
  sub    $0xf0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %rsi,-0xe0(%rbp)
  mov    %edx,-0xe4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r12
  movl   $0x0,-0x70(%rbp)
  movl   $0x24,-0x6c(%rbp)
  movl   $0x4a,-0x68(%rbp)
  movl   $0x6e,-0x64(%rbp)
  movl   $0x92,-0x60(%rbp)
  movl   $0xb6,-0x5c(%rbp)
  movl   $0xdc,-0x58(%rbp)
  movl   $0x0,-0x50(%rbp)
  movl   $0xfffffffe,-0x4c(%rbp)
  movl   $0x3,-0x48(%rbp)
  movl   $0x1,-0x44(%rbp)
  movl   $0xffffffff,-0x40(%rbp)
  movl   $0xfffffffd,-0x3c(%rbp)
  movl   $0x2,-0x38(%rbp)
  movl   $0x0,-0xd0(%rbp)
  jmp    L189
L43:
  addl   $0x1,-0xd0(%rbp)
L189:
  mov    -0xd0(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L401
  mov    -0xd0(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x1b,%al
  jne    L43
L401:
  mov    -0xd0(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0xa0(%rbp)
  movslq %edx,%rax
  mov    %rax,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movslq %edx,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  movslq %edx,%rax
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L107:
  cmp    %rdx,%rsp
  je     L52
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L107
L52:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L42
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L42:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x98(%rbp)
  mov    -0xd0(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x90(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L381:
  cmp    %rdx,%rsp
  je     L132
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L381
L132:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L422
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L422:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x88(%rbp)
  mov    -0xd0(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x80(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L120:
  cmp    %rdx,%rsp
  je     L358
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L120
L358:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L99
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L99:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x78(%rbp)
  mov    -0xe4(%rbp),%eax
  sub    $0x1,%eax
  sar    %eax
  mov    %eax,-0xb0(%rbp)
  movl   $0x0,-0xc0(%rbp)
  mov    -0xd0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  jmp    L236
L228:
  movl   $0x7,-0xc8(%rbp)
  movl   $0x100,-0xbc(%rbp)
  jmp    L414
L239:
  mov    -0xcc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x70(%rbp,%rax,4),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <abs@plt>
  mov    %eax,-0xc4(%rbp)
  mov    -0xc4(%rbp),%edx
  mov    -0xb0(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0xe4(%rbp)
  mov    %eax,-0xac(%rbp)
  mov    -0xc4(%rbp),%edx
  mov    -0xb0(%rbp),%eax
  add    %edx,%eax
  cltd
  idivl  -0xe4(%rbp)
  mov    %edx,-0xa8(%rbp)
  mov    -0xb0(%rbp),%eax
  sub    %eax,-0xa8(%rbp)
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,4),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <abs@plt>
  mov    -0xac(%rbp),%edx
  lea    (%rax,%rdx,1),%ebx
  mov    -0xa8(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <abs@plt>
  add    %ebx,%eax
  mov    %eax,-0xa4(%rbp)
  mov    -0xa4(%rbp),%eax
  cmp    -0xbc(%rbp),%eax
  jge    L414
  cmpl   $0x0,-0xc8(%rbp)
  jne    L370
  mov    -0xcc(%rbp),%edx
  mov    -0xc0(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  cmp    %eax,-0xd0(%rbp)
  jne    L236
  addl   $0x1,-0xc0(%rbp)
L370:
  mov    -0xa4(%rbp),%eax
  mov    %eax,-0xbc(%rbp)
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,4),%eax
  mov    %eax,%ecx
  mov    -0x98(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  mov    -0xcc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x70(%rbp,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  js     L398
  mov    -0xac(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x88(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  mov    -0xa8(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x78(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  jmp    L414
L398:
  mov    -0xac(%rbp),%eax
  neg    %eax
  mov    %eax,%ecx
  mov    -0x88(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
  mov    -0xa8(%rbp),%eax
  neg    %eax
  mov    %eax,%ecx
  mov    -0x78(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
L414:
  mov    -0xc8(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xc8(%rbp)
  test   %eax,%eax
  jne    L239
L236:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  test   %eax,%eax
  jne    L228
  movl   $0xffffffff,-0xb4(%rbp)
  movl   $0xfffffffd,-0xc8(%rbp)
  jmp    L233
L313:
  movl   $0x0,-0xc4(%rbp)
  cmpl   $0x0,-0xc8(%rbp)
  je     L50
  mov    -0xc8(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <abs@plt>
  add    $0x1,%eax
  add    %eax,%eax
  add    %eax,-0xc4(%rbp)
  cmpl   $0x0,-0xc0(%rbp)
  je     L50
  subl   $0x1,-0xc4(%rbp)
L50:
  mov    -0xd0(%rbp),%eax
  sub    -0xc0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  jmp    L272
L82:
  mov    -0x98(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  mov    %eax,%edx
  mov    -0xc8(%rbp),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <abs@plt>
  add    %eax,-0xc4(%rbp)
L272:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  cmp    $0x1,%eax
  jg     L82
  mov    -0xc4(%rbp),%eax
  cmp    -0xb4(%rbp),%eax
  jl     L351
  cmpl   $0x0,-0xb4(%rbp)
  jns    L155
L351:
  mov    -0xc8(%rbp),%eax
  mov    %eax,-0xb8(%rbp)
  mov    -0xc4(%rbp),%eax
  mov    %eax,-0xb4(%rbp)
L155:
  addl   $0x1,-0xc8(%rbp)
L233:
  cmpl   $0x3,-0xc8(%rbp)
  jle    L313
  cmpl   $0x0,-0xb8(%rbp)
  je     L353
  mov    -0xd0(%rbp),%eax
  sub    -0xc0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  jmp    L32
L334:
  mov    -0x98(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  mov    %eax,%edx
  mov    -0xb8(%rbp),%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  mov    -0x98(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %cl,(%rdx,%rax,1)
L32:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  cmp    $0x1,%eax
  jg     L334
L353:
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <pridej_retezec@plt>
  mov    %rax,-0xe0(%rbp)
  cmpl   $0x0,-0xb8(%rbp)
  je     L242
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xb8(%rbp),%eax
  neg    %eax
  movsbl %al,%eax
  mov    -0xe0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <opakuj@plt>
  mov    %rax,-0xe0(%rbp)
L242:
  mov    -0xd0(%rbp),%eax
  sub    -0xc0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  jmp    L47
L68:
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0x98(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%eax
  mov    -0xe0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <opakuj@plt>
  mov    %rax,-0xe0(%rbp)
L47:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  test   %eax,%eax
  jne    L68
  cmpl   $0x0,-0xb8(%rbp)
  je     L457
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <pridej_retezec@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xb8(%rbp),%eax
  movsbl %al,%eax
  mov    -0xe0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <opakuj@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  call   <pridej_retezec@plt>
  mov    %rax,-0xe0(%rbp)
  jmp    L190
L457:
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <pridej_retezec@plt>
  mov    %rax,-0xe0(%rbp)
L190:
  mov    -0xc0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  cmpl   $0x0,-0xb8(%rbp)
  je     L20
  subl   $0x1,-0xcc(%rbp)
L20:
  cmpl   $0x0,-0xcc(%rbp)
  jns    L420
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
  jmp    L55
L160:
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3e,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
L420:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  test   %eax,%eax
  jne    L160
L55:
  mov    -0xe4(%rbp),%eax
  movsbl %al,%eax
  mov    -0xe0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <opakuj@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x5b,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xd0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  jmp    L453
L402:
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0x88(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%eax
  mov    -0xe0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <opakuj@plt>
  mov    %rax,-0xe0(%rbp)
L453:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  test   %eax,%eax
  jne    L402
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <pridej_retezec@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xd0(%rbp),%eax
  mov    %eax,-0xcc(%rbp)
  jmp    L390
L45:
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0x78(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%eax
  mov    -0xe0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <opakuj@plt>
  mov    %rax,-0xe0(%rbp)
L390:
  mov    -0xcc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  test   %eax,%eax
  jne    L45
  mov    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <pridej_retezec@plt>
  mov    %rax,-0xe0(%rbp)
  mov    -0xe0(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0xe0(%rbp),%rax
  mov    %r12,%rsp
  mov    -0x28(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L37
  call   <__stack_chk_fail@plt>
L37:
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D46
datatype: string
name: extract_symbolic_data
arguments: tag: D26
datatype: string
name: extract_symbolic_data
arguments: tag: D10
datatype: string
name: extract_symbolic_data
arguments: tag: D34
datatype: string
name: extract_symbolic_data
arguments: tag: D9
datatype: string
name: extract_symbolic_data
arguments: tag: D17
datatype: string

tool: D46: ++[

tool: D26: [>

tool: D10: ]>-------]

tool: D34: [>]<-------]

tool: D9: [>]<-]

tool: D17: [.>]

assistant: ```c
char *Varianta_C(char *veta, char *vysledek, int nasobek) {
  int vysledky[7] = {0, 36, 74, 110, 146, 182, 220};
  int posuny[7] = {0, -2, 3, 1, -1, -3, 2};
  int delka = 0;
  while (veta[delka] && veta[delka] != 27)
    delka++;
  char optimalni_pocatky[delka];
  char optimalni_opravy[delka];
  char optimalni_korekce[delka];
  int i, j, k;
  int pricti = (nasobek - 1) >> 1;
  int ignorovano = 0;
  i = delka;
  while (i--) {
    j = 7;
    int best_d = 256;
    while (j--) {
      k = abs(veta[i] - vysledky[j]);
      int nas = (k + pricti) / nasobek;
      int kor = (k + pricti) % nasobek;
      kor -= pricti;
      int d = abs(posuny[j]) + nas + abs(kor);
      if (d < best_d) {
        if (j == 0) {
          if (i + ignorovano + 1 == delka) {
            ignorovano++;
          } else
            break;
        }
        best_d = d;
        optimalni_pocatky[i] = posuny[j];
        if (veta[i] - vysledky[j] >= 0) {
          optimalni_opravy[i] = nas;
          optimalni_korekce[i] = kor;
        } else {
          optimalni_opravy[i] = -nas;
          optimalni_korekce[i] = -kor;
        }
      }
    }
  }
  int best_p;
  int best_d = -1;
  for (j = -3; j <= 3; j++) {
    k = 0;
    if (j) {
      k += 2 + 2 * abs(j);
      if (ignorovano)
        k--;
    }
    i = delka - ignorovano;
    while (i-- > 1)
      k += abs(optimalni_pocatky[i] - j);
    if (k < best_d || best_d < 0) {
      best_p = j;
      best_d = k;
    }
  }
  if (best_p) {
    i = delka - ignorovano;
    while (i-- > 1)
      optimalni_pocatky[i] -= best_p;
  }
  vysledek = pridej_retezec("++[", vysledek);
  if (best_p) {
    vysledek = pridej_znak('<', vysledek);
    vysledek = opakuj(-best_p, vysledek);
  }
  i = delka - ignorovano;
  while (i--) {
    vysledek = pridej_znak('<', vysledek);
    vysledek = opakuj(optimalni_pocatky[i], vysledek);
  }
  if (best_p) {
    vysledek = pridej_retezec("[>", vysledek);
    vysledek = opakuj(best_p, vysledek);
    vysledek = pridej_retezec("]>-------]", vysledek);
  } else
    vysledek = pridej_retezec("[>]<-------]", vysledek);
  i = ignorovano;
  if (best_p)
    i--;
  if (i < 0)
    vysledek = pridej_znak('<', vysledek);
  else
    while (i--)
      vysledek = pridej_znak('>', vysledek);
  vysledek = opakuj(nasobek, vysledek);
  vysledek = pridej_znak('[', vysledek);
  i = delka;
  while (i--) {
    vysledek = pridej_znak('<', vysledek);
    vysledek = opakuj(optimalni_opravy[i], vysledek);
  }
  vysledek = pridej_retezec("[>]<-]", vysledek);
  i = delka;
  while (i--) {
    vysledek = pridej_znak('<', vysledek);
    vysledek = opakuj(optimalni_korekce[i], vysledek);
  }
  vysledek = pridej_retezec("[.>]", vysledek);
  *vysledek = 0;
  return vysledek;
}
```