private void readStackFrame(XmlPullParser parser, Function func, boolean overwriteConflicts,
			List<Variable> stackVariables, List<Variable> stackParams) {
		XmlElement element = parser.peek();
		if (element.getName().equals("STACK_FRAME")) {
			element = parser.next();

			StackFrame frame = func.getStackFrame();

			if (element.hasAttribute("LOCAL_VAR_SIZE")) {
				frame.setLocalSize(XmlUtilities.parseInt(element.getAttribute("LOCAL_VAR_SIZE")));
			}
//			if (element.hasAttribute("PARAM_OFFSET")) {
//				frame.setParameterOffset(XmlUtilities.parseInt(element.getAttribute("PARAM_OFFSET")));
//			}
			//int registerSaveSize = 0;
			//if (element.hasAttribute("REGISTER_SAVE_SIZE")) {
			//	registerSaveSize = XmlUtilities.parseInt(element.getAttribute("REGISTER_SAVE_SIZE"));
			//}
			if (element.hasAttribute("RETURN_ADDR_SIZE")) {
				frame.setReturnAddressOffset(
					XmlUtilities.parseInt(element.getAttribute("RETURN_ADDR_SIZE")));
			}
			if (element.hasAttribute("BYTES_PURGED")) {
				func.setStackPurgeSize(XmlUtilities.parseInt(element.getAttribute("BYTES_PURGED")));
			}

			readStackVariables(parser, func, overwriteConflicts, stackVariables, stackParams);

			element = parser.next();
		}
	}
Parses a list of {@link Function function} definitions from xml and creates then, adding them to the current
{@link Program program}.
<p>
Information from a TYPEINFO_COMMENT is used in preference to information from RETURN_TYPE and STACK_FRAME/STACK_VARs that
are tagged as parameters.
<p>
DTD for the FUNCTION element:
<pre><code>
&lt;!ELEMENT FUNCTION (RETURN_TYPE?, ADDRESS_RANGE*, REGULAR_CMT?, REPEATABLE_CMT?, TYPEINFO_CMT?, STACK_FRAME?, REGISTER_VAR*)&gt;
</code></pre>

@param parser the parser
@param overwriteConflicts true to overwrite any conflicts
@param ignoreStackFrames true to ignore stack frames
@param monitor the task monitor
@throws AddressFormatException if any address is not parsable 
@throws CancelledException if the operation is cancelled through the monitor
Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/FunctionsXmlMgr.java