RaspClearCache

INT64 __fastcall RaspClearCache(INT64 *a1, INT16 a2, INT64 a3, INT64 a4){
  INT64 result; 
  __int64 v5; 
  while( 1 )
  {
    result = RaspBitmapCache;
    v5 = *(_QWORD *)RaspBitmapCache;
    if( *(INT64 **)(RaspBitmapCache + 8) != &RaspBitmapCache || *(_QWORD *)(v5 + 8) != RaspBitmapCache )
      __fastfail(3u);
    RaspBitmapCache = *(_QWORD *)RaspBitmapCache;
    *(_QWORD *)(v5 + 8) = &RaspBitmapCache;
    if( (INT64 *)result == &RaspBitmapCache )
      break;
    RaspDestroyCachedBitmap(result);
  }
  dword_140C13214 = 0;
  return result;
}

Referenced by:

AnFwDisplayProgressIndicator
AnFwpDisableProgressTimer
BgpTxtDestroyRegion
ResFwFreeContext