// // CCAnimatedSprite::switchToMode from 0x10033bfe0 to 0x10033c0fa (282 bytes) // // 3 xrefs: // > SpriteAnimationManager::executeAnimation @ 0x100802b7f // > SpriteAnimationManager::executeAnimation @ 0x100802bf4 // > SpriteAnimationManager::switchToFirstFrameOfAnimation @ 0x10080345a // // 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:28:41 +0000 // void __fastcall CCAnimatedSprite::switchToMode(__int64 a1, int a2) { __int64 v3; // rdi __int64 v4; // r15 __int64 *v5; // r12 __int64 v6; // rax unsigned __int8 *v7; // r15 unsigned __int8 isFlipX; // al __int64 v9; // r15 unsigned __int16 *v10; // rax __int64 v11; // r15 unsigned __int8 v12; // al if ( *(_DWORD *)(a1 + 680) != a2 ) { cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 656)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 656) + 344LL))(*(_QWORD *)(a1 + 656), 0); if ( a2 == 1 ) { v3 = *(_QWORD *)(a1 + 656); v4 = *(_QWORD *)(a1 + 664); if ( !v4 ) { LABEL_7: cocos2d::CCNode::stopAllActions(v3); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 656) + 344LL))(*(_QWORD *)(a1 + 656), 1); *(_DWORD *)(a1 + 680) = a2; return; } v5 = (__int64 *)(a1 + 664); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 944LL))(v3); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 960LL))(v4, v6); v7 = *(unsigned __int8 **)(a1 + 664); isFlipX = cocos2d::CCSprite::isFlipX(*(_QWORD *)(a1 + 656)); cocos2d::CCSprite::setFlipX(v7, isFlipX); } else { v5 = (__int64 *)(a1 + 672); v9 = *(_QWORD *)(a1 + 672); v10 = (unsigned __int16 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 656) + 944LL))(*(_QWORD *)(a1 + 656)); CCPartAnimSprite::setColor(v9, *v10 | (*((unsigned __int8 *)v10 + 2) << 16)); v11 = *(_QWORD *)(a1 + 672); v12 = cocos2d::CCSprite::isFlipX(*(_QWORD *)(a1 + 656)); CCPartAnimSprite::setFlipX(v11, v12); } v3 = *v5; *(_QWORD *)(a1 + 656) = *v5; goto LABEL_7; } }