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

```asm
<ways>:
  endbr64
  test   %edx,%edx
  je     L42
  mov    %esi,%eax
  test   %esi,%esi
  jle    L155
  mov    %edx,%r9d
  test   %edx,%edx
  js     L155
  push   %r15
  lea    -0x8(%rax),%edx
  lea    -0x6(%rax),%r11d
  push   %r14
  lea    -0x7(%rax),%r14d
  lea    -0x5(%rax),%r10d
  push   %r13
  lea    -0x4(%rax),%r8d
  lea    -0x1(%rsi),%ecx
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x2(%rsi),%ebx
  lea    -0x3(%rsi),%esi
  sub    $0xb8,%rsp
  mov    %edx,0x9c(%rsp)
  movslq %edx,%rdx
  lea    (%rdi,%rdx,4),%rdx
  mov    %ebx,0x6c(%rsp)
  mov    %rdx,0x58(%rsp)
  movslq %r14d,%rdx
  lea    (%rdi,%rdx,4),%rdx
  mov    %r8d,0x84(%rsp)
  mov    %rdx,0xa0(%rsp)
  movslq %r11d,%rdx
  lea    (%rdi,%rdx,4),%rdx
  mov    %r10d,0x98(%rsp)
  mov    %rdx,0x50(%rsp)
  movslq %r10d,%rdx
  lea    (%rdi,%rdx,4),%rdx
  mov    %r11d,0x48(%rsp)
  mov    %rdx,0x40(%rsp)
  movslq %r8d,%rdx
  lea    (%rdi,%rdx,4),%rdx
  mov    %r14d,0x4c(%rsp)
  mov    %rdx,0x90(%rsp)
  movslq %esi,%rdx
  lea    (%rdi,%rdx,4),%rdx
  mov    %r9d,0x68(%rsp)
  mov    %rdx,0x88(%rsp)
  movslq %ebx,%rdx
  lea    (%rdi,%rdx,4),%rbx
  movslq %ecx,%rdx
  mov    %esi,0x80(%rsp)
  lea    -0x9(%rax),%esi
  shl    $0x2,%rdx
  test   %ecx,%ecx
  mov    %rbx,0x78(%rsp)
  setle  0xab(%rsp)
  lea    (%rdi,%rdx,1),%rbx
  xor    %r8d,%r8d
  lea    0x4(%rdi,%rdx,1),%rdx
  mov    %rbx,0x70(%rsp)
  mov    %rdx,0x60(%rsp)
  mov    %r8d,0x1c(%rsp)
L11:
  mov    0x68(%rsp),%eax
  xor    %r11d,%r11d
  mov    %r11d,0x10(%rsp)
  mov    %eax,0x34(%rsp)
L153:
  mov    0x34(%rsp),%eax
  test   %eax,%eax
  js     L29
  cmpb   $0x0,0xab(%rsp)
  jne    L29
  mov    0x6c(%rsp),%r9d
  mov    %eax,0x38(%rsp)
  mov    %rdi,%r15
  mov    %esi,%r14d
  test   %r9d,%r9d
  setle  0xac(%rsp)
  xor    %r9d,%r9d
  mov    %r9d,0x14(%rsp)
L225:
  mov    0x38(%rsp),%eax
  test   %eax,%eax
  js     L173
  cmpb   $0x0,0xac(%rsp)
  jne    L173
  mov    0x80(%rsp),%r8d
  mov    %eax,0x3c(%rsp)
  mov    %r15,%r12
  mov    %r14d,%r13d
  test   %r8d,%r8d
  setle  0xad(%rsp)
  xor    %r11d,%r11d
  mov    %r11d,0x18(%rsp)
L174:
  mov    0x3c(%rsp),%r14d
  test   %r14d,%r14d
  js     L14
  cmpb   $0x0,0xad(%rsp)
  jne    L14
  mov    0x84(%rsp),%edi
  test   %edi,%edi
  setle  0xae(%rsp)
  xor    %r15d,%r15d
  mov    %r15d,0xc(%rsp)
  mov    %r13d,%r15d
  mov    %r14d,%r13d
  mov    %r12,%r14
L247:
  test   %r13d,%r13d
  js     L230
  cmpb   $0x0,0xae(%rsp)
  jne    L230
  mov    0x98(%rsp),%esi
  mov    %r14,%rdi
  mov    %r13d,%r14d
  test   %esi,%esi
  mov    %r15d,%esi
  setle  0xaf(%rsp)
  xor    %ebp,%ebp
  mov    %ebp,%r15d
  mov    %r13d,%ebp
L262:
  test   %ebp,%ebp
  js     L252
  cmpb   $0x0,0xaf(%rsp)
  jne    L252
  mov    0x48(%rsp),%ecx
  mov    %r15d,%r10d
  mov    %ebp,%ebx
  mov    %ebp,%r9d
  mov    %r14d,%r15d
  test   %ecx,%ecx
  setle  0xa8(%rsp)
  xor    %r12d,%r12d
  mov    %r12d,%ecx
L378:
  test   %ebx,%ebx
  js     L157
  cmpb   $0x0,0xa8(%rsp)
  jne    L157
  mov    0x4c(%rsp),%edx
  mov    %ebx,%r14d
  mov    %ebx,%r11d
  mov    %r15d,%ebx
  mov    %rdi,%r15
  test   %edx,%edx
  setle  0xa9(%rsp)
  xor    %ebp,%ebp
L219:
  test   %r14d,%r14d
  js     L4
  cmpb   $0x0,0xa9(%rsp)
  jne    L4
  mov    0x9c(%rsp),%eax
  mov    %r14d,%r12d
  test   %eax,%eax
  setle  0xaa(%rsp)
  xor    %r13d,%r13d
L17:
  test   %r12d,%r12d
  js     L186
  cmpb   $0x0,0xaa(%rsp)
  jne    L186
  mov    %r12d,%edx
  mov    %r15,%rdi
  mov    %ecx,0x30(%rsp)
  mov    %r10d,0x2c(%rsp)
  mov    %r11d,0x28(%rsp)
  mov    %r9d,0x24(%rsp)
  mov    %esi,0x20(%rsp)
  call   <ways>
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%r9d
  add    %eax,%r13d
  mov    0x58(%rsp),%rax
  mov    0x28(%rsp),%r11d
  mov    0x2c(%rsp),%r10d
  mov    0x30(%rsp),%ecx
  sub    (%rax),%r12d
  jne    L17
  add    $0x1,%r13d
L186:
  mov    0xa0(%rsp),%rax
  add    %r13d,%ebp
  sub    (%rax),%r14d
  jne    L219
  mov    %r15,%rdi
  add    $0x1,%ebp
  mov    %ebx,%r15d
  mov    %r11d,%ebx
L109:
  mov    0x50(%rsp),%rax
  add    %ebp,%ecx
  sub    (%rax),%ebx
  jne    L378
  mov    %ecx,%r12d
  mov    %r15d,%r14d
  mov    %r9d,%ebp
  mov    %r10d,%r15d
  add    $0x1,%r12d
L136:
  mov    0x40(%rsp),%rax
  add    %r12d,%r15d
  sub    (%rax),%ebp
  jne    L262
  mov    %r15d,%ebp
  mov    %r14d,%r13d
  mov    %esi,%r15d
  mov    %rdi,%r14
  add    $0x1,%ebp
L234:
  mov    0x90(%rsp),%rcx
  add    %ebp,0xc(%rsp)
  mov    0xc(%rsp),%eax
  sub    (%rcx),%r13d
  jne    L247
  mov    %r15d,%r13d
  mov    %eax,%r15d
  mov    %r14,%r12
  add    $0x1,%r15d
L69:
  mov    0x88(%rsp),%rbx
  add    %r15d,0x18(%rsp)
  mov    (%rbx),%edx
  sub    %edx,0x3c(%rsp)
  jne    L174
  mov    0x18(%rsp),%r11d
  mov    %r12,%r15
  mov    %r13d,%r14d
  add    $0x1,%r11d
L278:
  mov    0x78(%rsp),%rcx
  add    %r11d,0x14(%rsp)
  mov    (%rcx),%ebx
  sub    %ebx,0x38(%rsp)
  jne    L225
  mov    0x14(%rsp),%r9d
  mov    %r15,%rdi
  mov    %r14d,%esi
  add    $0x1,%r9d
L318:
  mov    0x70(%rsp),%rdx
  add    %r9d,0x10(%rsp)
  mov    (%rdx),%ecx
  sub    %ecx,0x34(%rsp)
  jne    L153
  mov    0x10(%rsp),%r11d
  add    $0x1,%r11d
  jmp    L27
  nopl   (%rax)
L4:
  mov    %r15,%rdi
  mov    %ebx,%r15d
  mov    %r11d,%ebx
  jmp    L109
L252:
  mov    %r14d,%r13d
  mov    %r15d,%ebp
  mov    %rdi,%r14
  mov    %esi,%r15d
  jmp    L234
L157:
  mov    %r15d,%r14d
  mov    %r9d,%ebp
  mov    %r10d,%r15d
  mov    %ecx,%r12d
  jmp    L136
L230:
  mov    %r15d,%r13d
  mov    %r14,%r12
  mov    0xc(%rsp),%r15d
  jmp    L69
L14:
  mov    0x18(%rsp),%r11d
  mov    %r12,%r15
  mov    %r13d,%r14d
  jmp    L278
L173:
  mov    0x14(%rsp),%r9d
  mov    %r15,%rdi
  mov    %r14d,%esi
  jmp    L318
L29:
  mov    0x10(%rsp),%r11d
L27:
  mov    0x60(%rsp),%rbx
  add    %r11d,0x1c(%rsp)
  mov    (%rbx),%edx
  sub    %edx,0x68(%rsp)
  je     L145
  jns    L11
  mov    0x1c(%rsp),%r8d
L201:
  add    $0xb8,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L145:
  mov    0x1c(%rsp),%r8d
  add    $0x1,%r8d
  jmp    L201
L42:
  mov    $0x1,%r8d
L199:
  mov    %r8d,%eax
  ret
L155:
  xor    %r8d,%r8d
  jmp    L199
```

assistant: ```c
int ways(int coins[], int m, int sum) {
  if (sum == 0) {
    return 1;
  }
  if (m <= 0 || sum < 0) {
    return 0;
  }
  return ways(coins, m - 1, sum) + ways(coins, m, sum - coins[m]);
}
```