user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<helper>:
  endbr64
  cmp    %esi,%edx
  jge    L528
  push   %r15
  mov    %edx,%eax
  push   %r14
  add    $0x1,%eax
  push   %r13
  cltq
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rax,0x18(%rsp)
  lea    -0x1(%rsi),%eax
  mov    %eax,0x50(%rsp)
  mov    %ecx,0x40(%rsp)
L257:
  mov    0x18(%rsp),%rbx
  mov    0x40(%rsp),%edx
  mov    -0x4(%rdi,%rbx,4),%eax
  add    %eax,%edx
  mov    %edx,0x4(%rsp)
  cmp    %ebx,%esi
  jle    L219
  mov    %ebx,%eax
  add    $0x1,%eax
  cltq
  mov    %rax,0x20(%rsp)
L284:
  mov    0x20(%rsp),%rcx
  mov    0x4(%rsp),%ebx
  mov    -0x4(%rdi,%rcx,4),%eax
  mov    %ecx,0x54(%rsp)
  add    %eax,%ebx
  mov    %ebx,(%rsp)
  cmp    %ecx,%esi
  jle    L407
  mov    %ecx,%eax
  add    $0x1,%eax
  cltq
  mov    %rax,0x28(%rsp)
L416:
  mov    0x28(%rsp),%rcx
  mov    (%rsp),%ebx
  mov    -0x4(%rdi,%rcx,4),%eax
  mov    %ecx,0x58(%rsp)
  lea    (%rax,%rbx,1),%edx
  mov    %edx,0x8(%rsp)
  cmp    %ecx,%esi
  jle    L112
  mov    %ecx,%eax
  add    $0x1,%eax
  cltq
  mov    %rax,0x30(%rsp)
L199:
  mov    0x30(%rsp),%rcx
  mov    0x8(%rsp),%edx
  mov    -0x4(%rdi,%rcx,4),%eax
  mov    %ecx,0x5c(%rsp)
  lea    (%rax,%rdx,1),%r11d
  cmp    %ecx,%esi
  jle    L440
  mov    %ecx,%eax
  add    $0x1,%eax
  movslq %eax,%r10
L139:
  mov    -0x4(%rdi,%r10,4),%eax
  mov    %r10d,0x3c(%rsp)
  lea    (%rax,%r11,1),%r15d
  cmp    %r10d,%esi
  jle    L216
  mov    %r11d,0x38(%rsp)
  lea    0x1(%r10),%eax
  mov    %r10,0x10(%rsp)
  movslq %eax,%r14
L131:
  mov    -0x4(%rdi,%r14,4),%eax
  mov    %r14d,0x44(%rsp)
  lea    (%rax,%r15,1),%r11d
  cmp    %r14d,%esi
  jle    L149
  lea    0x1(%r14),%eax
  movslq %eax,%r10
  lea    0x2(%r14),%eax
  mov    %eax,0xc(%rsp)
  mov    %r14,%rax
L260:
  mov    -0x4(%rdi,%r10,4),%edx
  mov    %r10d,0x68(%rsp)
  lea    (%rdx,%r11,1),%ebp
  cmp    %r10d,%esi
  jle    L136
  movslq 0xc(%rsp),%rbx
  mov    -0x4(%rdi,%rbx,4),%edx
  mov    %ebx,%r14d
  lea    (%rdx,%rbp,1),%r12d
  cmp    %ebx,%esi
  jle    L11
L6:
  lea    0x1(%rbx),%edx
  movslq %edx,%r13
  mov    0x50(%rsp),%edx
  sub    %ebx,%edx
  lea    0x2(%rbx,%rdx,1),%rdx
  mov    %rdx,0x48(%rsp)
L514:
  mov    -0x4(%rdi,%r13,4),%ecx
  mov    %r13d,%edx
  mov    %r10,0x88(%rsp)
  mov    %rax,0x80(%rsp)
  add    %r12d,%ecx
  mov    %r11d,0x7c(%rsp)
  mov    %r9,0x70(%rsp)
  mov    %r8d,0x78(%rsp)
  mov    %esi,0x6c(%rsp)
  mov    %rdi,0x60(%rsp)
  call   <helper>
  mov    0x60(%rsp),%rdi
  mov    0x6c(%rsp),%esi
  mov    0x78(%rsp),%r8d
  mov    0x70(%rsp),%r9
  sub    -0x4(%rdi,%r13,4),%r12d
  add    $0x1,%r13
  cmp    %r13,0x48(%rsp)
  mov    0x7c(%rsp),%r11d
  mov    0x80(%rsp),%rax
  mov    0x88(%rsp),%r10
  jne    L514
  cmp    %r12d,%r8d
  jne    L27
L129:
  addl   $0x1,(%r9)
  sub    -0x4(%rdi,%rbx,4),%ebp
  cmp    %r14d,%esi
  jle    L429
L123:
  add    $0x1,%rbx
  mov    -0x4(%rdi,%rbx,4),%edx
  mov    %ebx,%r14d
  lea    (%rdx,%rbp,1),%r12d
  cmp    %ebx,%esi
  jg     L6
L11:
  cmp    %r12d,%r8d
  je     L129
  sub    %edx,%ebp
L429:
  cmp    %ebp,%r8d
  jne    L480
L538:
  addl   $0x1,(%r9)
  sub    -0x4(%rdi,%r10,4),%r11d
  cmp    0x68(%rsp),%esi
  jle    L119
