void get_recipt_mchlist(rep, cc) int *rep, cc;
{
  int rr, ll;
  clear_gset1();
  clear_gset2();
  clear_gset3();
  add_gset2(&rr, cc);
  ll = 1;
  while (ll > 0 && rr == 1) {
    getnext_recipt_mchlist(&rr);
    card_gset2(&ll);
  }
  *rep = rr;
}


x86 assembly (clang, -O0):
<get_recipt_mchlist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <clear_gset1@plt>
mov    $0x0,%al
call   1070 <clear_gset2@plt>
mov    $0x0,%al
call   1040 <clear_gset3@plt>
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1080 <add_gset2@plt>
movl   $0x1,-0x14(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x15(%rbp)
jle    11b2 <get_recipt_mchlist+0x52>
cmpl   $0x1,-0x10(%rbp)
sete   %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    11c2 <get_recipt_mchlist+0x62>
jmp    11dd <get_recipt_mchlist+0x7d>
lea    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <getnext_recipt_mchlist@plt>
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   1060 <card_gset2@plt>
jmp    1199 <get_recipt_mchlist+0x39>
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_recipt_mchlist>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %esi,%ebx
mov    %rdi,%r14
xor    %eax,%eax
call   1030 <clear_gset1@plt>
xor    %eax,%eax
call   1070 <clear_gset2@plt>
xor    %eax,%eax
call   1040 <clear_gset3@plt>
lea    0x8(%rsp),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <add_gset2@plt>
movl   $0x1,0xc(%rsp)
mov    0x8(%rsp),%eax
cmp    $0x1,%eax
jne    11d4 <get_recipt_mchlist+0x74>
lea    0x8(%rsp),%r15
lea    0xc(%rsp),%rbx
nopl   0x0(%rax)
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <getnext_recipt_mchlist@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <card_gset2@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x8(%rsp),%eax
jle    11d4 <get_recipt_mchlist+0x74>
cmp    $0x1,%eax
je     11b0 <get_recipt_mchlist+0x50>
mov    %eax,(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @get_recipt_mchlist(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%7 = call i32 (...) @clear_gset1()
%8 = call i32 (...) @clear_gset2()
%9 = call i32 (...) @clear_gset3()
%10 = load i32, i32* %4
%11 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset2 to i32 (i32*, i32, ...)*)(i32* %5, i32 %10)
store i32 1, i32* %6
br label %12
12: ; preds = %20, %2
%13 = load i32, i32* %6
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, i32* %5
%17 = icmp eq i32 %16, 1
br label %18
18: ; preds = %15, %12
%19 = phi i1 [ false, %12 ], [ %17, %15 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = call i32 (i32*, ...) bitcast (i32 (...)* @getnext_recipt_mchlist to i32 (i32*, ...)*)(i32* %5)
%22 = call i32 (i32*, ...) bitcast (i32 (...)* @card_gset2 to i32 (i32*, ...)*)(i32* %6)
br label %12
23: ; preds = %18
%24 = load i32, i32* %5
%25 = load i32*, i32** %3
store i32 %24, i32* %25
ret void
}

LLVM IR (-O2):
define void @get_recipt_mchlist(i32* nocapture writeonly %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = tail call i32 (...) @clear_gset1()
%8 = tail call i32 (...) @clear_gset2()
%9 = tail call i32 (...) @clear_gset3()
%10 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add_gset2 to i32 (i32*, i32, ...)*)(i32* %3, i32 %1)
store i32 1, i32* %4
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %21
13: ; preds = %2, %13
%14 = call i32 (i32*, ...) bitcast (i32 (...)* @getnext_recipt_mchlist to i32 (i32*, ...)*)(i32* %3)
%15 = call i32 (i32*, ...) bitcast (i32 (...)* @card_gset2 to i32 (i32*, ...)*)(i32* %4)
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 0
%18 = load i32, i32* %3
%19 = icmp eq i32 %18, 1
%20 = select i1 %17, i1 %19, i1 false
br i1 %20, label %13, label %21
21: ; preds = %13, %2
%22 = phi i32 [ %11, %2 ], [ %18, %13 ]
store i32 %22, i32* %0
ret void
}