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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x0,-0x68(%rbp)
  movb   $0x2d,-0x76(%rbp)
  movb   $0x2b,-0x75(%rbp)
L186:
  lea    -0x42(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    -0x42(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0xa,%eax
  jg     L186
  lea    -0x42(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L186
  lea    -0x74(%rbp),%rax
  mov    %rax,%rsi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    -0x42(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x5c(%rbp)
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L203:
  cmp    %rdx,%rsp
  je     L37
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L203
L37:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L31
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L31:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L239
L36:
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl -0x76(%rbp),%ecx
  mov    %cl,(%rdx,%rax,1)
  addl   $0x1,-0x70(%rbp)
L239:
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x70(%rbp)
  jl     L36
  movl   $0x1,-0x6c(%rbp)
  movl   $0x1,-0x70(%rbp)
  jmp    L21
L195:
  shll   -0x6c(%rbp)
  addl   $0x1,-0x70(%rbp)
L21:
  mov    -0x5c(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jg     L195
  movl   $0x1,-0x60(%rbp)
  jmp    L199
L103:
  mov    -0x5c(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x70(%rbp)
  jmp    L254
L221:
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    %al,-0x75(%rbp)
  jne    L108
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl -0x76(%rbp),%ecx
  mov    %cl,(%rdx,%rax,1)
  subl   $0x1,-0x70(%rbp)
  jmp    L254
L108:
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl -0x75(%rbp),%ecx
  mov    %cl,(%rdx,%rax,1)
  jmp    L64
L254:
  cmpl   $0x0,-0x70(%rbp)
  jns    L221
L64:
  movzbl -0x42(%rbp),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x64(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L265
L73:
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    %al,-0x75(%rbp)
  jne    L161
  mov    -0x70(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl -0x42(%rbp,%rax,1),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,-0x64(%rbp)
  jmp    L253
L161:
  mov    -0x70(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl -0x42(%rbp,%rax,1),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  sub    %eax,-0x64(%rbp)
L253:
  addl   $0x1,-0x70(%rbp)
L265:
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x70(%rbp)
  jl     L73
  mov    -0x74(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jne    L227
  addl   $0x1,-0x68(%rbp)
  movzbl -0x42(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x70(%rbp)
  jmp    L144
L32:
  mov    -0x50(%rbp),%rdx
  mov    -0x70(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    %al,-0x75(%rbp)
  jne    L157
  mov    $0x2b,%edi
  call   <putchar@plt>
  jmp    L6
L157:
  mov    $0x2d,%edi
  call   <putchar@plt>
L6:
  mov    -0x70(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl -0x42(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
  addl   $0x1,-0x70(%rbp)
L144:
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x70(%rbp)
  jl     L32
  mov    -0x64(%rbp),%eax
  mov    %eax,%esi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L227:
  addl   $0x1,-0x60(%rbp)
L199:
  mov    -0x6c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jg     L103
  cmpl   $0x0,-0x68(%rbp)
  jne    L249
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L249:
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L154
  call   <__stack_chk_fail@plt>
L154:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D17
type: string
name: extract_symbolic_data
arguments: label: D37
type: string
name: extract_symbolic_data
arguments: label: D20
type: string
name: extract_symbolic_data
arguments: label: D21
type: string
name: extract_symbolic_data
arguments: label: D30
type: string

tool: D17: %s

tool: D37: %d

tool: D20: 
%c

tool: D21: =%d

tool: D30: -1

assistant: ```c
int main() {
  char v[10];
  int chislo, n, i, p, bk = 0, sum, j;
  char min = '-';
  char plus = '+';
  do {
    scanf("%s", v);
  } while (strlen(v) > 10 || strlen(v) < 2);
  scanf("%d", &chislo);
  n = strlen(v);
  char z[n - 1];
  for (i = 0; i <= n - 2; i++) {
    z[i] = min;
  }
  p = 1;
  for (i = 1; i <= n - 1; i++) {
    p = p * 2;
  }
  for (j = 1; j <= p - 1; j++) {
    i = n - 2;
    while (i >= 0) {
      if (z[i] == plus) {
        z[i] = min;
        i = i - 1;
      } else {
        z[i] = plus;
        break;
      }
    }
    sum = v[0] - '0';
    for (i = 0; i <= n - 2; i++) {
      if (z[i] == plus) {
        sum = sum + (v[i + 1] - '0');
      } else {
        sum = sum - (v[i + 1] - '0');
      }
    }
    if (sum == chislo) {
      bk++;
      printf("\n%c", v[0]);
      for (i = 0; i <= n - 2; i++) {
        if (z[i] == plus)
          printf("+");
        else
          printf("-");
        printf("%c", v[i + 1]);
      }
      printf("=%d", sum);
    }
  }
  if (bk == 0) {
    printf("-1");
  }
  return 0;
}
```