L516:
  addl   $0x1,0xc(%rsp)
  add    $0x1,%r10
  jmp    L260
L149:
  cmp    %r11d,%r8d
  je     L456
  mov    0x38(%rsp),%r11d
  mov    0x10(%rsp),%r10
  sub    %eax,%r15d
L444:
  cmp    %r15d,%r8d
  je     L384
  sub    -0x4(%rdi,%r10,4),%r11d
L319:
  add    $0x1,%r10
  jmp    L139
  xchg   %ax,%ax
L136:
  cmp    %ebp,%r8d
  je     L538
  mov    %rax,%r14
  sub    %edx,%r11d
L69:
  cmp    %r11d,%r8d
  jne    L474
L456:
  addl   $0x1,(%r9)
  sub    -0x4(%rdi,%r14,4),%r15d
  cmp    0x44(%rsp),%esi
  jle    L381
L38:
  add    $0x1,%r14
  jmp    L131
L474:
  sub    -0x4(%rdi,%r14,4),%r15d
  jmp    L38
L384:
  addl   $0x1,(%r9)
  sub    -0x4(%rdi,%r10,4),%r11d
  cmp    0x3c(%rsp),%esi
  jg     L319
  cmp    %r11d,%r8d
  je     L47
L102:
  mov    0x30(%rsp),%rdx
  mov    -0x4(%rdi,%rdx,4),%ecx
  sub    %ecx,0x8(%rsp)
L397:
  addq   $0x1,0x30(%rsp)
  jmp    L199
L27:
  sub    -0x4(%rdi,%rbx,4),%ebp
  jmp    L123
L480:
  sub    -0x4(%rdi,%r10,4),%r11d
  jmp    L516
L216:
  cmp    %r15d,%r8d
  je     L384
  sub    %eax,%r11d
  cmp    %r11d,%r8d
  jne    L102
L47:
  mov    0x30(%rsp),%rcx
  addl   $0x1,(%r9)
  mov    -0x4(%rdi,%rcx,4),%edx
  sub    %edx,0x8(%rsp)
  cmp    0x5c(%rsp),%esi
  jg     L397
  cmp    0x8(%rsp),%r8d
  je     L121
L253:
  mov    0x28(%rsp),%rcx
  mov    -0x4(%rdi,%rcx,4),%ebx
  sub    %ebx,(%rsp)
L14:
  addq   $0x1,0x28(%rsp)
  jmp    L416
L440:
  cmp    %r11d,%r8d
  je     L47
  sub    %eax,0x8(%rsp)
  cmp    0x8(%rsp),%r8d
  jne    L253
L121:
  mov    0x28(%rsp),%rcx
  addl   $0x1,(%r9)
  mov    -0x4(%rdi,%rcx,4),%ebx
  sub    %ebx,(%rsp)
  cmp    0x58(%rsp),%esi
  jg     L14
  cmp    (%rsp),%r8d
  jne    L193
L513:
  mov    0x20(%rsp),%rcx
  addl   $0x1,(%r9)
  mov    -0x4(%rdi,%rcx,4),%ebx
  sub    %ebx,0x4(%rsp)
  cmp    0x54(%rsp),%esi
  jg     L288
  cmp    0x4(%rsp),%r8d
  jne    L466
L518:
  mov    0x18(%rsp),%rbx
  addl   $0x1,(%r9)
  mov    -0x4(%rdi,%rbx,4),%edx
  sub    %edx,0x40(%rsp)
  jmp    L168
L112:
  cmp    0x8(%rsp),%r8d
  je     L121
  sub    %eax,(%rsp)
  cmp    (%rsp),%r8d
  je     L513
L193:
  mov    0x20(%rsp),%rbx
  mov    -0x4(%rdi,%rbx,4),%edx
  sub    %edx,0x4(%rsp)
L288:
  addq   $0x1,0x20(%rsp)
  jmp    L284
L407:
  cmp    (%rsp),%r8d
  je     L513
  sub    %eax,0x4(%rsp)
  cmp    0x4(%rsp),%r8d
  je     L518
L466:
  mov    0x18(%rsp),%rdx
  mov    -0x4(%rdi,%rdx,4),%ecx
  sub    %ecx,0x40(%rsp)
L168:
  addq   $0x1,0x18(%rsp)
  jmp    L257
L219:
  mov    0x40(%rsp),%r11d
  cmp    %r8d,0x4(%rsp)
  je     L29
  sub    %eax,%r11d
L327:
  cmp    %r11d,%r8d
  jne    L270
  addl   $0x1,(%r9)
L270:
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L119:
  mov    %rax,%r14
  jmp    L69
L29:
  mov    0x18(%rsp),%rax
  addl   $0x1,(%r9)
  sub    -0x4(%rdi,%rax,4),%r11d
  jmp    L327
L528:
  cmp    %ecx,%r8d
  je     L261
  ret
L261:
  addl   $0x1,(%r9)
  ret
L381:
  mov    0x38(%rsp),%r11d
  mov    0x10(%rsp),%r10
  jmp    L444
```

assistant: ```c
void helper(int *nums, int numsSize, int idx, int sum, int target, int *cnt) {
  if (idx >= numsSize) {
    if (sum == target)
      *cnt = (*cnt) + 1;
    return;
  }
  helper(nums, numsSize, idx + 1, sum + nums[idx], target, cnt);
  helper(nums, numsSize, idx + 1, sum - nums[idx], target, cnt);
  return;
}
```