#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*/ free(char *);
char *get_data_str();
int /*<<< orphan*/ iface_set_mixer_name(char *);
int /*<<< orphan*/ internal_logit(char *, int, char *, char *, char *);
int /*<<< orphan*/ send_int_to_srv(int);
int /*<<< orphan*/ update_mixer_value();
void update_mixer_name() {
  char *name;
  send_int_to_srv(0x2e);
  name = get_data_str();
  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/interface.c",
                 471, "UNKNOWN_FUNC", "Mixer name: %s", name);
  iface_set_mixer_name(name);
  free(name);
  update_mixer_value();
}


x86 assembly (clang, -O0):
<update_mixer_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x2e,%edi
call   1050 <send_int_to_srv@plt>
mov    $0x0,%al
call   1080 <get_data_str@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%r8
lea    0xe78(%rip),%rdi
mov    $0x1d7,%esi
lea    0xef8(%rip),%rdx
lea    0xefe(%rip),%rcx
call   1070 <internal_logit@plt>
mov    -0x8(%rbp),%rdi
call   1040 <iface_set_mixer_name@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1060 <update_mixer_value@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<update_mixer_name>:
push   %rbx
mov    $0x2e,%edi
call   1050 <send_int_to_srv@plt>
xor    %eax,%eax
call   1080 <get_data_str@plt>
mov    %rax,%rbx
lea    0xe84(%rip),%rdi
lea    0xf09(%rip),%rdx
lea    0xf0f(%rip),%rcx
mov    $0x1d7,%esi
mov    %rax,%r8
call   1070 <internal_logit@plt>
mov    %rbx,%rdi
call   1040 <iface_set_mixer_name@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <update_mixer_value@plt>

LLVM IR (-O0):
@.str = [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/interface.c\00"
@.str.1 = [13 x i8] c"UNKNOWN_FUNC\00"
@.str.2 = [15 x i8] c"Mixer name: %s\00"
define void @update_mixer_name() {
%1 = alloca i8*
%2 = call i32 @send_int_to_srv(i32 46)
%3 = call i8* (...) @get_data_str()
store i8* %3, i8** %1
%4 = load i8*, i8** %1
%5 = call i32 @internal_logit(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0), i32 471, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%6 = load i8*, i8** %1
%7 = call i32 @iface_set_mixer_name(i8* %6)
%8 = load i8*, i8** %1
%9 = call i32 @free(i8* %8)
%10 = call i32 (...) @update_mixer_value()
ret void
}

LLVM IR (-O2):
@.str = [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/interface.c\00"
@.str.1 = [13 x i8] c"UNKNOWN_FUNC\00"
@.str.2 = [15 x i8] c"Mixer name: %s\00"
define void @update_mixer_name() {
%1 = tail call i32 @send_int_to_srv(i32 46)
%2 = tail call i8* (...) @get_data_str()
%3 = tail call i32 @internal_logit(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0), i32 471, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%4 = tail call i32 @iface_set_mixer_name(i8* %2)
%5 = tail call i32 @free(i8* %2)
%6 = tail call i32 (...) @update_mixer_value()
ret void
}