// // SetupSFXPopup::onPlusButton from 0xb6d400 to 0xb6d5ac (428 bytes) // // 2 xrefs: // > @ 0x63298 // > @ 0x14c8e48 // // 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:02:18 +0000 // __int64 __fastcall SetupSFXPopup::onPlusButton(cocos2d::CCDictionary **this, cocos2d::CCObject *a2) { GameManager *v3; // x0 cocos2d::CCArray *v4; // x2 LevelEditorLayer *v6; // x0 int NextFreeSFXID; // w22 _QWORD *v8; // x0 _QWORD *v9; // x19 void *v10; // x0 __int64 v11; // x0 LevelEditorLayer *v12; // x0 int NextFreeSFXGroupID; // w22 _QWORD *v14; // x0 _QWORD *v15; // x19 void *v16; // x0 void *v17; // [xsp+30h] [xbp+30h] BYREF __int64 v18; // [xsp+38h] [xbp+38h] void *v19; // [xsp+40h] [xbp+40h] __int64 v20; // [xsp+48h] [xbp+48h] float v21; // [xsp+50h] [xbp+50h] v3 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); switch ( (_DWORD)v3 ) { case 1: v12 = *(LevelEditorLayer **)(GameManager::sharedState(v3) + 552); v17 = nullptr; v18 = 0; v19 = nullptr; v20 = 0; v21 = 1.0; NextFreeSFXGroupID = LevelEditorLayer::getNextFreeSFXGroupID(v12, (__int64)&v17); v14 = v19; if ( v19 ) { do { v15 = (_QWORD *)*v14; operator delete(v14); v14 = v15; } while ( v15 ); } v16 = v17; v17 = nullptr; if ( v16 ) operator delete(v16); SetupTriggerPopup::updateValue(this, 0x1C7u, (float)NextFreeSFXGroupID); break; case 2: v11 = SetupReverbPopup::create(*(this + 85), *(this + 86), v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11); break; case 0: v6 = *(LevelEditorLayer **)(GameManager::sharedState(v3) + 552); v17 = nullptr; v18 = 0; v19 = nullptr; v20 = 0; v21 = 1.0; NextFreeSFXID = LevelEditorLayer::getNextFreeSFXID(v6, (__int64)&v17); v8 = v19; if ( v19 ) { do { v9 = (_QWORD *)*v8; operator delete(v8); v8 = v9; } while ( v9 ); } v10 = v17; v17 = nullptr; if ( v10 ) operator delete(v10); SetupTriggerPopup::updateValue(this, 0x1A0u, (float)NextFreeSFXID); break; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source