; ; CCAnimatedSprite::switchToMode from 0x68c7ac to 0x68c8cc (288 bytes) ; ; 4 xrefs: ; > SpriteAnimationManager::switchToFirstFrameOfAnimation @ 0x6afdb8 ; > SpriteAnimationManager::executeAnimation @ 0x6b0014 ; > SpriteAnimationManager::executeAnimation @ 0x6b0120 ; > @ 0xfbb00 ; ; 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:50:33 +0000 ; STP X29, X30, [SP,#-0x30+var_s0]! ; +0x0, 0x68c7ac MOV X29, SP ; +0x4, 0x68c7b0 STP X19, X20, [SP,#var_s10] ; +0x8, 0x68c7b4 STP X21, X22, [SP,#var_s20] ; +0xc, 0x68c7b8 LDR W2, [X0,#0x2A8] ; +0x10, 0x68c7bc CMP W2, W1 ; +0x14, 0x68c7c0 B.EQ loc_68C860 ; +0x18, 0x68c7c4 MOV X19, X0 ; +0x1c, 0x68c7c8 LDR X0, [X0,#0x290]; this ; +0x20, 0x68c7cc MOV W20, W1 ; +0x24, 0x68c7d0 BL _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x28, 0x68c7d4 LDR X2, [X19,#0x290] ; +0x2c, 0x68c7d8 MOV W1, #0 ; +0x30, 0x68c7dc MOV X0, X2 ; +0x34, 0x68c7e0 LDR X2, [X2] ; +0x38, 0x68c7e4 LDR X2, [X2,#0x158] ; +0x3c, 0x68c7e8 BLR X2 ; +0x40, 0x68c7ec CMP W20, #1 ; +0x44, 0x68c7f0 B.EQ loc_68C870 ; +0x48, 0x68c7f4 LDR X1, [X19,#0x290] ; +0x4c, 0x68c7f8 LDR X21, [X19,#0x2A0] ; +0x50, 0x68c7fc MOV X0, X1 ; +0x54, 0x68c800 LDR X1, [X1] ; +0x58, 0x68c804 LDR X1, [X1,#0x3B0] ; +0x5c, 0x68c808 BLR X1 ; +0x60, 0x68c80c MOV X1, X0 ; +0x64, 0x68c810 MOV X0, X21 ; +0x68, 0x68c814 LDR X1, [X1] ; +0x6c, 0x68c818 BL _ZN16CCPartAnimSprite8setColorEN7cocos2d10_ccColor3BE; CCPartAnimSprite::setColor(cocos2d::_ccColor3B) ; +0x70, 0x68c81c LDR X21, [X19,#0x2A0] ; +0x74, 0x68c820 LDR X0, [X19,#0x290]; this ; +0x78, 0x68c824 BL _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0x7c, 0x68c828 MOV W1, W0; bool ; +0x80, 0x68c82c MOV X0, X21; this ; +0x84, 0x68c830 BL _ZN16CCPartAnimSprite8setFlipXEb; CCPartAnimSprite::setFlipX(bool) ; +0x88, 0x68c834 LDR X0, [X19,#0x2A0]; this ; +0x8c, 0x68c838 STR X0, [X19,#0x290] ; +0x90, 0x68c83c BL _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x94, 0x68c840 LDR X2, [X19,#0x290] ; +0x98, 0x68c844 MOV W1, #1 ; +0x9c, 0x68c848 MOV X0, X2 ; +0xa0, 0x68c84c LDR X2, [X2] ; +0xa4, 0x68c850 LDR X2, [X2,#0x158] ; +0xa8, 0x68c854 BLR X2 ; +0xac, 0x68c858 STR W20, [X19,#0x2A8] ; +0xb0, 0x68c85c LDP X19, X20, [SP,#var_s10] ; +0xb4, 0x68c860 LDP X21, X22, [SP,#var_s20] ; +0xb8, 0x68c864 LDP X29, X30, [SP+var_s0],#0x30 ; +0xbc, 0x68c868 RET ; +0xc0, 0x68c86c LDR X21, [X19,#0x298] ; +0xc4, 0x68c870 CBZ X21, loc_68C8C4 ; +0xc8, 0x68c874 LDR X1, [X19,#0x290] ; +0xcc, 0x68c878 LDR X2, [X21] ; +0xd0, 0x68c87c MOV X0, X1 ; +0xd4, 0x68c880 LDR X1, [X1] ; +0xd8, 0x68c884 LDR X22, [X2,#0x3C0] ; +0xdc, 0x68c888 LDR X1, [X1,#0x3B0] ; +0xe0, 0x68c88c BLR X1 ; +0xe4, 0x68c890 MOV X1, X0 ; +0xe8, 0x68c894 MOV X0, X21 ; +0xec, 0x68c898 BLR X22 ; +0xf0, 0x68c89c LDR X21, [X19,#0x298] ; +0xf4, 0x68c8a0 LDR X0, [X19,#0x290]; this ; +0xf8, 0x68c8a4 BL _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0xfc, 0x68c8a8 MOV W1, W0; bool ; +0x100, 0x68c8ac MOV X0, X21; this ; +0x104, 0x68c8b0 BL _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x108, 0x68c8b4 LDR X0, [X19,#0x298] ; +0x10c, 0x68c8b8 STR X0, [X19,#0x290] ; +0x110, 0x68c8bc B loc_68C840 ; +0x114, 0x68c8c0 LDR X0, [X19,#0x290] ; +0x118, 0x68c8c4 B loc_68C840 ; +0x11c, 0x68c8c8