#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*/ internal_logit(char *, int, char *, char *);
scalar_t__ options_get_int(char *);
int /*<<< orphan*/ softmixer_write_config();
void softmixer_shutdown() {
  if (options_get_int("Softmixer_SaveState"))
    softmixer_write_config();
  internal_logit("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/ecthiender/mocp-git/refs/"
                 "heads/master/softmixer.c",
                 73, "UNKNOWN_FUNC", "Softmixer stopped");
}


x86 assembly (clang, -O0):
<softmixer_shutdown>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <options_get_int@plt>
cmp    $0x0,%rax
je     1151 <softmixer_shutdown+0x21>
mov    $0x0,%al
call   1030 <softmixer_write_config@plt>
lea    0xebc(%rip),%rdi
mov    $0x49,%esi
lea    0xf3c(%rip),%rdx
lea    0xf42(%rip),%rcx
call   1050 <internal_logit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<softmixer_shutdown>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <options_get_int@plt>
test   %rax,%rax
je     1149 <softmixer_shutdown+0x19>
xor    %eax,%eax
call   1030 <softmixer_write_config@plt>
lea    0xec4(%rip),%rdi
lea    0xf49(%rip),%rdx
lea    0xf4f(%rip),%rcx
mov    $0x49,%esi
pop    %rax
jmp    1050 <internal_logit@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"Softmixer_SaveState\00"
@.str.1 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ecthiender/mocp-git/refs/heads/master/softmixer.c\00"
@.str.2 = [13 x i8] c"UNKNOWN_FUNC\00"
@.str.3 = [18 x i8] c"Softmixer stopped\00"
define void @softmixer_shutdown() {
%1 = call i64 @options_get_int(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i64 %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 @internal_logit(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.1, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Softmixer_SaveState\00"
@.str.1 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ecthiender/mocp-git/refs/heads/master/softmixer.c\00"
@.str.2 = [13 x i8] c"UNKNOWN_FUNC\00"
@.str.3 = [18 x i8] c"Softmixer stopped\00"
define void @softmixer_shutdown() {
%1 = tail call i64 @options_get_int(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %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 @internal_logit(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.1, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
ret void
}