//
// RateStarsModLayer::selectDemon from 0x140560340 to 0x14056038c (76 bytes)
//
// 2 xrefs:
// > RateStarsModLayer::init @ 0x14055fc30
// > ??> @ 0x14092c390
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:34:14 +0000
//
void __fastcall RateStarsModLayer::selectDemon(__int64 a1, __int64 a2)
{
int v3; // eax
if ( *(_DWORD *)(a1 + 716) == 10 && a2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( *(_DWORD *)(a1 + 756) == v3 )
v3 = 0;
*(_DWORD *)(a1 + 756) = v3;
RateStarsModLayer::updateDSprite(a1);
RateStarsModLayer::updateDemonRow(a1);
}
}