user: What is the c source code of the assembly code below:

```asm
<flipAndInvertImage>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdx,(%rsp)
  mov    %rcx,0x10(%rsp)
  test   %esi,%esi
  je     L27
  mov    %rdi,%rbx
  test   %rdi,%rdi
  je     L27
  mov    %esi,%r13d
  mov    %r8,%r15
  lea    0x0(,%rsi,8),%edi
  mov    %rcx,%r14
  call   <malloc@plt>
  mov    %r13d,(%r15)
  lea    0x0(,%r13,4),%edi
  mov    %rax,0x18(%rsp)
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,(%r14)
  test   %r13d,%r13d
  jle    L28
  sub    $0x1,%r13d
  xor    %r14d,%r14d
  lea    0x0(,%r13,4),%rsi
  mov    %rsi,0x8(%rsp)
  nopl   0x0(%rax)
L68:
  mov    (%rsp),%rsi
  mov    (%rbx,%r14,2),%r13
  movslq (%rsi,%r14,1),%r15
  mov    %r15d,(%rax,%r14,1)
  lea    0x0(,%r15,4),%edi
  mov    %r15,%r12
  call   <malloc@plt>
  test   %r15d,%r15d
  movdqa D4(%rip),%xmm2
  mov    %rax,%rdi
  jle    L92
  lea    -0x1(%r15),%r10d
  shl    $0x2,%r15
  lea    (%rdi,%r15,1),%r9
  lea    0x0(%r13,%r15,1),%rax
  cmp    %r9,%r13
  setae  %r9b
  cmp    %rax,%rdi
  setae  %r11b
  or     %r11b,%r9b
  je     L118
  cmp    $0x2,%r10d
  jbe    L118
  mov    %r12d,%r9d
  lea    -0x10(%r13,%r15,1),%rax
  pxor   %xmm1,%xmm1
  shr    $0x2,%r9d
  lea    -0x10(%rax),%r10
  lea    (%rdi,%rax,1),%r11
  sub    $0x1,%r9d
  shl    $0x4,%r9
  sub    %r9,%r10
  nopl   0x0(%rax)
L81:
  movdqu (%rax),%xmm3
  mov    %r11,%r9
  sub    %rax,%r9
  sub    $0x10,%rax
  pshufd $0x1b,%xmm3,%xmm0
  pcmpeqd %xmm1,%xmm0
  pand   %xmm2,%xmm0
  movups %xmm0,(%r9)
  cmp    %r10,%rax
  jne    L81
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%r12b
  je     L92
  mov    %r12d,%r10d
  mov    %eax,%r11d
  sub    %eax,%r10d
  lea    0x0(,%r11,4),%r9
  sub    $0x1,%r10d
  movslq %r10d,%r10
  mov    0x0(%r13,%r10,4),%r15d
  xor    %r10d,%r10d
  test   %r15d,%r15d
  sete   %r10b
  mov    %r10d,(%rdi,%r11,4)
  lea    0x1(%rax),%r11d
  cmp    %r11d,%r12d
  jle    L92
  mov    %r12d,%r10d
  sub    %r11d,%r10d
  sub    $0x1,%r10d
  movslq %r10d,%r10
  mov    0x0(%r13,%r10,4),%r10d
  test   %r10d,%r10d
  sete   %r10b
  add    $0x2,%eax
  movzbl %r10b,%r10d
  mov    %r10d,0x4(%rdi,%r9,1)
  cmp    %eax,%r12d
  jle    L92
  mov    %r12d,%edx
  sub    %eax,%edx
  lea    -0x1(%rdx),%eax
  cltq
  mov    0x0(%r13,%rax,4),%r8d
  xor    %eax,%eax
  test   %r8d,%r8d
  sete   %al
  mov    %eax,0x8(%rdi,%r9,1)
L92:
  mov    %rdi,0x0(%rbp)
  add    $0x8,%rbp
  cmp    0x8(%rsp),%r14
  je     L28
L73:
  mov    0x10(%rsp),%rax
  add    $0x4,%r14
  mov    (%rax),%rax
  jmp    L68
  nopw   0x0(%rax,%rax,1)
L118:
  lea    -0x4(%r13,%r15,1),%r9
  shl    $0x2,%r10
  lea    (%rdi,%r13,1),%rcx
  sub    %r10,%r9
  add    %r15,%rcx
  nopl   0x0(%rax,%rax,1)
L98:
  mov    -0x4(%rax),%esi
  mov    %rcx,%rdx
  xor    %r10d,%r10d
  sub    %rax,%rdx
  test   %esi,%esi
  sete   %r10b
  sub    $0x4,%rax
  mov    %r10d,(%rdx)
  cmp    %r9,%rax
  jne    L98
  mov    %rdi,0x0(%rbp)
  add    $0x8,%rbp
  cmp    0x8(%rsp),%r14
  jne    L73
L28:
  mov    0x18(%rsp),%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L27:
  movq   $0x0,0x18(%rsp)
  jmp    L28
```

tool_calls: name: read_data
arguments: tag: D4
type_guessed: byte[16]

tool: {"D4": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

assistant: ```c
int **flipAndInvertImage(int **A, int ARowSize, int *AColSizes, int **columnSizes, int *returnSize) {
  if (ARowSize == 0 || A == NULL) {
    return NULL;
  }
  int **retval = (int **)malloc(sizeof(int *) * ARowSize);
  *returnSize = ARowSize;
  *columnSizes = (int *)malloc(sizeof(int) * ARowSize);
  for (int nrow = 0; nrow < ARowSize; nrow++) {
    int *srcRow = A[nrow];
    int rowSize = AColSizes[nrow];
    (*columnSizes)[nrow] = rowSize;
    int *dstRow = (int *)malloc(sizeof(int) * rowSize);
    for (int ncol = 0; ncol < rowSize; ncol++) {
      int index = rowSize - ncol - 1;
      dstRow[ncol] = !(srcRow[index]);
    }
    retval[nrow] = dstRow;
  }
  return retval;
}
```