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
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0xc(%rsp)
  lea    D46(%rip),%rbx
L89:
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x9,%eax
  ja     L89
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    $0x0,%r15d
  mov    $0x0,%ebp
  mov    $0x0,%ebx
  lea    D8(%rip),%r14
  jmp    L69
L149:
  lea    0x1(%rbx),%r15d
  mov    %eax,%ebp
  jmp    L142
L134:
  setl   %al
  movzbl %al,%eax
  add    %eax,%r12d
L17:
  add    $0x1,%ebx
  cmp    %ebx,0xc(%rsp)
  jle    L146
L69:
  lea    0x14(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%ecx
  mov    %esi,%edx
  sub    %ecx,%edx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  test   %ebp,%ebp
  je     L149
  cmp    %ebp,%eax
  jge    L149
L142:
  cmp    %ecx,%esi
  jle    L134
  add    $0x1,%r13d
  jmp    L17
L146:
  test   %ebp,%ebp
  mov    $0x1,%eax
  cmove  %eax,%r15d
  cmp    %r12d,%r13d
  jg     L46
  jl     L13
  je     L140
L74:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L133
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L46:
  mov    %r15d,%edx
  mov    %ebp,%esi
  lea    D35(%rip),%rdi
  call   <printf@plt>
  jmp    L74
L13:
  mov    %r15d,%edx
  mov    %ebp,%esi
  lea    D25(%rip),%rdi
  call   <printf@plt>
  jmp    L74
L140:
  mov    %r15d,%edx
  mov    %ebp,%esi
  lea    D9(%rip),%rdi
  call   <printf@plt>
  jmp    L74
L133:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D46
type_infered: string
name: read_data
arguments: data_label: D8
type_infered: string
name: read_data
arguments: data_label: D35
type_infered: string
name: read_data
arguments: data_label: D25
type_infered: string
name: read_data
arguments: data_label: D9
type_infered: string

tool: D46:  %d

tool: D8:  %d %d

tool: D35: Najveca gol razlika %d postignuta je u %d. krugu, a ukupni pobjednik je 1. tim.

tool: D25: Najveca gol razlika %d postignuta je u %d. krugu, a ukupni pobjednik je 2. tim.

tool: D9: Najveca gol razlika %d postignuta je u %d. krugu. Timovi imaju jednake bodove.

assistant: ```c
int main() {
  int i, N = 0, domaci, gosti, golrazlika, grmax = 0, krug = 0, dp = 0, gp = 0;
  do {
    scanf(" %d", &N);
  } while (N < 1 || N > 10);
  for (i = 0; i < N; i++) {
    scanf(" %d %d", &domaci, &gosti);
    golrazlika = abs(domaci - gosti);
    if (grmax == 0) {
      grmax = golrazlika;
    }
    if (golrazlika >= grmax) {
      grmax = golrazlika;
      krug = i + 1;
    }
    if (domaci > gosti) {
      dp++;
    } else if (domaci < gosti) {
      gp++;
    }
  }
  if (grmax == 0) {
    krug = 1;
  }
  if (dp > gp) {
    printf("Najveca gol razlika %d postignuta je u %d. krugu, a ukupni pobjednik je 1. tim.", grmax, krug);
  } else if (dp < gp) {
    printf("Najveca gol razlika %d postignuta je u %d. krugu, a ukupni pobjednik je 2. tim.", grmax, krug);
  } else if (dp == gp) {
    printf("Najveca gol razlika %d postignuta je u %d. krugu. Timovi imaju jednake bodove.", grmax, krug);
  }
  return 0;
}
```