//
// GJGameState::stopTweenAction from 0x59cf04 to 0x59cf6a (102 bytes)
//
// 26 xrefs:
// > GJBaseGameLayer::resetStaticCamera @ 0x59cf7a
// > GJBaseGameLayer::resetStaticCamera @ 0x59cf82
// > GJBaseGameLayer::resetStaticCamera @ 0x59cfa6
// > GJBaseGameLayer::resetStaticCamera @ 0x59cfae
// > GJGameState::tweenValue @ 0x5b6652
// > GJBaseGameLayer::updateScreenRotation @ 0x5b694e
// > GJBaseGameLayer::updateCameraOffsetX @ 0x5b69a2
// > GJBaseGameLayer::updateCameraOffsetY @ 0x5b69f0
// > GJBaseGameLayer::updateMGOffsetY @ 0x5b6a42
// > GJBaseGameLayer::updateCamera @ 0x5b7acc
// > GJBaseGameLayer::updateCamera @ 0x5b7b88
// > GJBaseGameLayer::updateInternalCamOffsetX @ 0x5b8802
// > GJBaseGameLayer::updateInternalCamOffsetY @ 0x5b8850
// > GJBaseGameLayer::updateStaticCameraPos @ 0x5b8962
// > GJBaseGameLayer::updateStaticCameraPos @ 0x5b89a4
// > GJBaseGameLayer::updateStaticCameraPos @ 0x5b8a3e
// > GJBaseGameLayer::updateStaticCameraPos @ 0x5b8a52
// > GJBaseGameLayer::animateInDualGroundNew @ 0x5b8b02
// > GJBaseGameLayer::exitStaticCamera @ 0x5b8e1a
// > GJBaseGameLayer::exitStaticCamera @ 0x5b8e7e
// > GJBaseGameLayer::updateZoom @ 0x5b9280
// > GJBaseGameLayer::resetLevelVariables @ 0x5b9976
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x5b9bb4
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x5b9c02
// > GJBaseGameLayer::loadStartPosObject @ 0x5bcc28
// > GJBaseGameLayer::loadStartPosObject @ 0x5bcc30
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:13 +0000
//
unsigned int __fastcall GJGameState::stopTweenAction(unsigned int this, unsigned int a2)
{
unsigned int v2; // r4
unsigned int v3; // r5
_DWORD *v5; // r8
unsigned int v6; // r6
unsigned int v7; // r10
_DWORD **v8; // r3
_DWORD *i; // r4
int v10; // r1
v2 = this;
v3 = *(_DWORD *)(this + 548);
v5 = (_DWORD *)(this + 544);
if ( v3 )
{
v6 = v3 - 1;
if ( ((v3 - 1) & v3) != 0 )
{
this = a2 / v3;
v7 = a2 % v3;
}
else
{
v7 = v6 & a2;
}
v8 = *(_DWORD ***)(*(_DWORD *)(v2 + 544) + 4 * v7);
if ( v8 )
{
for ( i = *v8; i; i = (_DWORD *)*i )
{
this = i[1];
if ( ((v3 - 1) & v3) != 0 )
{
v10 = this % v3;
this /= v3;
}
else
{
v10 = v6 & this;
}
if ( v10 != v7 )
break;
if ( i[2] == a2 )
return std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::erase(
v5,
i);
}
}
}
return this;
}