#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*/ mgrSendMessageToLedController(char *);
int /*<<< orphan*/ mgrSendMessageToSndModule(int, char *, int /*<<< orphan*/ *);
int mgrPlayStart(int code, void *arg1, void *arg2) {
  ;
  mgrSendMessageToLedController("/led/red/off");
  mgrSendMessageToLedController("/led/green/on");
  mgrSendMessageToLedController("/led/orange/on");
  mgrSendMessageToSndModule((8003), "/player/playback/start", NULL);
  return 0;
}


x86 assembly (clang, -O0):
<mgrPlayStart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xec6(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xec7(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xec9(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
mov    $0x1f43,%edi
lea    0xec7(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <mgrSendMessageToSndModule@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mgrPlayStart>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xed9(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xedb(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xede(%rip),%rsi
mov    $0x1f43,%edi
xor    %edx,%edx
call   1030 <mgrSendMessageToSndModule@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"/led/red/off\00"
@.str.1 = [14 x i8] c"/led/green/on\00"
@.str.2 = [15 x i8] c"/led/orange/on\00"
@.str.3 = [23 x i8] c"/player/playback/start\00"
define i32 @mgrPlayStart(i32 %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @mgrSendMessageToSndModule(i32 8003, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32* null)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"/led/red/off\00"
@.str.1 = [14 x i8] c"/led/green/on\00"
@.str.2 = [15 x i8] c"/led/orange/on\00"
@.str.3 = [23 x i8] c"/player/playback/start\00"
define i32 @mgrPlayStart(i32 %0, i8* nocapture readnone %1, i8* nocapture readnone %2) {
%4 = tail call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @mgrSendMessageToSndModule(i32 8003, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32* null)
ret i32 0
}