#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 */
scalar_t__ irc_nick_is_nick(char const *);
const char *irc_info_info_irc_is_nick_cb(void *data, const char *info_name,
                                         const char *arguments) {
  static char str_true[2] = "1";
  (void)data;
  (void)info_name;
  if (arguments && arguments[0] && irc_nick_is_nick(arguments))
    return str_true;
  return NULL;
}


x86 assembly (clang, -O0):
<irc_info_info_irc_is_nick_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1162 <irc_info_info_irc_is_nick_cb+0x52>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1162 <irc_info_info_irc_is_nick_cb+0x52>
mov    -0x20(%rbp),%rdi
call   1030 <irc_nick_is_nick@plt>
cmp    $0x0,%rax
je     1162 <irc_info_info_irc_is_nick_cb+0x52>
lea    0x2ecf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    116a <irc_info_info_irc_is_nick_cb+0x5a>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irc_info_info_irc_is_nick_cb>:
push   %rax
test   %rdx,%rdx
je     1131 <irc_info_info_irc_is_nick_cb+0x21>
cmpb   $0x0,(%rdx)
je     1131 <irc_info_info_irc_is_nick_cb+0x21>
mov    %rdx,%rdi
call   1030 <irc_nick_is_nick@plt>
test   %rax,%rax
je     1131 <irc_info_info_irc_is_nick_cb+0x21>
lea    0x2ef9(%rip),%rax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@irc_info_info_irc_is_nick_cb.str_true = internal global [2 x i8] c"1\00"
define i8* @irc_info_info_irc_is_nick_cb(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = load i8*, i8** %7
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load i8*, i8** %7
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %12
%19 = load i8*, i8** %7
%20 = call i64 @irc_nick_is_nick(i8* %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @irc_info_info_irc_is_nick_cb.str_true, i64 0, i64 0), i8** %4
br label %24
23: ; preds = %18, %12, %3
store i8* null, i8** %4
br label %24
24: ; preds = %23, %22
%25 = load i8*, i8** %4
ret i8* %25
}

LLVM IR (-O2):
@irc_info_info_irc_is_nick_cb.str_true = internal global [2 x i8] c"1\00"
define i8* @irc_info_info_irc_is_nick_cb(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* %2) {
%4 = icmp eq i8* %2, null
br i1 %4, label %11, label %5
5: ; preds = %3
%6 = load i8, i8* %2
%7 = icmp eq i8 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = tail call i64 @irc_nick_is_nick(i8* %2)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %8, %5, %3
br label %12
12: ; preds = %8, %11
%13 = phi i8* [ null, %11 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @irc_info_info_irc_is_nick_cb.str_true, i64 0, i64 0), %8 ]
ret i8* %13
}