#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*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ output_tab0(int /*<<< orphan*/ *, int);
void output_tab4(FILE *outptr, int level, char *tag, char *aname, char *avalue,
                 char *data, int cr) {
  output_tab0(outptr, level);
  fprintf(outptr, "<%s %s=\"%s\">%s</%s>", tag, aname, avalue, data, tag);
  if (cr)
    fprintf(outptr, "\n");
}


x86 assembly (clang, -O0):
<output_tab4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <output_tab0@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    -0x18(%rbp),%rax
lea    0xe93(%rip),%rsi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1040 <fprintf@plt>
cmpl   $0x0,0x10(%rbp)
je     1194 <output_tab4+0x74>
mov    -0x8(%rbp),%rdi
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_tab4>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%rbx
mov    %rdi,%r13
call   1030 <output_tab0@plt>
mov    %rbx,(%rsp)
lea    0xea4(%rip),%rsi
mov    %r13,%rdi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1050 <fprintf@plt>
cmpl   $0x0,0x40(%rsp)
je     1193 <output_tab4+0x63>
mov    $0xa,%edi
mov    %r13,%rsi
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <fputc@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [20 x i8] c"<%s %s=\22%s\22>%s</%s>\00"
define void @output_tab4(i32* %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* %5, i32 %6) {
%8 = tail call i32 @output_tab0(i32* %0, i32 %1)
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %3, i8* %4, i8* %5, i8* %2)
%10 = icmp eq i32 %6, 0
br i1 %10, label %13, label %11
11: ; preds = %7
%12 = tail call i32 @fputc(i32 10, i32* %0)
br label %13
13: ; preds = %11, %7
ret void
}