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

```asm
<set_zeroes>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jle    L172
  cmpl   $0x0,-0x4(%rbp)
  jle    L172
  movl   $0x1,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L97
L98:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L74
  movl   $0x0,-0x14(%rbp)
L74:
  movl   $0x1,-0xc(%rbp)
  jmp    L125
L147:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L128
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rdx
  mov    (%rdx),%rcx
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
L128:
  addl   $0x1,-0xc(%rbp)
L125:
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L147
  addl   $0x1,-0x10(%rbp)
L97:
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L98
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L162
L178:
  mov    -0x4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L77
L153:
  cmpl   $0x0,-0xc(%rbp)
  jne    L13
  cmpl   $0x0,-0x14(%rbp)
  jne    L24
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movl   $0x0,(%rax)
  jmp    L24
L13:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L105
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L24
L105:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
L24:
  subl   $0x1,-0xc(%rbp)
L77:
  cmpl   $0x0,-0xc(%rbp)
  jns    L153
  subl   $0x1,-0x10(%rbp)
L162:
  cmpl   $0x0,-0x10(%rbp)
  jns    L178
  jmp    L174
L172:
  nop
L174:
  pop    %rbp
  ret
```

assistant: ```c
void set_zeroes(int **matrix, int matrix_row_size, int matrix_col_size) {
  int m = matrix_row_size, n = matrix_col_size;
  if (m <= 0 || n <= 0) {
    return;
  }
  int col0 = 1, i, j;
  for (i = 0; i < m; ++i) {
    if (matrix[i][0] == 0) {
      col0 = 0;
    }
    for (j = 1; j < n; ++j) {
      if (matrix[i][j] == 0) {
        matrix[0][j] = matrix[i][0] = 0;
      }
    }
  }
  for (i = m - 1; i >= 0; --i) {
    for (j = n - 1; j >= 0; --j) {
      if (j == 0) {
        if (col0 == 0) {
          matrix[i][0] = 0;
        }
      } else {
        if (matrix[i][0] == 0 || matrix[0][j] == 0) {
          matrix[i][j] = 0;
        }
      }
    }
  }
}
```