//
// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x672e44 to 0x672ea2 (94 bytes)
//
// 2 xrefs:
// > BrowseSmartKeyLayer::addChanceToSelected @ 0x673f9c
// > BrowseSmartKeyLayer::createTemplateObjects @ 0x67412e
//
// 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:55:54 +0000
//
cocos2d::CCArray *__fastcall BrowseSmartKeyLayer::getAllSelectedBlocks(cocos2d::CCArray **this)
{
unsigned int v2; // r4
cocos2d::CCArray *v3; // r6
unsigned int v4; // r5
cocos2d::CCArray *v5; // r8
int v6; // r0
cocos2d::CCObject *v7; // r1
v2 = 0;
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this);
while ( v2 < cocos2d::CCArray::count(*(this + 131)) )
{
v4 = 0;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 131), v2);
while ( v4 < cocos2d::CCArray::count(v5) )
{
v6 = cocos2d::CCArray::objectAtIndex(v5, v4);
v7 = (cocos2d::CCObject *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 536))(v6);
if ( *((_BYTE *)v7 + 284) )
cocos2d::CCArray::addObject(v3, v7);
++v4;
}
++v2;
}
return v3;
}