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

```asm
<maximalRectangle>:
  endbr64
  push   %r15
  push   %r14
  mov    %edx,%r14d
  push   %r13
  push   %r12
  lea    0x0(,%rdx,4),%r12d
  push   %rbp
  mov    %rdi,%rbp
  mov    %r12d,%edi
  push   %rbx
  mov    %esi,%ebx
  sub    $0x148,%rsp
  call   <malloc@plt>
  xor    %esi,%esi
  mov    %r12d,%edx
  mov    %rax,%rdi
  mov    %rax,%r15
  call   <memset@plt>
  test   %ebx,%ebx
  jle    L43
  lea    -0x1(%rbx),%eax
  mov    %rbp,%r12
  xor    %r13d,%r13d
  lea    0x8(%rbp,%rax,8),%rax
  mov    %r14d,%ebp
  and    $0xfffffff0,%ebp
  mov    %rax,(%rsp)
  mov    %r14d,%eax
  lea    0x1(%rbp),%edi
  movslq %ebp,%rbx
  mov    %rax,0x8(%rsp)
  lea    (%r15,%rax,4),%rax
  movslq %edi,%rcx
  mov    %edi,0x34(%rsp)
  lea    0x2(%rbp),%edi
  lea    (%r15,%rcx,4),%r8
  mov    %rcx,0x40(%rsp)
  movslq %edi,%rcx
  lea    (%r15,%rcx,4),%rsi
  mov    %edi,0x58(%rsp)
  mov    %rsi,0x20(%rsp)
  lea    0x3(%rbp),%esi
  movslq %esi,%rdi
  mov    %rcx,0x50(%rsp)
  lea    (%r15,%rdi,4),%rcx
  mov    %esi,0x5c(%rsp)
  mov    %rcx,0x38(%rsp)
  lea    0x4(%rbp),%ecx
  movslq %ecx,%rsi
  mov    %rdi,0x68(%rsp)
  lea    (%r15,%rsi,4),%rdi
  mov    %ecx,0x80(%rsp)
  mov    %rdi,0x48(%rsp)
  lea    0x5(%rbp),%edi
  movslq %edi,%rcx
  mov    %rsi,0x78(%rsp)
  lea    (%r15,%rcx,4),%rsi
  mov    %edi,0x84(%rsp)
  mov    %rsi,0x60(%rsp)
  lea    0x6(%rbp),%esi
  movslq %esi,%rdi
  mov    %rcx,0x90(%rsp)
  lea    (%r15,%rdi,4),%rcx
  mov    %esi,0xa8(%rsp)
  mov    %rcx,0x70(%rsp)
  lea    0x7(%rbp),%ecx
  movslq %ecx,%rsi
  mov    %rdi,0xa0(%rsp)
  lea    (%r15,%rsi,4),%rdi
  mov    %ecx,0xac(%rsp)
  mov    %rdi,0x88(%rsp)
  lea    0x8(%rbp),%edi
  movslq %edi,%rcx
  mov    %rsi,0xb8(%rsp)
  lea    (%r15,%rcx,4),%rsi
  mov    %rcx,0xc8(%rsp)
  lea    0xa(%rbp),%ecx
  mov    %rsi,0x98(%rsp)
  lea    0x9(%rbp),%esi
  mov    %edi,0xd0(%rsp)
  movslq %esi,%rdi
  mov    %esi,0xd4(%rsp)
  movslq %ecx,%rsi
  lea    (%r15,%rdi,4),%rdx
  mov    %rdi,0xe0(%rsp)
  lea    0xb(%rbp),%edi
  mov    %ecx,0xec(%rsp)
  lea    (%r15,%rsi,4),%rcx
  mov    %rax,0x10(%rsp)
  mov    %r14d,%eax
  mov    %rbx,0x28(%rsp)
  shr    $0x4,%eax
  lea    (%r15,%rbx,4),%rbx
  mov    %rdx,0xb0(%rsp)
  sub    $0x1,%eax
  mov    %rsi,0xf8(%rsp)
  lea    0xc(%rbp),%esi
  add    $0x1,%rax
  mov    %rcx,0xc0(%rsp)
  movslq %edi,%rcx
  shl    $0x4,%rax
  movdqa D35(%rip),%xmm6
  mov    %edi,0x110(%rsp)
  lea    (%r15,%rcx,4),%rdi
  movdqa D23(%rip),%xmm9
  mov    %rdi,0xd8(%rsp)
  movslq %esi,%rdi
  mov    %rcx,0x108(%rsp)
  lea    0xd(%rbp),%ecx
  mov    %esi,0x114(%rsp)
  lea    (%r15,%rdi,4),%rsi
  mov    %rsi,0xf0(%rsp)
  movslq %ecx,%rsi
  lea    (%r15,%rsi,4),%rdx
  mov    %rdi,0x120(%rsp)
  lea    0xe(%rbp),%edi
  mov    %rdx,0x100(%rsp)
  movslq %edi,%rdx
  mov    %ecx,0x130(%rsp)
  lea    (%r15,%rdx,4),%rcx
  mov    %rsi,0x128(%rsp)
  mov    %edi,0x134(%rsp)
  mov    %rdx,0x138(%rsp)
  mov    %rcx,0x118(%rsp)
  mov    %rax,0x18(%rsp)
  mov    %r14d,%eax
  mov    %r15,%r14
  mov    %ebp,0x30(%rsp)
  mov    %eax,%r15d
  mov    %r8,%rbp
  nopl   0x0(%rax,%rax,1)
L164:
  test   %r15d,%r15d
  jle    L324
  mov    (%r12),%rsi
  mov    0x8(%rsp),%rcx
  lea    -0x1(%r15),%eax
  lea    (%rsi,%rcx,1),%rdx
  cmp    %rdx,%r14
  setae  %dl
  cmp    0x10(%rsp),%rsi
  setae  %dil
  or     %dil,%dl
  je     L79
  cmp    $0xe,%eax
  jbe    L79
  mov    0x18(%rsp),%rcx
  mov    %rsi,%rdx
  mov    %r14,%rax
  pxor   %xmm8,%xmm8
  pxor   %xmm7,%xmm7
  lea    (%rcx,%rsi,1),%rdi
  nopl   0x0(%rax,%rax,1)
L190:
  movdqu (%rdx),%xmm0
  movdqa %xmm8,%xmm5
  movdqa %xmm7,%xmm10
  movdqu 0x10(%rax),%xmm1
  movdqu 0x20(%rax),%xmm4
  movdqu 0x30(%rax),%xmm3
  add    $0x10,%rdx
  add    $0x40,%rax
  pcmpeqb %xmm9,%xmm0
  paddd  %xmm6,%xmm1
  paddd  %xmm6,%xmm4
  paddd  %xmm6,%xmm3
  pcmpgtb %xmm0,%xmm5
  movdqa %xmm0,%xmm2
  punpcklbw %xmm5,%xmm2
  punpckhbw %xmm5,%xmm0
  movdqu -0x40(%rax),%xmm5
  pcmpgtw %xmm2,%xmm10
  movdqa %xmm2,%xmm11
  paddd  %xmm6,%xmm5
  punpckhwd %xmm10,%xmm2
  punpcklwd %xmm10,%xmm11
  movdqa %xmm7,%xmm10
  pcmpgtw %xmm0,%xmm10
  pand   %xmm2,%xmm1
  movdqa %xmm0,%xmm2
  pand   %xmm11,%xmm5
  movups %xmm1,-0x30(%rax)
  movups %xmm5,-0x40(%rax)
  punpcklwd %xmm10,%xmm2
  punpckhwd %xmm10,%xmm0
  pand   %xmm4,%xmm2
  pand   %xmm3,%xmm0
  movups %xmm2,-0x20(%rax)
  movups %xmm0,-0x10(%rax)
  cmp    %rdi,%rdx
  jne    L190
  cmp    0x30(%rsp),%r15d
  je     L324
  mov    0x28(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L179
  mov    (%rbx),%eax
  add    $0x1,%eax
L179:
  mov    %eax,(%rbx)
  cmp    0x34(%rsp),%r15d
  jle    L324
  mov    0x40(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L3
  mov    0x0(%rbp),%eax
  add    $0x1,%eax
L3:
  mov    %eax,0x0(%rbp)
  cmp    0x58(%rsp),%r15d
  jle    L324
  mov    0x50(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L325
  mov    0x20(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L325:
  mov    0x20(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0x5c(%rsp),%r15d
  jle    L324
  mov    0x68(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L326
  mov    0x38(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L326:
  mov    0x38(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0x80(%rsp),%r15d
  jle    L324
  mov    0x78(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L359
  mov    0x48(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L359:
  mov    0x48(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0x84(%rsp),%r15d
  jle    L324
  mov    0x90(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L58
  mov    0x60(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L58:
  mov    0x60(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0xa8(%rsp),%r15d
  jle    L324
  mov    0xa0(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L279
  mov    0x70(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L279:
  mov    0x70(%rsp),%rcx
  mov    %eax,(%rcx)
  cmp    0xac(%rsp),%r15d
  jle    L324
  mov    0xb8(%rsp),%rdi
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rdi,1)
  jne    L120
  mov    0x88(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L120:
  mov    0x88(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0xd0(%rsp),%r15d
  jle    L324
  mov    0xc8(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L25
  mov    0x98(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L25:
  mov    0x98(%rsp),%rcx
  mov    %eax,(%rcx)
  cmp    0xd4(%rsp),%r15d
  jle    L324
  mov    0xe0(%rsp),%rdi
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rdi,1)
  jne    L313
  mov    0xb0(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L313:
  mov    0xb0(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0xec(%rsp),%r15d
  jle    L324
  mov    0xf8(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L306
  mov    0xc0(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L306:
  mov    0xc0(%rsp),%rcx
  mov    %eax,(%rcx)
  cmp    0x110(%rsp),%r15d
  jle    L324
  mov    0x108(%rsp),%rdi
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rdi,1)
  jne    L80
  mov    0xd8(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L80:
  mov    0xd8(%rsp),%rdi
  mov    %eax,(%rdi)
  cmp    0x114(%rsp),%r15d
  jle    L324
  mov    0x120(%rsp),%rcx
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rcx,1)
  jne    L350
  mov    0xf0(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L350:
  mov    0xf0(%rsp),%rcx
  mov    %eax,(%rcx)
  cmp    0x130(%rsp),%r15d
  jle    L324
  mov    0x128(%rsp),%rdi
  xor    %eax,%eax
  cmpb   $0x31,(%rsi,%rdi,1)
  jne    L76
  mov    0x100(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
L76:
  mov    0x100(%rsp),%rcx
  mov    %eax,(%rcx)
  cmp    0x134(%rsp),%r15d
  jle    L324
  mov    0x138(%rsp),%rax
  cmpb   $0x31,(%rsi,%rax,1)
  je     L332
  xor    %eax,%eax
L269:
  mov    0x118(%rsp),%rcx
  mov    %eax,(%rcx)
  nopl   0x0(%rax)
L324:
  mov    %r15d,%esi
  mov    %r14,%rdi
  add    $0x8,%r12
  call   <area_calc@plt>
  mov    %r13d,%edi
  mov    %eax,%esi
  call   <max@plt>
  cmp    (%rsp),%r12
  movdqa D35(%rip),%xmm6
  movdqa D23(%rip),%xmm9
  mov    %eax,%r13d
  jne    L164
L52:
  add    $0x148,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L79:
  mov    %eax,%edx
  xor    %eax,%eax
  jmp    L121
  cs nopw 0x0(%rax,%rax,1)
L57:
  movl   $0x0,(%r14,%rax,4)
  lea    0x1(%rax),%rcx
  cmp    %rdx,%rax
  je     L324
L55:
  mov    %rcx,%rax
L121:
  cmpb   $0x31,(%rsi,%rax,1)
  jne    L57
  addl   $0x1,(%r14,%rax,4)
  lea    0x1(%rax),%rcx
  cmp    %rdx,%rax
  jne    L55
  jmp    L324
L332:
  mov    0x118(%rsp),%rax
  mov    (%rax),%eax
  mov    %eax,0xe8(%rsp)
  add    $0x1,%eax
  jmp    L269
L43:
  xor    %r13d,%r13d
  jmp    L52
```

tool_calls: name: unpack_data
arguments: data_label: D35
datatype: byte[16]
name: unpack_data
arguments: data_label: D23
datatype: byte[16]

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

tool: {"D23": [0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31]}

assistant: ```c
int maximalRectangle(char **matrix, int matrixRowSize, int matrixColSize) {
  int i, j, max_area = 0;
  int *heights = malloc(matrixColSize * sizeof(int));
  memset(heights, 0, matrixColSize * sizeof(int));
  for (i = 0; i < matrixRowSize; i++) {
    for (j = 0; j < matrixColSize; j++) {
      heights[j] = matrix[i][j] == '1' ? heights[j] + 1 : 0;
    }
    max_area = max(max_area, area_calc(heights, matrixColSize));
  }
  return max_area;
}
```