// // BrowseSmartKeyLayer::createTemplateObjects from 0xb161a0 to 0xb163a4 (516 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::onButton @ 0xb16934 // > @ 0xc5ad0 // // 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 // __int64 __fastcall BrowseSmartKeyLayer::createTemplateObjects(BrowseSmartKeyLayer *this) { cocos2d::CCArray *AllSelectedBlocks; // x23 unsigned int i; // w20 __int64 v4; // x22 char v5; // w0 __int64 v6; // x0 __int64 v7; // x1 int v8; // w0 void (__fastcall *v9)(BrowseSmartKeyLayer *, __int64, __int64); // x22 __int64 v10; // x0 __int64 v12[2]; // [xsp+48h] [xbp+48h] BYREF void *v13; // [xsp+58h] [xbp+58h] __int64 v14; // [xsp+60h] [xbp+60h] BYREF __int64 v15; // [xsp+68h] [xbp+68h] void *v16; // [xsp+70h] [xbp+70h] AllSelectedBlocks = BrowseSmartKeyLayer::getAllSelectedBlocks((cocos2d::CCArray **)this); if ( (unsigned int)cocos2d::CCArray::count(AllSelectedBlocks) ) { for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(AllSelectedBlocks); ++i ) { v4 = cocos2d::CCArray::objectAtIndex(AllSelectedBlocks, i); v5 = *((_BYTE *)this + 712); v14 = 0; v15 = 0; v16 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v14, *((void **)this + 91), *((_QWORD *)this + 90)); } else { v6 = *((_QWORD *)this + 89); v7 = *((_QWORD *)this + 90); v16 = *((void **)this + 91); v14 = v6; v15 = v7; } v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4); BrowseSmartTemplateLayer::createPrefab((__int64)this, (char *)&v14, v8); if ( (v14 & 1) != 0 ) operator delete(v16); } v9 = *(void (__fastcall **)(BrowseSmartKeyLayer *, __int64, __int64))(*(_QWORD *)this + 464LL); v12[0] = 0; v12[1] = 0; v13 = nullptr; std::string::__init(v12, "Added to editor", 0xFu); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, &byte_11B8890, 0); v10 = TextAlertPopup::create((char *)v12, 150, (char *)&v14, 0.5, 0.6); v9(this, v10, 100); if ( (v14 & 1) != 0 ) { operator delete(v16); if ( (v12[0] & 1) == 0 ) return _stack_chk_guard; } else if ( (v12[0] & 1) == 0 ) { return _stack_chk_guard; } operator delete(v13); } return _stack_chk_guard; }