void softmixer_shutdown() {
  if (options_get_bool("Softmixer_SaveState"))
    softmixer_write_config();
  internal_logit("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/christophgysin/moc/refs/"
                 "heads/lyrics/softmixer.c",
                 66, __FUNCTION__, "Softmixer stopped");
}


x86 assembly (clang, -O0):
<softmixer_shutdown>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <options_get_bool@plt>
cmp    $0x0,%eax
je     1152 <softmixer_shutdown+0x22>
mov    $0x0,%al
call   1030 <softmixer_write_config@plt>
lea    0xebb(%rip),%rdi
mov    $0x42,%esi
lea    0xf3a(%rip),%rdx
lea    0xf46(%rip),%rcx
mov    $0x0,%al
call   1050 <internal_logit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<softmixer_shutdown>:
push   %rax
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1040 <options_get_bool@plt>
test   %eax,%eax
je     114a <softmixer_shutdown+0x1a>
xor    %eax,%eax
call   1030 <softmixer_write_config@plt>
lea    0xec3(%rip),%rdi
lea    0xf47(%rip),%rdx
lea    0xf53(%rip),%rcx
mov    $0x42,%esi
xor    %eax,%eax
pop    %r8
jmp    1050 <internal_logit@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"Softmixer_SaveState\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/christophgysin/moc/refs/heads/lyrics/softmixer.c\00"
@__FUNCTION__.softmixer_shutdown = [19 x i8] c"softmixer_shutdown\00"
@.str.2 = [18 x i8] c"Softmixer stopped\00"
define void @softmixer_shutdown() {
%1 = call i32 (i8*, ...) bitcast (i32 (...)* @options_get_bool to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @softmixer_write_config()
br label %5
5: ; preds = %3, %0
%6 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @internal_logit to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.softmixer_shutdown, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Softmixer_SaveState\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/christophgysin/moc/refs/heads/lyrics/softmixer.c\00"
@__FUNCTION__.softmixer_shutdown = [19 x i8] c"softmixer_shutdown\00"
@.str.2 = [18 x i8] c"Softmixer stopped\00"
define void @softmixer_shutdown() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @options_get_bool to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @softmixer_write_config()
br label %5
5: ; preds = %3, %0
%6 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @internal_logit to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.softmixer_shutdown, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
ret void
}