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

```asm
<Varianta_C>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xe8,%rsp
  mov    %rsi,-0x108(%rbp)
  movdqa D11(%rip),%xmm0
  mov    %edx,-0xa4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    D112(%rip),%rax
  movaps %xmm0,-0x80(%rbp)
  movdqa D128(%rip),%xmm0
  movl   $0xdc,-0x68(%rbp)
  mov    %rax,-0x70(%rbp)
  mov    D22(%rip),%rax
  movl   $0x2,-0x48(%rbp)
  mov    %rax,-0x50(%rbp)
  movzbl (%rdi),%eax
  movaps %xmm0,-0x60(%rbp)
  cmp    $0x1b,%al
  je     L225
  test   %al,%al
  je     L225
  mov    %rdi,%r8
  mov    $0x1,%eax
  jmp    L303
  nopl   (%rax)
L408:
  cmp    $0x1b,%dl
  je     L476
L303:
  movzbl (%r8,%rax,1),%edx
  lea    -0x1(%rax),%esi
  mov    %eax,%r10d
  mov    %eax,%edi
  mov    %rax,%rcx
  mov    %esi,%r9d
  add    $0x1,%rax
  test   %dl,%dl
  jne    L408
L476:
  add    $0xf,%rcx
  mov    %esi,-0xec(%rbp)
  mov    %rsp,%rdx
  mov    %rcx,%rsi
  mov    %rcx,%rax
  mov    %edi,-0xfc(%rbp)
  and    $0xfffffffffffff000,%rsi
  mov    %r9d,-0x100(%rbp)
  and    $0xfffffffffffffff0,%rax
  sub    %rsi,%rdx
  mov    %r10d,-0x10c(%rbp)
  cmp    %rdx,%rsp
  je     L510
L366:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L366
L510:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L477
L484:
  mov    %rcx,%rsi
  mov    %rsp,-0xc8(%rbp)
  mov    %rcx,%rax
  mov    %rsp,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rax
  sub    %rsi,%rdx
L461:
  cmp    %rdx,%rsp
  je     L96
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L461
L477:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L484
L96:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L124
L275:
  mov    %rcx,%rax
  mov    %rsp,%rdx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,-0xd0(%rbp)
  sub    %rcx,%rdx
  and    $0xfffffffffffffff0,%rax
  cmp    %rdx,%rsp
  je     L472
L23:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L23
L472:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L305
  orq    $0x0,-0x8(%rsp,%rax,1)
L305:
  mov    -0xa4(%rbp),%eax
  mov    %rsp,-0xd8(%rbp)
  movl   $0x0,-0xdc(%rbp)
  sub    $0x1,%eax
  sar    %eax
  mov    %eax,-0xa8(%rbp)
  movslq -0xec(%rbp),%rax
  lea    -0x1(%rax),%rbx
  mov    %rax,-0xc0(%rbp)
  lea    (%r8,%rax,1),%r14
  mov    %eax,%eax
  mov    %rbx,-0xe8(%rbp)
  sub    %rax,%rbx
  lea    -0x80(%rbp),%rax
  mov    %rax,-0xb0(%rbp)
  lea    -0x60(%rbp),%rax
  mov    %rbx,-0xf8(%rbp)
  mov    %rax,-0xb8(%rbp)
  nopl   0x0(%rax,%rax,1)
L202:
  mov    -0xc0(%rbp),%eax
  mov    $0x6,%r15d
  movl   $0x100,-0x94(%rbp)
  mov    %eax,-0xe0(%rbp)
  mov    %r15,%rax
  mov    %r14,%r15
  mov    %rax,%r14
  jmp    L539
  nop
L164:
  mov    -0xd0(%rbp),%rax
  mov    %r12d,-0x94(%rbp)
  mov    %bl,(%rax,%rcx,1)
  mov    -0xd8(%rbp),%rax
  mov    %r13b,(%rax,%rcx,1)
L189:
  sub    $0x1,%r14
  jb     L437
L539:
  mov    -0xb0(%rbp),%rax
  movzbl (%r15),%edi
  mov    (%rax,%r14,4),%esi
  sub    %esi,%edi
  mov    %esi,-0xa0(%rbp)
  movsbl %dil,%edi
  call   <abs@plt>
  mov    -0xa8(%rbp),%ecx
  add    %ecx,%eax
  cltd
  idivl  -0xa4(%rbp)
  mov    %eax,%ebx
  mov    -0xb8(%rbp),%rax
  sub    %ecx,%edx
  mov    %edx,%r13d
  mov    (%rax,%r14,4),%edx
  movsbl %dl,%edi
  mov    %edx,-0x98(%rbp)
  call   <abs@plt>
  movsbl %r13b,%edi
  lea    (%rax,%rbx,1),%r12d
  call   <abs@plt>
  add    %eax,%r12d
  cmp    -0x94(%rbp),%r12d
  jge    L189
  test   %r14,%r14
  mov    -0x98(%rbp),%edx
  mov    -0xa0(%rbp),%esi
  je     L165
L300:
  mov    -0xc8(%rbp),%rax
  mov    -0xc0(%rbp),%rcx
  mov    %dl,(%rax,%rcx,1)
  movsbl (%r15),%eax
  cmp    %esi,%eax
  jge    L164
  mov    -0xd0(%rbp),%rsi
  neg    %ebx
  neg    %r13d
  mov    %r12d,-0x94(%rbp)
  mov    %bl,(%rsi,%rcx,1)
  mov    -0xd8(%rbp),%rbx
  mov    %r13b,(%rbx,%rcx,1)
  sub    $0x1,%r14
  jae    L539
  nopl   0x0(%rax,%rax,1)
L437:
  mov    -0xe8(%rbp),%rax
  mov    %r15,%r14
  sub    $0x1,%r14
  mov    %rax,-0xc0(%rbp)
  cmp    %rax,-0xf8(%rbp)
  je     L109
  sub    $0x1,%rax
  mov    %rax,-0xe8(%rbp)
  jmp    L202
L225:
  lea    -0x81(%rbp),%rax
  movl   $0xffffffff,-0xb0(%rbp)
  mov    %rax,-0xd8(%rbp)
  lea    -0x82(%rbp),%rax
  mov    %rax,-0xd0(%rbp)
  lea    -0x83(%rbp),%rax
  movl   $0xffffffff,-0xa8(%rbp)
  movl   $0x0,-0x98(%rbp)
  movl   $0xffffffff,-0x100(%rbp)
  movl   $0x0,-0xfc(%rbp)
  mov    %rax,-0xc8(%rbp)
  movl   $0x0,-0xdc(%rbp)
  nopl   0x0(%rax,%rax,1)
L112:
  movslq -0xa8(%rbp),%rax
  mov    $0xfffffffd,%r13d
  movl   $0xffffffff,-0x94(%rbp)
  mov    %rax,%rbx
  add    -0xc8(%rbp),%rax
  mov    %rax,-0xa0(%rbp)
  lea    0x1(%rbx),%r12d
  sub    %eax,%r12d
  nop
L298:
  xor    %r15d,%r15d
  test   %r13d,%r13d
  je     L22
  mov    %r13d,%edi
  call   <abs@plt>
  cmpl   $0x1,-0xdc(%rbp)
  lea    0x2(%rax,%rax,1),%r15d
  adc    $0xffffffff,%r15d
L22:
  cmpl   $0x1,-0x98(%rbp)
  jle    L537
  mov    -0xa0(%rbp),%r14
  mov    %r13d,%ebx
  nopl   0x0(%rax,%rax,1)
L211:
  movzbl (%r14),%edi
  sub    $0x1,%r14
  sub    %ebx,%edi
  movsbl %dil,%edi
  call   <abs@plt>
  add    %eax,%r15d
  lea    (%r12,%r14,1),%eax
  cmp    $0x1,%eax
  jg     L211
L537:
  mov    -0x94(%rbp),%eax
  cmp    %eax,%r15d
  jl     L8
  test   %eax,%eax
  js     L8
L241:
  add    $0x1,%r13d
  cmp    $0x4,%r13d
  jne    L298
  mov    -0xf0(%rbp),%eax
  test   %eax,%eax
  je     L17
  cmpl   $0x1,-0x98(%rbp)
  mov    %eax,%ebx
  jle    L290
  movslq -0xa8(%rbp),%r13
  mov    -0xc8(%rbp),%rax
  lea    0x1(%r13),%ecx
  add    %r13,%rax
  sub    %eax,%ecx
  nopl   0x0(%rax)
L420:
  sub    %bl,(%rax)
  sub    $0x1,%rax
  lea    (%rcx,%rax,1),%edx
  cmp    $0x1,%edx
  jg     L420
  mov    -0x108(%rbp),%rsi
  lea    D38(%rip),%rdi
  neg    %ebx
  call   <pridej_retezec@plt>
  mov    $0x3c,%edi
  mov    %rax,%rsi
  call   <pridej_znak@plt>
  movsbl %bl,%edi
  mov    %rax,%rsi
  call   <opakuj@plt>
  mov    %rax,%rsi
L506:
  add    -0xc8(%rbp),%r13
  mov    -0xa8(%rbp),%eax
  lea    -0x1(%r13),%r12
  mov    %r12,%rbx
  sub    %rax,%rbx
  jmp    L273
  nopw   0x0(%rax,%rax,1)
L375:
  sub    $0x1,%r12
L273:
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  movsbl 0x0(%r13),%edi
  mov    %r12,%r13
  mov    %rax,%rsi
  call   <opakuj@plt>
  mov    %rax,%rsi
  cmp    %r12,%rbx
  jne    L375
  mov    -0xf0(%rbp),%r8d
  test   %r8d,%r8d
  je     L249
L522:
  lea    D101(%rip),%rdi
  call   <pridej_retezec@plt>
  movsbl -0xf0(%rbp),%edi
  mov    %rax,%rsi
  call   <opakuj@plt>
  lea    D125(%rip),%rdi
  mov    %rax,%rsi
  call   <pridej_retezec@plt>
  mov    %rax,%rsi
  mov    -0xb0(%rbp),%eax
  cmp    $0xffffffff,%eax
  je     L425
  mov    %eax,-0xdc(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0xb0(%rbp)
L272:
  mov    -0xdc(%rbp),%edi
  mov    -0xb0(%rbp),%ebx
  test   %edi,%edi
  je     L123
  nopl   0x0(%rax)
L291:
  mov    $0x3e,%edi
  call   <pridej_znak@plt>
  mov    %rax,%rsi
  sub    $0x1,%ebx
  jae    L291
L123:
  movsbl -0xa4(%rbp),%edi
  call   <opakuj@plt>
  mov    $0x5b,%edi
  mov    %rax,%rsi
  call   <pridej_znak@plt>
  mov    -0xfc(%rbp),%ecx
  mov    %rax,%rsi
  test   %ecx,%ecx
  je     L184
  movslq -0x100(%rbp),%rbx
  mov    -0xd0(%rbp),%r15
  add    %rbx,%r15
  mov    %ebx,%r12d
  lea    -0x1(%r15),%r14
  mov    %r14,%r13
  sub    %r12,%r13
  jmp    L474
  nopl   0x0(%rax)
L56:
  sub    $0x1,%r14
L474:
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  movsbl (%r15),%edi
  mov    %r14,%r15
  mov    %rax,%rsi
  call   <opakuj@plt>
  mov    %rax,%rsi
  cmp    %r13,%r14
  jne    L56
  lea    D8(%rip),%rdi
  call   <pridej_retezec@plt>
  add    -0xd8(%rbp),%rbx
  lea    -0x1(%rbx),%r13
  mov    %rax,%rsi
  mov    %r13,%r14
  sub    %r12,%r14
  jmp    L312
  nop
L51:
  sub    $0x1,%r13
L312:
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  movsbl (%rbx),%edi
  mov    %r13,%rbx
  mov    %rax,%rsi
  call   <opakuj@plt>
  mov    %rax,%rsi
  cmp    %r13,%r14
  jne    L51
L248:
  lea    D39(%rip),%rdi
  call   <pridej_retezec@plt>
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L57
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L8:
  mov    %r15d,-0x94(%rbp)
  mov    %r13d,-0xf0(%rbp)
  jmp    L241
L17:
  mov    -0x108(%rbp),%rsi
  lea    D38(%rip),%rdi
  call   <pridej_retezec@plt>
  mov    -0x98(%rbp),%edx
  movslq -0xa8(%rbp),%r13
  mov    %rax,%rsi
  test   %edx,%edx
  jne    L506
L249:
  lea    D29(%rip),%rdi
  call   <pridej_retezec@plt>
  mov    %rax,%rsi
  jmp    L272
L425:
  mov    $0x3c,%edi
  call   <pridej_znak@plt>
  mov    %rax,%rsi
  jmp    L123
L184:
  lea    D8(%rip),%rdi
  call   <pridej_retezec@plt>
  mov    %rax,%rsi
  jmp    L248
L290:
  mov    -0x108(%rbp),%rsi
  lea    D38(%rip),%rdi
  call   <pridej_retezec@plt>
  mov    $0x3c,%edi
  mov    %rax,%rsi
  call   <pridej_znak@plt>
  movzbl -0xf0(%rbp),%edi
  mov    %rax,%rsi
  neg    %edi
  movsbl %dil,%edi
  call   <opakuj@plt>
  mov    %rax,%rsi
  mov    -0x98(%rbp),%eax
  test   %eax,%eax
  je     L522
  movslq -0xa8(%rbp),%r13
  jmp    L506
  nopw   0x0(%rax,%rax,1)
L124:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L275
  nopl   0x0(%rax,%rax,1)
L165:
  mov    -0xdc(%rbp),%ecx
  mov    -0xe0(%rbp),%eax
  add    %ecx,%eax
  cmp    -0xec(%rbp),%eax
  jne    L437
  add    $0x1,%ecx
  mov    %ecx,-0xdc(%rbp)
  jmp    L300
L109:
  mov    -0xdc(%rbp),%ebx
  mov    -0x10c(%rbp),%eax
  sub    %ebx,%eax
  mov    %eax,-0x98(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0xa8(%rbp)
  lea    -0x1(%rbx),%eax
  mov    %eax,-0xb0(%rbp)
  jmp    L112
L57:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D11
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D112
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D128
type_infered: byte[16]
name: disassemble_data
arguments: data_label: D22
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D38
type_infered: string
name: disassemble_data
arguments: data_label: D101
type_infered: string
name: disassemble_data
arguments: data_label: D125
type_infered: string
name: disassemble_data
arguments: data_label: D8
type_infered: string
name: disassemble_data
arguments: data_label: D39
type_infered: string
name: disassemble_data
arguments: data_label: D29
type_infered: string

tool: {"D11": [0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x6e,0x00,0x00,0x00]}

tool: {"D112": [0x92,0x00,0x00,0x00,0xb6,0x00,0x00,0x00]}

tool: {"D128": [0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0xff,0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: {"D22": [0xff,0xff,0xff,0xff,0xfd,0xff,0xff,0xff]}

tool: D38: ++[

tool: D101: [>

tool: D125: ]>-------]

tool: D8: [>]<-]

tool: D39: [.>]

tool: D29: [>]<-------]

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;
}
```