// // EditorUI::editObjectSpecial from 0x7c517c to 0x7c5680 (1284 bytes) // // 3 xrefs: // > EditorUI::editObject2 @ 0x7c5684 // > EditorUI::editObject3 @ 0x7c568c // > @ 0xff4c0 // // 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 12:54:08 +0000 // __int64 __fastcall EditorUI::editObjectSpecial(EditorUI *this, int a2) { unsigned int v4; // w21 EditorBuildStats *v5; // x0 GameObject *v6; // x1 cocos2d::CCArray *v7; // x2 __int64 v8; // x0 cocos2d::CCArray *v9; // x2 int v10; // w21 __int64 v11; // x0 bool v12; // w4 __int64 v13; // x0 _BOOL4 v14; // w3 cocos2d::CCArray *v15; // x2 bool v16; // w3 _BOOL4 v17; // w22 EditorSFXManager *v18; // x0 __int64 v19; // x0 cocos2d::CCArray *v20; // x0 cocos2d::CCArray *v21; // x22 unsigned int i; // w21 cocos2d::CCObject *v23; // x1 EditorSFXManager *v24; // x0 EditorSFXManager *v25; // x19 EditorSFXManager *v26; // x0 __int64 v28; // x0 cocos2d::CCArray *v29; // x2 cocos2d::CCArray *v30; // x2 unsigned int v31; // w21 __int64 v32; // x0 SetupSmartBlockLayer *v33; // x0 unsigned int j; // w21 cocos2d::CCArray *v35; // x2 EditorSFXManager *v36; // x0 EditorSFXManager *v37; // x0 unsigned int k; // w21 __int64 v39; // x0 cocos2d::CCArray *v40; // x2 EditorSFXManager *v41; // x0 unsigned int m; // w21 __int64 v43; // x0 cocos2d::CCArray *v44; // x2 EditorSFXManager *v45; // x0 cocos2d::CCArray *v46; // [xsp+3Ch] [xbp+3Ch] BYREF int v47; // [xsp+44h] [xbp+44h] BYREF if ( !*((_QWORD *)this + 187) && !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) return _stack_chk_guard; v4 = 0; v5 = (EditorBuildStats *)(*((_QWORD *)this + 180) + 14704LL); *((_DWORD *)v5 + 4) = *(_DWORD *)(*((_QWORD *)this + 180) + 14720LL) + 1; EditorBuildStats::noteAction(v5); v6 = *((GameObject **)this + 187); v7 = *((cocos2d::CCArray **)this + 112); v46 = (cocos2d::CCArray *)-1LL; v47 = -1; EditorUI::getGroupInfo(this, v6, v7, (int *)&v46, (int *)&v46 + 1, &v47); v8 = *((_QWORD *)this + 187); if ( v8 ) { v10 = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1736LL))(v8); } else { while ( 1 ) { if ( v4 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { v10 = 1; goto LABEL_4; } v19 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), v4); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v19 + 1736LL))(v19) ) break; ++v4; } v10 = 0; } LABEL_4: if ( v46 == (cocos2d::CCArray *)-1LL ) { if ( !v10 && v47 == -1 ) return _stack_chk_guard; } else if ( HIDWORD(v46) == 5 ) { LABEL_29: v20 = *((cocos2d::CCArray **)this + 112); v21 = nullptr; if ( v20 ) { v21 = (cocos2d::CCArray *)cocos2d::CCArray::create(v20); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)); ++i ) { v23 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), i); if ( *((_DWORD *)v23 + 312) == 5 ) cocos2d::CCArray::addObject(v21, v23); } } v24 = (EditorSFXManager *)SetupSmartBlockLayer::create(*((SetupSmartBlockLayer **)this + 187), v21, v9); goto LABEL_35; } v11 = *((_QWORD *)this + 187); if ( v11 && *(_DWORD *)(v11 + 1248) == 5 || (unsigned __int8)EditorUI::arrayContainsClass(this, *((cocos2d::CCArray **)this + 112), 5) ) { goto LABEL_29; } v13 = *((_QWORD *)this + 180); if ( *(_BYTE *)(v13 + 12238) && ((_DWORD)v46 == 1751 || (_DWORD)v46 == 1704) ) { v24 = (EditorSFXManager *)SetupDashRingPopup::create( *((SetupDashRingPopup **)this + 187), *((DashRingObject **)this + 112), (cocos2d::CCArray *)(unsigned int)v46); LABEL_35: v25 = v24; v26 = (EditorSFXManager *)EditorSFXManager::sharedState(v24); EditorSFXManager::playAction(v26, 109, 107); (*(void (__fastcall **)(EditorSFXManager *))(*(_QWORD *)v25 + 1312LL))(v25); return _stack_chk_guard; } switch ( (_DWORD)v46 ) { case 0xB57: v24 = (EditorSFXManager *)SetupGradientPopup::create( *((SetupGradientPopup **)this + 187), *((GradientTriggerObject **)this + 112), (cocos2d::CCArray *)((char *)&elf_hash_bucket[599] + 3)); goto LABEL_35; case 0xB58: return _stack_chk_guard; case 0x80F: v24 = (EditorSFXManager *)SetupCheckpointPopup::create( *((SetupCheckpointPopup **)this + 187), *((CheckpointGameObject **)this + 112), (cocos2d::CCArray *)((char *)&elf_hash_bucket[389] + 3)); goto LABEL_35; } v14 = (_DWORD)v46 == 2902; if ( v14 || (_DWORD)v46 == 747 || (_DWORD)v46 == 3027 ) { v24 = (EditorSFXManager *)SetupTeleportPopup::create( *((SetupTeleportPopup **)this + 187), *((TeleportPortalObject **)this + 112), (cocos2d::CCArray *)(unsigned int)v46, *(unsigned __int8 *)(*(_QWORD *)(v13 + 3272) + 341LL), v12); goto LABEL_35; } switch ( (_DWORD)v46 ) { case 0x64F: v24 = (EditorSFXManager *)SetItemIDLayer::create( *((SetItemIDLayer **)this + 187), *((EffectGameObject **)this + 112), (cocos2d::CCArray *)((char *)&elf_hash_bucket[277] + 3)); goto LABEL_35; case 0x811: v24 = (EditorSFXManager *)CreateParticlePopup::create( *((CreateParticlePopup **)this + 187), *((ParticleGameObject **)this + 112), (cocos2d::CCArray *)((char *)&elf_hash_bucket[390] + 1)); goto LABEL_35; case 0x63A: v24 = (EditorSFXManager *)SetupObjectTogglePopup::create( *((SetupObjectTogglePopup **)this + 187), *((EffectGameObject **)this + 112), (cocos2d::CCArray *)*(unsigned __int8 *)(*(_QWORD *)(v13 + 3272) + 341LL), v14); goto LABEL_35; } if ( (unsigned __int8)EditorUI::canAllowMultiActivate( this, *((GameObject **)this + 187), *((cocos2d::CCArray **)this + 112)) ) { v24 = (EditorSFXManager *)EditGameObjectPopup::create( *((EditGameObjectPopup **)this + 187), *((EffectGameObject **)this + 112), (cocos2d::CCArray *)*(unsigned __int8 *)(*(_QWORD *)(*((_QWORD *)this + 180) + 3272LL) + 341LL), v16); goto LABEL_35; } if ( v10 ) { v24 = (EditorSFXManager *)SetupRotatePopup::create( *((SetupRotatePopup **)this + 187), *((EnhancedGameObject **)this + 112), v15); goto LABEL_35; } v17 = a2 != 1; if ( v17 && v47 == 30 ) { LABEL_24: v18 = (EditorSFXManager *)SetupInteractObjectPopup::create( *((SetupInteractObjectPopup **)this + 187), *((EffectGameObject **)this + 112), v15); sub_7C0494(v18); return _stack_chk_guard; } v28 = *((_QWORD *)this + 187); if ( v28 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v28 + 1728LL))(v28) ) { v24 = (EditorSFXManager *)SetupAnimSettingsPopup::create(*((SetupAnimSettingsPopup **)this + 187), nullptr, v29); goto LABEL_35; } if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) return _stack_chk_guard; v31 = 0; if ( v17 ) { while ( v31 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { v32 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), v31); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v32 + 1800LL))(v32) != 30 ) goto LABEL_58; ++v31; } goto LABEL_24; } LABEL_58: v33 = *((SetupSmartBlockLayer **)this + 187); if ( HIDWORD(v46) == 5 || v33 && *((_DWORD *)v33 + 312) == 5 ) { v37 = (EditorSFXManager *)SetupSmartBlockLayer::create(v33, *((SmartGameObject **)this + 112), v30); sub_7C0494(v37); } else { for ( j = 0; ; ++j ) { if ( j >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { v36 = (EditorSFXManager *)CreateParticlePopup::create( *((CreateParticlePopup **)this + 187), *((ParticleGameObject **)this + 112), v35); sub_7C0494(v36); return _stack_chk_guard; } if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), j) + 1028) != 2065 ) break; } for ( k = 0; ; ++k ) { if ( k >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { v41 = (EditorSFXManager *)SetupAnimSettingsPopup::create( *((SetupAnimSettingsPopup **)this + 187), *((EffectGameObject **)this + 112), v40); sub_7C0494(v41); return _stack_chk_guard; } v39 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), k); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v39 + 1728LL))(v39) ) break; } for ( m = 0; m < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)); ++m ) { v43 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), m); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v43 + 1736LL))(v43) ) return _stack_chk_guard; } v45 = (EditorSFXManager *)SetupRotatePopup::create( *((SetupRotatePopup **)this + 187), *((EnhancedGameObject **)this + 112), v44); sub_7C0494(v45); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source