//
// GJGameState::stopTweenAction from 0x9bb244 to 0x9bb320 (220 bytes)
//
// 29 xrefs:
// > GJBaseGameLayer::resetStaticCamera @ 0x9bb350
// > GJBaseGameLayer::resetStaticCamera @ 0x9bb35c
// > GJBaseGameLayer::resetStaticCamera @ 0x9bb394
// > GJBaseGameLayer::resetStaticCamera @ 0x9bb3a0
// > GJGameState::tweenValue @ 0x9e336c
// > GJBaseGameLayer::updateScreenRotation @ 0x9e372c
// > GJBaseGameLayer::updateCameraOffsetX @ 0x9e37f4
// > GJBaseGameLayer::updateCameraOffsetY @ 0x9e386c
// > GJBaseGameLayer::updateMGOffsetY @ 0x9e38e8
// > GJBaseGameLayer::updateCamera @ 0x9e445c
// > GJBaseGameLayer::updateCamera @ 0x9e49b8
// > GJBaseGameLayer::updateCamera @ 0x9e5190
// > GJBaseGameLayer::updateCamera @ 0x9e51e8
// > GJBaseGameLayer::updateInternalCamOffsetX @ 0x9e60d4
// > GJBaseGameLayer::updateInternalCamOffsetY @ 0x9e6144
// > GJBaseGameLayer::updateStaticCameraPos @ 0x9e62a4
// > GJBaseGameLayer::updateStaticCameraPos @ 0x9e633c
// > GJBaseGameLayer::updateStaticCameraPos @ 0x9e637c
// > GJBaseGameLayer::updateStaticCameraPos @ 0x9e63f0
// > GJBaseGameLayer::animateInDualGroundNew @ 0x9e65c0
// > GJBaseGameLayer::exitStaticCamera @ 0x9e6874
// > GJBaseGameLayer::exitStaticCamera @ 0x9e6920
// > GJBaseGameLayer::updateZoom @ 0x9e6ec8
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7984
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x9e7cbc
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x9e7dac
// > GJBaseGameLayer::loadStartPosObject @ 0x9ec07c
// > GJBaseGameLayer::loadStartPosObject @ 0x9ec088
// > ??> @ 0xba808
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:25 +0000
//
__int64 __fastcall GJGameState::stopTweenAction(GJGameState *this, int a2)
{
__int64 *v2; // x9
unsigned __int64 v3; // x5
unsigned __int64 v4; // x8
unsigned __int64 v5; // x6
__int64 *v6; // x0
__int64 i; // x2
unsigned __int64 v8; // x3
unsigned __int64 v9; // x3
void *v11; // x0
void *v12; // [xsp+20h] [xbp+20h] BYREF
v2 = (__int64 *)((char *)this + 592);
v3 = *((_QWORD *)this + 75);
if ( v3 )
{
v4 = v3 - 1;
v5 = ((v3 - 1) & v3) != 0 ? a2 % v3 : v4 & a2;
v6 = *(__int64 **)(*((_QWORD *)this + 74) + 8 * v5);
if ( v6 )
{
for ( i = *v6; i; i = *(_QWORD *)i )
{
v8 = *(_QWORD *)(i + 8);
v9 = ((v3 - 1) & v3) != 0 ? v8 % v3 : v4 & v8;
if ( v5 != v9 )
break;
if ( *(_DWORD *)(i + 16) == a2 )
{
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::remove(
v2,
(__int64 *)i,
(__int64)&v12);
v11 = v12;
v12 = nullptr;
if ( v11 )
operator delete(v11);
return _stack_chk_guard;
}
}
}
}
return _stack_chk_guard;
}