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

```asm
<main>:
  endbr64
  push   %r15
  lea    D30(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x14(%rsp),%r13
  lea    0x10(%rsp),%r12
  mov    %r12,%rsi
  mov    %r13,%rdx
  call   <scanf@plt>
  mov    0x10(%rsp),%esi
  test   %esi,%esi
  jle    L73
  mov    0x14(%rsp),%ebp
  test   %ebp,%ebp
  jle    L73
  cmp    %ebp,%esi
  jg     L148
  jge    L87
  xor    %ebp,%ebp
  lea    D8(%rip),%rbx
  nopl   (%rax)
L60:
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  add    %esi,%ebp
  add    $0x1,%esi
  mov    %esi,0x10(%rsp)
  cmp    0x14(%rsp),%esi
  jle    L60
  jmp    L87
L148:
  xor    %r14d,%r14d
  lea    D8(%rip),%rbx
  nop
L167:
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    0x14(%rsp),%ebp
  add    %ebp,%r14d
  add    $0x1,%ebp
  mov    %ebp,0x14(%rsp)
  cmp    0x10(%rsp),%ebp
  jle    L167
  mov    %r14d,%ebp
L87:
  lea    D50(%rip),%r15
  mov    %ebp,%esi
  mov    %r15,%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%ecx
  test   %ecx,%ecx
  jle    L73
  lea    D21(%rip),%r14
  lea    D8(%rip),%rbp
  nopl   0x0(%rax,%rax,1)
L129:
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  jle    L73
  mov    %r12,%rsi
  mov    %r13,%rdx
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%esi
  test   %esi,%esi
  jle    L73
  mov    0x14(%rsp),%r8d
  test   %r8d,%r8d
  jle    L129
  cmp    %r8d,%esi
  jg     L146
  jl     L38
L131:
  mov    %r8d,%esi
  mov    %r15,%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%edx
  test   %edx,%edx
  jg     L129
  nopw   0x0(%rax,%rax,1)
L73:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L112
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L146:
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %r8d,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x14(%rsp),%r8d
  add    %r8d,%ebx
  add    $0x1,%r8d
  mov    %r8d,0x14(%rsp)
  cmp    0x10(%rsp),%r8d
  jle    L3
  mov    %ebx,%r8d
  jmp    L131
L38:
  xor    %r8d,%r8d
  nopl   0x0(%rax,%rax,1)
L40:
  mov    %rbp,%rdi
  mov    %r8d,0xc(%rsp)
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%r8d
  add    %esi,%r8d
  add    $0x1,%esi
  mov    %esi,0x10(%rsp)
  cmp    0x14(%rsp),%esi
  jle    L40
  jmp    L131
L112:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D30
type: string
name: unpack_data
arguments: data_tag: D8
type: string
name: unpack_data
arguments: data_tag: D50
type: string
name: unpack_data
arguments: data_tag: D21
type: string

tool: D30: %d%d

tool: D8: %d 

tool: D50: Sum=%d


tool: D21: %i%i

assistant: ```c
main() {
  int m, n, aux = 0;
  scanf("%d%d", &m, &n);
  if (m > 0 && n > 0) {
    if (m > n) {
      for (n = n; n <= m; n++) {
        printf("%d ", n);
        aux = aux + n;
      }
    } else if (m < n) {
      for (m = m; m <= n; m++) {
        printf("%d ", m);
        aux = aux + m;
      }
    } else
      aux = n;
    printf("Sum=%d\n", aux);
    aux = 0;
  }
  while (m > 0 && n > 0) {
    scanf("%i%i", &m, &n);
    if (m > 0 && n > 0) {
      if (m > n) {
        for (n = n; n <= m; n++) {
          printf("%d ", n);
          aux = aux + n;
        }
      } else if (m < n) {
        for (m = m; m <= n; m++) {
          printf("%d ", m);
          aux = aux + m;
        }
      } else
        aux = n;
      printf("Sum=%d\n", aux);
      aux = 0;
    }
  }
  return 0;
}
```