{"type": "func", "start": 5932264, "end": 5932392, "name": "CCSpritePlus::setScale", "pseudocode": "// \n// CCSpritePlus::setScale from 0x5a84e8 to 0x5a8568 (128 bytes)\n// \n// 5 xrefs:\n// > GameObject::setScale @ 0x641000\n// > <???> @ 0x75138\n// > <???> @ 0x11399a0\n// > <???> @ 0x1142ba0\n// > <???> @ 0x11aa760\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::setScale(CCSpritePlus *a1, float a2)\n{\n  unsigned int v4; // w19\n  __int64 v5; // x0\n  bool v6; // cf\n  unsigned int v7; // w1\n\n  cocos2d::CCSprite::setScale(a1, a2);\n  if ( a1->m_hasFollower )\n  {\n    v4 = 0;\n    if ( a1->m_propagateScaleChanges )\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, float))(*(_QWORD *)v5 + 160LL))(v5, a2);\n      }\n    }\n  }\n}", "assembly": "; \n; CCSpritePlus::setScale from 0x5a84e8 to 0x5a8568 (128 bytes)\n; \n; 5 xrefs:\n; > GameObject::setScale @ 0x641000\n; > <???> @ 0x75138\n; > <???> @ 0x11399a0\n; > <???> @ 0x1142ba0\n; > <???> @ 0x11aa760\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, 0x5a84e8\nMOV             X29, SP                                                ; +0x4, 0x5a84ec\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x8, 0x5a84f0\nFMOV            S8, S0                                                 ; +0xc, 0x5a84f4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x5a84f8\nMOV             X20, X0                                                ; +0x14, 0x5a84fc\nBL              _ZN7cocos2d8CCSprite8setScaleEf; cocos2d::CCSprite::setScale(float) ; +0x18, 0x5a8500\nLDRB            W0, [X20,#0x268]                                       ; +0x1c, 0x5a8504\nCBZ             W0, loc_5A8518                                         ; +0x20, 0x5a8508\nLDRB            W0, [X20,#0x269]                                       ; +0x24, 0x5a850c\nMOV             W19, #0                                                ; +0x28, 0x5a8510\nCBNZ            W0, loc_5A8540                                         ; +0x2c, 0x5a8514\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x30, 0x5a8518\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x34, 0x5a851c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x38, 0x5a8520\nRET                                                                    ; +0x3c, 0x5a8524\nLDR             X0, [X20,#0x258]; this                                 ; +0x40, 0x5a8528\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x5a852c\nLDR             X1, [X0]                                               ; +0x48, 0x5a8530\nFMOV            S0, S8                                                 ; +0x4c, 0x5a8534\nLDR             X1, [X1,#0xA0]                                         ; +0x50, 0x5a8538\nBLR             X1                                                     ; +0x54, 0x5a853c\nLDR             X0, [X20,#0x258]; this                                 ; +0x58, 0x5a8540\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0x5a8544\nCMP             W19, W0                                                ; +0x60, 0x5a8548\nMOV             W1, W19; unsigned int                                  ; +0x64, 0x5a854c\nADD             W19, W19, #1                                           ; +0x68, 0x5a8550\nB.CC            loc_5A8528                                             ; +0x6c, 0x5a8554\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x70, 0x5a8558\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x74, 0x5a855c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0x5a8560\nRET                                                                    ; +0x7c, 0x5a8564", "xrefs": ["GameObject::setScale @ 0x641000", "<???> @ 0x75138", "<???> @ 0x11399a0", "<???> @ 0x1142ba0", "<???> @ 0x11aa760"], "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"}