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

```asm
<f>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0xffffffff,-0x10(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L30
  mov    $0x0,%eax
  jmp    L59
L30:
  mov    -0x28(%rbp),%rax
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  je     L60
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    0x4(%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  jmp    L59
L60:
  movl   $0x1,-0x14(%rbp)
  jmp    L157
L72:
  movl   $0xffffffff,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L57
L159:
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x14(%rbp),%eax
  cltq
  shl    $0x2,%rax
  sub    $0x4,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0xffffffff,-0x8(%rbp)
  je     L148
  mov    -0x14(%rbp),%eax
  cltq
  cmp    %rax,-0x38(%rbp)
  je     L25
  mov    -0x3c(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  sub    -0x8(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x8(%rbp)
L25:
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L101
  cmpl   $0xffffffff,-0x10(%rbp)
  jne    L70
L101:
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  add    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L42
  cmpl   $0xffffffff,-0x10(%rbp)
  jne    L37
L42:
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L37
L70:
  nop
L37:
  subl   $0x1,-0xc(%rbp)
L57:
  cmpl   $0x0,-0xc(%rbp)
  jg     L159
  jmp    L140
L148:
  nop
L140:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    0x4(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x14(%rbp)
L157:
  mov    -0x14(%rbp),%eax
  cltq
  cmp    %rax,-0x28(%rbp)
  jge    L72
  mov    -0x48(%rbp),%rax
  mov    -0x4(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x10(%rbp),%eax
L59:
  pop    %rbp
  ret
```

assistant: ```c
int f(long j, char **words, long words_no, int w, int *min_i, int **costs, int **line_costs) {
  int i = 0, min = -1, k, temp, cmin;
  int temp_min_i;
  if (j == 0)
    return 0;
  if (costs[j - 1][0] != -1) {
    *min_i = costs[j][1];
    return costs[j][0];
  }
  for (i = 1; i <= j; i++) {
    min = -1;
    for (k = i; k >= 1; k--) {
      cmin = line_costs[k - 1][i - 1];
      if (cmin == -1)
        break;
      if (i != words_no)
        cmin = (w - cmin) * (w - cmin);
      if (cmin >= min && min != -1)
        continue;
      cmin = cmin + costs[k - 1][0];
      if (cmin < min || min == -1) {
        min = cmin;
        temp_min_i = k;
      }
    }
    costs[i][0] = min;
    costs[i][1] = temp_min_i;
  }
  *min_i = temp_min_i;
  return min;
}
```