#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ codeln(char *);
int /*<<< orphan*/ popIndent();
int /*<<< orphan*/ pushIndent();
int /*<<< orphan*/ vspace(int);
void legacyClean() {
  vspace(3);
  codeln("void setClean (void *pa, int useClean) {");
  pushIndent();
  codeln("struct b_preamp *pp = (struct b_preamp *) pa;");
  codeln("pp->isClean = useClean ? 1: 0;");
  popIndent();
  codeln("}");
  codeln("void setCleanCC (void *pa, unsigned char uc) {");
  pushIndent();
  codeln("setClean(pa, uc > 63 ? 0 : 1);");
  popIndent();
  codeln("}");
}


x86 assembly (clang, -O0):
<legacyClean>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1050 <vspace@plt>
lea    0xeab(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xec1(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee3(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1060 <popIndent@plt>
lea    0xeef(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee5(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xf01(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1060 <popIndent@plt>
lea    0xebd(%rip),%rdi
call   1040 <codeln@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<legacyClean>:
push   %rbx
mov    $0x3,%edi
call   1050 <vspace@plt>
lea    0xeae(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xec4(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee6(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1060 <popIndent@plt>
lea    0xef2(%rip),%rbx
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xee5(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xf01(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1060 <popIndent@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <codeln@plt>

LLVM IR (-O0):
@.str = [41 x i8] c"void setClean (void *pa, int useClean) {\00"
@.str.1 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
@.str.2 = [31 x i8] c"pp->isClean = useClean ? 1: 0;\00"
@.str.3 = [2 x i8] c"}\00"
@.str.4 = [47 x i8] c"void setCleanCC (void *pa, unsigned char uc) {\00"
@.str.5 = [31 x i8] c"setClean(pa, uc > 63 ? 0 : 1);\00"
define void @legacyClean() {
%1 = call i32 @vspace(i32 3)
%2 = call i32 @codeln(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @pushIndent()
%4 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @popIndent()
%7 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @codeln(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (...) @pushIndent()
%10 = call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (...) @popIndent()
%12 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [41 x i8] c"void setClean (void *pa, int useClean) {\00"
@.str.1 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
@.str.2 = [31 x i8] c"pp->isClean = useClean ? 1: 0;\00"
@.str.3 = [2 x i8] c"}\00"
@.str.4 = [47 x i8] c"void setCleanCC (void *pa, unsigned char uc) {\00"
@.str.5 = [31 x i8] c"setClean(pa, uc > 63 ? 0 : 1);\00"
define void @legacyClean() {
%1 = tail call i32 @vspace(i32 3)
%2 = tail call i32 @codeln(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @pushIndent()
%4 = tail call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (...) @popIndent()
%7 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @codeln(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 (...) @pushIndent()
%10 = tail call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 (...) @popIndent()
%12 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}