; ; CCAnimatedSprite::switchToMode from 0x5711c0 to 0x5712e0 (288 bytes) ; ; 4 xrefs: ; > SpriteAnimationManager::executeAnimation @ 0x58fe80 ; > SpriteAnimationManager::executeAnimation @ 0x58ffac ; > SpriteAnimationManager::switchToFirstFrameOfAnimation @ 0x5909a4 ; > @ 0xc12d8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; STP X29, X30, [SP,#-0x30+var_s0]! ; +0x0, 0x5711c0 MOV X29, SP ; +0x4, 0x5711c4 LDR W2, [X0,#0x288] ; +0x8, 0x5711c8 STP X19, X20, [SP,#var_s10] ; +0xc, 0x5711cc STP X21, X22, [SP,#var_s20] ; +0x10, 0x5711d0 CMP W2, W1 ; +0x14, 0x5711d4 B.EQ loc_571274 ; +0x18, 0x5711d8 MOV X19, X0 ; +0x1c, 0x5711dc LDR X0, [X0,#0x270]; this ; +0x20, 0x5711e0 MOV W20, W1 ; +0x24, 0x5711e4 BL _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x28, 0x5711e8 LDR X2, [X19,#0x270] ; +0x2c, 0x5711ec MOV W1, #0 ; +0x30, 0x5711f0 MOV X0, X2 ; +0x34, 0x5711f4 LDR X2, [X2] ; +0x38, 0x5711f8 LDR X2, [X2,#0x148] ; +0x3c, 0x5711fc BLR X2 ; +0x40, 0x571200 CMP W20, #1 ; +0x44, 0x571204 B.EQ loc_571284 ; +0x48, 0x571208 LDR X1, [X19,#0x270] ; +0x4c, 0x57120c LDR X21, [X19,#0x280] ; +0x50, 0x571210 MOV X0, X1 ; +0x54, 0x571214 LDR X1, [X1] ; +0x58, 0x571218 LDR X1, [X1,#0x3A0] ; +0x5c, 0x57121c BLR X1 ; +0x60, 0x571220 MOV X1, X0 ; +0x64, 0x571224 MOV X0, X21 ; +0x68, 0x571228 LDR X1, [X1] ; +0x6c, 0x57122c BL _ZN16CCPartAnimSprite8setColorEN7cocos2d10_ccColor3BE; CCPartAnimSprite::setColor(cocos2d::_ccColor3B) ; +0x70, 0x571230 LDR X21, [X19,#0x280] ; +0x74, 0x571234 LDR X0, [X19,#0x270]; this ; +0x78, 0x571238 BL _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0x7c, 0x57123c MOV W1, W0; bool ; +0x80, 0x571240 MOV X0, X21; this ; +0x84, 0x571244 BL _ZN16CCPartAnimSprite8setFlipXEb; CCPartAnimSprite::setFlipX(bool) ; +0x88, 0x571248 LDR X0, [X19,#0x280]; this ; +0x8c, 0x57124c STR X0, [X19,#0x270] ; +0x90, 0x571250 BL _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x94, 0x571254 LDR X2, [X19,#0x270] ; +0x98, 0x571258 MOV W1, #1 ; +0x9c, 0x57125c MOV X0, X2 ; +0xa0, 0x571260 LDR X2, [X2] ; +0xa4, 0x571264 LDR X2, [X2,#0x148] ; +0xa8, 0x571268 BLR X2 ; +0xac, 0x57126c STR W20, [X19,#0x288] ; +0xb0, 0x571270 LDP X19, X20, [SP,#var_s10] ; +0xb4, 0x571274 LDP X21, X22, [SP,#var_s20] ; +0xb8, 0x571278 LDP X29, X30, [SP+var_s0],#0x30 ; +0xbc, 0x57127c RET ; +0xc0, 0x571280 LDR X21, [X19,#0x278] ; +0xc4, 0x571284 CBZ X21, loc_5712D8 ; +0xc8, 0x571288 LDR X1, [X19,#0x270] ; +0xcc, 0x57128c LDR X2, [X21] ; +0xd0, 0x571290 MOV X0, X1 ; +0xd4, 0x571294 LDR X1, [X1] ; +0xd8, 0x571298 LDR X22, [X2,#0x3B0] ; +0xdc, 0x57129c LDR X1, [X1,#0x3A0] ; +0xe0, 0x5712a0 BLR X1 ; +0xe4, 0x5712a4 MOV X1, X0 ; +0xe8, 0x5712a8 MOV X0, X21 ; +0xec, 0x5712ac BLR X22 ; +0xf0, 0x5712b0 LDR X21, [X19,#0x278] ; +0xf4, 0x5712b4 LDR X0, [X19,#0x270]; this ; +0xf8, 0x5712b8 BL _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0xfc, 0x5712bc MOV W1, W0; bool ; +0x100, 0x5712c0 MOV X0, X21; this ; +0x104, 0x5712c4 BL _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x108, 0x5712c8 LDR X0, [X19,#0x278] ; +0x10c, 0x5712cc STR X0, [X19,#0x270] ; +0x110, 0x5712d0 B loc_571254 ; +0x114, 0x5712d4 LDR X0, [X19,#0x270] ; +0x118, 0x5712d8 B loc_571254 ; +0x11c, 0x5712dc