{"type": "func", "start": 4089504, "end": 4089606, "name": "CCSpritePlus::setFlipX", "pseudocode": "// \n// CCSpritePlus::setFlipX from 0x3e66a0 to 0x3e6706 (102 bytes)\n// \n// 0 xrefs:\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:47:05 +0000\n// \n\nunsigned int __fastcall CCSpritePlus::setFlipX(cocos2d::CCArray **this, bool a2)\n{\n  unsigned int result; // r0\n  unsigned int i; // r5\n  cocos2d::CCSprite *v6; // r0\n  unsigned int j; // r5\n  cocos2d::CCSprite *v8; // r0\n\n  result = cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)this, a2);\n  if ( *((_BYTE *)this + 518) && *(this + 48) )\n  {\n    for ( i = 0; ; ++i )\n    {\n      result = cocos2d::CCArray::count(*(this + 48));\n      if ( i >= result )\n        break;\n      v6 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(*(this + 48), i);\n      cocos2d::CCSprite::setFlipX(v6, a2);\n    }\n  }\n  if ( *((_BYTE *)this + 516) )\n  {\n    for ( j = 0; ; ++j )\n    {\n      result = cocos2d::CCArray::count(*(this + 127));\n      if ( j >= result )\n        break;\n      v8 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(*(this + 127), j);\n      cocos2d::CCSprite::setFlipX(v8, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCSpritePlus::setFlipX from 0x3e66a0 to 0x3e6706 (102 bytes)\n; \n; 0 xrefs:\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:47:05 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3e66a0\nMOV             R4, R0                                                 ; +0x2, 0x3e66a2\nMOV             R6, R1                                                 ; +0x4, 0x3e66a4\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x6, 0x3e66a6\nLDRB.W          R3, [R4,#0x206]                                        ; +0xa, 0x3e66aa\nCBNZ            R3, loc_3E66B8                                         ; +0xe, 0x3e66ae\nLDRB.W          R3, [R4,#0x204]                                        ; +0x10, 0x3e66b0\nCBNZ            R3, loc_3E66E2                                         ; +0x14, 0x3e66b4\nPOP             {R4-R6,PC}                                             ; +0x16, 0x3e66b6\nLDR.W           R3, [R4,#0xC0]                                         ; +0x18, 0x3e66b8\nCMP             R3, #0                                                 ; +0x1c, 0x3e66bc\nBEQ             loc_3E66B0                                             ; +0x1e, 0x3e66be\nMOVS            R5, #0                                                 ; +0x20, 0x3e66c0\nLDR.W           R0, [R4,#0xC0]; this                                   ; +0x22, 0x3e66c2\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x3e66c6\nCMP             R5, R0                                                 ; +0x2a, 0x3e66ca\nBCS             loc_3E66B0                                             ; +0x2c, 0x3e66cc\nMOV             R1, R5; unsigned int                                   ; +0x2e, 0x3e66ce\nLDR.W           R0, [R4,#0xC0]; this                                   ; +0x30, 0x3e66d0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x3e66d4\nMOV             R1, R6; bool                                           ; +0x38, 0x3e66d8\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x3a, 0x3e66da\nADDS            R5, #1                                                 ; +0x3e, 0x3e66de\nB               loc_3E66C2                                             ; +0x40, 0x3e66e0\nMOVS            R5, #0                                                 ; +0x42, 0x3e66e2\nLDR.W           R0, [R4,#0x1FC]; this                                  ; +0x44, 0x3e66e4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x3e66e8\nCMP             R5, R0                                                 ; +0x4c, 0x3e66ec\nBCS             locret_3E6704                                          ; +0x4e, 0x3e66ee\nMOV             R1, R5; unsigned int                                   ; +0x50, 0x3e66f0\nLDR.W           R0, [R4,#0x1FC]; this                                  ; +0x52, 0x3e66f2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x56, 0x3e66f6\nMOV             R1, R6; bool                                           ; +0x5a, 0x3e66fa\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x5c, 0x3e66fc\nADDS            R5, #1                                                 ; +0x60, 0x3e6700\nB               loc_3E66E4                                             ; +0x62, 0x3e6702\nPOP             {R4-R6,PC}                                             ; +0x64, 0x3e6704", "xrefs": [], "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"}