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

```asm
<getMinSizeSquareSum>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %edi,0x70(%rsp)
  movl   $0x0,0x14(%rsp)
  test   %edi,%edi
  jle    L386
  movl   $0x1,0x14(%rsp)
  cmp    $0x1,%edi
  je     L386
  movslq %edi,%rax
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0x98(%rsp)
  mov    (%rax),%eax
  mov    %eax,0x14(%rsp)
  test   %eax,%eax
  jns    L386
  mov    %edi,0x14(%rsp)
  cmp    $0x3,%edi
  jle    L50
  movl   $0x2,0x40(%rsp)
  mov    $0x4,%eax
L8:
  mov    0x70(%rsp),%edi
  sub    %eax,%edi
  mov    $0x1,%eax
  mov    %edi,0x38(%rsp)
  test   %edi,%edi
  jle    L119
  mov    $0x2,%eax
  cmp    $0x1,%edi
  je     L119
  movslq %edi,%rax
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0x90(%rsp)
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L57
  mov    %edi,0x44(%rsp)
  cmp    $0x3,%edi
  jle    L283
  movl   $0x2,0x34(%rsp)
  mov    $0x4,%eax
L394:
  mov    0x38(%rsp),%ecx
  sub    %eax,%ecx
  mov    $0x1,%eax
  mov    %ecx,0x28(%rsp)
  test   %ecx,%ecx
  jle    L220
  mov    $0x2,%eax
  cmp    $0x1,%ecx
  je     L220
  movslq %ecx,%rax
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0x88(%rsp)
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L309
  mov    %ecx,0x3c(%rsp)
  cmp    $0x3,%ecx
  jle    L162
  movl   $0x2,0x24(%rsp)
  mov    $0x4,%eax
L19:
  mov    0x28(%rsp),%edx
  sub    %eax,%edx
  mov    $0x1,%eax
  mov    %edx,0x18(%rsp)
  test   %edx,%edx
  jle    L360
  mov    $0x2,%eax
  cmp    $0x1,%edx
  je     L360
  movslq %edx,%rax
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0x78(%rsp)
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L378
  mov    %edx,0x30(%rsp)
  cmp    $0x3,%edx
  jle    L141
  movl   $0x2,0x10(%rsp)
  mov    $0x4,%eax
L152:
  mov    0x18(%rsp),%r11d
  sub    %eax,%r11d
  mov    $0x1,%eax
  test   %r11d,%r11d
  jle    L32
  mov    $0x2,%eax
  cmp    $0x1,%r11d
  je     L32
  movslq %r11d,%rax
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0x68(%rsp)
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L397
  mov    %r11d,0x20(%rsp)
  cmp    $0x3,%r11d
  jle    L128
  movl   $0x2,0x4(%rsp)
  mov    $0x4,%eax
  mov    %rsi,%r15
  mov    %r11d,0x2c(%rsp)
L142:
  mov    0x2c(%rsp),%r13d
  sub    %eax,%r13d
  mov    $0x1,%eax
  test   %r13d,%r13d
  jle    L255
  mov    $0x2,%eax
  cmp    $0x1,%r13d
  je     L255
  movslq %r13d,%rax
  lea    (%r15,%rax,4),%rax
  mov    %rax,0x60(%rsp)
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L177
  mov    %r13d,0xc(%rsp)
  cmp    $0x3,%r13d
  jle    L362
  mov    %r13d,0x1c(%rsp)
  mov    $0x2,%r14d
  mov    %r15,%rsi
  mov    $0x4,%eax
  mov    %r14d,%r15d
  mov    %rsi,%r14
L219:
  mov    0x1c(%rsp),%r8d
  mov    $0x1,%r12d
  sub    %eax,%r8d
  test   %r8d,%r8d
  jle    L48
  mov    $0x2,%r12d
  cmp    $0x1,%r8d
  je     L48
  movslq %r8d,%rax
  lea    (%r14,%rax,4),%rax
  mov    (%rax),%r12d
  mov    %rax,0x58(%rsp)
  test   %r12d,%r12d
  jns    L25
  mov    %r8d,%r12d
  cmp    $0x3,%r8d
  jle    L78
  mov    %r8d,0x8(%rsp)
  mov    %r14,%rsi
  mov    %r8d,%r14d
  mov    $0x2,%r10d
  mov    %r15d,0x84(%rsp)
  mov    $0x4,%eax
  mov    %r10d,%r15d
  mov    %rsi,%r12
L194:
  mov    0x8(%rsp),%ecx
  mov    $0x1,%ebp
  sub    %eax,%ecx
  test   %ecx,%ecx
  jle    L165
  mov    $0x2,%ebp
  cmp    $0x1,%ecx
  je     L165
  movslq %ecx,%rax
  lea    (%r12,%rax,4),%rax
  mov    (%rax),%ebp
  mov    %rax,0x50(%rsp)
  test   %ebp,%ebp
  jns    L376
  mov    %ecx,%ebp
  cmp    $0x3,%ecx
  jle    L211
  mov    %ecx,(%rsp)
  mov    $0x4,%eax
  mov    %r12,%rbp
  mov    $0x2,%r13d
  mov    %r15d,0x74(%rsp)
  mov    %r13d,%r15d
  mov    %r14d,0x80(%rsp)
  mov    %ecx,%r14d
L86:
  mov    (%rsp),%r12d
  mov    $0x1,%ebx
  sub    %eax,%r12d
  test   %r12d,%r12d
  jle    L429
  mov    $0x2,%ebx
  cmp    $0x1,%r12d
  je     L429
  movslq %r12d,%rax
  lea    0x0(%rbp,%rax,4),%rax
  mov    (%rax),%ebx
  mov    %rax,0x48(%rsp)
  test   %ebx,%ebx
  jns    L106
  mov    %r12d,%ebx
  cmp    $0x3,%r12d
  jle    L159
  mov    $0x2,%r13d
  mov    $0x4,%eax
L342:
  mov    %r12d,%edi
  mov    %rbp,%rsi
  sub    %eax,%edi
  call   <getMinSizeSquareSum>
  add    $0x1,%eax
  cmp    %eax,%ebx
  cmovg  %eax,%ebx
  add    $0x1,%r13d
  mov    %r13d,%eax
  imul   %r13d,%eax
  cmp    %eax,%r12d
  jge    L342
L159:
  mov    0x48(%rsp),%rax
  mov    %ebx,(%rax)
L106:
  add    $0x1,%ebx
L429:
  cmp    %ebx,%r14d
  cmovg  %ebx,%r14d
  add    $0x1,%r15d
  mov    %r15d,%eax
  imul   %r15d,%eax
  cmp    %eax,(%rsp)
  jge    L86
  mov    %rbp,%r12
  mov    0x74(%rsp),%r15d
  mov    %r14d,%ebp
  mov    0x80(%rsp),%r14d
L211:
  mov    0x50(%rsp),%rax
  mov    %ebp,(%rax)
L376:
  add    $0x1,%ebp
L165:
  cmp    %ebp,%r14d
  cmovg  %ebp,%r14d
  add    $0x1,%r15d
  mov    %r15d,%eax
  imul   %r15d,%eax
  cmp    %eax,0x8(%rsp)
  jge    L194
  mov    %r12,%rax
  mov    0x84(%rsp),%r15d
  mov    %r14d,%r12d
  mov    %rax,%r14
L78:
  mov    0x58(%rsp),%rax
  mov    %r12d,(%rax)
L25:
  add    $0x1,%r12d
L48:
  mov    0xc(%rsp),%eax
  cmp    %r12d,%eax
  cmovle %eax,%r12d
  add    $0x1,%r15d
  mov    %r15d,%eax
  mov    %r12d,0xc(%rsp)
  imul   %r15d,%eax
  cmp    %eax,0x1c(%rsp)
  jge    L219
  mov    %r14,%r15
L362:
  mov    0x60(%rsp),%rsi
  mov    0xc(%rsp),%eax
  mov    %eax,(%rsi)
L177:
  add    $0x1,%eax
L255:
  mov    0x20(%rsp),%esi
  cmp    %eax,%esi
  cmovle %esi,%eax
  addl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%edx
  mov    %eax,0x20(%rsp)
  mov    %edx,%eax
  imul   %edx,%eax
  cmp    %eax,0x2c(%rsp)
  jge    L142
  mov    %r15,%rsi
L128:
  mov    0x68(%rsp),%rbx
  mov    0x20(%rsp),%eax
  mov    %eax,(%rbx)
L397:
  add    $0x1,%eax
L32:
  mov    0x30(%rsp),%ebx
  cmp    %eax,%ebx
  cmovle %ebx,%eax
  addl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%edx
  mov    %eax,0x30(%rsp)
  mov    %edx,%eax
  imul   %edx,%eax
  cmp    %eax,0x18(%rsp)
  jge    L152
L141:
  mov    0x78(%rsp),%rcx
  mov    0x30(%rsp),%eax
  mov    %eax,(%rcx)
L378:
  add    $0x1,%eax
L360:
  mov    0x3c(%rsp),%edx
  cmp    %eax,%edx
  cmovle %edx,%eax
  addl   $0x1,0x24(%rsp)
  mov    0x24(%rsp),%ecx
  mov    %eax,0x3c(%rsp)
  mov    %ecx,%eax
  imul   %ecx,%eax
  cmp    %eax,0x28(%rsp)
  jge    L19
L162:
  mov    0x88(%rsp),%rdi
  mov    0x3c(%rsp),%eax
  mov    %eax,(%rdi)
L309:
  add    $0x1,%eax
L220:
  mov    0x44(%rsp),%edx
  cmp    %eax,%edx
  cmovle %edx,%eax
  addl   $0x1,0x34(%rsp)
  mov    0x34(%rsp),%edi
  mov    %eax,0x44(%rsp)
  mov    %edi,%eax
  imul   %edi,%eax
  cmp    %eax,0x38(%rsp)
  jge    L394
L283:
  mov    0x90(%rsp),%rdx
  mov    0x44(%rsp),%eax
  mov    %eax,(%rdx)
L57:
  add    $0x1,%eax
L119:
  mov    0x14(%rsp),%edi
  cmp    %eax,%edi
  cmovle %edi,%eax
  addl   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%edi
  mov    %eax,0x14(%rsp)
  mov    %edi,%eax
  imul   %edi,%eax
  cmp    %eax,0x70(%rsp)
  jge    L8
L50:
  mov    0x98(%rsp),%rax
  mov    0x14(%rsp),%esi
  mov    %esi,(%rax)
L386:
  mov    0x14(%rsp),%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int getMinSizeSquareSum(int n, int memoTable[]) {
  if (n <= 0)
    return 0;
  if (n == 1)
    return 1;
  if (memoTable[n] >= 0)
    return memoTable[n];
  int minSize = n, nextN, curSize, square;
  for (nextN = 2; (square = nextN * nextN) <= n; nextN++) {
    curSize = 1 + getMinSizeSquareSum(n - square, memoTable);
    if (curSize < minSize)
      minSize = curSize;
  }
  memoTable[n] = minSize;
  return minSize;
}
```