//
// DemonFilterSelectLayer::selectRating from 0x7de250 to 0x7de314 (196 bytes)
//
// 4 xrefs:
// > DemonFilterSelectLayer::init @ 0x7e49c0
// > ??> @ 0x520d8
// > DemonFilterSelectLayer::init @ 0x7e4858
// > ??> @ 0x1541c50
//
// 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 12:54:25 +0000
//
__int64 __fastcall DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *this, cocos2d::CCObject *a2)
{
unsigned int v3; // w19
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x22
v3 = 0;
*((_DWORD *)this + 170) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 83));
if ( v3 >= (unsigned int)result )
break;
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 83), v3);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5);
(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
++v3;
(*(void (**)(void))(*(_QWORD *)v6 + 960LL))();
}
return result;
}