/* Internal helper to update LastAddress if the Limit address of the Mem aperture is higher than the provided value. */
STATIC VOID UpdateLastAddressIfHigher(IN PCI_ROOT_BRIDGE_APERTURE *Mem, OUT UINT64 *LastAddress)
/* Internal helper to update LastAddress if the Limit address of the Mem aperture is higher than the provided value. */
STATIC VOID UpdateLastAddressIfHigher(IN PCI_ROOT_BRIDGE_APERTURE *Mem, OUT UINT64 *LastAddress)
{
  if (Mem->Limit > *LastAddress) {
    *LastAddress = Mem->Limit;
  }
}