#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*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ stdout;
int passlist_cb(void *unused, int argc, char **argv, char **colnames) {
  if (argc < 2)
    return 0;
  char *date = argv[0];
  char *label = argv[1];
  fprintf(stdout, "Date: %s | %s\n", date, label);
  return 0;
}


x86 assembly (clang, -O0):
<passlist_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    113d <passlist_cb+0x2d>
movl   $0x0,-0x4(%rbp)
jmp    1178 <passlist_cb+0x68>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
lea    0xe94(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<passlist_cb>:
cmp    $0x2,%esi
jl     1139 <passlist_cb+0x29>
push   %rax
mov    (%rdx),%rax
mov    0x8(%rdx),%rcx
mov    0x2ebc(%rip),%rdx
mov    (%rdx),%edi
lea    0xed3(%rip),%rsi
mov    %rax,%rdx
call   1030 <fprintf@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [15 x i8] c"Date: %s | %s\0A\00"
define i32 @passlist_cb(i8* %0, i32 %1, i8** %2, i8** %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca i8*
%11 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store i8** %3, i8*** %9
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %4
store i32 0, i32* %5
br label %26
15: ; preds = %4
%16 = load i8**, i8*** %8
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
store i8* %18, i8** %10
%19 = load i8**, i8*** %8
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
store i8* %21, i8** %11
%22 = load i32, i32* @stdout
%23 = load i8*, i8** %10
%24 = load i8*, i8** %11
%25 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %23, i8* %24)
store i32 0, i32* %5
br label %26
26: ; preds = %15, %14
%27 = load i32, i32* %5
ret i32 %27
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [15 x i8] c"Date: %s | %s\0A\00"
define i32 @passlist_cb(i8* nocapture readnone %0, i32 %1, i8** nocapture %2, i8** nocapture readnone %3) {
%5 = icmp slt i32 %1, 2
br i1 %5, label %12, label %6
6: ; preds = %4
%7 = load i8*, i8** %2
%8 = getelementptr inbounds i8*, i8** %2, i64 1
%9 = load i8*, i8** %8
%10 = load i32, i32* @stdout
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %9)
br label %12
12: ; preds = %4, %6
ret i32 0
}