user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movl   $0x0,(%rsp)
  lea    0x20(%rsp),%r12
L142:
  movl   $0x2,0x10(%rsp)
  mov    $0x2,%edx
L72:
  movl   $0x1,0x20(%rsp)
  mov    $0x1,%ecx
L196:
  movl   $0x0,0x4(%rsp)
  xor    %esi,%esi
L140:
  movl   $0x2,0x14(%rsp)
  mov    $0x2,%edi
L10:
  movl   $0x1,0x24(%rsp)
  mov    $0x1,%r8d
L16:
  movl   $0x0,0x8(%rsp)
  xor    %r9d,%r9d
L167:
  movl   $0x2,0x18(%rsp)
  mov    $0x2,%r10d
L191:
  movl   $0x1,0x28(%rsp)
  mov    $0x1,%r11d
L117:
  movl   $0x0,0xc(%rsp)
  xor    %ebx,%ebx
  nopl   0x0(%rax)
L49:
  movl   $0x2,0x1c(%rsp)
  mov    $0x2,%ebp
  jmp    L158
  nop
L86:
  lea    -0x1(%rdi),%r14d
  imul   %r8d,%r14d
  add    %esi,%r14d
  cmp    $0x5,%r14d
  jg     L159
  lea    -0x1(%r10),%r14d
  imul   %r11d,%r14d
  add    %r9d,%r14d
  cmp    $0x3,%r14d
  jg     L159
  lea    -0x1(%rbp),%r14d
  imul   %r13d,%r14d
  add    %ebx,%r14d
  cmp    $0x5,%r14d
  jle    L71
  nopw   0x0(%rax,%rax,1)
L159:
  add    $0x1,%r13d
  mov    %r13d,0x2c(%rsp)
  cmp    $0x5,%r13d
  jle    L25
  add    $0x1,%ebp
  mov    %ebp,0x1c(%rsp)
  cmp    $0x6,%ebp
  jg     L88
  nopl   0x0(%rax,%rax,1)
L158:
  movl   $0x1,0x2c(%rsp)
  mov    $0x1,%r13d
L25:
  lea    -0x1(%rdx),%r14d
  imul   %ecx,%r14d
  add    %eax,%r14d
  cmp    $0x7,%r14d
  jle    L86
  add    $0x1,%ebp
  movl   $0x6,0x2c(%rsp)
  mov    %ebp,0x1c(%rsp)
  cmp    $0x6,%ebp
  jle    L158
L88:
  add    $0x1,%ebx
  mov    %ebx,0xc(%rsp)
  cmp    $0x5,%ebx
  jle    L49
  add    $0x1,%r11d
  mov    %r11d,0x28(%rsp)
  cmp    $0x3,%r11d
  jle    L117
  add    $0x1,%r10d
  mov    %r10d,0x18(%rsp)
  cmp    $0x4,%r10d
  jle    L191
  add    $0x1,%r9d
  mov    %r9d,0x8(%rsp)
  cmp    $0x3,%r9d
  jle    L167
  add    $0x1,%r8d
  mov    %r8d,0x24(%rsp)
  cmp    $0x5,%r8d
  jle    L16
  add    $0x1,%edi
  mov    %edi,0x14(%rsp)
  cmp    $0x6,%edi
  jle    L10
  add    $0x1,%esi
  mov    %esi,0x4(%rsp)
  cmp    $0x5,%esi
  jle    L140
  add    $0x1,%ecx
  mov    %ecx,0x20(%rsp)
  cmp    $0x7,%ecx
  jle    L196
  add    $0x1,%edx
  mov    %edx,0x10(%rsp)
  cmp    $0x8,%edx
  jle    L72
  add    $0x1,%eax
  mov    %eax,(%rsp)
  cmp    $0x7,%eax
  jle    L142
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L184
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L71:
  lea    0x10(%rsp),%rsi
  mov    %rsp,%rdi
  mov    %r12,%rdx
  call   <test@plt>
  mov    0x2c(%rsp),%r13d
  mov    0x1c(%rsp),%ebp
  mov    0xc(%rsp),%ebx
  mov    0x28(%rsp),%r11d
  mov    0x18(%rsp),%r10d
  mov    0x8(%rsp),%r9d
  mov    0x24(%rsp),%r8d
  mov    0x14(%rsp),%edi
  mov    0x4(%rsp),%esi
  mov    0x20(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    (%rsp),%eax
  jmp    L159
L184:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main() {
  int start[4], len[4], stride[4];
  for (start[0] = 0; start[0] < 8; start[0]++) {
    for (len[0] = 2; len[0] <= 8; len[0]++) {
      for (stride[0] = 1; stride[0] < 8; stride[0]++) {
        for (start[1] = 0; start[1] < 6; start[1]++) {
          for (len[1] = 2; len[1] <= 6; len[1]++) {
            for (stride[1] = 1; stride[1] < 6; stride[1]++) {
              for (start[2] = 0; start[2] < 4; start[2]++) {
                for (len[2] = 2; len[2] <= 4; len[2]++) {
                  for (stride[2] = 1; stride[2] < 4; stride[2]++) {
                    for (start[3] = 0; start[3] < 6; start[3]++) {
                      for (len[3] = 2; len[3] <= 6; len[3]++) {
                        for (stride[3] = 1; stride[3] < 6; stride[3]++) {
                          if ((start[0] + (len[0] - 1) * stride[0] < 8) && (start[1] + (len[1] - 1) * stride[1] < 6) && (start[2] + (len[2] - 1) * stride[2] < 4) && (start[3] + (len[3] - 1) * stride[3] < 6)) {
                            test(start, len, stride);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  return 0;
}
```