user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x13000(%rsp),%r11
L313:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L313
  sub    $0x8a8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x13898(%rsp)
  xor    %eax,%eax
  lea    D18(%rip),%rdi
  call   <puts@plt>
  mov    %rsp,%rdx
  lea    0x4(%rsp),%rsi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D88(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%r14d
  mov    $0x0,%r13d
  lea    D22(%rip),%r12
  cmpl   $0x0,0x4(%rsp)
  jg     L430
  mov    $0x0,%r12d
L110:
  lea    D59(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D14(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  lea    D22(%rip),%r13
  cmpl   $0x0,0x8(%rsp)
  jg     L278
L158:
  test   %r12d,%r12d
  jle    L93
L223:
  cmpl   $0x0,0x4(%rsp)
  jle    L1
  lea    0x10(%rsp),%rbp
  mov    $0x0,%r13d
  lea    D31(%rip),%r12
  jmp    L67
L505:
  lea    0x10(%rsp,%r14,4),%rbp
  mov    $0x0,%ebx
L344:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,(%rsp)
  jg     L344
L326:
  add    $0x1,%r13d
  mov    0x4(%rsp),%ebx
  add    $0x64,%r14
  cmp    %r13d,%ebx
  jle    L173
L430:
  cmpl   $0x0,(%rsp)
  jg     L505
  jmp    L326
L173:
  test   %ebx,%ebx
  jle    L379
  mov    (%rsp),%ebp
  lea    0x10(%rsp),%r10
  mov    %r10,%r11
  mov    $0x0,%r12d
  mov    $0x0,%ecx
  mov    %ebp,%r9d
  lea    -0x1(%rbx),%r8d
  lea    -0x1(%rbp),%edi
  jmp    L515
L299:
  add    0x10(%rsp,%rax,4),%r12d
  jmp    L115
L332:
  add    (%r11,%rax,4),%r12d
  jmp    L102
L185:
  cmp    %esi,%edi
  je     L166
L350:
  add    $0x1,%rax
  add    $0x190,%rdx
  cmp    %r9,%rax
  je     L520
L112:
  test   %ecx,%ecx
  je     L299
L115:
  cmp    %ecx,%r8d
  je     L332
L102:
  mov    %eax,%esi
  test   %eax,%eax
  jne    L185
  add    (%r10),%r12d
  jmp    L185
L166:
  add    (%rdx),%r12d
  jmp    L350
L520:
  add    $0x1,%ecx
  add    $0x4,%r10
  add    $0x190,%r11
  cmp    %ecx,%ebx
  je     L110
L515:
  mov    %r10,%rdx
  mov    $0x0,%eax
  test   %ebp,%ebp
  jg     L112
  jmp    L520
L379:
  mov    $0x0,%r12d
  jmp    L110
L387:
  lea    0x9c50(%rsp,%r15,4),%rbp
  mov    $0x0,%ebx
L68:
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,0xc(%rsp)
  jg     L68
L54:
  add    $0x1,%r14d
  mov    0x8(%rsp),%ebx
  add    $0x64,%r15
  cmp    %r14d,%ebx
  jle    L231
L278:
  cmpl   $0x0,0xc(%rsp)
  jg     L387
  jmp    L54
L231:
  test   %ebx,%ebx
  jle    L158
  mov    0xc(%rsp),%ebp
  mov    0x4(%rsp),%eax
  lea    -0x1(%rax),%r8d
  mov    (%rsp),%eax
  lea    -0x1(%rax),%edi
  lea    0x9c50(%rsp),%r10
  mov    %r10,%r11
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %ebp,%r9d
  jmp    L383
L169:
  add    0x9c50(%rsp,%rax,4),%edx
  jmp    L446
L491:
  add    (%r11,%rax,4),%edx
  jmp    L497
L167:
  cmp    %eax,%edi
  je     L149
L192:
  add    $0x1,%rax
  add    $0x190,%rcx
  cmp    %rax,%r9
  je     L114
L328:
  test   %esi,%esi
  je     L169
L446:
  cmp    %esi,%r8d
  je     L491
L497:
  test   %eax,%eax
  jne    L167
  add    (%r10),%edx
  jmp    L167
L149:
  add    (%rcx),%edx
  jmp    L192
L114:
  add    $0x1,%esi
  add    $0x4,%r10
  add    $0x190,%r11
  cmp    %esi,%ebx
  je     L388
L383:
  mov    %r10,%rcx
  mov    $0x0,%eax
  test   %ebp,%ebp
  jg     L328
  jmp    L114
L427:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,(%rsp)
  jg     L427
L49:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r13d
  add    $0x190,%rbp
  cmp    %r13d,0x4(%rsp)
  jle    L1
L67:
  mov    $0x0,%ebx
  cmpl   $0x0,(%rsp)
  jg     L427
  jmp    L49
L13:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,0xc(%rsp)
  jg     L13
L204:
  add    $0x1,%r13d
  add    $0x190,%rbp
  cmp    %r13d,0x8(%rsp)
  jle    L93
L340:
  mov    $0x0,%ebx
  cmpl   $0x0,0xc(%rsp)
  jg     L13
  jmp    L204
L93:
  mov    $0xa,%edi
  call   <putchar@plt>
L1:
  mov    0x13898(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L263
  mov    $0x0,%eax
  add    $0x138a8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L388:
  cmp    %edx,%r12d
  jg     L223
  lea    0x9c50(%rsp),%rbp
  mov    $0x0,%r13d
  lea    D31(%rip),%r12
  jmp    L340
L263:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D18
type_infered: string
name: extract_symbolic_data
arguments: tag: D19
type_infered: string
name: extract_symbolic_data
arguments: tag: D88
type_infered: string
name: extract_symbolic_data
arguments: tag: D22
type_infered: string
name: extract_symbolic_data
arguments: tag: D59
type_infered: string
name: extract_symbolic_data
arguments: tag: D14
type_infered: string
name: extract_symbolic_data
arguments: tag: D31
type_infered: string

tool: D18: Vnesi gi dimenziite na prvata matrica: 

tool: D19: %d%d

tool: D88: Vnesuvaj ja prvata matrica: 

tool: D22: %d

tool: D59: Vnesi gi dimenziite na vtorata matrica: 

tool: D14: Vnesuvaj ja vtorata matrica: 

tool: D31: %d 

assistant: ```c
int main() {
  int i, j, n, m, m1, n1, a[100][100], b[100][100];
  int zbirA = 0, zbirB = 0;
  printf("Vnesi gi dimenziite na prvata matrica: \n");
  scanf("%d%d", &m, &n);
  printf("Vnesuvaj ja prvata matrica: \n");
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      scanf("%d", &a[i][j]);
    }
  }
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      if (i == 0) {
        zbirA += a[i][j];
      }
      if (i == m - 1) {
        zbirA += a[i][j];
      }
      if (j == 0) {
        zbirA += a[j][i];
      }
      if (j == n - 1) {
        zbirA += a[j][i];
      }
    }
  }
  printf("Vnesi gi dimenziite na vtorata matrica: \n");
  scanf("%d%d", &m1, &n1);
  printf("Vnesuvaj ja vtorata matrica: \n");
  for (i = 0; i < m1; i++) {
    for (j = 0; j < n1; j++) {
      scanf("%d", &b[i][j]);
    }
  }
  for (i = 0; i < m1; i++) {
    for (j = 0; j < n1; j++) {
      if (i == 0) {
        zbirB += b[i][j];
      }
      if (i == m - 1) {
        zbirB += b[i][j];
      }
      if (j == 0) {
        zbirB += b[j][i];
      }
      if (j == n - 1) {
        zbirB += b[j][i];
      }
    }
  }
  if (zbirA > zbirB) {
    for (i = 0; i < m; i++) {
      for (j = 0; j < n; j++) {
        printf("%d ", a[i][j]);
      }
      printf("\n");
    }
  } else {
    for (i = 0; i < m1; i++) {
      for (j = 0; j < n1; j++) {
        printf("%d ", b[i][j]);
      }
    }
    printf("\n");
  }
  return 0;
}
```