#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*/ commentln(char *);
int /*<<< orphan*/ popIndent();
int /*<<< orphan*/ pushIndent();
void cfg_biased() {
  commentln("Computes the constants for transfer curve");
  codeln("void cfg_biased (void *pa, float new_bias) {");
  pushIndent();
  codeln("struct b_preamp *pp = (struct b_preamp *) pa;");
  codeln("if (0.0 < new_bias) {");
  pushIndent();
  codeln("pp->biasBase = new_bias;");
  commentln("If power sag emulation is enabled bias is set there.");
  codeln("pp->bias = pp->biasBase;");
  codeln("pp->norm = 1.0 - (1.0 / (1.0 + (pp->bias * pp->bias)));");
  popIndent();
  codeln("}");
  popIndent();
  codeln("}");
}


x86 assembly (clang, -O0):
<cfg_biased>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1050 <commentln@plt>
lea    0xed3(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xeed(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf0f(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xf12(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf1f(%rip),%rdi
call   1050 <commentln@plt>
lea    0xf48(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf55(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1060 <popIndent@plt>
lea    0xf7a(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1060 <popIndent@plt>
lea    0xf67(%rip),%rdi
call   1040 <codeln@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cfg_biased>:
push   %rbx
lea    0xeb8(%rip),%rdi
call   1050 <commentln@plt>
lea    0xed6(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xef0(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf12(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xf15(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf22(%rip),%rdi
call   1050 <commentln@plt>
lea    0xf4b(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf58(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1060 <popIndent@plt>
lea    0xf7d(%rip),%rbx
mov    %rbx,%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 = [42 x i8] c"Computes the constants for transfer curve\00"
@.str.1 = [45 x i8] c"void cfg_biased (void *pa, float new_bias) {\00"
@.str.2 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
@.str.3 = [22 x i8] c"if (0.0 < new_bias) {\00"
@.str.4 = [25 x i8] c"pp->biasBase = new_bias;\00"
@.str.5 = [53 x i8] c"If power sag emulation is enabled bias is set there.\00"
@.str.6 = [25 x i8] c"pp->bias = pp->biasBase;\00"
@.str.7 = [56 x i8] c"pp->norm = 1.0 - (1.0 / (1.0 + (pp->bias * pp->bias)));\00"
@.str.8 = [2 x i8] c"}\00"
define void @cfg_biased() {
%1 = call i32 @commentln(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @codeln(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @pushIndent()
%4 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @codeln(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (...) @pushIndent()
%7 = call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @commentln(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @codeln(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 (...) @popIndent()
%12 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (...) @popIndent()
%14 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"Computes the constants for transfer curve\00"
@.str.1 = [45 x i8] c"void cfg_biased (void *pa, float new_bias) {\00"
@.str.2 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
@.str.3 = [22 x i8] c"if (0.0 < new_bias) {\00"
@.str.4 = [25 x i8] c"pp->biasBase = new_bias;\00"
@.str.5 = [53 x i8] c"If power sag emulation is enabled bias is set there.\00"
@.str.6 = [25 x i8] c"pp->bias = pp->biasBase;\00"
@.str.7 = [56 x i8] c"pp->norm = 1.0 - (1.0 / (1.0 + (pp->bias * pp->bias)));\00"
@.str.8 = [2 x i8] c"}\00"
define void @cfg_biased() {
%1 = tail call i32 @commentln(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @codeln(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @pushIndent()
%4 = tail call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @codeln(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (...) @pushIndent()
%7 = tail call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @commentln(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @codeln(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 (...) @popIndent()
%12 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 (...) @popIndent()
%14 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}