{"type": "func", "start": 4299129140, "end": 4299129412, "name": "EditorUI::angleChanged", "pseudocode": "// \n// EditorUI::angleChanged from 0x1003f8134 to 0x1003f8244 (272 bytes)\n// \n// 2 xrefs:\n// > sub_1003F8244 @ 0x1003f8248\n// > <???> @ 0x100814070\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 EditorUI::angleChanged(EditorUI *a1, float a2)\n{\n  GameObject *m_selectedObject; // x0\n  float v5; // s9\n  float v6; // s0\n  GameObject *v7; // x20\n  GameObject_vtbl *v8; // x8\n  float v9; // s0\n  GameObject *v10; // x19\n  __n128 v11; // q0\n  void (__cdecl *setRotation)(GameObject *__hidden, float); // x1\n  GameObject *v13; // x0\n  cocos2d::CCArray *m_selectedObjects; // x20\n  __int64 v15; // [xsp+8h] [xbp-28h] BYREF\n  cocos2d::CCPoint v16; // 0:s1.4,4:s2.4\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    v5 = ((float (__fastcall *)(GameObject *))m_selectedObject->getRotationX)(m_selectedObject);\n    v6 = ((float (__fastcall *)(GameObject *))a1->m_selectedObject->getRotationY)(a1->m_selectedObject);\n    v7 = a1->m_selectedObject;\n    v8 = v7->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    if ( v5 == v6 )\n    {\n      v11.n128_f32[0] = ((float (__fastcall *)(GameObject *))v8->getRotation)(a1->m_selectedObject) + a2;\n      setRotation = v7->setRotation;\n      v13 = v7;\n    }\n    else\n    {\n      v9 = ((float (__fastcall *)(GameObject *))v8->getRotationX)(a1->m_selectedObject);\n      ((void (__fastcall *)(GameObject *, float))v7->setRotationX)(v7, v9 + a2);\n      v10 = a1->m_selectedObject;\n      v11.n128_f32[0] = ((float (__fastcall *)(GameObject *))v10->getRotationY)(v10) + a2;\n      setRotation = v10->setRotationY;\n      v13 = v10;\n    }\n    ((void (__fastcall *)(GameObject *, __n128))setRotation)(v13, v11);\n  }\n  else if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    sub_1000229B8(&v15, (__int64 *)&a1->m_pivotPoint);\n    EditorUI::rotateObjects(a1, m_selectedObjects, a2, v16);\n  }\n}", "assembly": "; \n; EditorUI::angleChanged from 0x1003f8134 to 0x1003f8244 (272 bytes)\n; \n; 2 xrefs:\n; > sub_1003F8244 @ 0x1003f8248\n; > <???> @ 0x100814070\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003f8134\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x1003f8138\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003f813c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003f8140\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003f8144\nFMOV            S8, S0                                                 ; +0x14, 0x1003f8148\nMOV             X19, X0                                                ; +0x18, 0x1003f814c\nLDR             X0, [X0,#0x520]                                        ; +0x1c, 0x1003f8150\nCBZ             X0, loc_1003F81D0                                      ; +0x20, 0x1003f8154\nLDR             X8, [X0]                                               ; +0x24, 0x1003f8158\nLDR             X8, [X8,#0x170]                                        ; +0x28, 0x1003f815c\nBLR             X8                                                     ; +0x2c, 0x1003f8160\nFMOV            S9, S0                                                 ; +0x30, 0x1003f8164\nLDR             X0, [X19,#0x520]                                       ; +0x34, 0x1003f8168\nLDR             X8, [X0]                                               ; +0x38, 0x1003f816c\nLDR             X8, [X8,#0x180]                                        ; +0x3c, 0x1003f8170\nBLR             X8                                                     ; +0x40, 0x1003f8174\nLDR             X20, [X19,#0x520]                                      ; +0x44, 0x1003f8178\nLDR             X8, [X20]                                              ; +0x48, 0x1003f817c\nFCMP            S9, S0                                                 ; +0x4c, 0x1003f8180\nB.EQ            loc_1003F8214                                          ; +0x50, 0x1003f8184\nLDR             X8, [X8,#0x170]                                        ; +0x54, 0x1003f8188\nMOV             X0, X20                                                ; +0x58, 0x1003f818c\nBLR             X8                                                     ; +0x5c, 0x1003f8190\nFADD            S0, S0, S8                                             ; +0x60, 0x1003f8194\nLDR             X8, [X20]                                              ; +0x64, 0x1003f8198\nLDR             X8, [X8,#0x168]                                        ; +0x68, 0x1003f819c\nMOV             X0, X20                                                ; +0x6c, 0x1003f81a0\nBLR             X8                                                     ; +0x70, 0x1003f81a4\nLDR             X19, [X19,#0x520]                                      ; +0x74, 0x1003f81a8\nLDR             X8, [X19]                                              ; +0x78, 0x1003f81ac\nLDR             X8, [X8,#0x180]                                        ; +0x7c, 0x1003f81b0\nMOV             X0, X19                                                ; +0x80, 0x1003f81b4\nBLR             X8                                                     ; +0x84, 0x1003f81b8\nFADD            S0, S0, S8                                             ; +0x88, 0x1003f81bc\nLDR             X8, [X19]                                              ; +0x8c, 0x1003f81c0\nLDR             X1, [X8,#0x178]                                        ; +0x90, 0x1003f81c4\nMOV             X0, X19                                                ; +0x94, 0x1003f81c8\nB               loc_1003F8230                                          ; +0x98, 0x1003f81cc\nLDR             X0, [X19,#0x328]                                       ; +0x9c, 0x1003f81d0\nBL              sub_10024A36C                                          ; +0xa0, 0x1003f81d4\nCBZ             W0, loc_1003F8200                                      ; +0xa4, 0x1003f81d8\nLDR             X20, [X19,#0x328]                                      ; +0xa8, 0x1003f81dc\nADD             X0, SP, #0x30+var_28                                   ; +0xac, 0x1003f81e0\nADD             X1, X19, #0x2A8                                        ; +0xb0, 0x1003f81e4\nBL              sub_1000229B8                                          ; +0xb4, 0x1003f81e8\nADD             X2, SP, #0x30+var_28                                   ; +0xb8, 0x1003f81ec\nMOV             X0, X19                                                ; +0xbc, 0x1003f81f0\nMOV             X1, X20                                                ; +0xc0, 0x1003f81f4\nFMOV            S0, S8                                                 ; +0xc4, 0x1003f81f8\nBL              EditorUI__rotateObjects                                ; +0xc8, 0x1003f81fc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xcc, 0x1003f8200\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd0, 0x1003f8204\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xd4, 0x1003f8208\nADD             SP, SP, #0x40 ; '@'                                    ; +0xd8, 0x1003f820c\nRET                                                                    ; +0xdc, 0x1003f8210\nLDR             X8, [X8,#0x160]                                        ; +0xe0, 0x1003f8214\nMOV             X0, X20                                                ; +0xe4, 0x1003f8218\nBLR             X8                                                     ; +0xe8, 0x1003f821c\nFADD            S0, S0, S8                                             ; +0xec, 0x1003f8220\nLDR             X8, [X20]                                              ; +0xf0, 0x1003f8224\nLDR             X1, [X8,#0x158]                                        ; +0xf4, 0x1003f8228\nMOV             X0, X20                                                ; +0xf8, 0x1003f822c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xfc, 0x1003f8230\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x100, 0x1003f8234\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x104, 0x1003f8238\nADD             SP, SP, #0x40 ; '@'                                    ; +0x108, 0x1003f823c\nBR              X1                                                     ; +0x10c, 0x1003f8240", "xrefs": ["sub_1003F8244 @ 0x1003f8248", "<???> @ 0x100814070"], "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"}