user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  lea    D1(%rip),%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  test   %eax,%eax
  jle    L113
  mov    0x4(%rsp),%esi
  test   %esi,%esi
  jle    L113
  cmp    %esi,%eax
  jle    L43
  mov    $0x0,%ebx
  lea    D52(%rip),%rbp
L45:
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  add    %esi,%ebx
  add    $0x1,%esi
  mov    %esi,0x4(%rsp)
  cmp    (%rsp),%esi
  jle    L45
L141:
  mov    %ebx,%esi
  lea    D4(%rip),%rdi
  call   <printf@plt>
  cmpl   $0x0,(%rsp)
  jle    L113
  lea    0x4(%rsp),%r13
  lea    D69(%rip),%r12
  lea    D4(%rip),%r14
  lea    D52(%rip),%rbp
  jmp    L145
L43:
  mov    %esi,%ebx
  jge    L141
  mov    $0x0,%ebx
  lea    D52(%rip),%rbp
L105:
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    (%rsp),%eax
  add    %eax,%ebx
  add    $0x1,%eax
  mov    %eax,(%rsp)
  cmp    0x4(%rsp),%eax
  jle    L105
  jmp    L141
L177:
  mov    $0x0,%r15d
L103:
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%ebx
  add    %ebx,%r15d
  add    $0x1,%ebx
  mov    %ebx,0x4(%rsp)
  cmp    (%rsp),%ebx
  jle    L103
  mov    %r15d,%ebx
L97:
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <printf@plt>
  cmpl   $0x0,(%rsp)
  jle    L113
L145:
  cmpl   $0x0,0x4(%rsp)
  jle    L113
  mov    %rsp,%rsi
  mov    %r13,%rdx
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    (%rsp),%esi
  test   %esi,%esi
  jle    L113
  mov    0x4(%rsp),%ebx
  test   %ebx,%ebx
  jle    L145
  cmp    %ebx,%esi
  jg     L177
  jge    L97
  mov    $0x0,%ebx
L4:
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    (%rsp),%esi
  add    %esi,%ebx
  add    $0x1,%esi
  mov    %esi,(%rsp)
  cmp    0x4(%rsp),%esi
  jle    L4
  jmp    L97
L113:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D1
type_infered: string
name: extract_symbolic_data
arguments: label: D52
type_infered: string
name: extract_symbolic_data
arguments: label: D4
type_infered: string
name: extract_symbolic_data
arguments: label: D69
type_infered: string

tool: D1: %d%d

tool: D52: %d 

tool: D4: Sum=%d


tool: D69: %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;
}
```