//
// RateStarsModLayer::selectDemon from 0xcfce88 to 0xcfcef0 (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x830b0
// > RateStarsModLayer::init @ 0xcfd694
// > ??> @ 0x15436b8
//
// This function is hookable on this platform (idp: arm, 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 13:06:52 +0000
//
RateStarsModLayer *__fastcall RateStarsModLayer::selectDemon(RateStarsModLayer *this, cocos2d::CCObject *a2)
{
RateStarsModLayer *v2; // x19
int v3; // w1
if ( a2 && *((_DWORD *)this + 179) == 10 )
{
v2 = this;
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == *((_DWORD *)v2 + 189) )
v3 = 0;
*((_DWORD *)v2 + 189) = v3;
RateStarsModLayer::updateDSprite(v2);
return (RateStarsModLayer *)RateStarsModLayer::updateDemonRow(v2);
}
return this;
}