//
// DemonFilterSelectLayer::selectRating from 0x140317f90 to 0x140318045 (181 bytes)
//
// 5 xrefs:
// > DemonFilterSelectLayer::init @ 0x140317f2c
// > DemonFilterSelectLayer::init @ 0x140317cfd
// > ??> @ 0x140692cfc
// > ??> @ 0x140692d0c
// > ??> @ 0x1406d49c4
//
// 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 DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *a1, cocos2d::CCObject *a2)
{
int v3; // eax
cocos2d::CCArray *m_demons; // rcx
unsigned int v5; // ebx
struct cocos2d::CCObject *v6; // rsi
__int64 v7; // rdi
int v8; // eax
void *v9; // rdx
v3 = a2->getTag(a2);
m_demons = a1->m_demons;
v5 = 0;
a1->m_currentDemon = v3;
if ( cocos2d::CCArray::count(m_demons) )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_demons, v5);
v7 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v6->__vftable[13].copyWithZone)(v6);
v8 = v6->getTag(v6);
v9 = &unk_140529B58;
if ( a1->m_currentDemon == v8 )
v9 = &unk_140529B5C;
(**(void (__fastcall ***)(__int64, void *))(v7 + 320))(v7 + 320, v9);
++v5;
}
while ( v5 < cocos2d::CCArray::count(a1->m_demons) );
}
}