RaspAllocateMemory

unsigned __int64 __fastcall RaspAllocateMemory(unsigned __int64 a1, __int64 *a2){
  __int64 v3; 
  unsigned __int64 v4; 
  __int64 v6; 
  __int64 v7; 
  v3 = *a2;
  v4 = (a2[2] + 15) & 0xFFFFFFFFFFFFFFF0ui64;
  if( *a2 )
  {
    if( a1 > a2[1] - v4 )
    {
      return 0i64;
    }
    else
    {
      a2[2] = v4 + a1;
      return v3 + v4;
    }
  }
  else
  {
    LODWORD(v6) = BgpFwAllocateMemory(a1);
    v7 = v6;
    if( v6 )
      a2[2] = v4 + a1;
  }
  return v7;
}

Referenced by:

RaspCreatePointList
RaspCreateSegmentList
RaspGetCompositeGlyphList
RaspGetXExtent
RaspInitializeCompositeGlyphData
RaspInitializeGlyphData
RaspInterpolatePoint
RaspLoadEmptyGlyph
RaspRectangleCreate
RaspScanConvert