#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(const void *pointer, void *data,
                                         const char *info_name,
                                         const char *arguments) {
  static char str_true[2] = "1";
  (void)pointer;
  (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    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1166 <irc_info_info_irc_is_nick_cb+0x56>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1166 <irc_info_info_irc_is_nick_cb+0x56>
mov    -0x28(%rbp),%rdi
call   1030 <irc_nick_is_nick@plt>
cmp    $0x0,%rax
je     1166 <irc_info_info_irc_is_nick_cb+0x56>
lea    0x2ecb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    116e <irc_info_info_irc_is_nick_cb+0x5e>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irc_info_info_irc_is_nick_cb>:
push   %rax
test   %rcx,%rcx
je     1131 <irc_info_info_irc_is_nick_cb+0x21>
cmpb   $0x0,(%rcx)
je     1131 <irc_info_info_irc_is_nick_cb+0x21>
mov    %rcx,%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, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
%10 = load i8*, i8** %6
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = load i8*, i8** %9
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %26
15: ; preds = %4
%16 = load i8*, i8** %9
%17 = getelementptr inbounds i8, i8* %16, i64 0
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %15
%22 = load i8*, i8** %9
%23 = call i64 @irc_nick_is_nick(i8* %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %21
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @irc_info_info_irc_is_nick_cb.str_true, i64 0, i64 0), i8** %5
br label %27
26: ; preds = %21, %15, %4
store i8* null, i8** %5
br label %27
27: ; preds = %26, %25
%28 = load i8*, i8** %5
ret i8* %28
}

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* nocapture readnone %2, i8* %3) {
%5 = icmp eq i8* %3, null
br i1 %5, label %12, label %6
6: ; preds = %4
%7 = load i8, i8* %3
%8 = icmp eq i8 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = tail call i64 @irc_nick_is_nick(i8* %3)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9, %6, %4
br label %13
13: ; preds = %9, %12
%14 = phi i8* [ null, %12 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @irc_info_info_irc_is_nick_cb.str_true, i64 0, i64 0), %9 ]
ret i8* %14
}