//
// GJEffectManager::updateOpacityEffects from 0x8b6260 to 0x8b6310 (176 bytes)
//
// 2 xrefs:
// > GJEffectManager::updateEffects @ 0x8b634c
// > ??> @ 0x549d8
//
// 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::updateOpacityEffects(GJEffectManager *a1, float a2)
{
__int64 M_nxt; // x19
__int64 *p_m_opacityEffectMap; // x22
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 v6; // x1
__int64 *i; // x2
M_nxt = (__int64)a1->m_opacityEffectMap._M_h._M_before_begin._M_nxt;
if ( M_nxt )
{
p_m_opacityEffectMap = (__int64 *)&a1->m_opacityEffectMap;
do
{
while ( 1 )
{
OpacityEffectAction::step((OpacityEffectAction *)(M_nxt + 12), a2);
if ( *(_BYTE *)(M_nxt + 24) )
{
if ( *(float *)(M_nxt + 36) >= 1.0 )
break;
}
M_nxt = *(_QWORD *)M_nxt;
if ( !M_nxt )
return;
}
v6 = *(int *)(M_nxt + 8) % a1->m_opacityEffectMap._M_h._M_bucket_count;
for ( i = (__int64 *)a1->m_opacityEffectMap._M_h._M_buckets[v6]; M_nxt != *i; i = (__int64 *)*i )
;
M_nxt = 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>::_M_erase(
p_m_opacityEffectMap,
v6,
i,
(__int64 *)M_nxt);
}
while ( M_nxt );
}
}