//
// GJGameState::stopTweenAction from 0x87d090 to 0x87d114 (132 bytes)
//
// 27 xrefs:
// > GJBaseGameLayer::resetStaticCamera @ 0x87d144
// > GJBaseGameLayer::resetStaticCamera @ 0x87d150
// > GJBaseGameLayer::resetStaticCamera @ 0x87d188
// > GJBaseGameLayer::resetStaticCamera @ 0x87d194
// > GJGameState::tweenValue @ 0x87d1e4
// > GJBaseGameLayer::updateScreenRotation @ 0x87d6d4
// > GJBaseGameLayer::updateCameraOffsetX @ 0x87d79c
// > GJBaseGameLayer::updateCameraOffsetY @ 0x87d814
// > GJBaseGameLayer::updateMGOffsetY @ 0x87d890
// > GJBaseGameLayer::updateCamera @ 0x87e3fc
// > GJBaseGameLayer::updateCamera @ 0x87e958
// > GJBaseGameLayer::updateCamera @ 0x87f150
// > GJBaseGameLayer::updateCamera @ 0x87f1a8
// > GJBaseGameLayer::updateInternalCamOffsetX @ 0x87f9b8
// > GJBaseGameLayer::updateInternalCamOffsetY @ 0x87fa28
// > GJBaseGameLayer::updateStaticCameraPos @ 0x87fb20
// > GJBaseGameLayer::updateStaticCameraPos @ 0x87fbb8
// > GJBaseGameLayer::updateStaticCameraPos @ 0x87fbf8
// > GJBaseGameLayer::updateStaticCameraPos @ 0x87fc6c
// > GJBaseGameLayer::animateInDualGroundNew @ 0x87fe3c
// > GJBaseGameLayer::updateZoom @ 0x8800b4
// > GJBaseGameLayer::exitStaticCamera @ 0x88040c
// > GJBaseGameLayer::exitStaticCamera @ 0x8804b8
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x8805ec
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x8806dc
// > GJBaseGameLayer::resetLevelVariables @ 0x88afb8
// > ??> @ 0x8cd30
//
// 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 GJGameState::stopTweenAction(GJGameState *a1, int a2)
{
__int64 *p_m_tweenActions; // 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>::size_type M_bucket_count; // x6
unsigned __int64 v5; // x8
__int64 *v6; // x2
__int64 *v7; // x5
int v8; // w7
__int64 v9; // x3
p_m_tweenActions = (__int64 *)&a1->m_tweenActions;
M_bucket_count = a1->m_tweenActions._M_h._M_bucket_count;
v5 = a2 % M_bucket_count;
v6 = (__int64 *)a1->m_tweenActions._M_h._M_buckets[v5];
if ( v6 )
{
v7 = (__int64 *)*v6;
v8 = *(_DWORD *)(*v6 + 8);
while ( v8 != a2 )
{
v9 = *v7;
v6 = v7;
v7 = (__int64 *)v9;
if ( v9 )
{
v8 = *(_DWORD *)(v9 + 8);
if ( v5 == v8 % M_bucket_count )
continue;
}
return;
}
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_tweenActions,
a2 % M_bucket_count,
v6,
(__int64 *)*v6);
}
}