//
// BrowseSmartKeyLayer::getAllSelectedBlocks from 0xb14d7c to 0xb14e4c (208 bytes)
//
// 3 xrefs:
// > BrowseSmartKeyLayer::createTemplateObjects @ 0xb161c8
// > BrowseSmartKeyLayer::addChanceToSelected @ 0xb16784
// > ??> @ 0xe3e60
//
// This function is hookable on this platform (idp: arm, 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 13:01:31 +0000
//
cocos2d::CCArray *__fastcall BrowseSmartKeyLayer::getAllSelectedBlocks(cocos2d::CCArray **this)
{
cocos2d::CCArray *v2; // x22
unsigned int i; // w21
unsigned int v4; // w19
cocos2d::CCArray *v5; // x20
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCArray *v8; // x0
__int64 v9; // x0
cocos2d::CCObject *v10; // x1
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this);
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*(this + 84)); ++i )
{
v4 = 0;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 84), i);
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(v5);
v7 = v4;
v8 = v5;
++v4;
if ( v6 )
break;
while ( 1 )
{
v9 = cocos2d::CCArray::objectAtIndex(v8, v7);
v10 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1072LL))(v9);
if ( !*((_BYTE *)v10 + 360) )
break;
cocos2d::CCArray::addObject(v2, v10);
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(v5);
v7 = v4;
v8 = v5;
++v4;
if ( v6 )
goto LABEL_7;
}
}
LABEL_7:
;
}
return v2;
}