//
// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x100073878 to 0x100073934 (188 bytes)
//
// 2 xrefs:
// > BrowseSmartKeyLayer::createTemplateObjects @ 0x100073468
// > BrowseSmartKeyLayer::addChanceToSelected @ 0x100073774
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *__fastcall BrowseSmartKeyLayer::getAllSelectedBlocks(BrowseSmartKeyLayer *a1)
{
cocos2d::CCArray *v2; // x20
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x23
__int64 v6; // x0
__int64 v7; // x0
v2 = (cocos2d::CCArray *)sub_10024A15C(a1);
if ( (unsigned int)sub_10024A36C(a1->m_pages) )
{
v3 = 0;
do
{
v4 = sub_10024A388(a1->m_pages, v3);
if ( (unsigned int)sub_10024A36C(v4) )
{
v5 = 0;
do
{
v6 = sub_10024A388(v4, v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6);
if ( *(_BYTE *)(v7 + 360) == 1 )
sub_10024A2D0(v2, v7);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(v4) );
}
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_pages) );
}
return v2;
}