//
// DemonFilterSelectLayer::selectRating from 0x100057648 to 0x100057710 (200 bytes)
//
// 2 xrefs:
// > DemonFilterSelectLayer::init @ 0x1000575f8
// > DemonFilterSelectLayer::init @ 0x1000573b8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x22
int m_currentDemon; // w25
void *v7; // x1
a1->m_currentDemon = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( (unsigned int)sub_10024A36C(a1->m_demons) )
{
v3 = 0;
do
{
v4 = sub_10024A388(a1->m_demons, v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1056LL))(v4);
m_currentDemon = a1->m_currentDemon;
if ( m_currentDemon == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) )
v7 = &unk_100635CBB;
else
v7 = &unk_100635CB8;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 944LL))(v5, v7);
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_demons) );
}
}