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


x86 assembly (clang, -O0):
<getnext_recipt_mchlist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0x20(%rbp)
lea    -0xc(%rbp),%rdi
mov    $0x0,%al
call   1090 <card_gset2@plt>
cmpl   $0x0,-0xc(%rbp)
je     1367 <getnext_recipt_mchlist+0x177>
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1030 <valOrd_gset2@plt>
mov    -0x10(%rbp),%edi
mov    $0x0,%al
call   1080 <del_gset2@plt>
mov    -0x10(%rbp),%esi
lea    -0x24(%rbp),%rdi
mov    $0x0,%al
call   1040 <def_inc_ipt@plt>
cmpl   $0x1,-0x24(%rbp)
jne    1362 <getnext_recipt_mchlist+0x172>
mov    -0x10(%rbp),%esi
lea    -0xc(%rbp),%rdi
mov    $0x0,%al
call   1060 <card_inc_ipt@plt>
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x25(%rbp)
jle    126f <getnext_recipt_mchlist+0x7f>
cmpl   $0x1,-0x20(%rbp)
sete   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    127f <getnext_recipt_mchlist+0x8f>
jmp    135d <getnext_recipt_mchlist+0x16d>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   10b0 <valOrd_inc_ipt@plt>
mov    -0x14(%rbp),%esi
lea    -0x24(%rbp),%rdi
mov    $0x0,%al
call   10e0 <member_gset1@plt>
cmpl   $0x1,-0x24(%rbp)
jne    12d3 <getnext_recipt_mchlist+0xe3>
mov    -0x14(%rbp),%esi
lea    -0x24(%rbp),%rdi
mov    $0x0,%al
call   10f0 <member_gset3@plt>
cmpl   $0x0,-0x24(%rbp)
jne    12ce <getnext_recipt_mchlist+0xde>
mov    -0x14(%rbp),%esi
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1070 <add_gset3@plt>
jmp    12e1 <getnext_recipt_mchlist+0xf1>
mov    -0x14(%rbp),%esi
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1100 <add_gset1@plt>
cmpl   $0x1,-0x20(%rbp)
jne    134f <getnext_recipt_mchlist+0x15f>
mov    -0x14(%rbp),%esi
lea    -0x18(%rbp),%rdi
mov    $0x0,%al
call   10d0 <val_abs2conc@plt>
mov    -0x18(%rbp),%esi
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   10a0 <last_a2c@plt>
mov    -0x14(%rbp),%esi
lea    -0x1c(%rbp),%rdi
mov    $0x0,%al
call   10c0 <val_ext@plt>
cmpl   $0x3,-0x1c(%rbp)
jne    134a <getnext_recipt_mchlist+0x15a>
mov    -0x14(%rbp),%esi
lea    -0x24(%rbp),%rdi
mov    $0x0,%al
call   1050 <member_gset2@plt>
cmpl   $0x0,-0x24(%rbp)
jne    1345 <getnext_recipt_mchlist+0x155>
mov    -0x14(%rbp),%esi
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1110 <add_gset2@plt>
jmp    134a <getnext_recipt_mchlist+0x15a>
jmp    134f <getnext_recipt_mchlist+0x15f>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1256 <getnext_recipt_mchlist+0x66>
jmp    1362 <getnext_recipt_mchlist+0x172>
jmp    1367 <getnext_recipt_mchlist+0x177>
mov    -0x20(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getnext_recipt_mchlist>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%rbx
movl   $0x1,0x14(%rsp)
lea    0xc(%rsp),%rdi
xor    %eax,%eax
call   1090 <card_gset2@plt>
mov    0xc(%rsp),%esi
mov    $0x1,%r14d
test   %esi,%esi
mov    %rbx,0x20(%rsp)
je     137f <getnext_recipt_mchlist+0x18f>
lea    0x10(%rsp),%rdi
xor    %eax,%eax
call   1030 <valOrd_gset2@plt>
mov    0x10(%rsp),%edi
xor    %eax,%eax
call   1080 <del_gset2@plt>
mov    0x10(%rsp),%esi
lea    0x8(%rsp),%rdi
xor    %eax,%eax
call   1040 <def_inc_ipt@plt>
cmpl   $0x1,0x8(%rsp)
jne    137f <getnext_recipt_mchlist+0x18f>
mov    0x10(%rsp),%esi
lea    0xc(%rsp),%rdi
xor    %eax,%eax
call   1060 <card_inc_ipt@plt>
mov    0xc(%rsp),%edx
test   %edx,%edx
jle    137f <getnext_recipt_mchlist+0x18f>
lea    0x4(%rsp),%r15
lea    0x8(%rsp),%rbx
lea    0x14(%rsp),%r12
lea    0x1c(%rsp),%r13
lea    0x18(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x10(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10b0 <valOrd_inc_ipt@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   10e0 <member_gset1@plt>
cmpl   $0x1,0x8(%rsp)
mov    0x4(%rsp),%esi
jne    12f0 <getnext_recipt_mchlist+0x100>
mov    %rbx,%rdi
xor    %eax,%eax
call   10f0 <member_gset3@plt>
cmpl   $0x0,0x8(%rsp)
jne    12fa <getnext_recipt_mchlist+0x10a>
mov    0x4(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <add_gset3@plt>
jmp    12fa <getnext_recipt_mchlist+0x10a>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
xor    %eax,%eax
call   1100 <add_gset1@plt>
cmpl   $0x1,0x14(%rsp)
jne    1360 <getnext_recipt_mchlist+0x170>
mov    0x4(%rsp),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   10d0 <val_abs2conc@plt>
mov    0x1c(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10a0 <last_a2c@plt>
mov    0x4(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   10c0 <val_ext@plt>
cmpl   $0x3,0x18(%rsp)
jne    1360 <getnext_recipt_mchlist+0x170>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <member_gset2@plt>
cmpl   $0x0,0x8(%rsp)
jne    1360 <getnext_recipt_mchlist+0x170>
mov    0x4(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1110 <add_gset2@plt>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0xc(%rsp),%eax
lea    -0x1(%rax),%edx
mov    %edx,0xc(%rsp)
mov    0x14(%rsp),%r14d
cmp    $0x2,%eax
jl     137f <getnext_recipt_mchlist+0x18f>
cmp    $0x1,%r14d
je     12a0 <getnext_recipt_mchlist+0xb0>
mov    0x20(%rsp),%rax
mov    %r14d,(%rax)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @getnext_recipt_mchlist(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32* %0, i32** %2
store i32 1, i32* %8
%10 = call i32 (i32*, ...) bitcast (i32 (...)* @card_gset2 to i32 (i32*, ...)*)(i32* %3)
%11 = load i32, i32* %3
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %80
13: ; preds = %1
%14 = load i32, i32* %3
%15 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @valOrd_gset2 to i32 (i32*, i32, ...)*)(i32* %4, i32 %14)
%16 = load i32, i32* %4
%17 = call i32 (i32, ...) bitcast (i32 (...)* @del_gset2 to i32 (i32, ...)*)(i32 %16)
%18 = load i32, i32* %4
%19 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @def_inc_ipt to i32 (i32*, i32, ...)*)(i32* %9, i32 %18)
%20 = load i32, i32* %9
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %79
22: ; preds = %13
%23 = load i32, i32* %4
%24 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @card_inc_ipt to i32 (i32*, i32, ...)*)(i32* %3, i32 %23)
br label %25
25: ; preds = %75, %22
%26 = load i32, i32* %3
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, i32* %8
%30 = icmp eq i32 %29, 1
br label %31
31: ; preds = %28, %25
%32 = phi i1 [ false, %25 ], [ %30, %28 ]
br i1 %32, label %33, label %78
33: ; preds = %31
%34 = load i32, i32* %4
%35 = load i32, i32* %3
%36 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valOrd_inc_ipt to i32 (i32*, i32, i32, ...)*)(i32* %5, i32 %34, i32 %35)
%37 = load i32, i32* %5
%38 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @member_gset1 to i32 (i32*, i32, ...)*)(i32* %9, i32 %37)
%39 = load i32, i32* %9
%40 = icmp eq i32 %39, 1
br i1 %40, label %41, label %50
41: ; preds = %33
%42 = load i32, i32* %5
%43 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @member_gset3 to i32 (i32*, i32, ...)*)(i32* %9, i32 %42)
%44 = load i32, i32* %9
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %41
%47 = load i32, i32* %5
%48 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset3 to i32 (i32*, i32, ...)*)(i32* %8, i32 %47)
br label %49
49: ; preds = %46, %41
br label %53
50: ; preds = %33
%51 = load i32, i32* %5
%52 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset1 to i32 (i32*, i32, ...)*)(i32* %8, i32 %51)
br label %53
53: ; preds = %50, %49
%54 = load i32, i32* %8
%55 = icmp eq i32 %54, 1
br i1 %55, label %56, label %75
56: ; preds = %53
%57 = load i32, i32* %5
%58 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_abs2conc to i32 (i32*, i32, ...)*)(i32* %6, i32 %57)
%59 = load i32, i32* %6
%60 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_a2c to i32 (i32*, i32, ...)*)(i32* %5, i32 %59)
%61 = load i32, i32* %5
%62 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_ext to i32 (i32*, i32, ...)*)(i32* %7, i32 %61)
%63 = load i32, i32* %7
%64 = icmp eq i32 %63, 3
br i1 %64, label %65, label %74
65: ; preds = %56
%66 = load i32, i32* %5
%67 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @member_gset2 to i32 (i32*, i32, ...)*)(i32* %9, i32 %66)
%68 = load i32, i32* %9
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = load i32, i32* %5
%72 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset2 to i32 (i32*, i32, ...)*)(i32* %8, i32 %71)
br label %73
73: ; preds = %70, %65
br label %74
74: ; preds = %73, %56
br label %75
75: ; preds = %74, %53
%76 = load i32, i32* %3
%77 = sub nsw i32 %76, 1
store i32 %77, i32* %3
br label %25
78: ; preds = %31
br label %79
79: ; preds = %78, %13
br label %80
80: ; preds = %79, %1
%81 = load i32, i32* %8
%82 = load i32*, i32** %2
store i32 %81, i32* %82
ret void
}

