#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*/ execute(char **);
int /*<<< orphan*/ printf(char *);
void AMixerRoutine() {
  char *amixer1[] = {"/usr/bin/amixer", "set", "Master", "80%", "unmute", NULL};
  char *amixer2[] = {"/usr/bin/amixer", "set", "PCM", "75%", "unmute", NULL};
  char *amixer3[] = {"/usr/bin/amixer", "set", "Front", "90%", "unmute", NULL};
  printf("amixer set Master 80%% unmute\n");
  execute(amixer1);
  printf("amixer set PCM    75%% unmute\n");
  execute(amixer2);
  printf("amixer set Front  90%% unmute\n");
  execute(amixer3);
}


x86 assembly (clang, -O0):
<AMixerRoutine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
lea    0xeae(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xeb3(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xeac(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xea8(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xea1(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
lea    0xe67(%rip),%rax
mov    %rax,-0x60(%rbp)
lea    0xe6c(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xe77(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xe70(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xe5a(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
lea    0xe1d(%rip),%rax
mov    %rax,-0x90(%rbp)
lea    0xe1f(%rip),%rax
mov    %rax,-0x88(%rbp)
lea    0xe2f(%rip),%rax
mov    %rax,-0x80(%rbp)
lea    0xe2a(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    0xe0a(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1050 <execute@plt>
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
lea    -0x60(%rbp),%rdi
call   1050 <execute@plt>
lea    0xe2c(%rip),%rdi
call   1030 <printf@plt>
lea    -0x90(%rbp),%rdi
call   1050 <execute@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AMixerRoutine>:
sub    $0x98,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
lea    0xec7(%rip),%rax
mov    %rax,0x60(%rsp)
lea    0xecb(%rip),%rcx
mov    %rcx,0x68(%rsp)
lea    0xec3(%rip),%rdx
mov    %rdx,0x70(%rsp)
lea    0xebe(%rip),%rdx
mov    %rdx,0x78(%rsp)
lea    0xeb6(%rip),%rdx
mov    %rdx,0x80(%rsp)
movaps %xmm0,0x50(%rsp)
mov    %rax,0x30(%rsp)
mov    %rcx,0x38(%rsp)
lea    0xe9f(%rip),%rsi
mov    %rsi,0x40(%rsp)
lea    0xe97(%rip),%rsi
mov    %rsi,0x48(%rsp)
mov    %rdx,0x50(%rsp)
movaps %xmm0,0x20(%rsp)
mov    %rax,(%rsp)
mov    %rcx,0x8(%rsp)
lea    0xe7c(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe76(%rip),%rax
mov    %rax,0x18(%rsp)
mov    %rdx,0x20(%rsp)
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
lea    0x60(%rsp),%rdi
call   1040 <execute@plt>
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
lea    0x30(%rsp),%rdi
call   1040 <execute@plt>
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
mov    %rsp,%rdi
call   1040 <execute@plt>
add    $0x98,%rsp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"/usr/bin/amixer\00"
@.str.1 = [4 x i8] c"set\00"
@.str.2 = [7 x i8] c"Master\00"
@.str.3 = [4 x i8] c"80%\00"
@.str.4 = [7 x i8] c"unmute\00"
@.str.5 = [4 x i8] c"PCM\00"
@.str.6 = [4 x i8] c"75%\00"
@.str.7 = [6 x i8] c"Front\00"
@.str.8 = [4 x i8] c"90%\00"
@.str.9 = [31 x i8] c"amixer set Master 80%% unmute\0A\00"
@.str.10 = [31 x i8] c"amixer set PCM 75%% unmute\0A\00"
@.str.11 = [31 x i8] c"amixer set Front 90%% unmute\0A\00"
define void @AMixerRoutine() {
%1 = alloca [6 x i8*]
%2 = alloca [6 x i8*]
%3 = alloca [6 x i8*]
%4 = bitcast [6 x i8*]* %1 to i8*
%5 = bitcast i8* %4 to [6 x i8*]*
%6 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i32 0, i32 0), i8** %6
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8** %9
%10 = getelementptr inbounds [6 x i8*], [6 x i8*]* %5, i32 0, i32 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8** %10
%11 = bitcast [6 x i8*]* %2 to i8*
%12 = bitcast i8* %11 to [6 x i8*]*
%13 = getelementptr inbounds [6 x i8*], [6 x i8*]* %12, i32 0, i32 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i32 0, i32 0), i8** %13
%14 = getelementptr inbounds [6 x i8*], [6 x i8*]* %12, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8** %14
%15 = getelementptr inbounds [6 x i8*], [6 x i8*]* %12, i32 0, i32 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8** %15
%16 = getelementptr inbounds [6 x i8*], [6 x i8*]* %12, i32 0, i32 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8** %16
%17 = getelementptr inbounds [6 x i8*], [6 x i8*]* %12, i32 0, i32 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8** %17
%18 = bitcast [6 x i8*]* %3 to i8*
%19 = bitcast i8* %18 to [6 x i8*]*
%20 = getelementptr inbounds [6 x i8*], [6 x i8*]* %19, i32 0, i32 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i32 0, i32 0), i8** %20
%21 = getelementptr inbounds [6 x i8*], [6 x i8*]* %19, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8** %21
%22 = getelementptr inbounds [6 x i8*], [6 x i8*]* %19, i32 0, i32 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8** %22
%23 = getelementptr inbounds [6 x i8*], [6 x i8*]* %19, i32 0, i32 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8** %23
%24 = getelementptr inbounds [6 x i8*], [6 x i8*]* %19, i32 0, i32 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8** %24
%25 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%26 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 0
%27 = call i32 @execute(i8** %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%29 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 0
%30 = call i32 @execute(i8** %29)
%31 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%32 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%33 = call i32 @execute(i8** %32)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"/usr/bin/amixer\00"
@.str.1 = [4 x i8] c"set\00"
@.str.2 = [7 x i8] c"Master\00"
@.str.3 = [4 x i8] c"80%\00"
@.str.4 = [7 x i8] c"unmute\00"
@.str.5 = [4 x i8] c"PCM\00"
@.str.6 = [4 x i8] c"75%\00"
@.str.7 = [6 x i8] c"Front\00"
@.str.8 = [4 x i8] c"90%\00"
@.str.9 = [31 x i8] c"amixer set Master 80%% unmute\0A\00"
@.str.10 = [31 x i8] c"amixer set PCM 75%% unmute\0A\00"
@.str.11 = [31 x i8] c"amixer set Front 90%% unmute\0A\00"
define void @AMixerRoutine() {
%1 = alloca [6 x i8*]
%2 = alloca [6 x i8*]
%3 = alloca [6 x i8*]
%4 = bitcast [6 x i8*]* %1 to i8*
%5 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 4
%6 = bitcast i8** %5 to i8*
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8** %11
%12 = bitcast [6 x i8*]* %2 to i8*
%13 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 4
%14 = bitcast i8** %13 to i8*
%15 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [6 x i8*], [6 x i8*]* %2, i64 0, i64 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8** %19
%20 = bitcast [6 x i8*]* %3 to i8*
%21 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 4
%22 = bitcast i8** %21 to i8*
%23 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8** %26
%27 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8** %27
%28 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%29 = call i32 @execute(i8** %7)
%30 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%31 = call i32 @execute(i8** %15)
%32 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%33 = call i32 @execute(i8** %23)
ret void
}