user: Translate the below assembly code into C programming language:

```asm
<step3_lng>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x20(%rsp)
  mov    %rsi,%rbp
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x28(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r9,%r13
  mov    0x70(%rsp),%r14
  mov    0x78(%rsp),%rsi
  mov    0x80(%rsp),%r11
  lea    0x0(,%rsi,4),%r15
  jmp    L34
L72:
  cmp    %rcx,%r11
  je     L118
  movl   $0x1,(%r9)
  movl   $0x0,0x0(%r13,%rcx,4)
  movl   $0x1,0xc(%rsp)
L144:
  add    $0x1,%rdi
  add    %rsi,%r8
  cmp    %rdi,%r11
  je     L104
L54:
  cmpl   $0x0,0x0(%r13,%rdi,4)
  jne    L144
  test   %rsi,%rsi
  jle    L144
  mov    %r14,%rdx
  lea    0x0(%rbp,%r8,8),%r10
  mov    $0x0,%eax
  jmp    L79
L57:
  add    $0x1,%rax
  add    $0x4,%rdx
  cmp    %rax,%rsi
  je     L144
L79:
  mov    %rdx,%r9
  cmpl   $0x0,(%rdx)
  jne    L57
  lea    (%rax,%r8,1),%r12
  mov    (%r10,%rax,8),%rcx
  test   %rcx,%rcx
  jne    L57
  mov    0x18(%rsp),%rdx
  movl   $0x1,(%rdx,%r12,4)
  mov    0x10(%rsp),%rdx
  lea    (%rdx,%rax,4),%rdx
L84:
  cmpl   $0x0,(%rdx)
  jne    L72
  add    $0x1,%rcx
  add    %r15,%rdx
  cmp    %rcx,%r11
  jne    L84
L118:
  push   %rdi
  push   %rax
  push   0x98(%rsp)
  push   %r11
  push   %rsi
  push   %r14
  mov    %r13,%r9
  mov    0x48(%rsp),%r8
  mov    0x58(%rsp),%rcx
  mov    0x40(%rsp),%rdx
  mov    %rbp,%rsi
  mov    0x50(%rsp),%rdi
  call   <step4_lng@plt>
  add    $0x30,%rsp
L58:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L104:
  cmpl   $0x0,0xc(%rsp)
  je     L52
L34:
  test   %r11,%r11
  jle    L52
  mov    $0x0,%r8d
  mov    $0x0,%edi
  movl   $0x0,0xc(%rsp)
  jmp    L54
L52:
  push   0x88(%rsp)
  push   %r11
  push   %rsi
  push   %r14
  mov    %r13,%r9
  mov    0x38(%rsp),%r8
  mov    0x48(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  mov    %rbp,%rsi
  mov    0x40(%rsp),%rdi
  call   <step5_lng@plt>
  add    $0x20,%rsp
  jmp    L58
```

assistant: ```c
void step3_lng(long *assignment, long *distMatrix, bool *starMatrix, bool *newStarMatrix, bool *primeMatrix, bool *coveredColumns, bool *coveredRows, long nOfRows, long nOfColumns, long minDim) {
  bool zerosFound;
  long row, col, starCol;
  zerosFound = true;
  while (zerosFound) {
    zerosFound = false;
    for (col = 0; col < nOfColumns; col++)
      if (!coveredColumns[col])
        for (row = 0; row < nOfRows; row++)
          if ((!coveredRows[row]) && (distMatrix[row + nOfRows * col] == 0)) {
            primeMatrix[row + nOfRows * col] = true;
            for (starCol = 0; starCol < nOfColumns; starCol++)
              if (starMatrix[row + nOfRows * starCol])
                break;
            if (starCol == nOfColumns) {
              step4_lng(assignment, distMatrix, starMatrix, newStarMatrix, primeMatrix, coveredColumns, coveredRows, nOfRows, nOfColumns, minDim, row, col);
              return;
            } else {
              coveredRows[row] = true;
              coveredColumns[starCol] = false;
              zerosFound = true;
              break;
            }
          }
  }
  step5_lng(assignment, distMatrix, starMatrix, newStarMatrix, primeMatrix, coveredColumns, coveredRows, nOfRows, nOfColumns, minDim);
}
```