//
// DemonFilterSelectLayer::selectRating from 0x10062f9e0 to 0x10062fa96 (182 bytes)
//
// 1 xrefs:
// > DemonFilterSelectLayer::init @ 0x10062f796
//
// 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)
{
unsigned int v2; // r14d
__int64 v3; // r15
__int64 v4; // r12
int m_currentDemon; // r13d
void *v6; // rsi
a1->m_currentDemon = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( (unsigned int)sub_100720070(a1->m_demons) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a1->m_demons, v2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1056LL))(v3);
m_currentDemon = a1->m_currentDemon;
v6 = &unk_100822740;
if ( m_currentDemon == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3) )
v6 = &unk_100822743;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 944LL))(v4, v6);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_demons) );
}
}