//
// BrowseSmartKeyLayer::getAllSelectedBlocks from 0x1004ebcb0 to 0x1004ebd7f (207 bytes)
//
// 2 xrefs:
// > BrowseSmartKeyLayer::createTemplateObjects @ 0x1004eb7b4
// > BrowseSmartKeyLayer::addChanceToSelected @ 0x1004ebaea
//
// 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)
{
__int64 v1; // rsi
cocos2d::CCArray *v2; // r14
unsigned int v3; // r15d
__int64 v4; // r12
unsigned int v5; // r13d
__int64 v6; // rax
__int64 v7; // rax
v2 = (cocos2d::CCArray *)sub_10071F9E0(a1, v1);
if ( (unsigned int)sub_100720070(a1->m_pages) )
{
v3 = 0;
do
{
v4 = sub_1007200C0(a1->m_pages, v3);
if ( (unsigned int)sub_100720070(v4) )
{
v5 = 0;
do
{
v6 = sub_1007200C0(v4, v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6);
if ( *(_BYTE *)(v7 + 360) == 1 )
sub_10071FCD0(v2, v7);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(v4) );
}
++v3;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_pages) );
}
return v2;
}