//
// DemonFilterSelectLayer::selectRating from 0x495238 to 0x4952a2 (106 bytes)
//
// 1 xrefs:
// > DemonFilterSelectLayer::init @ 0x495fb6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:41 +0000
//
unsigned int __fastcall DemonFilterSelectLayer::selectRating(DemonFilterSelectLayer *this, cocos2d::CCObject *a2)
{
unsigned int v3; // r4
unsigned int result; // r0
int v5; // r0
int v6; // r8
int v7; // r0
int v8; // r10
int v9; // r7
void *v10; // r1
v3 = 0;
*((_DWORD *)this + 132) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 130));
if ( v3 >= result )
break;
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 130), v3++);
v6 = v5;
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);
v8 = *((_DWORD *)this + 132);
v9 = v7;
if ( v8 == (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 32))(v6) )
v10 = &unk_BEBFFF;
else
v10 = &unk_BEBFFC;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v9 + 480))(v9, v10);
}
return result;
}