{"type": "func", "start": 5931840, "end": 5932008, "name": "CCSpritePlus::setFlipY", "pseudocode": "// \n// CCSpritePlus::setFlipY from 0x5a8340 to 0x5a83e8 (168 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xc6240\n// > <???> @ 0x1139dd0\n// > <???> @ 0x1142fd0\n// > <???> @ 0x11aab90\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::setFlipY(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::setFlipY(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::setFlipY(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::setFlipY(v10, a2);\n    }\n  }\n}", "assembly": "; \n; CCSpritePlus::setFlipY from 0x5a8340 to 0x5a83e8 (168 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xc6240\n; > <???> @ 0x1139dd0\n; > <???> @ 0x1142fd0\n; > <???> @ 0x11aab90\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, 0x5a8340\nMOV             X29, SP                                                ; +0x4, 0x5a8344\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x5a8348\nUXTB            W21, W1                                                ; +0xc, 0x5a834c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x5a8350\nMOV             W1, W21; bool                                          ; +0x14, 0x5a8354\nMOV             X20, X0                                                ; +0x18, 0x5a8358\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x1c, 0x5a835c\nLDRB            W0, [X20,#0x26A]                                       ; +0x20, 0x5a8360\nCBZ             W0, loc_5A83A0                                         ; +0x24, 0x5a8364\nLDR             X0, [X20,#0xD0]                                        ; +0x28, 0x5a8368\nCBZ             X0, loc_5A83A0                                         ; +0x2c, 0x5a836c\nMOV             W19, #0                                                ; +0x30, 0x5a8370\nB               loc_5A838C                                             ; +0x34, 0x5a8374\nLDR             X0, [X20,#0xD0]; this                                  ; +0x38, 0x5a8378\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x5a837c\nMOV             W1, W21; bool                                          ; +0x40, 0x5a8380\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x44, 0x5a8384\nLDR             X0, [X20,#0xD0]; this                                  ; +0x48, 0x5a8388\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x5a838c\nCMP             W19, W0                                                ; +0x50, 0x5a8390\nMOV             W1, W19; unsigned int                                  ; +0x54, 0x5a8394\nADD             W19, W19, #1                                           ; +0x58, 0x5a8398\nB.CC            loc_5A8378                                             ; +0x5c, 0x5a839c\nLDRB            W0, [X20,#0x268]                                       ; +0x60, 0x5a83a0\nMOV             W19, #0                                                ; +0x64, 0x5a83a4\nCBNZ            W0, loc_5A83C0                                         ; +0x68, 0x5a83a8\nB               loc_5A83D8                                             ; +0x6c, 0x5a83ac\nLDR             X0, [X20,#0x258]; this                                 ; +0x70, 0x5a83b0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x74, 0x5a83b4\nMOV             W1, W21; bool                                          ; +0x78, 0x5a83b8\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x7c, 0x5a83bc\nLDR             X0, [X20,#0x258]; this                                 ; +0x80, 0x5a83c0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x5a83c4\nCMP             W19, W0                                                ; +0x88, 0x5a83c8\nMOV             W1, W19; unsigned int                                  ; +0x8c, 0x5a83cc\nADD             W19, W19, #1                                           ; +0x90, 0x5a83d0\nB.CC            loc_5A83B0                                             ; +0x94, 0x5a83d4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x5a83d8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x9c, 0x5a83dc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa0, 0x5a83e0\nRET                                                                    ; +0xa4, 0x5a83e4", "xrefs": ["<???> @ 0xc6240", "<???> @ 0x1139dd0", "<???> @ 0x1142fd0", "<???> @ 0x11aab90"], "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"}