{"type": "func", "start": 3043260, "end": 3043316, "name": "CCPartAnimSprite::setFlipX", "pseudocode": "// \n// CCPartAnimSprite::setFlipX from 0x2e6fbc to 0x2e6ff4 (56 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x2e4296\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  int v2; // r5\n  int isFlipX; // r0\n\n  v2 = a2;\n  isFlipX = cocos2d::CCSprite::isFlipX(a1);\n  if ( v2 != isFlipX )\n    ((void (__fastcall *)(_DWORD, _DWORD))a1->setScaleX)(a1, (float)((unsigned __int8)isFlipX ^ 1u));\n  cocos2d::CCSprite::setFlipX(a1, v2);\n  a1->m_hasChanged = 1;\n}", "assembly": "; \n; CCPartAnimSprite::setFlipX from 0x2e6fbc to 0x2e6ff4 (56 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x2e4296\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x2e6fbc\nMOV             R5, R1                                                 ; +0x2, 0x2e6fbe\nMOV             R4, R0                                                 ; +0x4, 0x2e6fc0\nBL              _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0x6, 0x2e6fc2\nCMP             R5, R0                                                 ; +0xa, 0x2e6fc6\nBEQ             loc_2E6FE4                                             ; +0xc, 0x2e6fc8\nEOR.W           R0, R0, #1                                             ; +0xe, 0x2e6fca\nLDR             R3, [R4]                                               ; +0x12, 0x2e6fce\nUXTB            R1, R0                                                 ; +0x14, 0x2e6fd0\nMOV             R0, R4                                                 ; +0x16, 0x2e6fd2\nLDR             R3, [R3,#0x40]                                         ; +0x18, 0x2e6fd4\nVMOV            S15, R1                                                ; +0x1a, 0x2e6fd6\nVCVT.F32.U32    S15, S15                                               ; +0x1e, 0x2e6fda\nVMOV            R1, S15                                                ; +0x22, 0x2e6fde\nBLX             R3                                                     ; +0x26, 0x2e6fe2\nMOV             R0, R4; this                                           ; +0x28, 0x2e6fe4\nMOV             R1, R5; bool                                           ; +0x2a, 0x2e6fe6\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x2c, 0x2e6fe8\nMOVS            R3, #1                                                 ; +0x30, 0x2e6fec\nSTRB.W          R3, [R4,#0x204]                                        ; +0x32, 0x2e6fee\nPOP             {R3-R5,PC}                                             ; +0x36, 0x2e6ff2", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x2e4296"], "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"}