#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 */
char *EnvGetDefclassName(void *, void *);
char *EnvGetDefmessageHandlerName(void *, void *, int);
char *EnvGetDefmessageHandlerType(void *, void *, int);
scalar_t__ EnvGetDefmessageHandlerWatch(void *, void *, int);
int /*<<< orphan*/ EnvPrintRouter(void *, char const *, char *);
void PrintHandlerWatchFlag(void *theEnv, const char *logName, void *theClass,
                           int theHandler) {
  EnvPrintRouter(theEnv, logName, EnvGetDefclassName(theEnv, theClass));
  EnvPrintRouter(theEnv, logName, " ");
  EnvPrintRouter(theEnv, logName,
                 EnvGetDefmessageHandlerName(theEnv, theClass, theHandler));
  EnvPrintRouter(theEnv, logName, " ");
  EnvPrintRouter(theEnv, logName,
                 EnvGetDefmessageHandlerType(theEnv, theClass, theHandler));
  if (EnvGetDefmessageHandlerWatch(theEnv, theClass, theHandler))
    EnvPrintRouter(theEnv, logName, " = on\n");
  else
    EnvPrintRouter(theEnv, logName, " = off\n");
}


x86 assembly (clang, -O0):
<PrintHandlerWatchFlag>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <EnvGetDefclassName@plt>
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    %rax,%rdx
call   1040 <EnvPrintRouter@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xe5d(%rip),%rdx
call   1040 <EnvPrintRouter@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1060 <EnvGetDefmessageHandlerName@plt>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    %rax,%rdx
call   1040 <EnvPrintRouter@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xe19(%rip),%rdx
call   1040 <EnvPrintRouter@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1070 <EnvGetDefmessageHandlerType@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    %rax,%rdx
call   1040 <EnvPrintRouter@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <EnvGetDefmessageHandlerWatch@plt>
cmp    $0x0,%rax
je     124f <PrintHandlerWatchFlag+0xff>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xdbd(%rip),%rdx
call   1040 <EnvPrintRouter@plt>
jmp    1263 <PrintHandlerWatchFlag+0x113>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xdab(%rip),%rdx
call   1040 <EnvPrintRouter@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintHandlerWatchFlag>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %ecx,%r15d
mov    %rdx,%rbp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rdx,%rsi
call   1050 <EnvGetDefclassName@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
call   1040 <EnvPrintRouter@plt>
lea    0xe7f(%rip),%r12
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r12,%rdx
call   1040 <EnvPrintRouter@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
call   1060 <EnvGetDefmessageHandlerName@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
call   1040 <EnvPrintRouter@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r12,%rdx
call   1040 <EnvPrintRouter@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
call   1070 <EnvGetDefmessageHandlerType@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
call   1040 <EnvPrintRouter@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
call   1030 <EnvGetDefmessageHandlerWatch@plt>
test   %rax,%rax
lea    0xe1c(%rip),%rax
lea    0xe0e(%rip),%rdx
cmove  %rax,%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <EnvPrintRouter@plt>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [7 x i8] c" = on\0A\00"
@.str.2 = [8 x i8] c" = off\0A\00"
define void @PrintHandlerWatchFlag(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i8*, i8** %5
%12 = load i8*, i8** %7
%13 = call i8* @EnvGetDefclassName(i8* %11, i8* %12)
%14 = call i32 @EnvPrintRouter(i8* %9, i8* %10, i8* %13)
%15 = load i8*, i8** %5
%16 = load i8*, i8** %6
%17 = call i32 @EnvPrintRouter(i8* %15, i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = load i8*, i8** %5
%19 = load i8*, i8** %6
%20 = load i8*, i8** %5
%21 = load i8*, i8** %7
%22 = load i32, i32* %8
%23 = call i8* @EnvGetDefmessageHandlerName(i8* %20, i8* %21, i32 %22)
%24 = call i32 @EnvPrintRouter(i8* %18, i8* %19, i8* %23)
%25 = load i8*, i8** %5
%26 = load i8*, i8** %6
%27 = call i32 @EnvPrintRouter(i8* %25, i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%28 = load i8*, i8** %5
%29 = load i8*, i8** %6
%30 = load i8*, i8** %5
%31 = load i8*, i8** %7
%32 = load i32, i32* %8
%33 = call i8* @EnvGetDefmessageHandlerType(i8* %30, i8* %31, i32 %32)
%34 = call i32 @EnvPrintRouter(i8* %28, i8* %29, i8* %33)
%35 = load i8*, i8** %5
%36 = load i8*, i8** %7
%37 = load i32, i32* %8
%38 = call i64 @EnvGetDefmessageHandlerWatch(i8* %35, i8* %36, i32 %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %4
%41 = load i8*, i8** %5
%42 = load i8*, i8** %6
%43 = call i32 @EnvPrintRouter(i8* %41, i8* %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %48
44: ; preds = %4
%45 = load i8*, i8** %5
%46 = load i8*, i8** %6
%47 = call i32 @EnvPrintRouter(i8* %45, i8* %46, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %48
48: ; preds = %44, %40
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [7 x i8] c" = on\0A\00"
@.str.2 = [8 x i8] c" = off\0A\00"
define void @PrintHandlerWatchFlag(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = tail call i8* @EnvGetDefclassName(i8* %0, i8* %2)
%6 = tail call i32 @EnvPrintRouter(i8* %0, i8* %1, i8* %5)
%7 = tail call i32 @EnvPrintRouter(i8* %0, i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = tail call i8* @EnvGetDefmessageHandlerName(i8* %0, i8* %2, i32 %3)
%9 = tail call i32 @EnvPrintRouter(i8* %0, i8* %1, i8* %8)
%10 = tail call i32 @EnvPrintRouter(i8* %0, i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = tail call i8* @EnvGetDefmessageHandlerType(i8* %0, i8* %2, i32 %3)
%12 = tail call i32 @EnvPrintRouter(i8* %0, i8* %1, i8* %11)
%13 = tail call i64 @EnvGetDefmessageHandlerWatch(i8* %0, i8* %2, i32 %3)
%14 = icmp eq i64 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0)
%16 = tail call i32 @EnvPrintRouter(i8* %0, i8* %1, i8* %15)
ret void
}