// // DemonFilterSelectLayer::selectRating from 0x140441230 to 0x1404412eb (187 bytes) // // 5 xrefs: // > DemonFilterSelectLayer::init @ 0x1404411c9 // > DemonFilterSelectLayer::init @ 0x140440f80 // > @ 0x1408cb514 // > @ 0x1408cb524 // > @ 0x14092708c // // This function is hookable on this platform (idp: pc, 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 11:32:21 +0000 // unsigned int __fastcall DemonFilterSelectLayer::selectRating(__int64 a1, __int64 a2) { int v3; // eax cocos2d::CCArray *v4; // rcx unsigned int v5; // ebx unsigned int result; // eax struct cocos2d::CCObject *v7; // rsi __int64 v8; // rdi int v9; // eax void *v10; // rdx v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = *(cocos2d::CCArray **)(a1 + 664); v5 = 0; *(_DWORD *)(a1 + 680) = v3; result = cocos2d::CCArray::count(v4); if ( result ) { do { v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v5); v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 952LL))(v7); v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 56LL))(v7); v10 = &unk_140703BBC; if ( *(_DWORD *)(a1 + 680) == v9 ) v10 = &unk_140703BC0; (**(void (__fastcall ***)(__int64, void *))(v8 + 320))(v8 + 320, v10); ++v5; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)); } while ( v5 < result ); } return result; }