{"type": "func", "start": 5931672, "end": 5931840, "name": "CCSpritePlus::setFlipX", "pseudocode": "// \n// CCSpritePlus::setFlipX from 0x5a8298 to 0x5a8340 (168 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xa86c0\n// > <???> @ 0x1139dc8\n// > <???> @ 0x1142fc8\n// > <???> @ 0x11aab88\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 CCSpritePlus::setFlipX(CCSpritePlus *a1, bool a2)\n{\n  cocos2d::CCArray *m_pChildren; // x0\n  unsigned int v5; // w19\n  cocos2d::CCSprite *v6; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n  unsigned int v9; // w19\n  cocos2d::CCSprite *v10; // x0\n  unsigned int v11; // w1\n\n  cocos2d::CCSprite::setFlipX(a1, a2);\n  if ( a1->m_propagateFlipChanges )\n  {\n    m_pChildren = a1->m_pChildren;\n    if ( m_pChildren )\n    {\n      v5 = 0;\n      while ( 1 )\n      {\n        v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_pChildren);\n        v8 = v5++;\n        if ( v7 )\n          break;\n        v6 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v8);\n        cocos2d::CCSprite::setFlipX(v6, a2);\n        m_pChildren = a1->m_pChildren;\n      }\n    }\n  }\n  v9 = 0;\n  if ( a1->m_hasFollower )\n  {\n    while ( 1 )\n    {\n      v7 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_followers);\n      v11 = v9++;\n      if ( v7 )\n        break;\n      v10 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(a1->m_followers, v11);\n      cocos2d::CCSprite::setFlipX(v10, a2);\n    }\n  }\n}", "assembly": "; \n; CCSpritePlus::setFlipX from 0x5a8298 to 0x5a8340 (168 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xa86c0\n; > <???> @ 0x1139dc8\n; > <???> @ 0x1142fc8\n; > <???> @ 0x11aab88\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x5a8298\nMOV             X29, SP                                                ; +0x4, 0x5a829c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x5a82a0\nUXTB            W21, W1                                                ; +0xc, 0x5a82a4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x5a82a8\nMOV             W1, W21; bool                                          ; +0x14, 0x5a82ac\nMOV             X20, X0                                                ; +0x18, 0x5a82b0\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x1c, 0x5a82b4\nLDRB            W0, [X20,#0x26A]                                       ; +0x20, 0x5a82b8\nCBZ             W0, loc_5A82F8                                         ; +0x24, 0x5a82bc\nLDR             X0, [X20,#0xD0]                                        ; +0x28, 0x5a82c0\nCBZ             X0, loc_5A82F8                                         ; +0x2c, 0x5a82c4\nMOV             W19, #0                                                ; +0x30, 0x5a82c8\nB               loc_5A82E4                                             ; +0x34, 0x5a82cc\nLDR             X0, [X20,#0xD0]; this                                  ; +0x38, 0x5a82d0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x5a82d4\nMOV             W1, W21; bool                                          ; +0x40, 0x5a82d8\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x44, 0x5a82dc\nLDR             X0, [X20,#0xD0]; this                                  ; +0x48, 0x5a82e0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x5a82e4\nCMP             W19, W0                                                ; +0x50, 0x5a82e8\nMOV             W1, W19; unsigned int                                  ; +0x54, 0x5a82ec\nADD             W19, W19, #1                                           ; +0x58, 0x5a82f0\nB.CC            loc_5A82D0                                             ; +0x5c, 0x5a82f4\nLDRB            W0, [X20,#0x268]                                       ; +0x60, 0x5a82f8\nMOV             W19, #0                                                ; +0x64, 0x5a82fc\nCBNZ            W0, loc_5A8318                                         ; +0x68, 0x5a8300\nB               loc_5A8330                                             ; +0x6c, 0x5a8304\nLDR             X0, [X20,#0x258]; this                                 ; +0x70, 0x5a8308\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x74, 0x5a830c\nMOV             W1, W21; bool                                          ; +0x78, 0x5a8310\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x7c, 0x5a8314\nLDR             X0, [X20,#0x258]; this                                 ; +0x80, 0x5a8318\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x5a831c\nCMP             W19, W0                                                ; +0x88, 0x5a8320\nMOV             W1, W19; unsigned int                                  ; +0x8c, 0x5a8324\nADD             W19, W19, #1                                           ; +0x90, 0x5a8328\nB.CC            loc_5A8308                                             ; +0x94, 0x5a832c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x5a8330\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x9c, 0x5a8334\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa0, 0x5a8338\nRET                                                                    ; +0xa4, 0x5a833c", "xrefs": ["<???> @ 0xa86c0", "<???> @ 0x1139dc8", "<???> @ 0x1142fc8", "<???> @ 0x11aab88"], "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"}