\documentclass{cheatsheet}

\geometry{a5paper}

\begin{document}
\begin{center}
	\textbf{Clean RTS Cheat Sheet}
\end{center}

\hfill
\begin{minipage}[t][][b]{.5\textwidth}%
	\centering%
	\textbf{Registers, x64}
	\bigskip

	\input{registers-x64}
\end{minipage}%
\begin{minipage}[t][][b]{.5\textwidth}%
	\centering%
	\textbf{Registers, x86}
	\bigskip

	\input{registers-x86}

	\bigskip
	\tabularwrappingfalse%
	\setlength{\tabcolsep}{.2em}%
	\begin{tabular}{|lcccccc|}%
		\multicolumn{7}{c}{\textit{Cdecl Calling Convention}}\\\hline
		\csname @@input\endcsname cdecl-contents \\\hline
	\end{tabular}
\end{minipage}%
\hfill

\bigskip
\tabularwrappingfalse%
\setlength{\tabcolsep}{.2em}%
\begin{tabular}{|lcccccccc|}%
	\multicolumn{9}{c}{\textbf{x64 {\CallingConventionHeader}s}}\\
	\multicolumn{1}{c}{}\\[-1em]
	\multicolumn{9}{c}{\textit{System V}}\\\hline
	\csname @@input\endcsname system-v-abi-contents \\\hline

	\multicolumn{1}{c}{}\\
	\multicolumn{9}{c}{\textit{Microsoft x64}}\\\hline
	\csname @@input\endcsname microsoft-x64-contents \\\hline
\end{tabular}%
\hfill

\bigskip

\end{document}
