//
// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x1405f1da0 to 0x1405f1e70 (208 bytes)
//
// 6 xrefs:
// > BrowseSmartKeyLayer::onButton @ 0x1405f19f0
// > BrowseSmartKeyLayer::onButton @ 0x1405f1a92
// > BrowseSmartKeyLayer::addChanceToSelected @ 0x1405f1e96
// > ??> @ 0x1408e3328
// > ??> @ 0x1408e3338
// > ??> @ 0x14092f2ac
//
// 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:35:06 +0000
//
cocos2d::CCArray *__fastcall BrowseSmartKeyLayer::getAllSelectedBlocks(__int64 a1)
{
unsigned int v2; // ebp
cocos2d::CCArray *i; // rsi
cocos2d::CCArray *v4; // rdi
unsigned int j; // ebx
struct cocos2d::CCObject *v6; // rax
struct cocos2d::CCObject *v7; // rax
v2 = 0;
for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672));
++v2 )
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v2);
for ( j = 0; j < cocos2d::CCArray::count(v4); ++j )
{
v6 = cocos2d::CCArray::objectAtIndex(v4, j);
v7 = (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 952LL))(v6);
if ( *((_BYTE *)v7 + 368) )
cocos2d::CCArray::addObject(i, v7);
}
}
return i;
}