{"type": "func", "start": 5931348, "end": 5931456, "name": "CCSpritePlus::setRotation", "pseudocode": "// \n// CCSpritePlus::setRotation from 0x5a8154 to 0x5a81c0 (108 bytes)\n// \n// 5 xrefs:\n// > GameObject::setRotation @ 0x640df0\n// > <???> @ 0x5cbe0\n// > <???> @ 0x1139a58\n// > <???> @ 0x1142c58\n// > <???> @ 0x11aa818\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::setRotation(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  v4 = 0;\n  cocos2d::CCSprite::setRotation(a1, a2);\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, float))(*(_QWORD *)v5 + 344LL))(v5, a2);\n    }\n  }\n}", "assembly": "; \n; CCSpritePlus::setRotation from 0x5a8154 to 0x5a81c0 (108 bytes)\n; \n; 5 xrefs:\n; > GameObject::setRotation @ 0x640df0\n; > <???> @ 0x5cbe0\n; > <???> @ 0x1139a58\n; > <???> @ 0x1142c58\n; > <???> @ 0x11aa818\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, 0x5a8154\nMOV             X29, SP                                                ; +0x4, 0x5a8158\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x8, 0x5a815c\nFMOV            S8, S0                                                 ; +0xc, 0x5a8160\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x5a8164\nMOV             X20, X0                                                ; +0x14, 0x5a8168\nMOV             W19, #0                                                ; +0x18, 0x5a816c\nBL              _ZN7cocos2d8CCSprite11setRotationEf; cocos2d::CCSprite::setRotation(float) ; +0x1c, 0x5a8170\nLDRB            W0, [X20,#0x268]                                       ; +0x20, 0x5a8174\nCBNZ            W0, loc_5A8198                                         ; +0x24, 0x5a8178\nB               loc_5A81B0                                             ; +0x28, 0x5a817c\nLDR             X0, [X20,#0x258]; this                                 ; +0x2c, 0x5a8180\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x30, 0x5a8184\nLDR             X1, [X0]                                               ; +0x34, 0x5a8188\nFMOV            S0, S8                                                 ; +0x38, 0x5a818c\nLDR             X1, [X1,#0x158]                                        ; +0x3c, 0x5a8190\nBLR             X1                                                     ; +0x40, 0x5a8194\nLDR             X0, [X20,#0x258]; this                                 ; +0x44, 0x5a8198\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x5a819c\nCMP             W19, W0                                                ; +0x4c, 0x5a81a0\nMOV             W1, W19; unsigned int                                  ; +0x50, 0x5a81a4\nADD             W19, W19, #1                                           ; +0x54, 0x5a81a8\nB.CC            loc_5A8180                                             ; +0x58, 0x5a81ac\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x5c, 0x5a81b0\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x60, 0x5a81b4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0x5a81b8\nRET                                                                    ; +0x68, 0x5a81bc", "xrefs": ["GameObject::setRotation @ 0x640df0", "<???> @ 0x5cbe0", "<???> @ 0x1139a58", "<???> @ 0x1142c58", "<???> @ 0x11aa818"], "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"}