#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, int, ...);
scalar_t__ strcmp(char *, char *);
void google_chart_anchor_chart(FILE *output_file, char *title,
                               char *google_package_name, int left, int top,
                               int width, int height, int chart_number) {
  if (title && *title &&
      strcmp(google_package_name, "annotatedtimeline") == 0) {
    fprintf(output_file,
            "<div style=\"	position: absolute;	\n"
            "		left: %dpx;		\n"
            "		top: %dpx;		\n"
            "		font-size: 16px\">	\n"
            "%s</div>\n",
            left, top, title);
    top += 20;
  }
  fprintf(
      output_file,
      "<div style=\"position: absolute;\n"
      "	left: %dpx;\n"
      "	top: %dpx;\n"
      "	width: %dpx;\n"
      "	border-width: thin;\n"
      "	border-style: solid;\n"
      "	border-color: teal\" >\n"
      "	<div id=\"chart_div%d\" style=\"width: %dpx; height: %dpx\"></div>\n"
      "</div>\n",
      left, top, width, chart_number, width, height);
}


x86 assembly (clang, -O0):
<google_chart_anchor_chart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     119f <google_chart_anchor_chart+0x7f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     119f <google_chart_anchor_chart+0x7f>
mov    -0x18(%rbp),%rdi
lea    0xe95(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    119f <google_chart_anchor_chart+0x7f>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x10(%rbp),%r8
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    -0x24(%rbp),%r10d
mov    0x10(%rbp),%eax
lea    0xeb3(%rip),%rsi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<google_chart_anchor_chart>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r15d
mov    %r8d,%r13d
mov    %ecx,%r14d
mov    %rdi,%r12
mov    0x48(%rsp),%r9d
mov    0x40(%rsp),%ebx
test   %rsi,%rsi
je     1184 <google_chart_anchor_chart+0x64>
mov    %rsi,%rbp
cmpb   $0x0,(%rsi)
je     1184 <google_chart_anchor_chart+0x64>
lea    0xeac(%rip),%rsi
mov    %rdx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    117f <google_chart_anchor_chart+0x5f>
lea    0xeaa(%rip),%rsi
mov    %r12,%rdi
mov    %r14d,%edx
mov    %r13d,%ecx
mov    %rbp,%r8
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x14,%r13d
mov    0x48(%rsp),%r9d
lea    0xee7(%rip),%rsi
mov    %r12,%rdi
mov    %r14d,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
push   %rbx
push   %r15
call   1040 <fprintf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"annotatedtimeline\00"
@.str.1 = [96 x i8] c"<div style=\22\09position: absolute;\09\0A\09\09left: %dpx;\09\09\0A\09\09top: %dpx;\09\09\0A\09\09font-size: 16px\22>\09\0A%s</div>\0A\00"
@.str.2 = [209 x i8] c"<div style=\22position: absolute;\0A\09left: %dpx;\0A\09top: %dpx;\0A\09width: %dpx;\0A\09border-width: thin;\0A\09border-style: solid;\0A\09border-color: teal\22 >\0A\09<div id=\22chart_div%d\22 style=\22width: %dpx; height: %dpx\22></div>\0A</div>\0A\00"
define void @google_chart_anchor_chart(i32* %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i8*, i8** %10
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %36
19: ; preds = %8
%20 = load i8*, i8** %10
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %36
24: ; preds = %19
%25 = load i8*, i8** %11
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %36
28: ; preds = %24
%29 = load i32*, i32** %9
%30 = load i32, i32* %12
%31 = load i32, i32* %13
%32 = load i8*, i8** %10
%33 = call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.1, i64 0, i64 0), i32 %30, i32 %31, i8* %32)
%34 = load i32, i32* %13
%35 = add nsw i32 %34, 20
store i32 %35, i32* %13
br label %36
36: ; preds = %28, %24, %19, %8
%37 = load i32*, i32** %9
%38 = load i32, i32* %12
%39 = load i32, i32* %13
%40 = load i32, i32* %14
%41 = load i32, i32* %16
%42 = load i32, i32* %14
%43 = load i32, i32* %15
%44 = call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([209 x i8], [209 x i8]* @.str.2, i64 0, i64 0), i32 %38, i32 %39, i32 %40, i32 %41, i32 %42, i32 %43)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"annotatedtimeline\00"
@.str.1 = [96 x i8] c"<div style=\22\09position: absolute;\09\0A\09\09left: %dpx;\09\09\0A\09\09top: %dpx;\09\09\0A\09\09font-size: 16px\22>\09\0A%s</div>\0A\00"
@.str.2 = [209 x i8] c"<div style=\22position: absolute;\0A\09left: %dpx;\0A\09top: %dpx;\0A\09width: %dpx;\0A\09border-width: thin;\0A\09border-style: solid;\0A\09border-color: teal\22 >\0A\09<div id=\22chart_div%d\22 style=\22width: %dpx; height: %dpx\22></div>\0A</div>\0A\00"
define void @google_chart_anchor_chart(i32* nocapture %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = icmp eq i8* %1, null
br i1 %9, label %19, label %10
10: ; preds = %8
%11 = load i8, i8* %1
%12 = icmp eq i8 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = tail call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.1, i64 0, i64 0), i32 %3, i32 %4, i8* %1)
%18 = add nsw i32 %4, 20
br label %19
19: ; preds = %16, %13, %10, %8
%20 = phi i32 [ %18, %16 ], [ %4, %13 ], [ %4, %10 ], [ %4, %8 ]
%21 = tail call i32 (i32*, i8*, i32, i32, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([209 x i8], [209 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 %20, i32 %5, i32 %7, i32 %5, i32 %6)
ret void
}