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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x350,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x338(%rbp)
  lea    -0x330(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x32,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    -0x1a0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x32,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
L82:
  lea    -0x344(%rbp),%rdx
  lea    -0x348(%rbp),%rax
  mov    %rax,%rsi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x348(%rbp),%eax
  test   %eax,%eax
  jle    L82
  mov    -0x344(%rbp),%eax
  cmp    $0x8,%eax
  jg     L82
  movl   $0x0,-0x340(%rbp)
  jmp    L112
L136:
  movl   $0x0,-0x33c(%rbp)
  jmp    L9
L26:
  lea    -0x330(%rbp),%rcx
  mov    -0x33c(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x340(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x33c(%rbp)
L9:
  mov    -0x344(%rbp),%eax
  cmp    %eax,-0x33c(%rbp)
  jl     L26
  addl   $0x1,-0x340(%rbp)
L112:
  mov    -0x348(%rbp),%eax
  cmp    %eax,-0x340(%rbp)
  jl     L136
  movl   $0x0,-0x340(%rbp)
  jmp    L147
L80:
  movl   $0x0,-0x33c(%rbp)
  jmp    L135
L194:
  mov    -0x33c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x340(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  mov    -0x330(%rbp,%rax,4),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L105
  addl   $0x1,-0x338(%rbp)
L105:
  addl   $0x1,-0x33c(%rbp)
L135:
  mov    -0x344(%rbp),%eax
  cmp    %eax,-0x33c(%rbp)
  jl     L194
  addl   $0x1,-0x340(%rbp)
L147:
  mov    -0x348(%rbp),%eax
  cmp    %eax,-0x340(%rbp)
  jl     L80
  movl   $0x0,-0x340(%rbp)
  jmp    L61
L190:
  movl   $0x0,-0x33c(%rbp)
  jmp    L36
L89:
  mov    -0x33c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x340(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  mov    -0x330(%rbp,%rax,4),%eax
  mov    %eax,-0x334(%rbp)
  mov    -0x334(%rbp),%eax
  mov    %eax,%edi
  call   <pretvorba@plt>
  mov    %eax,%edx
  mov    -0x33c(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x340(%rbp),%eax
  movslq %eax,%rcx
  mov    %rcx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  mov    %edx,-0x1a0(%rbp,%rax,4)
  addl   $0x1,-0x33c(%rbp)
L36:
  mov    -0x344(%rbp),%eax
  cmp    %eax,-0x33c(%rbp)
  jl     L89
  addl   $0x1,-0x340(%rbp)
L61:
  mov    -0x348(%rbp),%eax
  cmp    %eax,-0x340(%rbp)
  jl     L190
  movl   $0x0,-0x340(%rbp)
  jmp    L131
L35:
  movl   $0x0,-0x33c(%rbp)
  jmp    L152
L67:
  mov    -0x33c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x340(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  mov    -0x1a0(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x33c(%rbp)
L152:
  mov    -0x344(%rbp),%eax
  cmp    %eax,-0x33c(%rbp)
  jl     L67
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x340(%rbp)
L131:
  mov    -0x348(%rbp),%eax
  cmp    %eax,-0x340(%rbp)
  jl     L35
  mov    -0x338(%rbp),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L42
  call   <__stack_chk_fail@plt>
L42:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D37
data_type: string
name: disassemble_data
arguments: data_label: D17
data_type: string
name: disassemble_data
arguments: data_label: D23
data_type: string

tool: D37: %d %d

tool: D17: %d 

tool: D23: S 0 zavrsava %d brojeva.

assistant: ```c
int main() {
  int i, j, n, m, broj, br_nep = 0, tablica_prir[10][10] = {{0}}, tablica_bin[10][10] = {{0}};
  do {
    scanf("%d %d", &n, &m);
  } while (n < 1 || m > 8);
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      scanf("%d ", &tablica_prir[i][j]);
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      if (tablica_prir[i][j] % 2 == 0) {
        br_nep++;
      }
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      broj = tablica_prir[i][j];
      tablica_bin[i][j] = pretvorba(broj);
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      printf("%d ", tablica_bin[i][j]);
    }
    printf("\n");
  }
  printf("S 0 zavrsava %d brojeva.", br_nep);
  return 0;
}
```