user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<getnext_recipt_mchlist>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x10(%rbp)
  lea    -0x24(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <card_gset2@plt>
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  je     L65
  mov    -0x24(%rbp),%edx
  lea    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <valOrd_gset2@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <del_gset2@plt>
  mov    -0x20(%rbp),%edx
  lea    -0xc(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <def_inc_ipt@plt>
  mov    -0xc(%rbp),%eax
  cmp    $0x1,%eax
  jne    L65
  mov    -0x20(%rbp),%edx
  lea    -0x24(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <card_inc_ipt@plt>
  jmp    L95
L5:
  mov    -0x24(%rbp),%edx
  mov    -0x20(%rbp),%ecx
  lea    -0x1c(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <valOrd_inc_ipt@plt>
  mov    -0x1c(%rbp),%edx
  lea    -0xc(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <member_gset1@plt>
  mov    -0xc(%rbp),%eax
  cmp    $0x1,%eax
  jne    L32
  mov    -0x1c(%rbp),%edx
  lea    -0xc(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <member_gset3@plt>
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  jne    L75
  mov    -0x1c(%rbp),%edx
  lea    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <add_gset3@plt>
  jmp    L75
L32:
  mov    -0x1c(%rbp),%edx
  lea    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <add_gset1@plt>
L75:
  mov    -0x10(%rbp),%eax
  cmp    $0x1,%eax
  jne    L51
  mov    -0x1c(%rbp),%edx
  lea    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <val_abs2conc@plt>
  mov    -0x18(%rbp),%edx
  lea    -0x1c(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <last_a2c@plt>
  mov    -0x1c(%rbp),%edx
  lea    -0x14(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <val_ext@plt>
  mov    -0x14(%rbp),%eax
  cmp    $0x3,%eax
  jne    L51
  mov    -0x1c(%rbp),%edx
  lea    -0xc(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <member_gset2@plt>
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  jne    L51
  mov    -0x1c(%rbp),%edx
  lea    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <add_gset2@plt>
L51:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x24(%rbp)
L95:
  mov    -0x24(%rbp),%eax
  test   %eax,%eax
  jle    L65
  mov    -0x10(%rbp),%eax
  cmp    $0x1,%eax
  je     L5
L65:
  mov    -0x10(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L43
  call   <__stack_chk_fail@plt>
L43:
  leave
  ret
```

assistant: ```c
void getnext_recipt_mchlist(rep) int *rep;
{
  int ll, cc1, cc2, ac, ex, rr, bb;
  rr = 1;
  card_gset2(&ll);
  if (ll != 0) {
    valOrd_gset2(&cc1, ll);
    del_gset2(cc1);
    def_inc_ipt(&bb, cc1);
    if (bb == 1) {
      card_inc_ipt(&ll, cc1);
      while (ll > 0 && rr == 1) {
        valOrd_inc_ipt(&cc2, cc1, ll);
        member_gset1(&bb, cc2);
        if (bb == 1) {
          member_gset3(&bb, cc2);
          if (bb == 0) {
            add_gset3(&rr, cc2);
          }
        } else {
          add_gset1(&rr, cc2);
        }
        if (rr == 1) {
          val_abs2conc(&ac, cc2);
          last_a2c(&cc2, ac);
          val_ext(&ex, cc2);
          if (ex == 3) {
            member_gset2(&bb, cc2);
            if (bb == 0) {
              add_gset2(&rr, cc2);
            }
          }
        }
        ll = ll - 1;
      }
    }
  }
  *rep = rr;
}
```