//
// RateStarsModLayer::selectDemon from 0x79e76c to 0x79e7a2 (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:52 +0000
//
unsigned int __fastcall RateStarsModLayer::selectDemon(unsigned int this, cocos2d::CCObject *a2)
{
RateStarsModLayer *v2; // r4
int v3; // r0
int v4; // r1
int v5; // r2
v2 = (RateStarsModLayer *)this;
if ( *(_DWORD *)(this + 548) == 10 && a2 )
{
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( *((_DWORD *)v2 + 143) == v3 )
v3 = 0;
*((_DWORD *)v2 + 143) = v3;
RateStarsModLayer::updateDSprite(v2);
return RateStarsModLayer::updateDemonRow(v2, v4, v5);
}
return this;
}