// // SetupSmartBlockLayer::onCreateAll from 0x100078844 to 0x100078984 (320 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x100077c04 // // 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 10:58:14 +0000 // __int64 __fastcall SetupSmartBlockLayer::onCreateAll(__int64 a1) { __int64 v1; // x0 __int64 result; // x0 __int64 v3; // x19 __int64 v4; // x20 __int64 v5; // x21 __int64 v6; // x22 __int64 v7; // x0 char *CString; // x0 __int64 v9; // x23 __int64 i; // x24 __int64 v11; // x25 __int64 v12; // x26 void *__p[2]; // [xsp+0h] [xbp-70h] BYREF __int64 v14; // [xsp+10h] [xbp-60h] void *v15[2]; // [xsp+18h] [xbp-58h] BYREF __int64 v16; // [xsp+28h] [xbp-48h] v1 = GameLevelManager::sharedState(a1); result = GameLevelManager::getActiveSmartTemplate(v1); if ( result ) { v3 = result; *(_DWORD *)(result + 196) = 0; v4 = *(_QWORD *)(result + 56); if ( v4 ) { v5 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(result + 56)); result = sub_1002E757C(v5); if ( (_DWORD)result ) { v6 = 0; do { v7 = cocos2d::CCArray::stringAtIndex(v5, v6); CString = (char *)cocos2d::CCString::getCString(v7); sub_100009900(v15, CString); v9 = cocos2d::CCDictionary::objectForKey(v4, v15); for ( i = 0; (unsigned int)i < (unsigned int)sub_1002E757C(v9); i = (unsigned int)(i + 1) ) { v11 = sub_1002E75A0(v9, i); v12 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v11) + 552) + 14248LL); if ( SHIBYTE(v16) < 0 ) { sub_1000097D0(__p, v15[0], (unsigned __int64)v15[1]); } else { *(_OWORD *)__p = *(_OWORD *)v15; v14 = v16; } sub_1004796B4(v12, v3, __p, *(unsigned int *)(v11 + 104)); if ( SHIBYTE(v14) < 0 ) operator delete(__p[0]); } if ( SHIBYTE(v16) < 0 ) operator delete(v15[0]); v6 = (unsigned int)(v6 + 1); result = sub_1002E757C(v5); } while ( (unsigned int)v6 < (unsigned int)result ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source