{"type": "func", "start": 7112320, "end": 7112488, "name": "CCSpritePlus::setFlipY", "pseudocode": "// \n// CCSpritePlus::setFlipY from 0x6c8680 to 0x6c8728 (168 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x101d70\n// > <???> @ 0x1417c40\n// > <???> @ 0x1421c40\n// > <???> @ 0x1491d20\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::setFlipY(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::setFlipY((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::setFlipY(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::setFlipY(v11, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCSpritePlus::setFlipY from 0x6c8680 to 0x6c8728 (168 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x101d70\n; > <???> @ 0x1417c40\n; > <???> @ 0x1421c40\n; > <???> @ 0x1491d20\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, 0x6c8680\nMOV             X29, SP                                                ; +0x4, 0x6c8684\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x6c8688\nUXTB            W21, W1                                                ; +0xc, 0x6c868c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x6c8690\nMOV             W1, W21; bool                                          ; +0x14, 0x6c8694\nMOV             X20, X0                                                ; +0x18, 0x6c8698\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x1c, 0x6c869c\nLDRB            W0, [X20,#0x26A]                                       ; +0x20, 0x6c86a0\nCBZ             W0, loc_6C86E0                                         ; +0x24, 0x6c86a4\nLDR             X0, [X20,#0xD0]                                        ; +0x28, 0x6c86a8\nCBZ             X0, loc_6C86E0                                         ; +0x2c, 0x6c86ac\nMOV             W19, #0                                                ; +0x30, 0x6c86b0\nB               loc_6C86CC                                             ; +0x34, 0x6c86b4\nLDR             X0, [X20,#0xD0]; this                                  ; +0x38, 0x6c86b8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x6c86bc\nMOV             W1, W21; bool                                          ; +0x40, 0x6c86c0\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x44, 0x6c86c4\nLDR             X0, [X20,#0xD0]; this                                  ; +0x48, 0x6c86c8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x6c86cc\nCMP             W19, W0                                                ; +0x50, 0x6c86d0\nMOV             W1, W19; unsigned int                                  ; +0x54, 0x6c86d4\nADD             W19, W19, #1                                           ; +0x58, 0x6c86d8\nB.CC            loc_6C86B8                                             ; +0x5c, 0x6c86dc\nLDRB            W0, [X20,#0x268]                                       ; +0x60, 0x6c86e0\nMOV             W19, #0                                                ; +0x64, 0x6c86e4\nCBNZ            W0, loc_6C8700                                         ; +0x68, 0x6c86e8\nB               loc_6C8718                                             ; +0x6c, 0x6c86ec\nLDR             X0, [X20,#0x258]; this                                 ; +0x70, 0x6c86f0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x74, 0x6c86f4\nMOV             W1, W21; bool                                          ; +0x78, 0x6c86f8\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x7c, 0x6c86fc\nLDR             X0, [X20,#0x258]; this                                 ; +0x80, 0x6c8700\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x6c8704\nCMP             W19, W0                                                ; +0x88, 0x6c8708\nMOV             W1, W19; unsigned int                                  ; +0x8c, 0x6c870c\nADD             W19, W19, #1                                           ; +0x90, 0x6c8710\nB.CC            loc_6C86F0                                             ; +0x94, 0x6c8714\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x6c8718\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x9c, 0x6c871c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa0, 0x6c8720\nRET                                                                    ; +0xa4, 0x6c8724", "xrefs": ["<???> @ 0x101d70", "<???> @ 0x1417c40", "<???> @ 0x1421c40", "<???> @ 0x1491d20"], "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"}