{"type": "func", "start": 4297437676, "end": 4297437816, "name": "GameObject::addRotation", "pseudocode": "// \n// GameObject::addRotation from 0x10025b1ec to 0x10025b278 (140 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::processRotationActions @ 0x1001f8368\n// > GJBaseGameLayer::processRotationActions @ 0x1001f8428\n// > GJBaseGameLayer::rotateObject @ 0x1001f8dc4\n// > GameObject::fastRotateObject @ 0x100261b88\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 GameObject::addRotation(GameObject *a1, float a2)\n{\n  GameObject_vtbl *v4; // x8\n  float v5; // s0\n  float (__cdecl **p_getRotation)(cocos2d::CCNode *__hidden); // x8\n  __int64 v7; // x20\n  float v8; // s0\n\n  v4 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( a1->m_fRotationX == a1->m_fRotationY )\n  {\n    p_getRotation = &v4->getRotation;\n    v7 = 344;\n  }\n  else\n  {\n    v5 = ((float (__fastcall *)(GameObject *))v4->getRotationX)(a1);\n    ((void (__fastcall *)(GameObject *, float))a1->setRotationX)(a1, v5 + a2);\n    p_getRotation = &a1->getRotationY;\n    v7 = 376;\n  }\n  v8 = ((float (__fastcall *)(GameObject *))*p_getRotation)(a1) + a2;\n  (*(void (__fastcall **)(GameObject *, float))((char *)&a1->copyWithZone + v7))(a1, v8);\n}", "assembly": "; \n; GameObject::addRotation from 0x10025b1ec to 0x10025b278 (140 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::processRotationActions @ 0x1001f8368\n; > GJBaseGameLayer::processRotationActions @ 0x1001f8428\n; > GJBaseGameLayer::rotateObject @ 0x1001f8dc4\n; > GameObject::fastRotateObject @ 0x100261b88\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             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x10025b1ec\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10025b1f0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10025b1f4\nADD             X29, SP, #0x20                                         ; +0xc, 0x10025b1f8\nFMOV            S8, S0                                                 ; +0x10, 0x10025b1fc\nMOV             X19, X0                                                ; +0x14, 0x10025b200\nLDP             S0, S1, [X0,#0x38]                                     ; +0x18, 0x10025b204\nLDR             X8, [X0]                                               ; +0x1c, 0x10025b208\nFCMP            S0, S1                                                 ; +0x20, 0x10025b20c\nB.EQ            loc_10025B244                                          ; +0x24, 0x10025b210\nLDR             X8, [X8,#0x170]                                        ; +0x28, 0x10025b214\nMOV             X0, X19                                                ; +0x2c, 0x10025b218\nBLR             X8                                                     ; +0x30, 0x10025b21c\nFADD            S0, S0, S8                                             ; +0x34, 0x10025b220\nLDR             X8, [X19]                                              ; +0x38, 0x10025b224\nLDR             X8, [X8,#0x168]                                        ; +0x3c, 0x10025b228\nMOV             X0, X19                                                ; +0x40, 0x10025b22c\nBLR             X8                                                     ; +0x44, 0x10025b230\nLDR             X8, [X19]                                              ; +0x48, 0x10025b234\nADD             X8, X8, #0x180                                         ; +0x4c, 0x10025b238\nMOV             W20, #0x178                                            ; +0x50, 0x10025b23c\nB               loc_10025B24C                                          ; +0x54, 0x10025b240\nADD             X8, X8, #0x160                                         ; +0x58, 0x10025b244\nMOV             W20, #0x158                                            ; +0x5c, 0x10025b248\nLDR             X8, [X8]                                               ; +0x60, 0x10025b24c\nMOV             X0, X19                                                ; +0x64, 0x10025b250\nBLR             X8                                                     ; +0x68, 0x10025b254\nFADD            S0, S0, S8                                             ; +0x6c, 0x10025b258\nLDR             X8, [X19]                                              ; +0x70, 0x10025b25c\nLDR             X1, [X8,X20]                                           ; +0x74, 0x10025b260\nMOV             X0, X19                                                ; +0x78, 0x10025b264\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x10025b268\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x10025b26c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x84, 0x10025b270\nBR              X1                                                     ; +0x88, 0x10025b274", "xrefs": ["GJBaseGameLayer::processRotationActions @ 0x1001f8368", "GJBaseGameLayer::processRotationActions @ 0x1001f8428", "GJBaseGameLayer::rotateObject @ 0x1001f8dc4", "GameObject::fastRotateObject @ 0x100261b88"], "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"}