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

```asm
<next_combo_ss>:
  endbr64
  push   %r15
  mov    %r8,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %edx,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    0x70(%rsp),%r8d
  mov    %edi,0xc(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    0x80(%rsp),%r12
  mov    %rcx,0x18(%rsp)
  mov    0x88(%rsp),%r13d
  mov    %r9,0x20(%rsp)
  test   %r8d,%r8d
  jne    L44
L90:
  mov    (%r12),%eax
  xor    %r9d,%r9d
  test   %eax,%eax
  jle    L25
  sub    $0x1,%eax
  mov    %eax,(%r12)
  test   %ebp,%ebp
  jle    L131
  mov    0x78(%rsp),%rsi
  xor    %edx,%edx
  jmp    L114
  nopl   0x0(%rax)
L40:
  mov    (%r12),%eax
L114:
  cltq
  movslq %edx,%rcx
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  shl    $0x4,%rax
  add    %rsi,%rax
  mov    (%rax,%rcx,4),%eax
  mov    %eax,(%r15,%rdx,4)
  add    $0x1,%rdx
  cmp    %rdx,%rbp
  jne    L40
L131:
  mov    $0x1,%r9d
L25:
  add    $0x38,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L44:
  sub    $0x8,%rsp
  mov    %r15,%r8
  mov    %ebp,%edx
  movslq %ebp,%rbx
  movl   $0x0,(%r12)
  push   $0x1
  mov    0x30(%rsp),%r9
  mov    0x28(%rsp),%rcx
  mov    0x20(%rsp),%rsi
  mov    0x1c(%rsp),%edi
  call   <next_combo_a@plt>
  pop    %rsi
  pop    %rdi
  mov    %rbx,0x28(%rsp)
  test   %eax,%eax
  jne    L92
  jmp    L90
  xchg   %ax,%ax
L37:
  sub    $0x8,%rsp
  mov    %ebp,%edx
  mov    %r15,%r8
  push   $0x0
  mov    0x30(%rsp),%r9
  mov    0x28(%rsp),%rcx
  mov    0x20(%rsp),%rsi
  mov    0x1c(%rsp),%edi
  call   <next_combo_a@plt>
  pop    %rdx
  pop    %rcx
  test   %eax,%eax
  je     L90
L92:
  mov    (%r12),%eax
  mov    0x78(%rsp),%r14
  xor    %ebx,%ebx
  test   %eax,%eax
  jle    L4
  nopl   0x0(%rax)
L36:
  mov    %ebp,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <superset_degree@plt>
  cmp    %r13d,%eax
  jg     L37
  mov    (%r12),%eax
  add    $0x1,%ebx
  add    $0x190,%r14
  cmp    %ebx,%eax
  jg     L36
  cmp    $0xc8,%eax
  je     L62
L4:
  xor    %edx,%edx
  test   %ebp,%ebp
  jle    L21
  mov    0x78(%rsp),%rdi
  mov    0x28(%rsp),%r8
  nopl   0x0(%rax,%rax,1)
L126:
  movslq (%r12),%rax
  mov    (%r15,%rdx,4),%esi
  movslq %edx,%rcx
  add    $0x1,%rdx
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  shl    $0x4,%rax
  add    %rdi,%rax
  mov    %esi,(%rax,%rcx,4)
  cmp    %rdx,%r8
  jne    L126
L21:
  addl   $0x1,(%r12)
  jmp    L37
L62:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  jmp    L90
```

tool_calls: name: parse_data
arguments: label: D2
datatype: string

tool: D2: next_combo_ss: MAX_COMBOS.


assistant: ```c
int next_combo_ss(int length, int basis[100][250], int num_basis, int constraints[250], int combo[100], int sum[250], int start_flag, int combos[200][100], int *np, int ss_parm) {
  int i, go, ok;
  if (start_flag) {
    *np = 0;
    go = next_combo_a(length, basis, num_basis, constraints, combo, sum, 1);
    while (go) {
      for (i = 0, ok = 1; i < *np && ok; i++)
        if (superset_degree(combo, combos[i], num_basis) > ss_parm)
          ok = 0;
      if (ok) {
        if (*np == 200) {
          printf("next_combo_ss: MAX_COMBOS.\n");
          go = 0;
        } else {
          for (i = 0; i < num_basis; i++)
            combos[*np][i] = combo[i];
          (*np)++;
        }
      }
      if (go)
        go = next_combo_a(length, basis, num_basis, constraints, combo, sum, 0);
    }
  }
  if (*np > 0) {
    (*np)--;
    for (i = 0; i < num_basis; i++)
      combo[i] = combos[*np][i];
    return 1;
  } else
    return 0;
}
```