#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 char const FILE;

/* Variables and functions */
int /*<<< orphan*/ assert(char const *);
int /*<<< orphan*/ fprintf(char const *, char *, ...);
void _write_object(FILE *file, const char *name, const char *local) {
  assert(file);
  assert(name);
  assert(local);
  fprintf(file, "<li><object type=\"text/sitemap\">\n");
  fprintf(file, "<param name=\"Name\" value=\"%s\">\n", name);
  fprintf(file, "<param name=\"Local\" value=\"%s\">\n", local);
  fprintf(file, "</object>\n");
}


x86 assembly (clang, -O0):
<_write_object>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1030 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rdi
lea    0xea6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xeb2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xecb(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_write_object>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1030 <assert@plt>
mov    %r15,%rdi
call   1030 <assert@plt>
mov    %r14,%rdi
call   1030 <assert@plt>
lea    0xea6(%rip),%rdi
mov    $0x21,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xeaf(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xec8(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"<li><object type=\22text/sitemap\22>\0A\00"
@.str.1 = [32 x i8] c"<param name=\22Name\22 value=\22%s\22>\0A\00"
@.str.2 = [33 x i8] c"<param name=\22Local\22 value=\22%s\22>\0A\00"
@.str.3 = [11 x i8] c"</object>\0A\00"
define void @_write_object(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = call i32 @assert(i8* %7)
%9 = load i8*, i8** %5
%10 = call i32 @assert(i8* %9)
%11 = load i8*, i8** %6
%12 = call i32 @assert(i8* %11)
%13 = load i8*, i8** %4
%14 = call i32 (i8*, i8*, ...) @fprintf(i8* %13, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%15 = load i8*, i8** %4
%16 = load i8*, i8** %5
%17 = call i32 (i8*, i8*, ...) @fprintf(i8* %15, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = load i8*, i8** %4
%19 = load i8*, i8** %6
%20 = call i32 (i8*, i8*, ...) @fprintf(i8* %18, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %19)
%21 = load i8*, i8** %4
%22 = call i32 (i8*, i8*, ...) @fprintf(i8* %21, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"<li><object type=\22text/sitemap\22>\0A\00"
@.str.1 = [32 x i8] c"<param name=\22Name\22 value=\22%s\22>\0A\00"
@.str.2 = [33 x i8] c"<param name=\22Local\22 value=\22%s\22>\0A\00"
@.str.3 = [11 x i8] c"</object>\0A\00"
define void @_write_object(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 @assert(i8* %0)
%5 = tail call i32 @assert(i8* %1)
%6 = tail call i32 @assert(i8* %2)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i64 33, i64 1, i8* %0)
%8 = tail call i32 (i8*, i8*, ...) @fprintf(i8* %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%9 = tail call i32 (i8*, i8*, ...) @fprintf(i8* %0, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i64 10, i64 1, i8* %0)
ret void
}