// // GJEffectManager::controlActionsForControlID from 0x4a28a8 to 0x4a2bc4 (796 bytes) // // 1 xrefs: // > GJBaseGameLayer::controlTriggersWithControlID @ 0x495c72 // // 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 GJEffectManager::controlActionsForControlID(GJEffectManager *a1, int a2, GJActionCommand a3) { GroupCommandObject2 *m_start; // r3 GroupCommandObject2 *m_finish; // r2 std::__detail::_Hash_node_base *i; // r3 std::__detail::_Hash_node_base *M_nxt; // r6 int v10; // r2 unsigned int v11; // r9 std::__detail::_Hash_node_base *v12; // r0 std::__detail::_Hash_node_base *v13; // r1 TouchToggleAction *v14; // r2 int v15; // r1 unsigned int v16; // r6 CollisionTriggerAction *v17; // r2 int v18; // r1 unsigned int v19; // r6 ToggleTriggerAction *v20; // r3 int v21; // r1 unsigned int v22; // r6 SpawnTriggerAction *v23; // r1 int v24; // r1 unsigned int v25; // r6 PulseEffectAction *v26; // r2 int v27; // r1 std::__detail::_Hash_node_base *v28; // r6 int v29; // r12 unsigned int v30; // r9 std::__detail::_Hash_node_base *v31; // r0 int v32; // r1 std::__detail::_Hash_node_base *v33; // r1 std::__detail::_Hash_node_base *v34; // r5 unsigned int v35; // r9 std::__detail::_Hash_node_base *v36; // r2 int v37; // r1 int v38; // [sp+4h] [bp-8h] int v39; // [sp+4h] [bp-8h] m_start = a1->m_unkVector560.m_start; m_finish = a1->m_unkVector560.m_finish; while ( m_start != m_finish ) { if ( m_start->m_controlID == a2 ) { if ( a3 ) { if ( a3 == Pause ) { m_start->m_disabled = 1; } else if ( a3 == Resume ) { m_start->m_disabled = 0; } } else { m_start->m_finishRelated = 1; } } ++m_start; } for ( i = a1->m_opacityEffectMap._M_h._M_before_begin._M_nxt; i; i = i->_M_nxt ) { if ( i[10]._M_nxt == (std::__detail::_Hash_node_base *)a2 ) { if ( a3 ) { if ( a3 == Pause ) { BYTE1(i[5]._M_nxt) = 1; } else if ( a3 == Resume ) { BYTE1(i[5]._M_nxt) = 0; } } else { LOBYTE(i[5]._M_nxt) = 1; } } } M_nxt = a1->m_countTriggerActions._M_h._M_before_begin._M_nxt; v10 = -1431655765; LABEL_22: if ( M_nxt ) { v11 = 0; while ( 1 ) { while ( 1 ) { v12 = M_nxt[2]._M_nxt; if ( v11 >= (((char *)M_nxt[3]._M_nxt - (char *)v12) >> 4) * v10 ) { M_nxt = M_nxt->_M_nxt; goto LABEL_22; } v13 = &v12[12 * v11]; if ( v13[6]._M_nxt == (std::__detail::_Hash_node_base *)a2 ) break; LABEL_32: ++v11; } if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v12[12 * v11]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v12[12 * v11]._M_nxt) = 0; } goto LABEL_32; } v38 = v10; std::vector::erase((int)&M_nxt[2], v13); v10 = v38; } } while ( 1 ) { v14 = a1->m_unkVector1e0.m_start; if ( (unsigned int)M_nxt >= -1171354717 * (((char *)a1->m_unkVector1e0.m_finish - (char *)v14) >> 2) ) break; v15 = (int)&v14[(_DWORD)M_nxt]; if ( *(_DWORD *)(v15 + 24) != a2 ) goto LABEL_42; if ( a3 ) { if ( a3 == Pause ) { v14[(_DWORD)M_nxt].m_disabled = 1; } else if ( a3 == Resume ) { v14[(_DWORD)M_nxt].m_disabled = 0; } LABEL_42: M_nxt = (std::__detail::_Hash_node_base *)((char *)M_nxt + 1); } else { std::vector::_M_erase((int)&a1->m_unkVector1e0, v15); } } v16 = 0; while ( 1 ) { v17 = a1->m_unkVector230.m_start; if ( v16 >= -1171354717 * (((char *)a1->m_unkVector230.m_finish - (char *)v17) >> 2) ) break; v18 = (int)&v17[v16]; if ( *(_DWORD *)(v18 + 28) != a2 ) goto LABEL_52; if ( a3 ) { if ( a3 == Pause ) { v17[v16].m_disabled = 1; } else if ( a3 == Resume ) { v17[v16].m_disabled = 0; } LABEL_52: ++v16; } else { std::vector::_M_erase((int)&a1->m_unkVector230, v18); } } v19 = 0; while ( 1 ) { v20 = a1->m_unkVector248.m_start; if ( v19 >= a1->m_unkVector248.m_finish - v20 ) break; v21 = (int)&v20[v19]; if ( *(_DWORD *)(v21 + 16) != a2 ) goto LABEL_62; if ( a3 ) { if ( a3 == Pause ) { v20[v19].m_disabled = 1; } else if ( a3 == Resume ) { v20[v19].m_disabled = 0; } LABEL_62: ++v19; } else { std::vector::_M_erase((int)&a1->m_unkVector248, v21); } } v22 = 0; while ( 1 ) { v23 = a1->m_spawnTriggerActions.m_start; if ( v22 >= -1227133513 * (((char *)a1->m_spawnTriggerActions.m_finish - (char *)v23) >> 3) ) break; v24 = (int)&v23[v22]; if ( *(_DWORD *)(v24 + 32) != a2 ) goto LABEL_72; if ( a3 ) { if ( a3 == Pause ) { *(_BYTE *)(v24 + 1) = 1; } else if ( a3 == Resume ) { *(_BYTE *)(v24 + 1) = 0; } LABEL_72: ++v22; } else { std::vector::erase((int)&a1->m_spawnTriggerActions, v24); } } v25 = 0; while ( 1 ) { v26 = a1->m_pulseEffectVector.m_start; if ( v25 >= 954437177 * (((char *)a1->m_pulseEffectVector.m_finish - (char *)v26) >> 3) ) break; v27 = (int)&v26[v25]; if ( *(_DWORD *)(v27 + 64) != a2 ) goto LABEL_82; if ( a3 ) { if ( a3 == Pause ) { v26[v25].m_disabled = 1; } else if ( a3 == Resume ) { v26[v25].m_disabled = 0; } LABEL_82: ++v25; } else { std::vector::erase((int)&a1->m_pulseEffectVector, v27); } } v28 = a1->m_pulseEffectMap._M_h._M_before_begin._M_nxt; LABEL_84: if ( v28 ) { v29 = (int)&v28[2]; v30 = 0; while ( 1 ) { while ( 1 ) { v31 = v28[2]._M_nxt; if ( v30 >= 954437177 * (((char *)v28[3]._M_nxt - (char *)v31) >> 3) ) { v28 = v28->_M_nxt; goto LABEL_84; } v32 = (int)&v31[18 * v30]; if ( *(_DWORD *)(v32 + 64) == a2 ) break; LABEL_94: ++v30; } if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v31[18 * v30]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v31[18 * v30]._M_nxt) = 0; } goto LABEL_94; } v39 = v29; std::vector::erase(v29, v32); v29 = v39; } } v33 = a1->m_timerItemMap._M_h._M_before_begin._M_nxt; while ( v33 ) { if ( v33[17]._M_nxt != (std::__detail::_Hash_node_base *)a2 ) goto LABEL_105; if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v33[21]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v33[21]._M_nxt) = 0; } LABEL_105: v33 = v33->_M_nxt; } else { v33 = (std::__detail::_Hash_node_base *)std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::erase( (int *)&a1->m_timerItemMap, (void **)&v33->_M_nxt); } } v34 = a1->m_unkMap3f8._M_h._M_before_begin._M_nxt; LABEL_107: if ( v34 ) { v35 = 0; while ( 1 ) { while ( 1 ) { v36 = v34[2]._M_nxt; if ( v35 >= -1171354717 * (v34[3]._M_nxt - v36) ) { v34 = v34->_M_nxt; goto LABEL_107; } v37 = (int)&v36[11 * v35]; if ( *(_DWORD *)(v37 + 20) == a2 ) break; LABEL_117: ++v35; } if ( a3 ) { if ( a3 == Pause ) { LOBYTE(v36[11 * v35]._M_nxt) = 1; } else if ( a3 == Resume ) { LOBYTE(v36[11 * v35]._M_nxt) = 0; } goto LABEL_117; } std::vector::erase((int)&v34[2], v37); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source