// // TouchControlEditLayer::onCopy from 0xd086a4 to 0xd08894 (496 bytes) // // 3 xrefs: // > @ 0x997c0 // > TouchControlEditLayer::buildHud @ 0xd059f8 // > @ 0x1544310 // // 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 TouchControlEditLayer::onCopy(LevelControlConfig **this, cocos2d::CCObject *a2) { LevelControlConfig *v3; // x0 void (__fastcall *v4)(LevelControlConfig **, __int64, __int64); // x23 __int64 v5; // x0 __int64 *v7; // x0 __int64 v8[2]; // [xsp+48h] [xbp+48h] BYREF void *v9; // [xsp+58h] [xbp+58h] __int64 v10; // [xsp+60h] [xbp+60h] BYREF __int64 v11; // [xsp+68h] [xbp+68h] void *v12; // [xsp+70h] [xbp+70h] if ( *((_BYTE *)this + 1336) ) { TouchControlEditLayer::saveTarget((TouchControlEditLayer *)this); v3 = *(this + 127); if ( v3 ) { LABEL_3: LevelControlConfig::encodeB64(&v10, v3); if ( (qword_155F688 & 1) != 0 ) { *(_BYTE *)qword_155F698 = 0; qword_155F690 = 0; } else { LOWORD(qword_155F688) = 0; } goto LABEL_5; } } else { v3 = *(this + 127); if ( v3 ) goto LABEL_3; } v7 = LevelControlConfig::createFromGlobal((LevelControlConfig *)*((unsigned __int8 *)this + 1012)); LevelControlConfig::encodeB64(&v10, (LevelControlConfig *)v7); if ( (qword_155F688 & 1) != 0 ) { *(_BYTE *)qword_155F698 = 0; qword_155F690 = 0; } else { LOWORD(qword_155F688) = 0; } LABEL_5: std::string::reserve(&qword_155F688, 0); qword_155F698 = (__int64)v12; qword_155F688 = v10; qword_155F690 = v11; v4 = *((void (__fastcall **)(LevelControlConfig **, __int64, __int64))*this + 58); v8[0] = 0; v8[1] = 0; v9 = nullptr; std::string::__init(v8, "Copied", 6u); v10 = 0; v11 = 0; v12 = nullptr; std::string::__init(&v10, &byte_11B8890, 0); v5 = TextAlertPopup::create((char *)v8, 150, (char *)&v10, 0.5, 0.6); v4(this, v5, 100); if ( (v10 & 1) != 0 ) operator delete(v12); if ( (v8[0] & 1) != 0 ) operator delete(v9); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source