{"type": "func", "start": 5931240, "end": 5931348, "name": "CCSpritePlus::setPosition", "pseudocode": "// \n// CCSpritePlus::setPosition from 0x5a80e8 to 0x5a8154 (108 bytes)\n// \n// 5 xrefs:\n// > GameObject::setPosition @ 0x640ca0\n// > <???> @ 0x94bd8\n// > <???> @ 0x11399b8\n// > <???> @ 0x1142bb8\n// > <???> @ 0x11aa778\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::setPosition(CCSpritePlus *a1, const cocos2d::CCPoint *a2)\n{\n  unsigned int v4; // w19\n  __int64 v5; // x0\n  bool v6; // cf\n  unsigned int v7; // w1\n\n  cocos2d::CCSprite::setPosition(a1, a2);\n  v4 = 0;\n  if ( a1->m_hasFollower )\n  {\n    while ( 1 )\n    {\n      v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_followers);\n      v7 = v4++;\n      if ( v6 )\n        break;\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_followers, v7);\n      (*(void (__fastcall **)(__int64, const cocos2d::CCPoint *))(*(_QWORD *)v5 + 184LL))(v5, a2);\n    }\n  }\n}", "assembly": "; \n; CCSpritePlus::setPosition from 0x5a80e8 to 0x5a8154 (108 bytes)\n; \n; 5 xrefs:\n; > GameObject::setPosition @ 0x640ca0\n; > <???> @ 0x94bd8\n; > <???> @ 0x11399b8\n; > <???> @ 0x1142bb8\n; > <???> @ 0x11aa778\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, 0x5a80e8\nMOV             X29, SP                                                ; +0x4, 0x5a80ec\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x5a80f0\nMOV             X20, X0                                                ; +0xc, 0x5a80f4\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x5a80f8\nMOV             X21, X1                                                ; +0x14, 0x5a80fc\nBL              _ZN7cocos2d8CCSprite11setPositionERKNS_7CCPointE; cocos2d::CCSprite::setPosition(cocos2d::CCPoint const&) ; +0x18, 0x5a8100\nMOV             W19, #0                                                ; +0x1c, 0x5a8104\nLDRB            W0, [X20,#0x268]                                       ; +0x20, 0x5a8108\nCBNZ            W0, loc_5A812C                                         ; +0x24, 0x5a810c\nB               loc_5A8144                                             ; +0x28, 0x5a8110\nLDR             X0, [X20,#0x258]; this                                 ; +0x2c, 0x5a8114\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x30, 0x5a8118\nLDR             X2, [X0]                                               ; +0x34, 0x5a811c\nMOV             X1, X21                                                ; +0x38, 0x5a8120\nLDR             X2, [X2,#0xB8]                                         ; +0x3c, 0x5a8124\nBLR             X2                                                     ; +0x40, 0x5a8128\nLDR             X0, [X20,#0x258]; this                                 ; +0x44, 0x5a812c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x5a8130\nCMP             W19, W0                                                ; +0x4c, 0x5a8134\nMOV             W1, W19; unsigned int                                  ; +0x50, 0x5a8138\nADD             W19, W19, #1                                           ; +0x54, 0x5a813c\nB.CC            loc_5A8114                                             ; +0x58, 0x5a8140\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x5c, 0x5a8144\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x60, 0x5a8148\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0x5a814c\nRET                                                                    ; +0x68, 0x5a8150", "xrefs": ["GameObject::setPosition @ 0x640ca0", "<???> @ 0x94bd8", "<???> @ 0x11399b8", "<???> @ 0x1142bb8", "<???> @ 0x11aa778"], "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"}