{"type": "func", "start": 4299694304, "end": 4299694384, "name": "CCSpritePlus::addFollower", "pseudocode": "// \n// CCSpritePlus::addFollower from 0x1004820e0 to 0x100482130 (80 bytes)\n// \n// 8 xrefs:\n// > AnimatedGameObject::setupChildSprites @ 0x1001b687a\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6a3d\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6bda\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6cac\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6d77\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6f5a\n// > GJRobotSprite::init @ 0x1005dc1e4\n// > CurrencyRewardLayer::createObjectsFull @ 0x1007a8385\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 __fastcall CCSpritePlus::addFollower(CCSpritePlus *a1, cocos2d::CCNode *a2)\n{\n  cocos2d::CCArray *m_followers; // rdi\n  cocos2d::CCArray *v4; // rax\n\n  a1->m_hasFollower = 1;\n  m_followers = a1->m_followers;\n  if ( !m_followers )\n  {\n    v4 = (cocos2d::CCArray *)sub_10071F9E0(0, a2);\n    a1->m_followers = v4;\n    cocos2d::CCObject::retain(v4);\n    m_followers = a1->m_followers;\n  }\n  sub_10071FCD0(m_followers, a2);\n}", "assembly": "; \n; CCSpritePlus::addFollower from 0x1004820e0 to 0x100482130 (80 bytes)\n; \n; 8 xrefs:\n; > AnimatedGameObject::setupChildSprites @ 0x1001b687a\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6a3d\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6bda\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6cac\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6d77\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6f5a\n; > GJRobotSprite::init @ 0x1005dc1e4\n; > CurrencyRewardLayer::createObjectsFull @ 0x1007a8385\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\npush    rbp                                                            ; +0x0, 0x1004820e0\nmov     rbp, rsp                                                       ; +0x1, 0x1004820e1\npush    r14                                                            ; +0x4, 0x1004820e4\npush    rbx                                                            ; +0x6, 0x1004820e6\nmov     rbx, rdi                                                       ; +0x7, 0x1004820e7\nmov     byte ptr [rdi+268h], 1                                         ; +0xa, 0x1004820ea\nmov     rdi, [rdi+258h]                                                ; +0x11, 0x1004820f1\ntest    rdi, rdi                                                       ; +0x18, 0x1004820f8\njz      short loc_100482106                                            ; +0x1b, 0x1004820fb\npop     rbx                                                            ; +0x1d, 0x1004820fd\npop     r14                                                            ; +0x1e, 0x1004820fe\npop     rbp                                                            ; +0x20, 0x100482100\njmp     sub_10071FCD0                                                  ; +0x21, 0x100482101\nmov     r14, rsi                                                       ; +0x26, 0x100482106\ncall    sub_10071F9E0                                                  ; +0x29, 0x100482109\nmov     [rbx+258h], rax                                                ; +0x2e, 0x10048210e\nmov     rdi, rax                                                       ; +0x35, 0x100482115\ncall    cocos2d__CCObject__retain                                      ; +0x38, 0x100482118\nmov     rsi, r14                                                       ; +0x3d, 0x10048211d\nmov     rdi, [rbx+258h]                                                ; +0x40, 0x100482120\npop     rbx                                                            ; +0x47, 0x100482127\npop     r14                                                            ; +0x48, 0x100482128\npop     rbp                                                            ; +0x4a, 0x10048212a\njmp     sub_10071FCD0                                                  ; +0x4b, 0x10048212b", "xrefs": ["AnimatedGameObject::setupChildSprites @ 0x1001b687a", "AnimatedGameObject::setupChildSprites @ 0x1001b6a3d", "AnimatedGameObject::setupChildSprites @ 0x1001b6bda", "AnimatedGameObject::setupChildSprites @ 0x1001b6cac", "AnimatedGameObject::setupChildSprites @ 0x1001b6d77", "AnimatedGameObject::setupChildSprites @ 0x1001b6f5a", "GJRobotSprite::init @ 0x1005dc1e4", "CurrencyRewardLayer::createObjectsFull @ 0x1007a8385"], "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"}