PiDmGetObjectManagerForObjectType

VOID *__fastcall PiDmGetObjectManagerForObjectType(INT64 a1){
  VOID *v1; 
  int v2; 
  int v3; 
  int v4; 
  int v6; 
  int v7; 
  v1 = 0i64;
  v2 = a1 - 1;
  if( !v2 )
    return &PiDmDeviceManager;
  v3 = v2 - 1;
  if( !v3 )
    return &PiDmDeviceInstallerClassManager;
  v4 = v3 - 1;
  if( !v4 )
    return &PiDmDeviceInterfaceManager;
  v6 = v4 - 1;
  if( !v6 )
    return &PiDmDeviceInterfaceClassManager;
  v7 = v6 - 1;
  if( !v7 )
    return &PiDmDeviceContainerManager;
  if( v7 == 1 )
    return &PiDmDevicePanelManager;
  return v1;
}

Referenced by:

PiDmAddCacheReferenceForObject
PiDmEnumObjectsWithCallback
PiDmGetObject
PiDmGetObjectCount
PiDmListAddList
PiDmListAddObject
PiDmListRemoveList
PiDmListRemoveObject
PiDmRemoveCacheReferenceForObject