user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fillPolygonsFromFile>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x28,%rsp
  xor    %r13d,%r13d
  xor    %r12d,%r12d
  mov    %edx,0x8(%rsp)
  imul   %ecx,%edx
  mov    %rsi,%r14
  mov    %rdi,%rbp
  xor    %esi,%esi
  mov    %r14,%rdi
  lea    0x2010(%rsp),%rbx
  mov    %ecx,%r15d
  mov    %fs:0x28,%rax
  mov    %rax,0x3018(%rsp)
  xor    %eax,%eax
  mov    %edx,0xc(%rsp)
  call   <memset@plt>
L98:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %rax,%rax
  jne    L40
L23:
  mov    $0x8000,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <file_readline@plt>
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <strStrip@plt>
  movzbl 0x2010(%rsp),%eax
  test   %al,%al
  je     L41
L46:
  cmp    $0x23,%al
  je     L98
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <getFloat@plt>
  movslq %r12d,%rdx
  mov    %rbx,%rdi
  add    $0x1,%r12d
  mov    %eax,0x10(%rsp,%rdx,4)
  mov    %rdx,(%rsp)
  call   <nextWord@plt>
  xor    %esi,%esi
  mov    %rax,%rdi
  call   <getFloat@plt>
  mov    (%rsp),%rdx
  mov    %rbp,%rdi
  mov    %eax,0x1010(%rsp,%rdx,4)
  call   <feof@plt>
  test   %rax,%rax
  je     L23
L40:
  cmp    $0x2,%r12d
  jle    L72
  mov    0x8(%rsp),%r8d
  lea    0x10(%rsp),%rsi
  mov    %r15d,%r9d
  mov    %r14,%rcx
  lea    0x1010(%rsp),%rdx
  mov    %r12d,%edi
  call   <fillPolygon@plt>
  add    %eax,%r13d
  nopl   (%rax)
L72:
  test   %r13d,%r13d
  jle    L108
L4:
  mov    0x3018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x3028,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L41:
  cmp    $0x2,%r12d
  jle    L98
  mov    0x8(%rsp),%r8d
  mov    %r12d,%edi
  lea    0x10(%rsp),%rsi
  mov    %r15d,%r9d
  lea    0x1010(%rsp),%rdx
  mov    %r14,%rcx
  call   <fillPolygon@plt>
  mov    %rbp,%rdi
  add    %eax,%r13d
  call   <feof@plt>
  test   %rax,%rax
  jne    L72
  mov    $0x8000,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  xor    %r12d,%r12d
  call   <file_readline@plt>
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <strStrip@plt>
  movzbl 0x2010(%rsp),%eax
  test   %al,%al
  jne    L46
  jmp    L98
  nopl   (%rax)
L108:
  mov    0xc(%rsp),%edx
  mov    $0x1,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  jmp    L4
L22:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void fillPolygonsFromFile(FILE *infile, unsigned char *mask, int width, int height) {
  char line[4096];
  int polyCorners = 0, polyX[1024], polyY[1024];
  int stopping = 0, filledPixels = 0;
  memset(mask, 0, width * height);
  while (!stopping) {
    if (feof(infile)) {
      stopping = 1;
      goto blankLine;
    }
    file_readline(infile, line, 32768);
    strStrip(line, line);
    if (strlen(line) == 0)
      goto blankLine;
    if (line[0] == '#')
      continue;
    char *cp = line;
    polyX[polyCorners] = getFloat(cp, NULL);
    cp = nextWord(cp);
    polyY[polyCorners] = getFloat(cp, NULL);
    polyCorners++;
    continue;
  blankLine:
    if (polyCorners > 2) {
      filledPixels += fillPolygon(polyCorners, polyX, polyY, mask, width, height);
      polyCorners = 0;
    }
  }
  if (filledPixels < 1)
    memset(mask, 1, width * height);
  return;
}
```