#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*/ printf(char *, char const *, char *, char const *, char *,
                          char const *);
void _configctl_print(int verbose, char const *section, char const *variable,
                      char const *value) {
  if (verbose < 0)
    return;
  printf("%s%s%s%s%s\n", (verbose > 0 && section != NULL) ? section : "",
         (verbose > 0 && section != NULL && section[0] != '\0') ? "." : "",
         (verbose > 0) ? variable : "", (verbose > 0) ? "=" : "",
         (value != NULL) ? value : "");
}


x86 assembly (clang, -O0):
<_configctl_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1136 <_configctl_print+0x26>
jmp    124e <_configctl_print+0x13e>
cmpl   $0x0,-0x4(%rbp)
jle    1158 <_configctl_print+0x48>
cmpq   $0x0,-0x10(%rbp)
je     1158 <_configctl_print+0x48>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    1168 <_configctl_print+0x58>
lea    0xeac(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1168 <_configctl_print+0x58>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x29(%rbp)
jle    119f <_configctl_print+0x8f>
xor    %eax,%eax
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x29(%rbp)
je     119f <_configctl_print+0x8f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%dl
lea    0xe62(%rip),%rax
lea    0xe5c(%rip),%rcx
test   $0x1,%dl
cmovne %rcx,%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    11d2 <_configctl_print+0xc2>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    11e2 <_configctl_print+0xd2>
lea    0xe32(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    11e2 <_configctl_print+0xd2>
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%edx
lea    0xe17(%rip),%rax
lea    0xe13(%rip),%rcx
cmp    $0x0,%edx
cmovg  %rcx,%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     121e <_configctl_print+0x10e>
mov    -0x20(%rbp),%rax
mov    %rax,-0x60(%rbp)
jmp    122e <_configctl_print+0x11e>
lea    0xde6(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    122e <_configctl_print+0x11e>
mov    -0x50(%rbp),%r8
mov    -0x58(%rbp),%rcx
mov    -0x40(%rbp),%rdx
mov    -0x38(%rbp),%rsi
mov    -0x60(%rbp),%r9
lea    0xdb7(%rip),%rdi
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_configctl_print>:
test   %edi,%edi
js     1177 <_configctl_print+0x67>
mov    %rcx,%r9
mov    %rdx,%rcx
mov    %rsi,%rax
setne  %r8b
test   %rsi,%rsi
setne  %r11b
lea    0xedc(%rip),%r10
mov    %r10,%rsi
mov    %r10,%rdx
test   %r11b,%r8b
cmovne %rax,%rsi
je     1153 <_configctl_print+0x43>
cmpb   $0x0,(%rax)
lea    0xec3(%rip),%rax
lea    0xebd(%rip),%rdx
cmove  %rax,%rdx
test   %edi,%edi
cmove  %r10,%rcx
lea    0xeae(%rip),%r8
cmove  %r10,%r8
test   %r9,%r9
cmove  %r10,%r9
lea    0xe8e(%rip),%rdi
jmp    1030 <printf@plt>
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%s%s%s%s%s\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c".\00"
@.str.3 = [2 x i8] c"=\00"
define void @_configctl_print(i32 %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %4
br label %57
12: ; preds = %4
%13 = load i32, i32* %5
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i8*, i8** %6
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i8*, i8** %6
br label %21
20: ; preds = %15, %12
br label %21
21: ; preds = %20, %18
%22 = phi i8* [ %19, %18 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %20 ]
%23 = load i32, i32* %5
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %34
25: ; preds = %21
%26 = load i8*, i8** %6
%27 = icmp ne i8* %26, null
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = load i8*, i8** %6
%30 = getelementptr inbounds i8, i8* %29, i64 0
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br label %34
34: ; preds = %28, %25, %21
%35 = phi i1 [ false, %25 ], [ false, %21 ], [ %33, %28 ]
%36 = zext i1 %35 to i64
%37 = select i1 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
%38 = load i32, i32* %5
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = load i8*, i8** %7
br label %43
42: ; preds = %34
br label %43
43: ; preds = %42, %40
%44 = phi i8* [ %41, %40 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %42 ]
%45 = load i32, i32* %5
%46 = icmp sgt i32 %45, 0
%47 = zext i1 %46 to i64
%48 = select i1 %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
%49 = load i8*, i8** %8
%50 = icmp ne i8* %49, null
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = load i8*, i8** %8
br label %54
53: ; preds = %43
br label %54
54: ; preds = %53, %51
%55 = phi i8* [ %52, %51 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %53 ]
%56 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %22, i8* %37, i8* %44, i8* %48, i8* %55)
br label %57
57: ; preds = %54, %11
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s%s%s%s%s\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c".\00"
@.str.3 = [2 x i8] c"=\00"
define void @_configctl_print(i32 %0, i8* %1, i8* %2, i8* %3) {
%5 = icmp slt i32 %0, 0
br i1 %5, label %22, label %6
6: ; preds = %4
%7 = icmp ne i32 %0, 0
%8 = icmp ne i8* %1, null
%9 = and i1 %7, %8
%10 = select i1 %9, i8* %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
br i1 %9, label %11, label %15
11: ; preds = %6
%12 = load i8, i8* %1
%13 = icmp eq i8 %12, 0
%14 = select i1 %13, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0)
br label %15
15: ; preds = %11, %6
%16 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %6 ], [ %14, %11 ]
%17 = select i1 %7, i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
%18 = select i1 %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
%19 = icmp eq i8* %3, null
%20 = select i1 %19, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %3
%21 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %16, i8* %17, i8* %18, i8* %20)
br label %22
22: ; preds = %4, %15
ret void
}