Mac SFILE_InternalReadAlignedSector: uint32_t __fastcc (D2MPQFileStrc* pMPQFile ECX, uint32_t nAlignedOffset EDX)
ECX -> ESI = the MPQ file (+0x114 archive, +0x118 block). EDX = the aligned offset, compared with and stored to the archive's cached offset at +0x11c and added to the +0x120 sector size. On a cache hit it returns the cached +0x128 result; otherwise it calls 0x00015661 (ECX=file, two stack args) and caches and returns its EAX. There are no stack args. Same roles as Windows twin 0x00416fb0 uint32_t (nAlignedOffset, pMPQFile), in Mac register order.
Changes 1, applied together
Set prototype
mac 0x000155dbsignatureundefined SFILE_InternalReadAlignedSector(void)→uint32_t SFILE_InternalReadAlignedSector(D2MPQFileStrc* pMPQFile, uint32_t nAlignedOffset)conventionunknown→__fastcc