user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x1a8,%rsp
  movdqa D21(%rip),%xmm0
  mov    0x8(%rsi),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x198(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x50(%rsp)
  movdqa D22(%rip),%xmm0
  movaps %xmm0,0x60(%rsp)
  movdqa D31(%rip),%xmm0
  movaps %xmm0,0x70(%rsp)
  movdqa D42(%rip),%xmm0
  movaps %xmm0,0x80(%rsp)
  call   <atoi@plt>
  mov    0x8(%rbx),%rdi
  mov    %eax,%r15d
  mov    %eax,0x44(%rsp)
  call   <atoi@plt>
  lea    0x90(%rsp),%rdi
  mov    $0x20,%ecx
  movl   $0x0,0x20(%rsp)
  mov    %eax,%ebx
  mov    %eax,0x14(%rsp)
  xor    %eax,%eax
  rep stos %rax,%es:(%rdi)
  mov    $0x8,%ecx
  mov    %ecx,%eax
  cltd
  idiv   %r15d
  mov    %eax,%esi
  mov    %ecx,%eax
  cltd
  idiv   %esi
  mov    %eax,0x40(%rsp)
  movslq %r15d,%rax
  lea    D44(%rip),%r15
  lea    0x0(,%rax,8),%rcx
  lea    0x50(%rsp),%rax
  mov    %rax,0x38(%rsp)
  mov    0x40(%rsp),%eax
  mov    %rcx,0x48(%rsp)
  movslq %ebx,%rcx
  sub    $0x1,%eax
  mov    %rcx,0x28(%rsp)
  lea    0x9(,%rax,8),%rax
  mov    %rax,0x30(%rsp)
L41:
  mov    0x20(%rsp),%eax
  add    0x40(%rsp),%eax
  movl   $0x0,0x4(%rsp)
  mov    %eax,0x24(%rsp)
  mov    0x38(%rsp),%rax
  mov    %rax,0x18(%rsp)
  nop
L1:
  mov    0x24(%rsp),%ecx
  cmp    %ecx,0x20(%rsp)
  jge    L86
  mov    $0x8,%eax
  cltd
  idivl  0x14(%rsp)
  mov    %eax,%ecx
  mov    $0x8,%eax
  cltd
  idiv   %ecx
  mov    0x4(%rsp),%ecx
  add    %ecx,%eax
  lea    -0x1(%rax),%r12d
  mov    %eax,0x10(%rsp)
  mov    0x30(%rsp),%rax
  sub    %ecx,%r12d
  mov    0x18(%rsp),%rcx
  add    %rcx,%rax
  lea    0x1(%r12,%rcx,1),%rbx
  add    %r12,%rax
  mov    %rax,0x8(%rsp)
  nopl   (%rax)
L40:
  mov    %rbx,%rdx
  mov    0x4(%rsp),%ecx
  sub    %r12,%rdx
  lea    -0x1(%rdx),%rbp
  cmp    %ecx,0x10(%rsp)
  jle    L72
  nopl   0x0(%rax)
L25:
  movsbl 0x0(%rbp),%r14d
  xor    %eax,%eax
  mov    %r15,%rdi
  mov    %r14d,%esi
  call   <printf@plt>
  cmp    $0x3f,%r13d
  jg     L59
  movslq %r13d,%rax
  add    $0x1,%r13d
  mov    %r14d,0x90(%rsp,%rax,4)
L59:
  add    $0x1,%rbp
  cmp    %rbx,%rbp
  jne    L25
L72:
  mov    $0xa,%edi
  add    $0x8,%rbx
  call   <putchar@plt>
  cmp    0x8(%rsp),%rbx
  jne    L40
L86:
  lea    D55(%rip),%rdi
  call   <puts@plt>
  mov    0x14(%rsp),%ecx
  add    %ecx,0x4(%rsp)
  mov    0x4(%rsp),%eax
  mov    0x28(%rsp),%rdx
  add    %rdx,0x18(%rsp)
  cmp    $0x7,%eax
  jle    L1
  mov    0x44(%rsp),%ecx
  add    %ecx,0x20(%rsp)
  mov    0x20(%rsp),%eax
  mov    0x48(%rsp),%rdx
  add    %rdx,0x38(%rsp)
  cmp    $0x7,%eax
  jle    L41
  lea    0xb0(%rsp),%rbp
  lea    0x1b0(%rsp),%r12
L96:
  lea    -0x20(%rbp),%rbx
  nopl   0x0(%rax,%rax,1)
L81:
  mov    (%rbx),%esi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %rbx,%rbp
  jne    L81
  mov    $0xa,%edi
  add    $0x20,%rbp
  call   <putchar@plt>
  cmp    %rbp,%r12
  jne    L96
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x198(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  add    $0x1a8,%rsp
  xor    %eax,%eax
  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: data_label: D21
type_infered: byte[16]
name: extract_symbolic_data
arguments: data_label: D22
type_infered: byte[16]
name: extract_symbolic_data
arguments: data_label: D31
type_infered: byte[16]
name: extract_symbolic_data
arguments: data_label: D42
type_infered: byte[16]
name: extract_symbolic_data
arguments: data_label: D44
type_infered: string
name: extract_symbolic_data
arguments: data_label: D55
type_infered: string

tool: {"D21": [0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f]}

tool: {"D22": [0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f]}

tool: {"D31": [0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f]}

tool: {"D42": [0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f]}

tool: D44: %d 

tool: D55: ------

assistant: ```c
int main(int argc, char **argv) {
  char polje[8][8] = {{0, 1, 2, 3, 4, 5, 6, 7}, {8, 9, 10, 11, 12, 13, 14, 15}, {16, 17, 18, 19, 20, 21, 22, 23}, {24, 25, 26, 27, 28, 29, 30, 31}, {32, 33, 34, 35, 36, 37, 38, 39}, {40, 41, 42, 43, 44, 45, 46, 47}, {48, 49, 50, 51, 52, 53, 54, 55}, {56, 57, 58, 59, 60, 61, 62, 63}};
  int i, j, matrix_r = 8, matrix_c = 8;
  int blokx, bloky;
  int blok_height = atoi(argv[1]), blok_width = atoi(argv[1]);
  int array[64] = {0};
  int brojilo = 0;
  for (blokx = 0; blokx < matrix_r; blokx = blokx + blok_height) {
    for (bloky = 0; bloky < matrix_c; bloky = bloky + blok_width) {
      for (i = 0 + blokx; i < matrix_r / (matrix_r / blok_height) + blokx; i++) {
        for (j = 0 + bloky; j < matrix_c / (matrix_c / blok_width) + bloky; j++) {
          printf("%d ", polje[i][j]);
          if (brojilo < matrix_r * matrix_c) {
            array[brojilo] = polje[i][j];
            brojilo++;
          }
        }
        printf("\n");
      }
      printf("------\n");
    }
  }
  for (i = 0; i < matrix_r; i++) {
    for (j = 0; j < matrix_c; j++) {
      printf("%d ", array[i * matrix_r + j]);
    }
    printf("\n");
  }
  printf("\n");
  return 0;
}
```