// // SetupSmartBlockLayer::onCreate from 0x1000784bc to 0x100078598 (220 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x100077aa8 // // 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::onCreate(__int64 a1) { __int64 v2; // x0 __int64 v3; // x20 __int64 v4; // x1 __int64 v5; // x1 int v6; // w8 _BOOL8 v7; // x21 __int64 v8; // x22 __int64 RandomStartKey; // x0 __int64 v10; // x0 __int64 v11; // x0 __int64 ActiveSmartTemplate; // x21 __int64 v13; // x0 v2 = sub_1002E736C(a1); v3 = v2; v4 = *(_QWORD *)(a1 + 688); if ( v4 ) { sub_1002E74E0(v2, v4); } else { v5 = *(_QWORD *)(a1 + 696); if ( v5 ) v2 = sub_1002E7570(v2, v5); } v6 = *(_DWORD *)(a1 + 680); if ( v6 < 0 ) { v11 = GameLevelManager::sharedState(v2); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v11); v13 = GameManager::sharedState(ActiveSmartTemplate); EditorUI::createSmartObjectsFromTemplate( *(_QWORD *)(*(_QWORD *)(v13 + 552) + 14248LL), ActiveSmartTemplate, v3, *(unsigned __int8 *)(a1 + 676), *(unsigned __int8 *)(a1 + 677), 0, 0); } else { if ( v6 == 9 ) *(_DWORD *)(a1 + 680) = 8; v7 = v6 == 9; v8 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v2) + 552) + 14248LL); RandomStartKey = EditorUI::getRandomStartKey(*(unsigned int *)(a1 + 680)); v10 = EditorUI::smartTypeForKey(RandomStartKey); EditorUI::createSmartObjectsFromType(v8, v10, v3, v7, *(unsigned __int8 *)(a1 + 677)); } return SetupSmartBlockLayer::onClose((_QWORD *)a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source