// // SetupSmartTemplateLayer::FLAlert_Clicked from 0x140459740 to 0x14045981d (221 bytes) // // 2 xrefs: // > @ 0x1405f60a0 // > @ 0x1406daaa8 // // 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 // // Hidden C++ exception states: #wind=1 void SetupSmartTemplateLayer::FLAlert_Clicked(SetupSmartTemplateLayer *a1, FLAlertLayer *a2, bool a3) { __int64 v5; // rcx struct cocos2d::CCObject *v6; // rdx __int64 v7; // r8 GJSearchObject *v8; // rax LevelBrowserLayer *v9; // rax void *v10; // [rsp+38h] [rbp+10h] if ( a2->getTag(a2) == 5 && a3 ) { v5 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v10 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v5 = qword_1406C2EC0; } v6 = *(struct cocos2d::CCObject **)&a1->m_uID; if ( v6 ) { v7 = *(_QWORD *)(v5 + 960); if ( v7 ) { if ( *(_DWORD *)(v7 + 200) == v6[3].m_uIndexInArray ) *(_QWORD *)(v5 + 960) = 0; } cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v5 + 952), v6, 1); } SetupSmartTemplateLayer::onClose((SetupSmartTemplateLayer *)((char *)a1 - 640), v6); v8 = GJSearchObject::create_2(SmartTemplates); v8->m_searchIsOverlay = 1; v9 = LevelBrowserLayer::create(v8); LevelBrowserLayer::show(v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source