Newer
Older
AMI-Aptio-BIOS-Reversed / Build / GuidArtifacts / 117828F1-DA7D-4BC1-8B58-9A954FED5121 / RaidMap.c
@Ajax Dong Ajax Dong 2 days ago 443 bytes Full restructure
#include "117828F1-DA7D-4BC1-8B58-9A954FED5121.h"

// RaidMap.c - RAID mapping
// Contains RAID mapping functions extracted from the monolithic source.

// Function: RstRaidMapTranslateAddress @ 0x1523c (0x20 bytes)
// Index: 589/906

unsigned __int64 __fastcall RstRaidMapTranslateAddress(unsigned __int16 *a1, unsigned __int64 a2)
{
  if ( a1[37] ) /*0x1523c*/
    return a2 & a1[38]; /*0x1524a*/
  else
    return a2 % a1[36]; /*0x15259*/
}