{"type": "func", "start": 3961124, "end": 3961180, "name": "CCPartAnimSprite::setFlipX", "pseudocode": "// \n// CCPartAnimSprite::setFlipX from 0x3c7124 to 0x3c715c (56 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x3c35ca\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:46:35 +0000\n// \n\nint __fastcall CCPartAnimSprite::setFlipX(CCPartAnimSprite *this, int a2)\n{\n  int isFlipX; // r0\n  int result; // r0\n\n  isFlipX = cocos2d::CCSprite::isFlipX(this);\n  if ( a2 != isFlipX )\n    (*(void (__fastcall **)(CCPartAnimSprite *, float))(*(_DWORD *)this + 64))(\n      this,\n      (float)((unsigned __int8)isFlipX ^ 1u));\n  result = cocos2d::CCSprite::setFlipX(this, a2);\n  *((_BYTE *)this + 516) = 1;\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setFlipX from 0x3c7124 to 0x3c715c (56 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x3c35ca\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:46:35 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3c7124\nMOV             R5, R1                                                 ; +0x2, 0x3c7126\nMOV             R4, R0                                                 ; +0x4, 0x3c7128\nBL              _ZN7cocos2d8CCSprite7isFlipXEv; cocos2d::CCSprite::isFlipX(void) ; +0x6, 0x3c712a\nCMP             R5, R0                                                 ; +0xa, 0x3c712e\nBEQ             loc_3C714C                                             ; +0xc, 0x3c7130\nEOR.W           R0, R0, #1                                             ; +0xe, 0x3c7132\nLDR             R3, [R4]                                               ; +0x12, 0x3c7136\nUXTB            R1, R0                                                 ; +0x14, 0x3c7138\nMOV             R0, R4                                                 ; +0x16, 0x3c713a\nLDR             R3, [R3,#0x40]                                         ; +0x18, 0x3c713c\nVMOV            S15, R1                                                ; +0x1a, 0x3c713e\nVCVT.F32.U32    S15, S15                                               ; +0x1e, 0x3c7142\nVMOV            R1, S15                                                ; +0x22, 0x3c7146\nBLX             R3                                                     ; +0x26, 0x3c714a\nMOV             R0, R4; this                                           ; +0x28, 0x3c714c\nMOV             R1, R5; bool                                           ; +0x2a, 0x3c714e\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x2c, 0x3c7150\nMOVS            R3, #1                                                 ; +0x30, 0x3c7154\nSTRB.W          R3, [R4,#0x204]                                        ; +0x32, 0x3c7156\nPOP             {R3-R5,PC}                                             ; +0x36, 0x3c715a", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x3c35ca"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}