#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*/ system(char const *);
int mgrApConfigure(int code, void *arg1, void *arg2) {
  static const char *cmd = "/usr/bin/python /pws/py/ap_conf.py &";
  ;
  mgrSendMessageToLedController("/led/red/off");
  mgrSendMessageToLedController("/led/green/blink");
  mgrSendMessageToLedController("/led/orange/off");
  system(cmd);
  return 0;
}


x86 assembly (clang, -O0):
<mgrApConfigure>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xeeb(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xeec(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xef1(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
mov    0x2ed2(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mgrApConfigure>:
push   %rax
lea    0xefd(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xefe(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xf03(%rip),%rdi
call   1040 <mgrSendMessageToLedController@plt>
lea    0xeb4(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@mgrApConfigure.cmd = internal global i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i32 0, i32 0)
@.str = [37 x i8] c"/usr/bin/python /pws/py/ap_conf.py &\00"
@.str.1 = [13 x i8] c"/led/red/off\00"
@.str.2 = [17 x i8] c"/led/green/blink\00"
@.str.3 = [16 x i8] c"/led/orange/off\00"
define i32 @mgrApConfigure(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.1, i64 0, i64 0))
%8 = call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%10 = load i8*, i8** @mgrApConfigure.cmd
%11 = call i32 @system(i8* %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"/usr/bin/python /pws/py/ap_conf.py &\00"
@.str.1 = [13 x i8] c"/led/red/off\00"
@.str.2 = [17 x i8] c"/led/green/blink\00"
@.str.3 = [16 x i8] c"/led/orange/off\00"
define i32 @mgrApConfigure(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.1, i64 0, i64 0))
%5 = tail call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @mgrSendMessageToLedController(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @system(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
ret i32 0
}