{"type": "func", "start": 5730476, "end": 5730568, "name": "CCPartAnimSprite::setFlipX", "pseudocode": "// \n// CCPartAnimSprite::setFlipX from 0x5770ac to 0x577108 (92 bytes)\n// \n// 2 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x571248\n// > <???> @ 0x7aa60\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCPartAnimSprite::setFlipX(CCPartAnimSprite *a1, bool a2)\n{\n  _BOOL4 v2; // w20\n  bool isFlipX; // w0\n\n  v2 = a2;\n  isFlipX = cocos2d::CCSprite::isFlipX(a1);\n  if ( isFlipX != v2 )\n    a1->setScaleX(a1, (float)!isFlipX);\n  cocos2d::CCSprite::setFlipX(a1, v2);\n  a1->m_hasChanged = 1;\n}", "assembly": "; \n; CCPartAnimSprite::setFlipX from 0x5770ac to 0x577108 (92 bytes)\n; \n; 2 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x571248\n; > <???> @ 0x7aa60\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x5770ac\nMOV             X29, SP                                                ; +0x4, 0x5770b0\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x5770b4\nUXTB            W20, W1                                                ; +0xc, 0x5770b8\nMOV             X19, X0                                                ; +0x10, 0x5770bc\nBL              _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0x14, 0x5770c0\nUXTB            W0, W0                                                 ; +0x18, 0x5770c4\nCMP             W0, W20                                                ; +0x1c, 0x5770c8\nB.EQ            loc_5770E8                                             ; +0x20, 0x5770cc\nEOR             W2, W0, #1                                             ; +0x24, 0x5770d0\nLDR             X1, [X19]                                              ; +0x28, 0x5770d4\nMOV             X0, X19                                                ; +0x2c, 0x5770d8\nUCVTF           S0, W2                                                 ; +0x30, 0x5770dc\nLDR             X1, [X1,#0x80]                                         ; +0x34, 0x5770e0\nBLR             X1                                                     ; +0x38, 0x5770e4\nMOV             X0, X19; this                                          ; +0x3c, 0x5770e8\nMOV             W1, W20; bool                                          ; +0x40, 0x5770ec\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x44, 0x5770f0\nMOV             W0, #1                                                 ; +0x48, 0x5770f4\nSTRB            W0, [X19,#0x268]                                       ; +0x4c, 0x5770f8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x50, 0x5770fc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x54, 0x577100\nRET                                                                    ; +0x58, 0x577104", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x571248", "<???> @ 0x7aa60"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}