user: 请将以下的汇编代码转换成C语言代码:

```asm
<getnext_recipt_mchlist>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rbp
  movl   $0x1,0x20(%rsp)
  mov    %rbp,%rdi
  call   <card_gset2@plt>
  mov    0xc(%rsp),%esi
  test   %esi,%esi
  jne    L84
L93:
  mov    0x20(%rsp),%eax
L46:
  mov    %eax,(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L95
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nop
L84:
  lea    0x10(%rsp),%rdi
  xor    %eax,%eax
  lea    0x24(%rsp),%r12
  call   <valOrd_gset2@plt>
  mov    0x10(%rsp),%edi
  xor    %eax,%eax
  call   <del_gset2@plt>
  mov    0x10(%rsp),%esi
  xor    %eax,%eax
  mov    %r12,%rdi
  call   <def_inc_ipt@plt>
  cmpl   $0x1,0x24(%rsp)
  jne    L93
  mov    0x10(%rsp),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    0x14(%rsp),%rbp
  call   <card_inc_ipt@plt>
  mov    0xc(%rsp),%edx
  mov    0x20(%rsp),%eax
  test   %edx,%edx
  jg     L125
  jmp    L46
  nopw   0x0(%rax,%rax,1)
L115:
  mov    0x14(%rsp),%esi
  lea    0x20(%rsp),%rdi
  xor    %eax,%eax
  call   <add_gset1@plt>
L71:
  mov    0x20(%rsp),%eax
  cmp    $0x1,%eax
  je     L22
L37:
  mov    0xc(%rsp),%ecx
  lea    -0x1(%rcx),%edx
  mov    %edx,0xc(%rsp)
  test   %edx,%edx
  jle    L46
L125:
  cmp    $0x1,%eax
  jne    L46
  mov    0x10(%rsp),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <valOrd_inc_ipt@plt>
  mov    0x14(%rsp),%esi
  xor    %eax,%eax
  mov    %r12,%rdi
  call   <member_gset1@plt>
  cmpl   $0x1,0x24(%rsp)
  jne    L115
  mov    0x14(%rsp),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <member_gset3@plt>
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  jne    L71
  mov    0x14(%rsp),%esi
  lea    0x20(%rsp),%rdi
  xor    %eax,%eax
  call   <add_gset3@plt>
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L22:
  mov    0x14(%rsp),%esi
  lea    0x18(%rsp),%rdi
  xor    %eax,%eax
  call   <val_abs2conc@plt>
  mov    0x18(%rsp),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <last_a2c@plt>
  mov    0x14(%rsp),%esi
  xor    %eax,%eax
  lea    0x1c(%rsp),%rdi
  call   <val_ext@plt>
  cmpl   $0x3,0x1c(%rsp)
  je     L1
L9:
  mov    0x20(%rsp),%eax
  jmp    L37
  xchg   %ax,%ax
L1:
  mov    0x14(%rsp),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <member_gset2@plt>
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jne    L9
  mov    0x14(%rsp),%esi
  lea    0x20(%rsp),%rdi
  xor    %eax,%eax
  call   <add_gset2@plt>
  jmp    L9
L95:
  call   <__stack_chk_fail@plt>
```

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;
}
```