void document_output_dynarch_html_body(char *dynarch_menu_onload_control_string,
                                       char *additional_control_string) {
  printf("<body onload=\"%s%c%s\"\n"
         "leftmargin=0 topmargin=0 marginwidth=0 marginheight=0\n"
         ">\n",
         dynarch_menu_onload_control_string,
         (additional_control_string) ? ';' : ' ',
         (additional_control_string) ? additional_control_string : "");
  document_output_dynarch_hide_ul_contents();
}


x86 assembly (clang, -O0):
<document_output_dynarch_html_body>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdx
mov    $0x20,%eax
mov    $0x3b,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
mov    %eax,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1168 <document_output_dynarch_html_body+0x48>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    1178 <document_output_dynarch_html_body+0x58>
lea    0xedf(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1178 <document_output_dynarch_html_body+0x58>
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rcx
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <document_output_dynarch_hide_ul_contents@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<document_output_dynarch_html_body>:
push   %rax
test   %rsi,%rsi
mov    $0x20,%eax
mov    $0x3b,%edx
cmove  %eax,%edx
mov    %rdi,%rax
lea    0xf13(%rip),%rcx
cmovne %rsi,%rcx
lea    0xeba(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <document_output_dynarch_hide_ul_contents@plt>

LLVM IR (-O0):
@.str = [79 x i8] c"<body onload=\22%s%c%s\22\0Aleftmargin=0 topmargin=0 marginwidth=0 marginheight=0\0A>\0A\00"
@.str.1 = [1 x i8] zeroinitializer
define void @document_output_dynarch_html_body(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = icmp ne i8* %6, null
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 59, i32 32
%10 = load i8*, i8** %4
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i8*, i8** %4
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %12
%16 = phi i8* [ %13, %12 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %14 ]
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %9, i8* %16)
%18 = call i32 (...) @document_output_dynarch_hide_ul_contents()
ret void
}

LLVM IR (-O2):
@.str = [79 x i8] c"<body onload=\22%s%c%s\22\0Aleftmargin=0 topmargin=0 marginwidth=0 marginheight=0\0A>\0A\00"
@.str.1 = [1 x i8] zeroinitializer
define void @document_output_dynarch_html_body(i8* %0, i8* %1) {
%3 = icmp eq i8* %1, null
%4 = select i1 %3, i32 32, i32 59
%5 = select i1 %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %4, i8* %5)
%7 = tail call i32 (...) @document_output_dynarch_hide_ul_contents()
ret void
}