user: Translate the below assembly code into C programming language:

```asm
<getnext_recipt_mchlist>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x1,0x20(%rsp)
  lea    0xc(%rsp),%rdi
  call   <card_gset2@plt>
  mov    0xc(%rsp),%esi
  test   %esi,%esi
  jne    L21
L127:
  mov    0x20(%rsp),%eax
  mov    %eax,(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  ret
L21:
  lea    0x10(%rsp),%rdi
  mov    $0x0,%eax
  call   <valOrd_gset2@plt>
  mov    0x10(%rsp),%edi
  mov    $0x0,%eax
  call   <del_gset2@plt>
  lea    0x24(%rsp),%rdi
  mov    0x10(%rsp),%esi
  mov    $0x0,%eax
  call   <def_inc_ipt@plt>
  cmpl   $0x1,0x24(%rsp)
  jne    L127
  lea    0xc(%rsp),%rdi
  mov    0x10(%rsp),%esi
  mov    $0x0,%eax
  call   <card_inc_ipt@plt>
  mov    0xc(%rsp),%edx
  lea    0x14(%rsp),%rbp
  test   %edx,%edx
  jg     L41
  jmp    L127
L32:
  lea    0x24(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <member_gset3@plt>
  cmpl   $0x0,0x24(%rsp)
  je     L141
L72:
  cmpl   $0x1,0x20(%rsp)
  je     L91
L140:
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %edx,%edx
  jle    L127
L41:
  cmpl   $0x1,0x20(%rsp)
  jne    L127
  mov    0x10(%rsp),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <valOrd_inc_ipt@plt>
  lea    0x24(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <member_gset1@plt>
  cmpl   $0x1,0x24(%rsp)
  je     L32
  lea    0x20(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <add_gset1@plt>
  jmp    L72
L141:
  lea    0x20(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <add_gset3@plt>
  jmp    L72
L91:
  lea    0x18(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <val_abs2conc@plt>
  mov    0x18(%rsp),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <last_a2c@plt>
  lea    0x1c(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <val_ext@plt>
  cmpl   $0x3,0x1c(%rsp)
  jne    L140
  lea    0x24(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <member_gset2@plt>
  cmpl   $0x0,0x24(%rsp)
  jne    L140
  lea    0x20(%rsp),%rdi
  mov    0x14(%rsp),%esi
  mov    $0x0,%eax
  call   <add_gset2@plt>
  jmp    L140
L40:
  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;
}
```