{"type": "func", "start": 4295488412, "end": 4295488500, "name": "CCPartAnimSprite::setFlipX", "pseudocode": "// \n// CCPartAnimSprite::setFlipX from 0x10007f39c to 0x10007f3f4 (88 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x1002fda18\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 __fastcall CCPartAnimSprite::setFlipX(CCPartAnimSprite *a1, bool a2)\n{\n  int v2; // w20\n  int isFlipX; // w0\n\n  v2 = a2;\n  isFlipX = cocos2d::CCSprite::isFlipX(a1);\n  if ( isFlipX != v2 )\n    ((void (__fastcall *)(CCPartAnimSprite *, float))a1->setScaleX)(a1, (float)(isFlipX ^ 1u));\n  cocos2d::CCSprite::setFlipX(a1, v2);\n  a1->m_hasChanged = 1;\n}", "assembly": "; \n; CCPartAnimSprite::setFlipX from 0x10007f39c to 0x10007f3f4 (88 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x1002fda18\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10007f39c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10007f3a0\nADD             X29, SP, #0x10                                         ; +0x8, 0x10007f3a4\nMOV             X20, X1                                                ; +0xc, 0x10007f3a8\nMOV             X19, X0                                                ; +0x10, 0x10007f3ac\nBL              cocos2d__CCSprite__isFlipX                             ; +0x14, 0x10007f3b0\nCMP             W0, W20                                                ; +0x18, 0x10007f3b4\nB.EQ            loc_10007F3D4                                          ; +0x1c, 0x10007f3b8\nEOR             W8, W0, #1                                             ; +0x20, 0x10007f3bc\nUCVTF           S0, W8                                                 ; +0x24, 0x10007f3c0\nLDR             X8, [X19]                                              ; +0x28, 0x10007f3c4\nLDR             X8, [X8,#0x80]                                         ; +0x2c, 0x10007f3c8\nMOV             X0, X19                                                ; +0x30, 0x10007f3cc\nBLR             X8                                                     ; +0x34, 0x10007f3d0\nMOV             X0, X19                                                ; +0x38, 0x10007f3d4\nMOV             X1, X20                                                ; +0x3c, 0x10007f3d8\nBL              cocos2d__CCSprite__setFlipX                            ; +0x40, 0x10007f3dc\nMOV             W8, #1                                                 ; +0x44, 0x10007f3e0\nSTRB            W8, [X19,#0x268]                                       ; +0x48, 0x10007f3e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10007f3e8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x10007f3ec\nRET                                                                    ; +0x54, 0x10007f3f0", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x1002fda18"], "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"}