user: 请从给定的汇编指令推导出C源代码:

```asm
<step3_lng>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  mov    %r8,%r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    0x68(%rsp),%rsi
  mov    0x78(%rsp),%rax
  mov    %rcx,0x10(%rsp)
  xor    %ecx,%ecx
  mov    0x60(%rsp),%r13
  mov    0x70(%rsp),%r10
  mov    %rdi,0x8(%rsp)
  mov    %rax,0x18(%rsp)
  lea    0x0(,%rsi,4),%rbx
  jmp    L113
  nopl   (%rax)
L75:
  add    $0x1,%rcx
L113:
  cmp    %r10,%rcx
  jge    L20
L49:
  mov    %rcx,%rdi
  imul   %rsi,%rdi
L119:
  mov    (%r9,%rcx,4),%eax
  test   %eax,%eax
  jne    L75
  test   %rsi,%rsi
  jle    L75
  mov    %r13,%rdx
  lea    0x0(%rbp,%rdi,8),%r8
  xor    %eax,%eax
  jmp    L60
  nopl   (%rax)
L8:
  add    $0x1,%rax
  add    $0x4,%rdx
  cmp    %rax,%rsi
  je     L75
L60:
  mov    (%rdx),%r11d
  test   %r11d,%r11d
  jne    L8
  cmpq   $0x0,(%r8,%rax,8)
  lea    (%rdi,%rax,1),%r11
  jne    L8
  movl   $0x1,(%r14,%r11,4)
  test   %r10,%r10
  jle    L74
  lea    (%r12,%rax,4),%r11
  xor    %r8d,%r8d
  jmp    L151
  cs nopw 0x0(%rax,%rax,1)
L4:
  add    $0x1,%r8
  add    %rbx,%r11
  cmp    %r8,%r10
  je     L145
L151:
  mov    (%r11),%r15d
  test   %r15d,%r15d
  je     L4
  add    $0x1,%rcx
  movl   $0x1,(%rdx)
  add    %rsi,%rdi
  mov    $0x1,%r15d
  movl   $0x0,(%r9,%r8,4)
  cmp    %r10,%rcx
  jl     L119
  jmp    L131
  nopw   0x0(%rax,%rax,1)
L20:
  test   %r15d,%r15d
  je     L122
  test   %r10,%r10
  jle    L122
  xor    %ecx,%ecx
  xor    %r15d,%r15d
  jmp    L49
L74:
  je     L145
  movl   $0x1,(%rdx)
  movl   $0x0,(%r9)
L131:
  xor    %ecx,%ecx
  xor    %r15d,%r15d
  jmp    L113
  nopl   (%rax)
L145:
  push   %rcx
  mov    %r14,%r8
  mov    %r12,%rdx
  push   %rax
  push   0x28(%rsp)
  push   %r10
  push   %rsi
  mov    %rbp,%rsi
  push   %r13
  mov    0x40(%rsp),%rcx
  mov    0x38(%rsp),%rdi
  call   <step4_lng@plt>
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L122:
  mov    0x18(%rsp),%rax
  mov    %rsi,0x68(%rsp)
  mov    %r14,%r8
  mov    %r12,%rdx
  mov    %r13,0x60(%rsp)
  mov    0x10(%rsp),%rcx
  mov    %rbp,%rsi
  mov    %rax,0x78(%rsp)
  mov    0x8(%rsp),%rdi
  mov    %r10,0x70(%rsp)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <step5_lng@plt>
```

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);
}
```