#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*/ fputs(char *, int /*<<< orphan*/ *);
void render_navbar(FILE *fp) {
  if (fp == NULL)
    return;
  fputs("<div class=\"navbar navbar-fixed-top\">\n", fp);
  fputs("	<div class=\"navbar-inner\">\n", fp);
  fputs("		<div class=\"container-fluid\">\n", fp);
  fputs("			<a class=\"brand\" "
        "href=\"https://github.com/yoannsculo/ucwiki\">µcWiki</a><span "
        "style=\"display: block;padding-top:10px;\"> - The tiny wiki "
        "engine</span>\n",
        fp);
  fputs("		</div>\n", fp);
  fputs("	</div>\n", fp);
  fputs("</div>\n", fp);
}


x86 assembly (clang, -O0):
<render_navbar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112c <render_navbar+0x1c>
jmp    119c <render_navbar+0x8c>
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xee0(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xeed(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xefe(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf88(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf79(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf6a(%rip),%rdi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<render_navbar>:
test   %rdi,%rdi
je     11cd <render_navbar+0xbd>
push   %rbx
mov    %rdi,%rbx
lea    0xedc(%rip),%rdi
mov    $0x26,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xeea(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xeee(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xef6(%rip),%rdi
mov    $0x99,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xf77(%rip),%rdi
mov    $0x9,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xf5f(%rip),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xf47(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1030 <fwrite@plt>
ret

LLVM IR (-O0):
@.str = [39 x i8] c"<div class=\22navbar navbar-fixed-top\22>\0A\00"
@.str.1 = [29 x i8] c"\09<div class=\22navbar-inner\22>\0A\00"
@.str.2 = [33 x i8] c"\09\09<div class=\22container-fluid\22>\0A\00"
@.str.3 = [154 x i8] c"\09\09\09<a class=\22brand\22 href=\22https://github.com/yoannsculo/ucwiki\22>\C2\B5cWiki</a><span style=\22display: block;padding-top:10px;\22> - The tiny wiki engine</span>\0A\00"
@.str.4 = [10 x i8] c"\09\09</div>\0A\00"
@.str.5 = [9 x i8] c"\09</div>\0A\00"
@.str.6 = [8 x i8] c"</div>\0A\00"
define void @render_navbar(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %21
6: ; preds = %1
%7 = load i32*, i32** %2
%8 = call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32* %7)
%9 = load i32*, i32** %2
%10 = call i32 @fputs(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%11 = load i32*, i32** %2
%12 = call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32* %11)
%13 = load i32*, i32** %2
%14 = call i32 @fputs(i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i32* %13)
%15 = load i32*, i32** %2
%16 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32* %15)
%17 = load i32*, i32** %2
%18 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %17)
%19 = load i32*, i32** %2
%20 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32* %19)
br label %21
21: ; preds = %6, %5
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"<div class=\22navbar navbar-fixed-top\22>\0A\00"
@.str.1 = [29 x i8] c"\09<div class=\22navbar-inner\22>\0A\00"
@.str.2 = [33 x i8] c"\09\09<div class=\22container-fluid\22>\0A\00"
@.str.3 = [154 x i8] c"\09\09\09<a class=\22brand\22 href=\22https://github.com/yoannsculo/ucwiki\22>\C2\B5cWiki</a><span style=\22display: block;padding-top:10px;\22> - The tiny wiki engine</span>\0A\00"
@.str.4 = [10 x i8] c"\09\09</div>\0A\00"
@.str.5 = [9 x i8] c"\09</div>\0A\00"
@.str.6 = [8 x i8] c"</div>\0A\00"
define void @render_navbar(i32* %0) {
%2 = icmp eq i32* %0, null
br i1 %2, label %11, label %3
3: ; preds = %1
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i64 38, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i64 28, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i64 32, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.3, i64 0, i64 0), i64 153, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i64 9, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i64 8, i64 1, i32* %0)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i64 7, i64 1, i32* %0)
br label %11
11: ; preds = %1, %3
ret void
}