LLVM IR (-O2):
define void @getnext_recipt_mchlist(i32* nocapture writeonly %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = bitcast i32* %2 to i8*
%10 = bitcast i32* %3 to i8*
%11 = bitcast i32* %4 to i8*
%12 = bitcast i32* %5 to i8*
%13 = bitcast i32* %6 to i8*
%14 = bitcast i32* %7 to i8*
%15 = bitcast i32* %8 to i8*
store i32 1, i32* %7
%16 = call i32 (i32*, ...) bitcast (i32 (...)* @card_gset2 to i32 (i32*, ...)*)(i32* %2)
%17 = load i32, i32* %2
%18 = icmp eq i32 %17, 0
br i1 %18, label %77, label %19
19: ; preds = %1
%20 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @valOrd_gset2 to i32 (i32*, i32, ...)*)(i32* %3, i32 %17)
%21 = load i32, i32* %3
%22 = call i32 (i32, ...) bitcast (i32 (...)* @del_gset2 to i32 (i32, ...)*)(i32 %21)
%23 = load i32, i32* %3
%24 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @def_inc_ipt to i32 (i32*, i32, ...)*)(i32* %8, i32 %23)
%25 = load i32, i32* %8
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %77
27: ; preds = %19
%28 = load i32, i32* %3
%29 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @card_inc_ipt to i32 (i32*, i32, ...)*)(i32* %2, i32 %28)
%30 = load i32, i32* %2
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %77
32: ; preds = %27, %70
%33 = phi i32 [ %72, %70 ], [ %30, %27 ]
%34 = load i32, i32* %3
%35 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valOrd_inc_ipt to i32 (i32*, i32, i32, ...)*)(i32* %4, i32 %34, i32 %33)
%36 = load i32, i32* %4
%37 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @member_gset1 to i32 (i32*, i32, ...)*)(i32* %8, i32 %36)
%38 = load i32, i32* %8
%39 = icmp eq i32 %38, 1
%40 = load i32, i32* %4
br i1 %39, label %41, label %48
41: ; preds = %32
%42 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @member_gset3 to i32 (i32*, i32, ...)*)(i32* %8, i32 %40)
%43 = load i32, i32* %8
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load i32, i32* %4
%47 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset3 to i32 (i32*, i32, ...)*)(i32* %7, i32 %46)
br label %50
48: ; preds = %32
%49 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset1 to i32 (i32*, i32, ...)*)(i32* %7, i32 %40)
br label %50
50: ; preds = %41, %45, %48
%51 = load i32, i32* %7
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %70
53: ; preds = %50
%54 = load i32, i32* %4
%55 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_abs2conc to i32 (i32*, i32, ...)*)(i32* %5, i32 %54)
%56 = load i32, i32* %5
%57 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_a2c to i32 (i32*, i32, ...)*)(i32* %4, i32 %56)
%58 = load i32, i32* %4
%59 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_ext to i32 (i32*, i32, ...)*)(i32* %6, i32 %58)
%60 = load i32, i32* %6
%61 = icmp eq i32 %60, 3
br i1 %61, label %62, label %70
62: ; preds = %53
%63 = load i32, i32* %4
%64 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @member_gset2 to i32 (i32*, i32, ...)*)(i32* %8, i32 %63)
%65 = load i32, i32* %8
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %62
%68 = load i32, i32* %4
%69 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset2 to i32 (i32*, i32, ...)*)(i32* %7, i32 %68)
br label %70
70: ; preds = %53, %67, %62, %50
%71 = load i32, i32* %2
%72 = add nsw i32 %71, -1
store i32 %72, i32* %2
%73 = icmp sgt i32 %71, 1
%74 = load i32, i32* %7
%75 = icmp eq i32 %74, 1
%76 = select i1 %73, i1 %75, i1 false
br i1 %76, label %32, label %77
77: ; preds = %70, %27, %19, %1
%78 = phi i32 [ 1, %27 ], [ 1, %19 ], [ 1, %1 ], [ %74, %70 ]
store i32 %78, i32* %0
ret void
}