{"type": "func", "start": 4300979648, "end": 4300979767, "name": "GameObject::addRotation_1", "pseudocode": "// \n// GameObject::addRotation_1 from 0x1005bbdc0 to 0x1005bbe37 (119 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processRotationActions @ 0x1001462f9\n// > GJBaseGameLayer::processRotationActions @ 0x1001463c7\n// > GJBaseGameLayer::rotateObject @ 0x100147397\n// > GJBaseGameLayer::rotateObjects @ 0x1001477f5\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x10014a5ab\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_1(GameObject *a1, float a2)\n{\n  GameObject_vtbl *v2; // rax\n  float v3; // xmm0_4\n  float (__cdecl **p_getRotation)(cocos2d::CCNode *__hidden); // rax\n  __int64 v5; // r14\n  float v6; // xmm0_4\n\n  v2 = 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 = &v2->getRotation;\n    v5 = 344;\n  }\n  else\n  {\n    v3 = ((float (__fastcall *)(GameObject *))v2->getRotationX)(a1);\n    ((void (__fastcall *)(GameObject *, float))a1->setRotationX)(a1, v3 + a2);\n    p_getRotation = &a1->getRotationY;\n    v5 = 376;\n  }\n  v6 = ((float (__fastcall *)(GameObject *))*p_getRotation)(a1);\n  (*(void (__fastcall **)(GameObject *, float))((char *)&a1->copyWithZone + v5))(a1, v6 + a2);\n}", "assembly": "; \n; GameObject::addRotation_1 from 0x1005bbdc0 to 0x1005bbe37 (119 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processRotationActions @ 0x1001462f9\n; > GJBaseGameLayer::processRotationActions @ 0x1001463c7\n; > GJBaseGameLayer::rotateObject @ 0x100147397\n; > GJBaseGameLayer::rotateObjects @ 0x1001477f5\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x10014a5ab\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, 0x1005bbdc0\nmov     rbp, rsp                                                       ; +0x1, 0x1005bbdc1\npush    r14                                                            ; +0x4, 0x1005bbdc4\npush    rbx                                                            ; +0x6, 0x1005bbdc6\nsub     rsp, 10h                                                       ; +0x7, 0x1005bbdc7\nmovss   [rbp+var_14], xmm0                                             ; +0xb, 0x1005bbdcb\nmov     rbx, rdi                                                       ; +0x10, 0x1005bbdd0\nmovss   xmm0, dword ptr [rdi+38h]                                      ; +0x13, 0x1005bbdd3\nucomiss xmm0, dword ptr [rdi+3Ch]                                      ; +0x18, 0x1005bbdd8\nmov     rax, [rdi]                                                     ; +0x1c, 0x1005bbddc\njnz     short loc_1005BBDE3                                            ; +0x1f, 0x1005bbddf\njnp     short loc_1005BBE0D                                            ; +0x21, 0x1005bbde1\nmov     rdi, rbx                                                       ; +0x23, 0x1005bbde3\ncall    qword ptr [rax+170h]                                           ; +0x26, 0x1005bbde6\naddss   xmm0, [rbp+var_14]                                             ; +0x2c, 0x1005bbdec\nmov     rax, [rbx]                                                     ; +0x31, 0x1005bbdf1\nmov     rdi, rbx                                                       ; +0x34, 0x1005bbdf4\ncall    qword ptr [rax+168h]                                           ; +0x37, 0x1005bbdf7\nmov     eax, 180h                                                      ; +0x3d, 0x1005bbdfd\nadd     rax, [rbx]                                                     ; +0x42, 0x1005bbe02\nmov     r14d, 178h                                                     ; +0x45, 0x1005bbe05\njmp     short loc_1005BBE19                                            ; +0x4b, 0x1005bbe0b\nadd     rax, 160h                                                      ; +0x4d, 0x1005bbe0d\nmov     r14d, 158h                                                     ; +0x53, 0x1005bbe13\nmov     rdi, rbx                                                       ; +0x59, 0x1005bbe19\ncall    qword ptr [rax]                                                ; +0x5c, 0x1005bbe1c\naddss   xmm0, [rbp+var_14]                                             ; +0x5e, 0x1005bbe1e\nmov     rax, [rbx]                                                     ; +0x63, 0x1005bbe23\nmov     rax, [rax+r14]                                                 ; +0x66, 0x1005bbe26\nmov     rdi, rbx                                                       ; +0x6a, 0x1005bbe2a\nadd     rsp, 10h                                                       ; +0x6d, 0x1005bbe2d\npop     rbx                                                            ; +0x71, 0x1005bbe31\npop     r14                                                            ; +0x72, 0x1005bbe32\npop     rbp                                                            ; +0x74, 0x1005bbe34\njmp     rax                                                            ; +0x75, 0x1005bbe35", "xrefs": ["GJBaseGameLayer::processRotationActions @ 0x1001462f9", "GJBaseGameLayer::processRotationActions @ 0x1001463c7", "GJBaseGameLayer::rotateObject @ 0x100147397", "GJBaseGameLayer::rotateObjects @ 0x1001477f5", "GJBaseGameLayer::processAdvancedFollowAction @ 0x10014a5ab"], "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"}