{"type": "func", "start": 5932612, "end": 5932692, "name": "CCSpritePlus::addFollower", "pseudocode": "// \n// CCSpritePlus::addFollower from 0x5a8644 to 0x5a8694 (80 bytes)\n// \n// 8 xrefs:\n// > CCSpritePlus::followSprite @ 0x5a86e8\n// > AnimatedGameObject::setupChildSprites @ 0x755fd0\n// > AnimatedGameObject::setupChildSprites @ 0x756154\n// > AnimatedGameObject::setupChildSprites @ 0x756340\n// > AnimatedGameObject::setupChildSprites @ 0x756540\n// > GJRobotSprite::init @ 0x8e3964\n// > CurrencyRewardLayer::createObjectsFull @ 0x90fc78\n// > <???> @ 0x9f000\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::addFollower(CCSpritePlus *a1, cocos2d::CCNode *a2)\n{\n  cocos2d::CCArray *m_followers; // x0\n  cocos2d::CCArray *v4; // x0\n\n  m_followers = a1->m_followers;\n  a1->m_hasFollower = 1;\n  if ( m_followers )\n  {\n    cocos2d::CCArray::addObject(m_followers, a2);\n  }\n  else\n  {\n    v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(nullptr);\n    a1->m_followers = v4;\n    cocos2d::CCObject::retain(v4);\n    cocos2d::CCArray::addObject(a1->m_followers, a2);\n  }\n}", "assembly": "; \n; CCSpritePlus::addFollower from 0x5a8644 to 0x5a8694 (80 bytes)\n; \n; 8 xrefs:\n; > CCSpritePlus::followSprite @ 0x5a86e8\n; > AnimatedGameObject::setupChildSprites @ 0x755fd0\n; > AnimatedGameObject::setupChildSprites @ 0x756154\n; > AnimatedGameObject::setupChildSprites @ 0x756340\n; > AnimatedGameObject::setupChildSprites @ 0x756540\n; > GJRobotSprite::init @ 0x8e3964\n; > CurrencyRewardLayer::createObjectsFull @ 0x90fc78\n; > <???> @ 0x9f000\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, 0x5a8644\nMOV             W2, #1                                                 ; +0x4, 0x5a8648\nMOV             X29, SP                                                ; +0x8, 0x5a864c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x5a8650\nMOV             X19, X0                                                ; +0x10, 0x5a8654\nLDR             X0, [X0,#0x258]; this                                  ; +0x14, 0x5a8658\nSTRB            W2, [X19,#0x268]                                       ; +0x18, 0x5a865c\nCBZ             X0, loc_5A8670                                         ; +0x1c, 0x5a8660\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x20, 0x5a8664\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x24, 0x5a8668\nB               _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x28, 0x5a866c\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x2c, 0x5a8670\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x30, 0x5a8674\nSTR             X0, [X19,#0x258]                                       ; +0x34, 0x5a8678\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x38, 0x5a867c\nLDR             X0, [X19,#0x258]; this                                 ; +0x3c, 0x5a8680\nLDR             X1, [X29,#0x30+var_8]; cocos2d::CCObject *             ; +0x40, 0x5a8684\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x44, 0x5a8688\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0x5a868c\nB               _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x4c, 0x5a8690", "xrefs": ["CCSpritePlus::followSprite @ 0x5a86e8", "AnimatedGameObject::setupChildSprites @ 0x755fd0", "AnimatedGameObject::setupChildSprites @ 0x756154", "AnimatedGameObject::setupChildSprites @ 0x756340", "AnimatedGameObject::setupChildSprites @ 0x756540", "GJRobotSprite::init @ 0x8e3964", "CurrencyRewardLayer::createObjectsFull @ 0x90fc78", "<???> @ 0x9f000"], "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"}