// // LevelEditorLayer::addSpecial from 0x7a05d0 to 0x7a0afc (1324 bytes) // // 8 xrefs: // > LevelEditorLayer::addObjectFromVector @ 0x7a0b78 // > LevelEditorLayer::createObject @ 0x7a1518 // > LevelEditorLayer::handleAction @ 0x7a1dd4 // > LevelEditorLayer::handleAction @ 0x7a1e14 // > LevelEditorLayer::refreshSpecial @ 0x7a2490 // > EditorUI::createNewKeyframeAnim @ 0x7c3e54 // > EditorUI::onCreateObject @ 0x7ca5b4 // > @ 0x72130 // // 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:53:39 +0000 // __int64 __fastcall LevelEditorLayer::addSpecial(LevelEditorLayer *this, GameObject *a2) { GameObject *v4; // x1 int v5; // w21 bool v6; // cc int v7; // w0 char *v8; // x21 __int64 v9; // x0 const cocos2d::CCPoint *v10; // x0 float v11; // s0 signed int v12; // w21 GameObject *Object; // x23 void (__fastcall *v14)(GameObject *, _QWORD); // x24 unsigned __int8 v15; // w0 void (__fastcall *v16)(GameObject *); // x24 unsigned int v17; // w1 void (__fastcall *v18)(GameObject *, _QWORD); // x24 unsigned int GroupID; // w0 int v20; // w21 float v21; // s0 GameObject *v22; // x1 int v23; // w21 float v24; // s0 float v26; // [xsp+58h] [xbp+58h] BYREF float v27; // [xsp+5Ch] [xbp+5Ch] _BYTE v28[8]; // [xsp+60h] [xbp+60h] BYREF GJBaseGameLayer::applyLevelSettings(this, a2); if ( *((_BYTE *)a2 + 1258) ) { LevelEditorLayer::updateObjectLabel(a2, v4); v5 = *((_DWORD *)a2 + 257); v6 = v5 <= 1329; if ( v5 != 1329 ) goto LABEL_3; LABEL_40: v23 = *((_DWORD *)this + 3539) - *((_DWORD *)this + 3540) + 1; *((_DWORD *)this + 3541) = v23; v24 = (float)((float)rand() * 4.6566e-10) * 1000.0; *((_DWORD *)this + 3540) = (int)v24; *((_DWORD *)this + 3539) = v23 + (int)v24; v5 = *((_DWORD *)a2 + 257); goto LABEL_7; } v20 = *((_DWORD *)this + 3568) - *((_DWORD *)this + 3569) + 1; *((_DWORD *)this + 3570) = v20; v21 = (float)((float)rand() * 4.6566e-10) * 1000.0; *((_DWORD *)this + 3569) = (int)v21; *((_DWORD *)this + 3568) = v20 + (int)v21; LevelEditorLayer::updateObjectLabel(a2, v22); v5 = *((_DWORD *)a2 + 257); v6 = v5 <= 1329; if ( v5 == 1329 ) goto LABEL_40; LABEL_3: if ( v6 ) { if ( v5 == 747 ) { v10 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v10); v11 = *((float *)a2 + 465); if ( v11 == 0.0 ) v11 = 100.0; v12 = 0; v27 = v27 + v11; v26 = v26 - 10.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, (const cocos2d::CCPoint *)&v26); Object = (GameObject *)LevelEditorLayer::createObject(this, 749, v28, 1); v14 = *(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)Object + 1240LL); v15 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1424LL))(a2); v14(Object, v15 ^ 1u); v16 = *(void (__fastcall **)(GameObject *))(*(_QWORD *)Object + 1864LL); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 368LL))(a2); v16(Object); GameObject::copyGroups(Object, a2); if ( *((__int16 *)a2 + 584) > 0 ) { do { v17 = v12++; v18 = *(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)Object + 1872LL); GroupID = GameObject::getGroupID(a2, v17); v18(Object, GroupID); } while ( *((__int16 *)a2 + 584) > v12 ); } *((_QWORD *)a2 + 231) = Object; *((_BYTE *)Object + 1856) = 1; v5 = *((_DWORD *)a2 + 257); } LABEL_7: if ( v5 != 1049 ) goto LABEL_8; goto LABEL_24; } if ( v5 != 2065 ) { if ( v5 == 3032 ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1762), a2); (*(void (__fastcall **)(LevelEditorLayer *, GameObject *))(*(_QWORD *)this + 1544LL))(this, a2); v5 = *((_DWORD *)a2 + 257); } goto LABEL_7; } LevelEditorLayer::updatePreviewParticle(this, a2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1761), a2); if ( *((_DWORD *)a2 + 257) != 1049 ) { LABEL_8: if ( !*((_BYTE *)a2 + 1252) ) goto LABEL_9; goto LABEL_25; } LABEL_24: EffectGameObject::updateSpecialColor(a2); if ( !*((_BYTE *)a2 + 1252) ) { LABEL_9: if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2) != 25 ) goto LABEL_10; LABEL_26: GameObject::determineSlopeDirection(a2); if ( *((_DWORD *)a2 + 312) != 1 ) goto LABEL_11; goto LABEL_27; } LABEL_25: DrawGridLayer::addToEffects(*((cocos2d::CCArray ***)this + 1786), a2); if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 25 ) goto LABEL_26; LABEL_10: if ( *((_DWORD *)a2 + 312) != 1 ) goto LABEL_11; LABEL_27: LevelEditorLayer::tryUpdateSpeedObject((cocos2d::CCArray ***)this, a2, 0); LABEL_11: v7 = *((_DWORD *)a2 + 257); if ( v7 == 1814 ) goto LABEL_58; if ( v7 > 1814 ) { if ( v7 == 2067 ) goto LABEL_58; if ( v7 <= 2067 ) { if ( v7 != 1912 ) { if ( v7 == 2016 ) { v8 = (char *)this + 12288; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1760), a2); goto LABEL_44; } goto LABEL_52; } } else { if ( v7 == 3016 ) goto LABEL_58; if ( v7 == 3642 ) { v8 = (char *)this + 12288; DrawGridLayer::addAudioLineObject(*((_QWORD *)this + 1786), (__int64)a2); goto LABEL_44; } if ( v7 != 2068 ) goto LABEL_52; } goto LABEL_54; } if ( v7 == 1007 ) { v8 = (char *)this + 12288; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1757), a2); *((_BYTE *)this + 14171) = 1; goto LABEL_44; } if ( v7 <= 1007 ) { if ( v7 != 901 ) { if ( v7 == 1006 ) { v8 = (char *)this + 12288; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1755), a2); *((_BYTE *)this + 14170) = 1; if ( *((_BYTE *)a2 + 1253) ) goto LABEL_18; LABEL_45: if ( *((_BYTE *)a2 + 1257) ) goto LABEL_46; goto LABEL_19; } goto LABEL_52; } LABEL_58: v8 = (char *)this + 12288; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1759), a2); goto LABEL_44; } if ( v7 == 1268 ) { LABEL_54: v8 = (char *)this + 12288; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1758), a2); *((_BYTE *)this + 14172) = 1; goto LABEL_44; } if ( v7 >= 1268 && (unsigned int)(v7 - 1346) <= 1 ) goto LABEL_58; LABEL_52: v8 = (char *)this + 12288; if ( (unsigned __int8)GameObject::isColorTrigger(a2) ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1756), a2); *((_BYTE *)this + 14169) = 1; } LABEL_44: if ( !*((_BYTE *)a2 + 1253) ) goto LABEL_45; LABEL_18: cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1772), a2); v8[1896] = 1; if ( *((_BYTE *)a2 + 1257) ) goto LABEL_46; LABEL_19: if ( !(*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1688LL))(a2) ) { if ( *((_BYTE *)a2 + 1255) ) goto LABEL_21; goto LABEL_47; } LABEL_46: cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1764), a2); if ( *((_BYTE *)a2 + 1255) ) { LABEL_21: cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1754), a2); v9 = *((_QWORD *)this + 409); if ( !v9 ) goto LABEL_22; goto LABEL_48; } LABEL_47: v9 = *((_QWORD *)this + 409); if ( !v9 ) goto LABEL_22; LABEL_48: if ( *(_BYTE *)(v9 + 341) ) { *((_BYTE *)a2 + 708) = 0; goto LABEL_50; } LABEL_22: *((_BYTE *)a2 + 708) = GameObject::shouldLockX(a2); LABEL_50: cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 410), a2); GJBaseGameLayer::addToGroups(this, a2, 0); GJBaseGameLayer::addToGroupParents(this, a2); GJBaseGameLayer::reAddToStickyGroup(this, a2); v8[2650] = 1; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source