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

```asm
<bpflow>:
  endbr64
  push   %r15
  mov    %esi,%eax
  mov    %rcx,%r15
  xor    %ecx,%ecx
  push   %r14
  push   %r13
  mov    %rdx,%r13
  lea    (%rdi,%rsi,1),%edx
  push   %r12
  movslq %edx,%r12
  push   %rbp
  push   %rbx
  mov    %r9,%rbx
  sub    $0x28,%rsp
  mov    0x60(%rsp),%r14
  mov    0x68(%rsp),%rbp
  mov    %edi,0x8(%rsp)
  mov    %r8,%rdi
  test   %edx,%edx
  jle    L24
  nopw   0x0(%rax,%rax,1)
L42:
  mov    (%rdi,%rcx,4),%esi
  mov    %esi,(%rbx,%rcx,4)
  movl   $0x0,0x0(%rbp,%rcx,4)
  add    $0x1,%rcx
  cmp    %r12,%rcx
  jne    L42
L24:
  movslq 0x8(%rsp),%rdi
  lea    0x0(%r13,%r12,4),%rsi
  lea    0x0(,%rdi,4),%r10
  mov    %rdi,0x18(%rsp)
  lea    0x0(%r13,%r10,1),%r11
  movslq (%r11),%rcx
  cmp    (%rsi),%ecx
  jge    L141
  nopw   0x0(%rax,%rax,1)
L43:
  movl   $0x0,(%r14,%rcx,4)
  add    $0x1,%rcx
  cmp    %ecx,(%rsi)
  jg     L43
L141:
  cmp    %edx,0x8(%rsp)
  jge    L91
  sub    $0x1,%eax
  add    0x18(%rsp),%rax
  add    %rbx,%r10
  lea    0x4(%rbx,%rax,4),%r12
  cs nopw 0x0(%rax,%rax,1)
L22:
  movslq (%r11),%rcx
  cmp    0x4(%r11),%ecx
  jl     L69
  jmp    L103
  nopl   0x0(%rax,%rax,1)
L63:
  movslq (%r15,%rcx,4),%rsi
  lea    (%rbx,%rsi,4),%rdi
  mov    (%rdi),%esi
  test   %esi,%esi
  je     L83
  cmp    %eax,%esi
  cmovle %esi,%eax
  sub    %eax,%esi
  mov    %esi,(%rdi)
  sub    %eax,(%r10)
  mov    %eax,(%r14,%rcx,4)
L83:
  add    $0x1,%rcx
  cmp    %ecx,0x4(%r11)
  jle    L103
L69:
  mov    (%r10),%eax
  test   %eax,%eax
  jne    L63
L103:
  add    $0x4,%r10
  add    $0x4,%r11
  cmp    %r12,%r10
  jne    L22
L91:
  lea    0x0(,%rdx,4),%edi
  call   <smalloc@plt>
  mov    0x8(%rsp),%edi
  mov    %rax,0x10(%rsp)
  test   %edi,%edi
  jle    L99
  movq   $0x0,0x8(%rsp)
  xchg   %ax,%ax
L169:
  mov    0x8(%rsp),%rax
  mov    %eax,%r12d
  mov    (%rbx,%rax,4),%eax
  test   %eax,%eax
  jne    L49
  jmp    L146
  nopl   0x0(%rax)
L102:
  test   %eax,%eax
  je     L146
L49:
  sub    $0x8,%rsp
  mov    %rbx,%rcx
  mov    %r15,%rdx
  mov    %r13,%rsi
  push   0x18(%rsp)
  mov    %rbp,%r9
  mov    %r14,%r8
  mov    %r12d,%edi
  call   <augment@plt>
  pop    %rdx
  pop    %rcx
  mov    0x8(%rsp),%rdx
  mov    (%rbx,%rdx,4),%esi
  test   %esi,%esi
  jne    L102
L146:
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rax
  cmp    %rax,0x18(%rsp)
  jne    L169
L99:
  mov    0x10(%rsp),%rdi
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <sfree@plt>
```

assistant: ```c
void bpflow(int n_left, int n_right, int *pointers, int *indices, int *vweight, int *resid, int *flow, int *touched) {
  int *seen;
  int neighbor;
  int flow1;
  int modified;
  int i, j;
  for (i = 0; i < n_left + n_right; i++) {
    resid[i] = vweight[i];
    touched[i] = 0;
  }
  for (i = pointers[n_left]; i < pointers[n_left + n_right]; i++) {
    flow[i] = 0;
  }
  for (i = n_left; i < n_left + n_right; i++) {
    for (j = pointers[i]; j < pointers[i + 1] && resid[i]; j++) {
      neighbor = indices[j];
      if (resid[neighbor]) {
        flow1 = ((resid[i]) < (resid[neighbor]) ? (resid[i]) : (resid[neighbor]));
        resid[neighbor] -= flow1;
        resid[i] -= flow1;
        flow[j] = flow1;
      }
    }
  }
  seen = smalloc((n_left + n_right) * sizeof(int));
  for (i = 0; i < n_left; i++) {
    modified = 1;
    while (resid[i] && modified) {
      modified = augment(i, pointers, indices, resid, flow, touched, seen);
    }
  }
  sfree(seen);
}
```