{"type": "func", "start": 4301037104, "end": 4301037319, "name": "GameObject::fastRotateObject", "pseudocode": "// \n// GameObject::fastRotateObject from 0x1005c9e30 to 0x1005c9f07 (215 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::processTransformActions @ 0x10014579c\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::fastRotateObject(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  a1->m_rotationXOffset = a1->m_rotationXOffset + a2;\n  a1->m_rotationYOffset = a1->m_rotationYOffset + a2;\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  if ( a1->m_objectType != Decoration && !a1->m_shouldUseOuterOb )\n  {\n    a1->m_shouldUseOuterOb = 1;\n    ((void (__fastcall *)(GameObject *))a1->updateOrientedBox)(a1);\n    ((void (__fastcall *)(GameObject *))a1->getObjectRect)(a1);\n  }\n}", "assembly": "; \n; GameObject::fastRotateObject from 0x1005c9e30 to 0x1005c9f07 (215 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::processTransformActions @ 0x10014579c\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, 0x1005c9e30\nmov     rbp, rsp                                                       ; +0x1, 0x1005c9e31\npush    r14                                                            ; +0x4, 0x1005c9e34\npush    rbx                                                            ; +0x6, 0x1005c9e36\nsub     rsp, 10h                                                       ; +0x7, 0x1005c9e37\nmov     rbx, rdi                                                       ; +0xb, 0x1005c9e3b\nmovss   xmm1, dword ptr [rdi+2A4h]                                     ; +0xe, 0x1005c9e3e\naddss   xmm1, xmm0                                                     ; +0x16, 0x1005c9e46\nmovss   dword ptr [rdi+2A4h], xmm1                                     ; +0x1a, 0x1005c9e4a\nmovss   xmm1, dword ptr [rdi+2ACh]                                     ; +0x22, 0x1005c9e52\nmovss   [rbp+var_14], xmm0                                             ; +0x2a, 0x1005c9e5a\naddss   xmm1, xmm0                                                     ; +0x2f, 0x1005c9e5f\nmovss   dword ptr [rdi+2ACh], xmm1                                     ; +0x33, 0x1005c9e63\nmovss   xmm0, dword ptr [rdi+38h]                                      ; +0x3b, 0x1005c9e6b\nucomiss xmm0, dword ptr [rdi+3Ch]                                      ; +0x40, 0x1005c9e70\nmov     rax, [rdi]                                                     ; +0x44, 0x1005c9e74\njnz     short loc_1005C9E7B                                            ; +0x47, 0x1005c9e77\njnp     short loc_1005C9EA5                                            ; +0x49, 0x1005c9e79\nmov     rdi, rbx                                                       ; +0x4b, 0x1005c9e7b\ncall    qword ptr [rax+170h]                                           ; +0x4e, 0x1005c9e7e\naddss   xmm0, [rbp+var_14]                                             ; +0x54, 0x1005c9e84\nmov     rax, [rbx]                                                     ; +0x59, 0x1005c9e89\nmov     rdi, rbx                                                       ; +0x5c, 0x1005c9e8c\ncall    qword ptr [rax+168h]                                           ; +0x5f, 0x1005c9e8f\nmov     eax, 180h                                                      ; +0x65, 0x1005c9e95\nadd     rax, [rbx]                                                     ; +0x6a, 0x1005c9e9a\nmov     r14d, 178h                                                     ; +0x6d, 0x1005c9e9d\njmp     short loc_1005C9EB1                                            ; +0x73, 0x1005c9ea3\nadd     rax, 160h                                                      ; +0x75, 0x1005c9ea5\nmov     r14d, 158h                                                     ; +0x7b, 0x1005c9eab\nmov     rdi, rbx                                                       ; +0x81, 0x1005c9eb1\ncall    qword ptr [rax]                                                ; +0x84, 0x1005c9eb4\naddss   xmm0, [rbp+var_14]                                             ; +0x86, 0x1005c9eb6\nmov     rax, [rbx]                                                     ; +0x8b, 0x1005c9ebb\nmov     rdi, rbx                                                       ; +0x8e, 0x1005c9ebe\ncall    qword ptr [rax+r14]                                            ; +0x91, 0x1005c9ec1\ncmp     dword ptr [rbx+398h], 7                                        ; +0x95, 0x1005c9ec5\njz      short loc_1005C9ED7                                            ; +0x9c, 0x1005c9ecc\ncmp     byte ptr [rbx+2E8h], 0                                         ; +0x9e, 0x1005c9ece\njz      short loc_1005C9EE0                                            ; +0xa5, 0x1005c9ed5\nadd     rsp, 10h                                                       ; +0xa7, 0x1005c9ed7\npop     rbx                                                            ; +0xab, 0x1005c9edb\npop     r14                                                            ; +0xac, 0x1005c9edc\npop     rbp                                                            ; +0xae, 0x1005c9ede\nretn                                                                   ; +0xaf, 0x1005c9edf\nmov     byte ptr [rbx+2E8h], 1                                         ; +0xb0, 0x1005c9ee0\nmov     rax, [rbx]                                                     ; +0xb7, 0x1005c9ee7\nmov     rdi, rbx                                                       ; +0xba, 0x1005c9eea\ncall    qword ptr [rax+610h]                                           ; +0xbd, 0x1005c9eed\nmov     rax, [rbx]                                                     ; +0xc3, 0x1005c9ef3\nmov     rdi, rbx                                                       ; +0xc6, 0x1005c9ef6\nadd     rsp, 10h                                                       ; +0xc9, 0x1005c9ef9\npop     rbx                                                            ; +0xcd, 0x1005c9efd\npop     r14                                                            ; +0xce, 0x1005c9efe\npop     rbp                                                            ; +0xd0, 0x1005c9f00\njmp     qword ptr [rax+520h]                                           ; +0xd1, 0x1005c9f01", "xrefs": ["GJBaseGameLayer::processTransformActions @ 0x10014579c"], "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"}