{"type": "func", "start": 5370986752, "end": 5370986899, "name": "GJBaseGameLayer::rotateObject", "pseudocode": "// \n// GJBaseGameLayer::rotateObject from 0x14022c100 to 0x14022c193 (147 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::rotateObjects @ 0x14022c5b5\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1402303d4\n// > <???> @ 0x1406cdbf0\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 GJBaseGameLayer::rotateObject(GJBaseGameLayer *a1, GameObject *a2, float a3)\n{\n  float v4; // xmm0_4\n  bool v5; // zf\n  GameObject_vtbl *v6; // rax\n\n  if ( a3 != 0.0 && a2->m_canRotateFree )\n  {\n    v4 = a3 + a2->m_rotationXOffset;\n    a2->m_rotationYOffset = a3 + a2->m_rotationYOffset;\n    a2->m_rotationXOffset = v4;\n    GameObject::addRotation(a2, a3);\n    if ( a2->m_objectType != Decoration )\n    {\n      v5 = !a2->m_shouldUseOuterOb;\n      *(_WORD *)&a2->m_isObjectRectDirty = 257;\n      if ( v5 )\n      {\n        v6 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n        a2->m_shouldUseOuterOb = 1;\n        v6->updateOrientedBox(a2);\n        a2->getObjectRect_0(a2);\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::rotateObject from 0x14022c100 to 0x14022c193 (147 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::rotateObjects @ 0x14022c5b5\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x1402303d4\n; > <???> @ 0x1406cdbf0\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    rbx                                                            ; +0x0, 0x14022c100\nsub     rsp, 20h                                                       ; +0x2, 0x14022c102\nxorps   xmm0, xmm0                                                     ; +0x6, 0x14022c106\nmov     rbx, rdx                                                       ; +0x9, 0x14022c109\nucomiss xmm2, xmm0                                                     ; +0xc, 0x14022c10c\njp      short loc_14022C113                                            ; +0xf, 0x14022c10f\njz      short loc_14022C18D                                            ; +0x11, 0x14022c111\ncmp     byte ptr [rdx+36Ch], 0                                         ; +0x13, 0x14022c113\njz      short loc_14022C18D                                            ; +0x1a, 0x14022c11a\nmovaps  xmm1, xmm2                                                     ; +0x1c, 0x14022c11c\nmovaps  xmm0, xmm2                                                     ; +0x1f, 0x14022c11f\naddss   xmm1, dword ptr [rdx+2B0h]                                     ; +0x22, 0x14022c122\naddss   xmm0, dword ptr [rdx+2A8h]                                     ; +0x2a, 0x14022c12a\nmov     rcx, rbx                                                       ; +0x32, 0x14022c132\nmovss   dword ptr [rdx+2B0h], xmm1                                     ; +0x35, 0x14022c135\nmovaps  xmm1, xmm2                                                     ; +0x3d, 0x14022c13d\nmovss   dword ptr [rdx+2A8h], xmm0                                     ; +0x40, 0x14022c140\ncall    GameObject__addRotation                                        ; +0x48, 0x14022c148\ncmp     dword ptr [rbx+3A0h], 7                                        ; +0x4d, 0x14022c14d\njz      short loc_14022C18D                                            ; +0x54, 0x14022c154\ncmp     byte ptr [rbx+2E8h], 0                                         ; +0x56, 0x14022c156\nmov     word ptr [rbx+368h], 101h                                      ; +0x5d, 0x14022c15d\njnz     short loc_14022C18D                                            ; +0x66, 0x14022c166\nmov     rax, [rbx]                                                     ; +0x68, 0x14022c168\nmov     rcx, rbx                                                       ; +0x6b, 0x14022c16b\nmov     byte ptr [rbx+2E8h], 1                                         ; +0x6e, 0x14022c16e\ncall    qword ptr [rax+578h]                                           ; +0x75, 0x14022c175\nmov     rax, [rbx]                                                     ; +0x7b, 0x14022c17b\nmov     rcx, rbx                                                       ; +0x7e, 0x14022c17e\nadd     rsp, 20h                                                       ; +0x81, 0x14022c181\npop     rbx                                                            ; +0x85, 0x14022c185\njmp     qword ptr [rax+490h]                                           ; +0x86, 0x14022c186\nadd     rsp, 20h                                                       ; +0x8d, 0x14022c18d\npop     rbx                                                            ; +0x91, 0x14022c191\nretn                                                                   ; +0x92, 0x14022c192", "xrefs": ["GJBaseGameLayer::rotateObjects @ 0x14022c5b5", "GJBaseGameLayer::processAdvancedFollowAction @ 0x1402303d4", "<???> @ 0x1406cdbf0"], "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"}