// // EditorUI::editObjectSpecial from 0x483960 to 0x483cb2 (850 bytes) // // 2 xrefs: // > EditorUI::editObject2 @ 0x483cba // > EditorUI::editObject3 @ 0x483cc0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:49:24 +0000 // cocos2d::CCArray *__fastcall EditorUI::editObjectSpecial(EditorUI *this, int a2) { cocos2d::CCArray *result; // r0 EditorBuildStats *v5; // r0 int v6; // r0 cocos2d::CCArray *v7; // r2 int v8; // r6 int v9; // r3 unsigned int i; // r5 int v11; // r0 cocos2d::CCArray *v12; // r5 unsigned int v13; // r6 cocos2d::CCObject *v14; // r1 SetupSmartBlockLayer *v15; // r0 SmartGameObject *v16; // r1 int v17; // r3 cocos2d::CCArray *v18; // r2 EditorSFXManager *v19; // r0 cocos2d::CCArray *v20; // r2 SetupInteractObjectPopup *v21; // r0 cocos2d::CCArray *v22; // r2 SetupAnimSettingsPopup *v23; // r0 EffectGameObject *v24; // r1 unsigned int j; // r5 int v26; // r0 unsigned int v27; // r5 unsigned int k; // r5 int v29; // r0 unsigned int m; // r5 int v31; // r0 bool v32; // [sp+0h] [bp-18h] cocos2d::CCArray *v33; // [sp+8h] [bp-10h] BYREF int v34; // [sp+Ch] [bp-Ch] BYREF int v35; // [sp+10h] [bp-8h] BYREF if ( *((_DWORD *)this + 249) || (result = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167))) != nullptr ) { v5 = (EditorBuildStats *)(*((_DWORD *)this + 236) + 12104); *((_DWORD *)v5 + 4) = *(_DWORD *)(*((_DWORD *)this + 236) + 12120) + 1; EditorBuildStats::noteAction(v5); v33 = (cocos2d::CCArray *)-1; v34 = -1; v35 = -1; EditorUI::getGroupInfo( this, *((GameObject **)this + 249), *((cocos2d::CCArray **)this + 167), (int *)&v33, &v34, &v35); v6 = *((_DWORD *)this + 249); if ( v6 ) { result = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 868))(v6); LABEL_5: v8 = (int)result; } else { for ( i = 0; ; ++i ) { result = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)); if ( i >= (unsigned int)result ) break; v11 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), i); result = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 868))(v11); if ( !result ) goto LABEL_5; } v8 = 1; } if ( v33 != (cocos2d::CCArray *)-1 || (v7 = (cocos2d::CCArray *)(v34 + 1), v34 != -1) ) { if ( v34 == 5 ) goto LABEL_21; goto LABEL_12; } if ( v35 != -1 || v8 ) { LABEL_12: v9 = *((_DWORD *)this + 249); if ( !v9 || *(_DWORD *)(v9 + 1084) != 5 ) { result = (cocos2d::CCArray *)EditorUI::arrayContainsClass(this, *((cocos2d::CCArray **)this + 167), 5); if ( !result ) { v17 = *((_DWORD *)this + 236); v18 = v33; if ( *(_BYTE *)(v17 + 10614) && (v33 == (cocos2d::CCArray *)&stru_69C.st_info || v33 == (cocos2d::CCArray *)((char *)&stru_6CC.st_size + 3)) ) { v19 = (EditorSFXManager *)SetupDashRingPopup::create( *((SetupDashRingPopup **)this + 249), *((DashRingObject **)this + 167), v33); return (cocos2d::CCArray *)sub_481000(v19); } if ( v33 == (cocos2d::CCArray *)((char *)&stru_B4C.st_size + 3) ) { v19 = (EditorSFXManager *)SetupGradientPopup::create( *((SetupGradientPopup **)this + 249), *((GradientTriggerObject **)this + 167), (cocos2d::CCArray *)((char *)&stru_B4C.st_size + 3)); return (cocos2d::CCArray *)sub_481000(v19); } if ( v33 == (cocos2d::CCArray *)&stru_B4C.st_info ) return result; if ( v33 == (cocos2d::CCArray *)((char *)&stru_80C.st_name + 3) ) { v19 = (EditorSFXManager *)SetupCheckpointPopup::create( *((SetupCheckpointPopup **)this + 249), *((CheckpointGameObject **)this + 167), (cocos2d::CCArray *)((char *)&stru_80C.st_name + 3)); return (cocos2d::CCArray *)sub_481000(v19); } if ( v33 == (cocos2d::CCArray *)((char *)&stru_2DC.st_shndx + 1) || v33 == (cocos2d::CCArray *)((char *)&stru_B4C.st_size + 2) || v33 == (cocos2d::CCArray *)((char *)&stru_BCC.st_value + 3) ) { v19 = (EditorSFXManager *)SetupTeleportPopup::create( *((SetupTeleportPopup **)this + 249), *((TeleportPortalObject **)this + 167), v33, *(unsigned __int8 *)(*(_DWORD *)(v17 + 2084) + 281), v32); return (cocos2d::CCArray *)sub_481000(v19); } if ( v33 == (cocos2d::CCArray *)((char *)&stru_64C.st_name + 3) ) { v19 = (EditorSFXManager *)SetItemIDLayer::create( *((SetItemIDLayer **)this + 249), *((EffectGameObject **)this + 167), (cocos2d::CCArray *)((char *)&stru_64C.st_name + 3)); return (cocos2d::CCArray *)sub_481000(v19); } if ( v33 == (cocos2d::CCArray *)((char *)&stru_80C.st_value + 1) ) { LABEL_79: v19 = (EditorSFXManager *)CreateParticlePopup::create( *((CreateParticlePopup **)this + 249), *((ParticleGameObject **)this + 167), v18); return (cocos2d::CCArray *)sub_481000(v19); } if ( v33 == (cocos2d::CCArray *)&stru_62C.st_shndx ) { v19 = (EditorSFXManager *)SetupObjectTogglePopup::create( *((SetupObjectTogglePopup **)this + 249), *((EffectGameObject **)this + 167), (cocos2d::CCArray *)*(unsigned __int8 *)(*(_DWORD *)(v17 + 2084) + 281), *(_DWORD *)(v17 + 2084)); return (cocos2d::CCArray *)sub_481000(v19); } if ( EditorUI::canAllowMultiActivate(this, *((GameObject **)this + 249), *((cocos2d::CCArray **)this + 167)) ) { v19 = (EditorSFXManager *)EditGameObjectPopup::create( *((EditGameObjectPopup **)this + 249), *((EffectGameObject **)this + 167), (cocos2d::CCArray *)*(unsigned __int8 *)(*(_DWORD *)(*((_DWORD *)this + 236) + 2084) + 281), *(_DWORD *)(*((_DWORD *)this + 236) + 2084)); return (cocos2d::CCArray *)sub_481000(v19); } if ( v8 ) { LABEL_82: v19 = (EditorSFXManager *)SetupRotatePopup::create( *((SetupRotatePopup **)this + 249), *((EnhancedGameObject **)this + 167), v20); return (cocos2d::CCArray *)sub_481000(v19); } v21 = *((SetupInteractObjectPopup **)this + 249); if ( v35 == 30 && a2 != 1 ) { LABEL_76: v19 = (EditorSFXManager *)SetupInteractObjectPopup::create(v21, *((EffectGameObject **)this + 167), v20); return (cocos2d::CCArray *)sub_481000(v19); } if ( v21 && (*(int (__fastcall **)(SetupInteractObjectPopup *))(*(_DWORD *)v21 + 864))(v21) ) { v23 = *((SetupAnimSettingsPopup **)this + 249); v24 = nullptr; LABEL_81: v19 = (EditorSFXManager *)SetupAnimSettingsPopup::create(v23, v24, v22); return (cocos2d::CCArray *)sub_481000(v19); } result = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)); if ( !result ) return result; if ( a2 != 1 ) { for ( j = 0; j < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)); ++j ) { v26 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), j); if ( (*(int (__fastcall **)(int))(*(_DWORD *)v26 + 900))(v26) != 30 ) goto LABEL_60; } v21 = *((SetupInteractObjectPopup **)this + 249); goto LABEL_76; } LABEL_60: if ( v34 != 5 ) { v27 = *((_DWORD *)this + 249); if ( !v27 ) goto LABEL_64; if ( *(_DWORD *)(v27 + 1084) != 5 ) { v27 = 0; LABEL_64: while ( v27 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) ) { if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), v27) + 892) != 2065 ) { for ( k = 0; ; ++k ) { if ( k >= cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) ) { v23 = *((SetupAnimSettingsPopup **)this + 249); v24 = *((EffectGameObject **)this + 167); goto LABEL_81; } v29 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), k); if ( !(*(int (__fastcall **)(int))(*(_DWORD *)v29 + 864))(v29) ) break; } for ( m = 0; m < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)); ++m ) { v31 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), m); result = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v31 + 868))(v31); if ( !result ) return result; } goto LABEL_82; } ++v27; } goto LABEL_79; } } v15 = *((SetupSmartBlockLayer **)this + 249); v16 = *((SmartGameObject **)this + 167); LABEL_78: v19 = (EditorSFXManager *)SetupSmartBlockLayer::create(v15, v16, v7); return (cocos2d::CCArray *)sub_481000(v19); } } LABEL_21: v12 = *((cocos2d::CCArray **)this + 167); if ( v12 ) { v13 = 0; v12 = (cocos2d::CCArray *)cocos2d::CCArray::create(result); while ( v13 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) ) { v14 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 167), v13); if ( *((_DWORD *)v14 + 271) == 5 ) cocos2d::CCArray::addObject(v12, v14); ++v13; } } v15 = *((SetupSmartBlockLayer **)this + 249); v16 = v12; goto LABEL_78; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source