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

```asm
<next_combo_b>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%r13d
  mov    %rsi,0x10(%rsp)
  mov    %edx,%esi
  mov    %rcx,0x28(%rsp)
  mov    %r8,%r15
  mov    %r9,%rbx
  cmpl   $0x0,0x70(%rsp)
  je     L292
  test   %edi,%edi
  jle    L115
  mov    %r9,%rax
  lea    -0x1(%rdi),%edx
  lea    0x4(%r9,%rdx,4),%rdx
L98:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L98
L115:
  test   %esi,%esi
  jle    L258
  mov    %r15,%rax
  lea    -0x1(%rsi),%edx
  lea    0x4(%r15,%rdx,4),%rdx
L254:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L254
  mov    $0xffffffff,%r12d
L138:
  lea    -0x1(%r13),%ebp
  lea    0x4(%rbx,%rbp,4),%r14
  lea    -0x1(%rsi),%eax
  mov    %eax,0xc(%rsp)
  jmp    L0
L292:
  mov    %edx,%r12d
  sub    $0x1,%r12d
  js     L238
  movslq %r12d,%rax
  lea    (%r8,%rax,4),%rax
L152:
  cmpl   $0x0,(%rax)
  jne    L238
  sub    $0x1,%r12d
  sub    $0x4,%rax
  cmp    $0xffffffff,%r12d
  jne    L152
L238:
  movslq %r12d,%rax
  movl   $0x0,(%r15,%rax,4)
  imul   $0x3e8,%rax,%rcx
  test   %r13d,%r13d
  jle    L138
  mov    %r13d,%edi
  mov    $0x0,%eax
  add    0x10(%rsp),%rcx
L338:
  mov    (%rcx,%rax,4),%edx
  sub    %edx,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L338
  jmp    L138
L258:
  mov    $0xffffffff,%r12d
  jmp    L138
L23:
  test   %r13d,%r13d
  jle    L295
  mov    %rbx,%rax
  jmp    L206
L198:
  add    $0x4,%rax
  cmp    %r14,%rax
  je     L134
L206:
  mov    (%rax),%edx
  test   %edx,%edx
  jne    L198
  test   %r12d,%r12d
  js     L199
  movslq %r12d,%rax
L288:
  mov    %eax,%r12d
  mov    (%r15,%rax,4),%ecx
  test   %ecx,%ecx
  jne    L37
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L288
L348:
  mov    %ecx,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L134:
  mov    $0x1,%ecx
  jmp    L348
L37:
  test   %eax,%eax
  js     L40
  cltq
  movl   $0x0,(%r15,%rax,4)
  imul   $0x3e8,%rax,%rcx
  mov    $0x0,%eax
  add    0x10(%rsp),%rcx
L78:
  mov    (%rcx,%rax,4),%edx
  sub    %edx,(%rbx,%rax,4)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rbp,%rdx
  jne    L78
  jmp    L0
L242:
  lea    -0x1(%r13),%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <var_check_1@plt>
  test   %eax,%eax
  jne    L0
  mov    0x18(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L0
L295:
  mov    $0x1,%ecx
  jmp    L348
L40:
  mov    %edx,%ecx
  jmp    L348
L165:
  mov    0x18(%rsp),%rax
  movl   $0x0,(%rax)
  mov    $0x0,%eax
  mov    0x20(%rsp),%rcx
  add    0x10(%rsp),%rcx
L236:
  mov    (%rcx,%rax,4),%edx
  sub    %edx,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L236
L0:
  cmp    %r12d,0xc(%rsp)
  je     L23
  add    $0x1,%r12d
  movslq %r12d,%rax
  lea    (%r15,%rax,4),%rsi
  mov    %rsi,0x18(%rsp)
  movl   $0x1,(%rsi)
  imul   $0x3e8,%rax,%rax
  mov    %rax,%rdi
  mov    %rax,0x20(%rsp)
  test   %r13d,%r13d
  jle    L242
  mov    $0x0,%eax
  mov    0x10(%rsp),%rcx
  add    %rdi,%rcx
L246:
  mov    (%rcx,%rax,4),%edx
  add    %edx,(%rbx,%rax,4)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rbp,%rdx
  jne    L246
  lea    -0x1(%r13),%ecx
  mov    $0x0,%edx
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <var_check_1@plt>
  test   %eax,%eax
  jne    L0
  jmp    L165
L199:
  mov    %edx,%ecx
  jmp    L348
```

assistant: ```c
int next_combo_b(int length, int basis[100][250], int num_basis, int constraints[250], int combo[100], int sum[250], int start_flag) {
  int go, pos, i, success;
  if (start_flag) {
    for (i = 0; i < length; i++)
      sum[i] = 0;
    for (i = 0; i < num_basis; i++)
      combo[i] = 0;
    pos = -1;
  } else {
    pos = num_basis - 1;
    while (pos >= 0 && !combo[pos])
      pos--;
    combo[pos] = 0;
    {
      int j, *p;
      for (j = 0, p = basis[pos]; j < length; j++)
        sum[j] -= p[j];
    };
  }
  success = 0;
  go = 1;
  while (go && !success) {
    if (pos == num_basis - 1) {
      success = 1;
      for (i = 0; i < length && success; i++)
        if (sum[i] == 0)
          success = 0;
      if (!success) {
        while (pos >= 0 && !combo[pos])
          pos--;
        if (pos < 0)
          go = 0;
        else {
          combo[pos] = 0;
          {
            int j, *p;
            for (j = 0, p = basis[pos]; j < length; j++)
              sum[j] -= p[j];
          };
        }
      }
    } else {
      pos++;
      combo[pos] = 1;
      {
        int j, *p;
        for (j = 0, p = basis[pos]; j < length; j++)
          sum[j] += p[j];
      };
      if (!var_check_1(constraints, sum, 0, length - 1)) {
        combo[pos] = 0;
        {
          int j, *p;
          for (j = 0, p = basis[pos]; j < length; j++)
            sum[j] -= p[j];
        };
      }
    }
  }
  return success;
}
```