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

```asm
<cut_dyn>:
  endbr64
  push   %rbp
  mov    %rdi,%r9
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  movslq %edx,%r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0x1(%r12),%eax
  mov    %rsp,%rcx
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L45
L43:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L43
L45:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L41
L97:
  lea    0x3(%rsp),%r10
  mov    %r10,%rax
  and    $0xfffffffffffffffc,%r10
  shr    $0x2,%rax
  movl   $0x0,0x0(,%rax,4)
  test   %r12d,%r12d
  jle    L143
  lea    -0xc(%r10),%rdi
  mov    $0x1,%edx
  lea    -0x1(%r14),%ebx
  lea    0x14(%r9),%r15
L65:
  xor    %eax,%eax
  cmp    $0x1,%r14d
  jle    L62
  cmp    %edx,%ebx
  mov    %edx,%esi
  mov    $0x1,%r8d
  cmovle %ebx,%esi
  test   %esi,%esi
  cmovg  %esi,%r8d
  cmp    $0x3,%esi
  jle    L109
  lea    0x4(%r9),%rax
  pxor   %xmm2,%xmm2
  mov    %r8d,%ecx
  shr    $0x2,%ecx
  lea    -0x1(%rcx),%r11d
  mov    %rdi,%rcx
  shl    $0x4,%r11
  add    %r15,%r11
  nopl   0x0(%rax)
L128:
  movdqu (%rcx),%xmm3
  movdqu (%rax),%xmm4
  add    $0x10,%rax
  sub    $0x10,%rcx
  pshufd $0x1b,%xmm3,%xmm0
  paddd  %xmm4,%xmm0
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %r11,%rax
  jne    L128
  movdqa %xmm2,%xmm1
  mov    %r8d,%r11d
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%r11d
  movdqa %xmm1,%xmm0
  lea    0x1(%r11),%ecx
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%eax
  cmp    %r11d,%r8d
  je     L62
L78:
  mov    %edx,%r8d
  movslq %ecx,%r11
  sub    %ecx,%r8d
  lea    0x0(,%r11,4),%r13
  movslq %r8d,%r8
  mov    (%r10,%r8,4),%r8d
  add    (%r9,%r11,4),%r8d
  lea    0x1(%rcx),%r11d
  cmp    %r8d,%eax
  cmovl  %r8d,%eax
  cmp    %esi,%r11d
  jg     L62
  mov    %edx,%r8d
  sub    %r11d,%r8d
  movslq %r8d,%r8
  mov    (%r10,%r8,4),%r8d
  add    0x4(%r9,%r13,1),%r8d
  cmp    %r8d,%eax
  cmovl  %r8d,%eax
  add    $0x2,%ecx
  cmp    %ecx,%esi
  jl     L62
  mov    %edx,%esi
  sub    %ecx,%esi
  movslq %esi,%rcx
  mov    (%r10,%rcx,4),%ecx
  add    0x8(%r9,%r13,1),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
L62:
  mov    %eax,0x10(%rdi)
  lea    0x1(%rdx),%eax
  add    $0x4,%rdi
  cmp    %edx,%r12d
  je     L143
  mov    %eax,%edx
  jmp    L65
  nopl   0x0(%rax,%rax,1)
L143:
  mov    (%r10,%r12,4),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L145
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L109:
  mov    $0x1,%ecx
  xor    %eax,%eax
  jmp    L78
L41:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L97
L145:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int cut_dyn(int prices[], int size, int rod) {
  int memo[rod + 1];
  memo[0] = 0;
  for (int i = 1; i <= rod; i++) {
    int max = 0;
    for (int j = 1; j < size; j++) {
      if (i < j)
        continue;
      int temp = prices[j] + memo[i - j];
      if (temp > max)
        max = temp;
    }
    memo[i] = max;
  }
  return memo[rod];
}
```