{"type": "func", "start": 4089606, "end": 4089708, "name": "CCSpritePlus::setFlipY", "pseudocode": "// \n// CCSpritePlus::setFlipY from 0x3e6706 to 0x3e676c (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::setFlipY(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::setFlipY((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::setFlipY(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::setFlipY(v8, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCSpritePlus::setFlipY from 0x3e6706 to 0x3e676c (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, 0x3e6706\nMOV             R4, R0                                                 ; +0x2, 0x3e6708\nMOV             R6, R1                                                 ; +0x4, 0x3e670a\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x6, 0x3e670c\nLDRB.W          R3, [R4,#0x206]                                        ; +0xa, 0x3e6710\nCBNZ            R3, loc_3E671E                                         ; +0xe, 0x3e6714\nLDRB.W          R3, [R4,#0x204]                                        ; +0x10, 0x3e6716\nCBNZ            R3, loc_3E6748                                         ; +0x14, 0x3e671a\nPOP             {R4-R6,PC}                                             ; +0x16, 0x3e671c\nLDR.W           R3, [R4,#0xC0]                                         ; +0x18, 0x3e671e\nCMP             R3, #0                                                 ; +0x1c, 0x3e6722\nBEQ             loc_3E6716                                             ; +0x1e, 0x3e6724\nMOVS            R5, #0                                                 ; +0x20, 0x3e6726\nLDR.W           R0, [R4,#0xC0]; this                                   ; +0x22, 0x3e6728\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x3e672c\nCMP             R5, R0                                                 ; +0x2a, 0x3e6730\nBCS             loc_3E6716                                             ; +0x2c, 0x3e6732\nMOV             R1, R5; unsigned int                                   ; +0x2e, 0x3e6734\nLDR.W           R0, [R4,#0xC0]; this                                   ; +0x30, 0x3e6736\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x3e673a\nMOV             R1, R6; bool                                           ; +0x38, 0x3e673e\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x3a, 0x3e6740\nADDS            R5, #1                                                 ; +0x3e, 0x3e6744\nB               loc_3E6728                                             ; +0x40, 0x3e6746\nMOVS            R5, #0                                                 ; +0x42, 0x3e6748\nLDR.W           R0, [R4,#0x1FC]; this                                  ; +0x44, 0x3e674a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x3e674e\nCMP             R5, R0                                                 ; +0x4c, 0x3e6752\nBCS             locret_3E676A                                          ; +0x4e, 0x3e6754\nMOV             R1, R5; unsigned int                                   ; +0x50, 0x3e6756\nLDR.W           R0, [R4,#0x1FC]; this                                  ; +0x52, 0x3e6758\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x56, 0x3e675c\nMOV             R1, R6; bool                                           ; +0x5a, 0x3e6760\nBL              _ZN7cocos2d8CCSprite8setFlipYEb; cocos2d::CCSprite::setFlipY(bool) ; +0x5c, 0x3e6762\nADDS            R5, #1                                                 ; +0x60, 0x3e6766\nB               loc_3E674A                                             ; +0x62, 0x3e6768\nPOP             {R4-R6,PC}                                             ; +0x64, 0x3e676a", "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"}