#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 */

/* Variables and functions */
int /*<<< orphan*/ CmdEndParagraph(int /*<<< orphan*/);
int /*<<< orphan*/ CmdVspace(int);
int /*<<< orphan*/ InsertStyle(char *);
int /*<<< orphan*/ diagnostics(int, char *);
int /*<<< orphan*/ fprintRTF(char *);
int /*<<< orphan*/ startParagraph(char *, int);
void CmdTheEndNotes(int code) {
  diagnostics(4, "Entering CmdTheEndNotes");
  CmdVspace(3);
  startParagraph("bibliography", 3);
  fprintRTF("{\\sect ");
  InsertStyle("section");
  fprintRTF(" Notes");
  CmdEndParagraph(0);
  fprintRTF("\\endnhere}");
}


x86 assembly (clang, -O0):
<CmdTheEndNotes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x4,%edi
lea    0xe89(%rip),%rsi
call   1050 <diagnostics@plt>
mov    $0x3,%edi
call   1030 <CmdVspace@plt>
lea    0xe8b(%rip),%rdi
mov    $0x3,%esi
call   1060 <startParagraph@plt>
lea    0xe87(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe83(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xe7f(%rip),%rdi
call   1070 <fprintRTF@plt>
xor    %edi,%edi
call   1080 <CmdEndParagraph@plt>
lea    0xe73(%rip),%rdi
call   1070 <fprintRTF@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdTheEndNotes>:
push   %rax
lea    0xe98(%rip),%rsi
mov    $0x4,%edi
call   1050 <diagnostics@plt>
mov    $0x3,%edi
call   1030 <CmdVspace@plt>
lea    0xe95(%rip),%rdi
mov    $0x3,%esi
call   1060 <startParagraph@plt>
lea    0xe91(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe8d(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xe89(%rip),%rdi
call   1070 <fprintRTF@plt>
xor    %edi,%edi
call   1080 <CmdEndParagraph@plt>
lea    0xe7d(%rip),%rdi
pop    %rax
jmp    1070 <fprintRTF@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"Entering CmdTheEndNotes\00"
@.str.1 = [13 x i8] c"bibliography\00"
@.str.2 = [8 x i8] c"{\\sect \00"
@.str.3 = [8 x i8] c"section\00"
@.str.4 = [7 x i8] c" Notes\00"
@.str.5 = [11 x i8] c"\\endnhere}\00"
define void @CmdTheEndNotes(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @CmdVspace(i32 3)
%5 = call i32 @startParagraph(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 3)
%6 = call i32 @fprintRTF(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @InsertStyle(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @fprintRTF(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @CmdEndParagraph(i32 0)
%10 = call i32 @fprintRTF(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"Entering CmdTheEndNotes\00"
@.str.1 = [13 x i8] c"bibliography\00"
@.str.2 = [8 x i8] c"{\\sect \00"
@.str.3 = [8 x i8] c"section\00"
@.str.4 = [7 x i8] c" Notes\00"
@.str.5 = [11 x i8] c"\\endnhere}\00"
define void @CmdTheEndNotes(i32 %0) {
%2 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @CmdVspace(i32 3)
%4 = tail call i32 @startParagraph(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 3)
%5 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @CmdEndParagraph(i32 0)
%9 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
ret void
}