user: 下面的汇编指令对应的C源代码是什么:

```asm
<spread_success>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  mov    %r9d,-0x38(%rbp)
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jge    L69
  mov    -0x28(%rbp),%rax
  mov    -0x38(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  mov    -0x18(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    -0x28(%rbp),%rax
  cmp    -0x30(%rbp),%rax
  jne    L48
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x1,%eax
  jmp    L95
L48:
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L39
L69:
  mov    -0x28(%rbp),%rax
  mov    -0x34(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jne    L1
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  mov    -0x18(%rbp),%rcx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
L1:
  mov    -0x28(%rbp),%rax
  cmp    -0x30(%rbp),%rax
  jne    L134
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x1,%eax
  jmp    L95
L134:
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jle    L16
  mov    -0x38(%rbp),%eax
  sub    -0x34(%rbp),%eax
  mov    %eax,%r8d
  mov    -0x28(%rbp),%rax
  lea    0x4(%rax),%rdi
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    %r8d,%r9d
  mov    %ecx,%r8d
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <spread_success>
  test   %eax,%eax
  jne    L16
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L95
L16:
  mov    -0x34(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L39
L14:
  mov    -0x28(%rbp),%rax
  mov    -0x4(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%r8d
  mov    -0x28(%rbp),%rax
  lea    0x4(%rax),%rdi
  mov    -0x4(%rbp),%ecx
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    %r8d,%r9d
  mov    %ecx,%r8d
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <spread_success>
  test   %eax,%eax
  jne    L80
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x1,%eax
  jmp    L95
L80:
  subl   $0x1,-0x4(%rbp)
L39:
  cmpl   $0x0,-0x4(%rbp)
  jg     L14
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    $0x1,%eax
L95:
  leave
  ret
```

assistant: ```c
int spread_success(void (*report_pattern)(int *base, int *lim), int *base, int *next, int *lim, int max, int n) {
  int i;
  if (n < max) {
    *next = n;
    report_pattern(base, lim);
    if (next == lim) {
      *next = 0;
      return 1;
    }
    i = n - 1;
  } else {
    *next = max;
    if (n == max)
      report_pattern(base, lim);
    if (next == lim) {
      *next = 0;
      return 1;
    }
    if (n > max && !spread_success(report_pattern, base, next + 1, lim, max, n - max)) {
      *next = 0;
      return 0;
    }
    i = max - 1;
  }
  for (; i > 0; i--) {
    *next = i;
    if (!spread_success(report_pattern, base, next + 1, lim, i, n - i)) {
      *next = 0;
      return 1;
    }
  }
  *next = 0;
  return 1;
}
```