#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *stderr;
int start(char *name, int atnum, char **atname, char **atval, char *buf,
          int sze, void *data) {
  FILE *fp = NULL;
  if (data != NULL)
    fp = (FILE *)data;
  else
    fp = stderr;
  fputc('<', fp);
  fwrite(buf, sze, 1, fp);
  fputc('>', fp);
  return 0;
}


x86 assembly (clang, -O0):
<start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movq   $0x0,-0x38(%rbp)
cmpq   $0x0,0x10(%rbp)
je     1163 <start+0x43>
mov    0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    1171 <start+0x51>
mov    0x2e76(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
mov    $0x3c,%edi
call   1030 <fputc@plt>
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x38(%rbp),%rcx
mov    $0x1,%edx
call   1040 <fwrite@plt>
mov    -0x38(%rbp),%rsi
mov    $0x3e,%edi
call   1030 <fputc@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start>:
push   %rbp
push   %r14
push   %rbx
mov    %r9d,%r14d
mov    %r8,%rbp
mov    0x20(%rsp),%rbx
test   %rbx,%rbx
jne    113e <start+0x1e>
mov    0x2ea5(%rip),%rax
mov    (%rax),%rbx
mov    $0x3c,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %rbp,%rdi
mov    %r14d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
mov    $0x3e,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32* null
define i32 @start(i8* %0, i32 %1, i8** %2, i8** %3, i8* %4, i32 %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8**
%11 = alloca i8**
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32*
store i8* %0, i8** %8
store i32 %1, i32* %9
store i8** %2, i8*** %10
store i8** %3, i8*** %11
store i8* %4, i8** %12
store i32 %5, i32* %13
store i8* %6, i8** %14
store i32* null, i32** %15
%16 = load i8*, i8** %14
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %21
18: ; preds = %7
%19 = load i8*, i8** %14
%20 = bitcast i8* %19 to i32*
store i32* %20, i32** %15
br label %23
21: ; preds = %7
%22 = load i32*, i32** @stderr
store i32* %22, i32** %15
br label %23
23: ; preds = %21, %18
%24 = load i32*, i32** %15
%25 = call i32 @fputc(i8 signext 60, i32* %24)
%26 = load i8*, i8** %12
%27 = load i32, i32* %13
%28 = load i32*, i32** %15
%29 = call i32 @fwrite(i8* %26, i32 %27, i32 1, i32* %28)
%30 = load i32*, i32** %15
%31 = call i32 @fputc(i8 signext 62, i32* %30)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32* null
define i32 @start(i8* nocapture readnone %0, i32 %1, i8** nocapture readnone %2, i8** nocapture readnone %3, i8* nocapture %4, i32 %5, i8* %6) {
%8 = icmp eq i8* %6, null
%9 = bitcast i8* %6 to i32*
%10 = load i32*, i32** @stderr
%11 = select i1 %8, i32* %10, i32* %9
%12 = tail call i32 @fputc(i8 signext 60, i32* %11)
%13 = tail call i32 @fwrite(i8* %4, i32 %5, i32 1, i32* %11)
%14 = tail call i32 @fputc(i8 signext 62, i32* %11)
ret i32 0
}