// // GJEffectManager::runPulseEffect from 0x8af8e0 to 0x8afc5c (892 bytes) // // 3 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x66d5a4 // > EffectGameObject::triggerObject @ 0x76fd00 // > @ 0x6e790 // // 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! PulseEffectAction *GJEffectManager::runPulseEffect( GJEffectManager *a1, int a2, bool a3, float a4, float a5, float a6, PulseEffectType a7, cocos2d::ccColor3B a8, cocos2d::ccHSVValue a9, int a10, bool a11, bool a12, bool a13, bool a14, int a15, int a16) { int v17; // w7 PulseEffectAction *m_start; // x4 int v19; // w9 PulseEffectAction *m_finish; // x3 __int64 *p_m_pulseEffectVector; // x0 unsigned __int64 v22; // x6 __int64 i; // x5 PulseEffectAction *v24; // x2 PulseEffectAction *v25; // x19 std::unordered_map> *p_m_pulseEffectMap; // x22 unsigned __int64 v27; // x19 __int64 *v28; // x0 PulseEffectAction *v30; // x1 __int64 v31; // x5 bool v32; // zf __int64 v33; // x5 __int64 v34; // x5 __int64 v35; // x5 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>::size_type M_bucket_count; // x25 unsigned __int64 v37; // x23 __int64 **v38; // x0 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>::__bucket_type *M_buckets; // x4 __int64 *v40; // x3 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>::__bucket_type *v41; // x5 __int64 v42; // x1 unsigned __int64 v43; // x25 __int64 v44; // x6 unsigned __int64 v45; // x25 GJEffectManager *v46; // x1 cocos2d::ccHSVValue v47; // [xsp+80h] [xbp+50h] BYREF __int64 v48; // [xsp+90h] [xbp+60h] BYREF int v49; // [xsp+98h] [xbp+68h] BYREF PulseEffectType v50; // [xsp+9Ch] [xbp+6Ch] BYREF float v51; // [xsp+A0h] [xbp+70h] BYREF float v52; // [xsp+A4h] [xbp+74h] BYREF float v53; // [xsp+A8h] [xbp+78h] BYREF int v54; // [xsp+ACh] [xbp+7Ch] BYREF v50 = a7; v49 = a10; v48 = *(_QWORD *)&a8.r; v17 = 9999; v47 = a9; v53 = a4; v52 = a5; v51 = a6; if ( a2 <= 9998 ) { if ( a2 < 0 ) v17 = 0; else v17 = a2; } v54 = v17; if ( a13 ) { if ( !a3 ) { m_start = a1->m_pulseEffectVector.m_start; v19 = 0; m_finish = a1->m_pulseEffectVector.m_finish; p_m_pulseEffectVector = (__int64 *)&a1->m_pulseEffectVector; v22 = 0; for ( i = (char *)m_finish - (char *)m_start; v22 < 0x8E38E38E38E38E39LL * (i >> 3); i = (char *)m_finish - (char *)m_start ) { while ( 1 ) { v24 = &m_start[v22]; if ( v17 == v24->m_targetGroupID ) break; v22 = ++v19; if ( v19 >= 0x8E38E38E38E38E39LL * (i >> 3) ) goto LABEL_11; } v30 = v24 + 1; if ( &v24[1] != m_finish && (__int64)(0x8E38E38E38E38E39LL * (((char *)m_finish - (char *)v30) >> 3)) > 0 ) { do { v31 = *(_QWORD *)&v30->m_holdTime; *(_QWORD *)&v24->m_disabled = *(_QWORD *)&v30->m_disabled; *(_QWORD *)&v24->m_holdTime = v31; v32 = &m_finish[-1] == v30; v33 = *(_QWORD *)&v30->m_currentValue; *(_QWORD *)&v24->m_deltaTime = *(_QWORD *)&v30->m_deltaTime; *(_QWORD *)&v24->m_currentValue = v33; v34 = *(_QWORD *)&v30->m_hsv.s; *(_QWORD *)&v24->m_pulseEffectType = *(_QWORD *)&v30->m_pulseEffectType; *(_QWORD *)&v24->m_hsv.s = v34; v35 = *(_QWORD *)&v30->m_mainOnly; *(_QWORD *)&v24->m_hsv.absoluteSaturation = *(_QWORD *)&v30->m_hsv.absoluteSaturation; *(_QWORD *)&v24->m_mainOnly = v35; *(_QWORD *)&v24->m_controlID = *(_QWORD *)&v30->m_controlID; v24 = v30++; } while ( !v32 ); m_finish = a1->m_pulseEffectVector.m_finish; m_start = a1->m_pulseEffectVector.m_start; } a1->m_pulseEffectVector.m_finish = --m_finish; } goto LABEL_11; } M_bucket_count = a1->m_pulseEffectMap._M_h._M_bucket_count; v27 = v17; p_m_pulseEffectMap = &a1->m_pulseEffectMap; v37 = v17 % M_bucket_count; v38 = (__int64 **)sub_8A2B20(&a1->m_pulseEffectMap._M_h._M_buckets, v37, &v54); if ( v38 ) { M_buckets = a1->m_pulseEffectMap._M_h._M_buckets; v40 = *v38; v41 = &M_buckets[v37]; if ( v38 != (__int64 **)*v41 ) { v42 = *v40; if ( *v40 ) { v43 = *(int *)(v42 + 8) % M_bucket_count; if ( v37 != v43 ) { M_buckets[v43] = (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>::__bucket_type)v38; v42 = *v40; } } goto LABEL_27; } v44 = *v40; if ( *v40 ) { v42 = *v40; v45 = *(int *)(v44 + 8) % M_bucket_count; if ( v37 == v45 ) { LABEL_27: *v38 = (__int64 *)v42; sub_8A272C(v40); v27 = v54; --a1->m_pulseEffectMap._M_h._M_element_count; goto LABEL_14; } M_buckets[v45] = (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>::__bucket_type)v38; v41 = &a1->m_pulseEffectMap._M_h._M_buckets[v37]; v46 = (GJEffectManager *)*v41; } else { v46 = (GJEffectManager *)v38; } if ( v46 == (GJEffectManager *)&a1->m_pulseEffectMap._M_h._M_before_begin ) a1->m_pulseEffectMap._M_h._M_before_begin._M_nxt = (std::__detail::_Hash_node_base *)v44; *v41 = nullptr; v42 = *v40; goto LABEL_27; } LABEL_14: a1->m_unkVector2f0.m_start.m_bitptr[v27 >> 6] |= 1LL << (v27 & 0x3F); v28 = std::__detail::_Map_base>,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,true>::operator[]( p_m_pulseEffectMap, &v54); std::vector::emplace_back( v28, (int *)&v53, (int *)&v52, (int *)&v51, &v50, &v54, (char *)&v48, (int *)&v47, &v49, (char *)&a11, (char *)&a12, (char *)&a14, &a15, &a16); v25 = (PulseEffectAction *)(std::__detail::_Map_base>,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,true>::operator[]( p_m_pulseEffectMap, &v54)[1] - 72LL); goto LABEL_15; } p_m_pulseEffectVector = (__int64 *)&a1->m_pulseEffectVector; if ( a3 ) { p_m_pulseEffectMap = &a1->m_pulseEffectMap; v27 = v17; goto LABEL_14; } LABEL_11: std::vector::emplace_back( p_m_pulseEffectVector, (int *)&v53, (int *)&v52, (int *)&v51, &v50, &v54, (char *)&v48, (int *)&v47, &v49, (char *)&a11, (char *)&a12, (char *)&a14, &a15, &a16); v25 = a1->m_pulseEffectVector.m_finish - 1; LABEL_15: PulseEffectAction::step(v25, 0.0); return v25; }
GD Web Decomp Icon

GD Web Decomp

Raw Source