{"type": "func", "start": 7112152, "end": 7112320, "name": "CCSpritePlus::setFlipX", "pseudocode": "// \n// CCSpritePlus::setFlipX from 0x6c85d8 to 0x6c8680 (168 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xdcf00\n// > <???> @ 0x1417c38\n// > <???> @ 0x1421c38\n// > <???> @ 0x1491d18\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:22 +0000\n// \n\n__int64 __fastcall CCSpritePlus::setFlipX(cocos2d::CCArray **this, bool a2)\n{\n  cocos2d::CCArray *v4; // x0\n  unsigned int v5; // w19\n  cocos2d::CCSprite *v6; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n  __int64 result; // x0\n  unsigned int v10; // w19\n  cocos2d::CCSprite *v11; // x0\n  unsigned int v12; // w1\n\n  cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)this, a2);\n  if ( *((_BYTE *)this + 618) )\n  {\n    v4 = *(this + 26);\n    if ( v4 )\n    {\n      v5 = 0;\n      while ( 1 )\n      {\n        v7 = v5 >= (unsigned int)cocos2d::CCArray::count(v4);\n        v8 = v5++;\n        if ( v7 )\n          break;\n        v6 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(*(this + 26), v8);\n        cocos2d::CCSprite::setFlipX(v6, a2);\n        v4 = *(this + 26);\n      }\n    }\n  }\n  result = *((unsigned __int8 *)this + 616);\n  v10 = 0;\n  if ( *((_BYTE *)this + 616) )\n  {\n    while ( 1 )\n    {\n      result = cocos2d::CCArray::count(*(this + 75));\n      v7 = v10 >= (unsigned int)result;\n      v12 = v10++;\n      if ( v7 )\n        break;\n      v11 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(*(this + 75), v12);\n      cocos2d::CCSprite::setFlipX(v11, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCSpritePlus::setFlipX from 0x6c85d8 to 0x6c8680 (168 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xdcf00\n; > <???> @ 0x1417c38\n; > <???> @ 0x1421c38\n; > <???> @ 0x1491d18\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:22 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x6c85d8\nMOV             X29, SP                                                ; +0x4, 0x6c85dc\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x6c85e0\nUXTB            W21, W1                                                ; +0xc, 0x6c85e4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x6c85e8\nMOV             W1, W21; bool                                          ; +0x14, 0x6c85ec\nMOV             X20, X0                                                ; +0x18, 0x6c85f0\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x1c, 0x6c85f4\nLDRB            W0, [X20,#0x26A]                                       ; +0x20, 0x6c85f8\nCBZ             W0, loc_6C8638                                         ; +0x24, 0x6c85fc\nLDR             X0, [X20,#0xD0]                                        ; +0x28, 0x6c8600\nCBZ             X0, loc_6C8638                                         ; +0x2c, 0x6c8604\nMOV             W19, #0                                                ; +0x30, 0x6c8608\nB               loc_6C8624                                             ; +0x34, 0x6c860c\nLDR             X0, [X20,#0xD0]; this                                  ; +0x38, 0x6c8610\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x6c8614\nMOV             W1, W21; bool                                          ; +0x40, 0x6c8618\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x44, 0x6c861c\nLDR             X0, [X20,#0xD0]; this                                  ; +0x48, 0x6c8620\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x6c8624\nCMP             W19, W0                                                ; +0x50, 0x6c8628\nMOV             W1, W19; unsigned int                                  ; +0x54, 0x6c862c\nADD             W19, W19, #1                                           ; +0x58, 0x6c8630\nB.CC            loc_6C8610                                             ; +0x5c, 0x6c8634\nLDRB            W0, [X20,#0x268]                                       ; +0x60, 0x6c8638\nMOV             W19, #0                                                ; +0x64, 0x6c863c\nCBNZ            W0, loc_6C8658                                         ; +0x68, 0x6c8640\nB               loc_6C8670                                             ; +0x6c, 0x6c8644\nLDR             X0, [X20,#0x258]; this                                 ; +0x70, 0x6c8648\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x74, 0x6c864c\nMOV             W1, W21; bool                                          ; +0x78, 0x6c8650\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x7c, 0x6c8654\nLDR             X0, [X20,#0x258]; this                                 ; +0x80, 0x6c8658\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x6c865c\nCMP             W19, W0                                                ; +0x88, 0x6c8660\nMOV             W1, W19; unsigned int                                  ; +0x8c, 0x6c8664\nADD             W19, W19, #1                                           ; +0x90, 0x6c8668\nB.CC            loc_6C8648                                             ; +0x94, 0x6c866c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x6c8670\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x9c, 0x6c8674\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa0, 0x6c8678\nRET                                                                    ; +0xa4, 0x6c867c", "xrefs": ["<???> @ 0xdcf00", "<???> @ 0x1417c38", "<???> @ 0x1421c38", "<???> @ 0x1491d18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}