//
// SpriteAnimationManager::offsetCurrentAnimation from 0x100803330 to 0x10080338e (94 bytes)
//
// 3 xrefs:
// > AnimatedGameObject::updateObjectAnimation @ 0x10019786b
// > PlayerObject::playDynamicSpiderRun @ 0x1003ef49b
// > PlayerObject::playDynamicSpiderRun @ 0x1003ef59f
//
// This function is hookable on this platform (idp: pc, 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:36:38 +0000
//
_BYTE *__fastcall SpriteAnimationManager::offsetCurrentAnimation(__int64 a1, float a2)
{
_BYTE *result; // rax
_BYTE *v3; // rbx
result = (_BYTE *)cocos2d::CCNode::getActionByTag(*(_QWORD *)(*(_QWORD *)(a1 + 320) + 656LL), 1);
if ( result )
{
if ( result[88] == 1 )
{
v3 = result;
(*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)result + 104LL))(result, 0.0);
result = v3;
}
return (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *, float))(*(_QWORD *)result + 104LL))(result, a2);
}
return result;
}