user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
L22:
  lea    -0x2c(%rbp),%rax
  mov    %rax,%rsi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x2c(%rbp),%eax
  test   %eax,%eax
  jle    L22
  mov    -0x2c(%rbp),%eax
  cmp    $0xa,%eax
  jg     L22
  movl   $0x0,-0x20(%rbp)
  jmp    L54
L132:
  lea    -0x24(%rbp),%rdx
  lea    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x28(%rbp),%eax
  mov    -0x24(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jne    L134
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
L134:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L96
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
L96:
  mov    -0x28(%rbp),%edx
  mov    -0x24(%rbp),%eax
  cmp    %eax,%edx
  jle    L116
  addl   $0x1,-0x14(%rbp)
  jmp    L17
L116:
  mov    -0x28(%rbp),%edx
  mov    -0x24(%rbp),%eax
  cmp    %eax,%edx
  jge    L17
  addl   $0x1,-0x10(%rbp)
L17:
  addl   $0x1,-0x20(%rbp)
L54:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x20(%rbp)
  jl     L132
  cmpl   $0x0,-0x1c(%rbp)
  jne    L3
  movl   $0x1,-0x18(%rbp)
L3:
  mov    -0x14(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jle    L148
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L6
L148:
  mov    -0x14(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jge    L59
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L6
L59:
  mov    -0x14(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L6
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L6:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L159
  call   <__stack_chk_fail@plt>
L159:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D34
type_infered: string
name: parse_data
arguments: data_tag: D22
type_infered: string
name: parse_data
arguments: data_tag: D43
type_infered: string
name: parse_data
arguments: data_tag: D16
type_infered: string
name: parse_data
arguments: data_tag: D10
type_infered: string

tool: D34:  %d

tool: D22:  %d %d

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

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

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