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

```asm
<test_two_in_loops>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L57:
  cmp    %rdx,%rsp
  je     L51
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L57
L51:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L73
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L73:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L86
L75:
  mov    %rsp,%rax
  mov    %rax,%rsi
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L17:
  cmp    %rdx,%rsp
  je     L5
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L17
L5:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L97
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L97:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L8
L28:
  mov    -0x40(%rbp),%rax
  mov    -0x5c(%rbp),%edx
  movslq %edx,%rdx
  mov    -0x5c(%rbp),%ecx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x5c(%rbp)
L8:
  mov    -0x5c(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L28
  cmpl   $0x0,-0x60(%rbp)
  jle    L15
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x64(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  add    %eax,%ecx
  mov    -0x50(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  jmp    L119
L15:
  mov    -0x64(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x50(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
L119:
  mov    %rsi,%rsp
  addl   $0x1,-0x60(%rbp)
L86:
  mov    -0x60(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L75
  mov    -0x64(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%esi
  mov    -0x64(%rbp),%ecx
  mov    -0x64(%rbp),%edx
  mov    -0x64(%rbp),%eax
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    %rbx,%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L58
  call   <__stack_chk_fail@plt>
L58:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: label: D3
datatype: string

tool: D3: test_two_in_loops w/ size %d, should be
  (%d - 1) * %d == %d


assistant: ```c
void test_two_in_loops(int size) {
  volatile int vla1[size];
  for (int i = 0; i < size; i++) {
    volatile int vla2[size];
    for (int j = 0; j < size; j++) {
      vla2[j] = j;
    }
    if (i > 0)
      vla1[i] = vla1[i - 1] + vla2[size - 1];
    else
      vla1[i] = vla2[size - 1];
  }
  printf("test_two_in_loops w/ size %d, should be\n  (%d - 1) * %d == %d\n", size, size, size, vla1[size - 1]);
}
```