// // LevelEditorLayer::updateToggledGroups from 0x1402de4e0 to 0x1402de605 (293 bytes) // // 2 xrefs: // > LevelEditorLayer::updateGameObjects @ 0x1402dcda8 // > @ 0x1406d3410 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void LevelEditorLayer::updateToggledGroups(LevelEditorLayer *a1) { int v1; // ebx __int64 v2; // r9 std::_Simple_types::value_type v4; // r11 std::_Vector_val>::pointer Myfirst; // rax std::_Simple_types::value_type v6; // r10d char v7; // r8 unsigned __int64 v8; // rcx std::_Simple_types::value_type v9; // edx int v10; // edx cocos2d::ccArray *data; // rdx __int64 num; // rax cocos2d::CCObject **arr; // rdx cocos2d::CCObject **i; // r8 cocos2d::CCObject *v15; // rax int m_unknown2; // ecx int v17; // ecx v1 = 0; v2 = 0; do { if ( a1->m_toggledGroupStates._Mypair._Myval2._Myfirst[v2] ) { v4 = a1->m_groups._Mypair._Myval2._Myfirst[v2]; if ( v4 ) { Myfirst = a1->m_toggledGroups._Myvec._Mypair._Myval2._Myfirst; v6 = a1->m_effectManager->m_unkVector438._Myvec._Mypair._Myval2._Myfirst[(unsigned __int64)(unsigned int)v1 >> 5] & (1 << (v1 & 0x1F)); v7 = v1 & 0x1F; v8 = (unsigned __int64)(unsigned int)v1 >> 5; v9 = Myfirst[v8]; if ( (((1 << (v1 & 0x1F)) & v9) != 0) == (v6 != 0) ) { v10 = v6 ? v9 & ~(1 << v7) : v9 | (1 << v7); Myfirst[v8] = v10; data = v4->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v15 = *arr; if ( !*arr ) break; if ( !BYTE1(v15[22].m_eObjType) ) { m_unknown2 = v15[21].m_unknown2; if ( v6 ) v17 = m_unknown2 + 1; else v17 = m_unknown2 - 1; v15[21].m_unknown2 = v17; BYTE2(v15[11].m_uUnknown) = v17 < 0; } } } } } --a1->m_toggledGroupStates._Mypair._Myval2._Myfirst[v2]; } ++v1; ++v2; } while ( v1 <= 9999 ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source