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

```asm
<mazeGenerator>:
  endbr64
  push   %r13
  movslq %esi,%r11
  push   %r12
  mov    %r11,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %r11,%r11
  je     L17
  lea    -0x1(%r11),%r8d
  lea    -0x1(%rdx),%r10d
  movslq %edx,%rdi
  mov    %rbx,%rsi
  xor    %ecx,%ecx
  movslq %r8d,%r8
  movslq %r10d,%r10
  nopl   0x0(%rax,%rax,1)
L61:
  mov    %rcx,%r9
  xor    %eax,%eax
  and    $0x1,%r9d
  test   %rdi,%rdi
  jne    L108
  jmp    L189
L34:
  test   %rax,%rax
  je     L150
  cmp    %rax,%r10
  je     L158
  test   %r9,%r9
  je     L158
  mov    %rax,%rdx
  and    $0x1,%edx
  cmp    $0x1,%rdx
  sbb    %edx,%edx
  and    $0xfffffff5,%edx
  add    $0x2e,%edx
  nopl   0x0(%rax)
L158:
  mov    %dl,(%rsi,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%rdi
  je     L189
L108:
  mov    $0x23,%edx
  test   %rcx,%rcx
  je     L158
  cmp    %rcx,%r8
  jne    L34
L150:
  mov    $0x23,%edx
  mov    %dl,(%rsi,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%rdi
  jne    L108
L189:
  add    $0x1,%rcx
  add    %rdi,%rsi
  cmp    %r11,%rcx
  jne    L61
L17:
  xor    %eax,%eax
  call   <rand@plt>
  cltd
  shr    $0x1e,%edx
  lea    (%rax,%rdx,1),%r8d
  and    $0x3,%r8d
  sub    %edx,%r8d
  cmp    $0x2,%r8d
  je     L112
  cmp    $0x3,%r8d
  je     L170
  test   $0x3,%al
  je     L53
  cmp    $0x1,%r8d
  jne    L96
  xor    %eax,%eax
  mov    %r8d,0xc(%rsp)
  call   <rand@plt>
  mov    %r12d,%ecx
  mov    0xc(%rsp),%r8d
  shr    $0x1f,%ecx
  cltd
  add    %r12d,%ecx
  sar    %ecx
  sub    $0x1,%ecx
  idiv   %ecx
  mov    %ebp,%eax
  lea    0x1(%rdx,%rdx,1),%r13d
  imul   %r13d,%eax
  cltq
  movb   $0x2e,(%rbx,%rax,1)
L96:
  sub    $0x8,%rsp
  mov    %rbx,%rdx
  mov    %ebp,%esi
  mov    %r13d,%ecx
  lea    0x1c(%rsp),%rax
  mov    %r12d,%edi
  push   %rax
  lea    0x20(%rsp),%r9
  call   <dfsMaze@plt>
  imul   0x20(%rsp),%ebp
  add    0x24(%rsp),%ebp
  movslq %ebp,%rax
  movb   $0x2e,(%rbx,%rax,1)
  pop    %rax
  pop    %rdx
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L77
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L112:
  xor    %eax,%eax
  lea    -0x2(%r12),%r13d
  call   <rand@plt>
  mov    %ebp,%ecx
  shr    $0x1f,%ecx
  cltd
  add    %ebp,%ecx
  sar    %ecx
  sub    $0x1,%ecx
  idiv   %ecx
  lea    -0x1(%r12),%eax
  imul   %ebp,%eax
  lea    0x1(%rdx,%rdx,1),%r8d
  add    %r8d,%eax
  cltq
  movb   $0x2e,(%rbx,%rax,1)
  jmp    L96
L53:
  xor    %eax,%eax
  mov    $0x1,%r13d
  call   <rand@plt>
  mov    %ebp,%ecx
  shr    $0x1f,%ecx
  cltd
  add    %ebp,%ecx
  sar    %ecx
  sub    $0x1,%ecx
  idiv   %ecx
  lea    0x1(%rdx,%rdx,1),%r8d
  movslq %r8d,%rax
  movb   $0x2e,(%rbx,%rax,1)
  jmp    L96
L170:
  xor    %eax,%eax
  call   <rand@plt>
  mov    %r12d,%ecx
  lea    -0x2(%rbp),%r8d
  shr    $0x1f,%ecx
  cltd
  add    %r12d,%ecx
  sar    %ecx
  sub    $0x1,%ecx
  idiv   %ecx
  lea    0x1(%rdx,%rdx,1),%r13d
  mov    %r13d,%eax
  imul   %ebp,%eax
  lea    -0x1(%rbp,%rax,1),%eax
  cltq
  movb   $0x2e,(%rbx,%rax,1)
  jmp    L96
L77:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void mazeGenerator(char *maze, int row, int col) {
  for (size_t i = 0; i < row; i++) {
    for (size_t j = 0; j < col; j++) {
      if (i != 0 && i != row - 1 && j != 0 && j != col - 1 && i % 2 == 1 && j % 2 == 1)
        maze[i * col + j] = '.';
      else
        maze[i * col + j] = '#';
    }
  }
  int startRow, startCol;
  switch (rand() % 4) {
  case 0:
    startRow = 0;
    startCol = 2 * (rand() % (col / 2 - 1)) + 1;
    maze[startRow * col + startCol] = '.';
    startRow = 1;
    break;
  case 1:
    startRow = 2 * (rand() % (row / 2 - 1)) + 1;
    startCol = 0;
    maze[startRow * col + startCol] = '.';
    startCol = 1;
    break;
  case 2:
    startRow = row - 1;
    startCol = 2 * (rand() % (col / 2 - 1)) + 1;
    maze[startRow * col + startCol] = '.';
    startRow = row - 2;
    break;
  case 3:
    startRow = 2 * (rand() % (row / 2 - 1)) + 1;
    startCol = col - 1;
    maze[startRow * col + startCol] = '.';
    startCol = col - 2;
    break;
  }
  int endRow, endCol;
  dfsMaze(row, col, maze, startRow, startCol, &endRow, &endCol);
  maze[endRow * col + endCol] = '.';
  return;
}
```