// // GJBaseGameLayer::toggleGroup from 0x10013ca90 to 0x10013cbb7 (295 bytes) // // 3 xrefs: // > GJBaseGameLayer::toggleGroupTriggered @ 0x10013ca40 // > sub_10013CBC0 @ 0x10013cbea // > EffectGameObject::triggerObject @ 0x1001b9b0f // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GJBaseGameLayer::toggleGroup(GJBaseGameLayer *a1, int a2, bool a3) { GJEffectManager *m_effectManager; // rdi int v6; // eax intptr_t v7; // r13 cocos2d::CCArray *v8; // r12 cocos2d::ccArray *data; // rax GameObject **arr; // r12 unsigned __int64 v11; // r13 cocos2d::ccArray *v12; // rax GameObject **v13; // r12 unsigned __int64 v14; // r13 m_effectManager = a1->m_effectManager; if ( GJEffectManager::isGroupEnabled(m_effectManager, a2) != a3 ) { v6 = 9999; if ( a2 < 9999 ) v6 = a2; v7 = 0; if ( v6 > 0 ) v7 = (unsigned int)v6; v8 = a1->m_groups.__begin_[v7]; if ( v8 ) { if ( a3 ) { LABEL_8: if ( v8 ) { data = v8->data; if ( data->num ) { arr = (GameObject **)data->arr; v11 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; GameObject::groupWasEnabled(*arr++); } while ( (unsigned __int64)arr <= v11 ); } } LABEL_21: GJEffectManager::toggleGroup(a1->m_effectManager, a2, a3); return; } } else { v8 = (cocos2d::CCArray *)sub_10071F9E0(m_effectManager, *(_QWORD *)&a2); cocos2d::CCDictionary::setObject(a1->m_groupDict, v8, v7); a1->m_groups.__begin_[v7] = v8; if ( a3 ) goto LABEL_8; } if ( v8 ) { v12 = v8->data; if ( v12->num ) { v13 = (GameObject **)v12->arr; v14 = (unsigned __int64)&v13[v12->num - 1]; do { if ( !*v13 ) break; GameObject::groupWasDisabled(*v13++); } while ( (unsigned __int64)v13 <= v14 ); } } goto LABEL_21; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source