// // ControlSlotsPopup::onSave from 0xd0754c to 0xd076b8 (364 bytes) // // 3 xrefs: // > @ 0xc34a8 // > ControlSlotsPopup::init @ 0xd05eb8 // > @ 0x1545b48 // // 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:06:57 +0000 // __int64 __fastcall ControlSlotsPopup::onSave(ControlSlotsPopup *this, cocos2d::CCObject *a2) { unsigned int v3; // w23 TouchControlEditLayer *v4; // x0 GameManager *v5; // x0 const char *v6; // x1 void (__fastcall *v7)(ControlSlotsPopup *, __int64, __int64); // x23 cocos2d::CCString *v8; // x0 const char *CString; // x0 size_t v10; // x0 __int64 v11; // x0 char *v13; // [xsp+48h] [xbp+48h] __int64 v14[2]; // [xsp+58h] [xbp+58h] BYREF void *v15; // [xsp+68h] [xbp+68h] __int64 v16[2]; // [xsp+70h] [xbp+70h] BYREF void *v17; // [xsp+80h] [xbp+80h] v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); v4 = *((TouchControlEditLayer **)this + 127); if ( v4 ) v4 = (TouchControlEditLayer *)TouchControlEditLayer::commitToTarget(v4); v5 = (GameManager *)GameManager::sharedState(v4); GameManager::saveDPadLayout(v5, v3, *((_BYTE *)this + 1024)); v6 = (const char *)v3; v7 = *(void (__fastcall **)(ControlSlotsPopup *, __int64, __int64))(*(_QWORD *)this + 464LL); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Slot %i saved", v6); CString = (const char *)cocos2d::CCString::getCString(v8); v14[0] = 0; v13 = (char *)CString; v14[1] = 0; v15 = nullptr; v10 = strlen(CString); std::string::__init(v14, v13, v10); v16[0] = 0; v16[1] = 0; v17 = nullptr; std::string::__init(v16, &byte_11B8890, 0); v11 = TextAlertPopup::create((char *)v14, 150, (char *)v16, 0.5, 0.6); v7(this, v11, 100); if ( (v16[0] & 1) != 0 ) operator delete(v17); if ( (v14[0] & 1) != 0 ) operator delete(v15); return _stack_chk_guard; }