user: What would the C source look like for the assembly code provided here:

```asm
<ecc200placement>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L176
L187:
  movl   $0x0,-0x8(%rbp)
  jmp    L54
L75:
  mov    -0xc(%rbp),%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x8(%rbp)
L54:
  mov    -0x8(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L75
  addl   $0x1,-0xc(%rbp)
L176:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L187
  movl   $0x1,-0x4(%rbp)
  movl   $0x4,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
L104:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jne    L126
  cmpl   $0x0,-0x8(%rbp)
  jne    L126
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rdi
  mov    %eax,%ecx
  call   <ecc200placementcornerA@plt>
L126:
  mov    -0x1c(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0xc(%rbp)
  jne    L261
  cmpl   $0x0,-0x8(%rbp)
  jne    L261
  mov    -0x20(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  je     L261
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rdi
  mov    %eax,%ecx
  call   <ecc200placementcornerB@plt>
L261:
  mov    -0x1c(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0xc(%rbp)
  jne    L181
  cmpl   $0x0,-0x8(%rbp)
  jne    L181
  mov    -0x20(%rbp),%eax
  cltd
  shr    $0x1d,%edx
  add    %edx,%eax
  and    $0x7,%eax
  sub    %edx,%eax
  cmp    $0x4,%eax
  jne    L181
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rdi
  mov    %eax,%ecx
  call   <ecc200placementcornerC@plt>
L181:
  mov    -0x1c(%rbp),%eax
  add    $0x4,%eax
  cmp    %eax,-0xc(%rbp)
  jne    L161
  cmpl   $0x2,-0x8(%rbp)
  jne    L161
  mov    -0x20(%rbp),%eax
  and    $0x7,%eax
  test   %eax,%eax
  jne    L161
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rdi
  mov    %eax,%ecx
  call   <ecc200placementcornerD@plt>
L161:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L138
  cmpl   $0x0,-0x8(%rbp)
  js     L138
  mov    -0xc(%rbp),%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L138
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x8(%rbp),%r8d
  mov    -0xc(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rdi
  mov    %eax,%r9d
  call   <ecc200placementblock@plt>
L138:
  subl   $0x2,-0xc(%rbp)
  addl   $0x2,-0x8(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  js     L232
  mov    -0x8(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L161
L232:
  addl   $0x1,-0xc(%rbp)
  addl   $0x3,-0x8(%rbp)
L146:
  cmpl   $0x0,-0xc(%rbp)
  js     L87
  mov    -0x8(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L87
  mov    -0xc(%rbp),%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L87
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  mov    -0x8(%rbp),%r8d
  mov    -0xc(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%rdi
  mov    %eax,%r9d
  call   <ecc200placementblock@plt>
L87:
  addl   $0x2,-0xc(%rbp)
  subl   $0x2,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L263
  cmpl   $0x0,-0x8(%rbp)
  jns    L146
L263:
  addl   $0x3,-0xc(%rbp)
  addl   $0x1,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L104
  mov    -0x8(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L104
  mov    -0x1c(%rbp),%eax
  imul   -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L155
  mov    -0x1c(%rbp),%eax
  imul   -0x20(%rbp),%eax
  sub    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x1c(%rbp),%edx
  imul   -0x20(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x4(%rdx),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
L155:
  nop
  leave
  ret
```

assistant: ```c
void ecc200placement(int *array, const int NR, const int NC) {
  int r, c, p;
  for (r = 0; r < NR; r++)
    for (c = 0; c < NC; c++)
      array[r * NC + c] = 0;
  p = 1;
  r = 4;
  c = 0;
  do {
    if (r == NR && !c)
      ecc200placementcornerA(array, NR, NC, p++);
    if (r == NR - 2 && !c && NC % 4)
      ecc200placementcornerB(array, NR, NC, p++);
    if (r == NR - 2 && !c && (NC % 8) == 4)
      ecc200placementcornerC(array, NR, NC, p++);
    if (r == NR + 4 && c == 2 && !(NC % 8))
      ecc200placementcornerD(array, NR, NC, p++);
    do {
      if (r < NR && c >= 0 && !array[r * NC + c])
        ecc200placementblock(array, NR, NC, r, c, p++);
      r -= 2;
      c += 2;
    } while (r >= 0 && c < NC);
    r++;
    c += 3;
    do {
      if (r >= 0 && c < NC && !array[r * NC + c])
        ecc200placementblock(array, NR, NC, r, c, p++);
      r += 2;
      c -= 2;
    } while (r < NR && c >= 0);
    r += 3;
    c++;
  } while (r < NR || c < NC);
  if (!array[NR * NC - 1])
    array[NR * NC - 1] = array[NR * NC - NC - 2] = 1;
}
```