//
// RateStarsModLayer::updateDemonRow from 0xcfcbec to 0xcfcd5c (368 bytes)
//
// 3 xrefs:
// > RateStarsModLayer::selectRating @ 0xcfce64
// > RateStarsModLayer::selectDemon @ 0xcfcee0
// > ??> @ 0xc1c18
//
// 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
//
__int64 __fastcall RateStarsModLayer::updateDemonRow(RateStarsModLayer *this)
{
unsigned int v2; // w21
_BOOL4 v3; // w23
__int64 v4; // x19
__int64 v5; // x20
int v7; // w0
__int64 v8; // x2
void (__fastcall *v9)(__int64, _BYTE *); // x2
_BYTE v10[8]; // [xsp+60h] [xbp+60h] BYREF
v2 = 0;
v3 = *((_DWORD *)this + 179) == 10;
while ( v2 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 88)) )
{
v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 88), v2);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1072LL))(v4);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v4 + 1056LL))(v4, v3);
if ( v3 )
{
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4);
v8 = *(_QWORD *)v5;
if ( v7 == *((_DWORD *)this + 189) )
{
(*(void (__fastcall **)(__int64, __int64 *))(v8 + 960))(v5, &qword_11A5870);
}
else
{
v9 = *(void (__fastcall **)(__int64, _BYTE *))(v8 + 960);
memset(v10, 125, 3);
v9(v5, v10);
}
++v2;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 912LL))(v5, 0xFFFFFFFFLL);
}
else
{
++v2;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 960LL))(v5, &qword_11A5868);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 912LL))(v5, 100);
}
}
return _stack_chk_guard;
}