{"type": "func", "start": 6881324, "end": 6881636, "name": "EditorUI::angleChanged", "pseudocode": "// \n// EditorUI::angleChanged from 0x69002c to 0x690164 (312 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorUI::angleChanged @ 0x690168\n// > <???> @ 0x4a850\n// > <???> @ 0x1156bd8\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 EditorUI::angleChanged(EditorUI *a1, float a2)\n{\n  GameObject *m_selectedObject; // x0\n  float v5; // s9\n  GameObject *v6; // x20\n  void (__fastcall *setRotation)(GameObject *__hidden, float); // x21\n  float v8; // s0\n  GameObject *v9; // x21\n  void (__fastcall *setRotationX)(GameObject *__hidden, float); // x22\n  float v11; // s0\n  GameObject *v12; // x20\n  void (__fastcall *setRotationY)(GameObject *__hidden, float); // x21\n  float v14; // s0\n  cocos2d::CCArray *m_selectedObjects; // x21\n  cocos2d::CCPoint v16; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v17; // 0:s1.4,4:s2.4\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    v5 = m_selectedObject->getRotationX(m_selectedObject);\n    if ( v5 == a1->m_selectedObject->getRotationY(a1->m_selectedObject) )\n    {\n      v6 = a1->m_selectedObject;\n      setRotation = v6->setRotation;\n      v8 = v6->getRotation(v6);\n      setRotation(v6, v8 + a2);\n    }\n    else\n    {\n      v9 = a1->m_selectedObject;\n      setRotationX = v9->setRotationX;\n      v11 = v9->getRotationX(v9);\n      setRotationX(v9, a2 + v11);\n      v12 = a1->m_selectedObject;\n      setRotationY = v12->setRotationY;\n      v14 = v12->getRotationY(v12);\n      setRotationY(v12, a2 + v14);\n    }\n  }\n  else if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    cocos2d::CCPoint::CCPoint(&v16, &a1->m_pivotPoint);\n    EditorUI::rotateObjects(a1, m_selectedObjects, a2, v17);\n  }\n}", "assembly": "; \n; EditorUI::angleChanged from 0x69002c to 0x690164 (312 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorUI::angleChanged @ 0x690168\n; > <???> @ 0x4a850\n; > <???> @ 0x1156bd8\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             X29, X30, [SP,#var_60]!                                ; +0x0, 0x69002c\nMOV             X29, SP                                                ; +0x4, 0x690030\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x690034\nSTP             D8, D9, [SP,#0x60+var_30]                              ; +0xc, 0x690038\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x69003c\nMOV             X20, X0                                                ; +0x14, 0x690040\nLDR             X0, [X0,#0x530]                                        ; +0x18, 0x690044\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x1c, 0x690048\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x69004c\nFMOV            S8, S0                                                 ; +0x24, 0x690050\nLDR             X1, [X1]                                               ; +0x28, 0x690054\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x2c, 0x690058\nCBZ             X0, loc_690124                                         ; +0x30, 0x69005c\nLDR             X1, [X0]                                               ; +0x34, 0x690060\nLDR             X1, [X1,#0x170]                                        ; +0x38, 0x690064\nBLR             X1                                                     ; +0x3c, 0x690068\nLDR             X1, [X20,#0x530]                                       ; +0x40, 0x69006c\nFMOV            S9, S0                                                 ; +0x44, 0x690070\nMOV             X0, X1                                                 ; +0x48, 0x690074\nLDR             X1, [X1]                                               ; +0x4c, 0x690078\nLDR             X1, [X1,#0x180]                                        ; +0x50, 0x69007c\nBLR             X1                                                     ; +0x54, 0x690080\nFCMP            S9, S0                                                 ; +0x58, 0x690084\nB.NE            loc_6900D8                                             ; +0x5c, 0x690088\nLDR             X20, [X20,#0x530]                                      ; +0x60, 0x69008c\nMOV             X0, X20                                                ; +0x64, 0x690090\nLDR             X1, [X20]                                              ; +0x68, 0x690094\nLDR             X2, [X1,#0x160]                                        ; +0x6c, 0x690098\nLDR             X21, [X1,#0x158]                                       ; +0x70, 0x69009c\nBLR             X2                                                     ; +0x74, 0x6900a0\nFADD            S0, S0, S8                                             ; +0x78, 0x6900a4\nMOV             X0, X20                                                ; +0x7c, 0x6900a8\nBLR             X21                                                    ; +0x80, 0x6900ac\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x6900b0\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x88, 0x6900b4\nLDR             X0, [X19]                                              ; +0x8c, 0x6900b8\nCMP             X1, X0                                                 ; +0x90, 0x6900bc\nB.NE            loc_690160                                             ; +0x94, 0x6900c0\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x98, 0x6900c4\nLDP             D8, D9, [SP,#0x60+var_30]                              ; +0x9c, 0x6900c8\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xa0, 0x6900cc\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xa4, 0x6900d0\nRET                                                                    ; +0xa8, 0x6900d4\nLDR             X21, [X20,#0x530]                                      ; +0xac, 0x6900d8\nMOV             X0, X21                                                ; +0xb0, 0x6900dc\nLDR             X1, [X21]                                              ; +0xb4, 0x6900e0\nLDR             X2, [X1,#0x170]                                        ; +0xb8, 0x6900e4\nLDR             X22, [X1,#0x168]                                       ; +0xbc, 0x6900e8\nBLR             X2                                                     ; +0xc0, 0x6900ec\nFADD            S0, S8, S0                                             ; +0xc4, 0x6900f0\nMOV             X0, X21                                                ; +0xc8, 0x6900f4\nBLR             X22                                                    ; +0xcc, 0x6900f8\nLDR             X20, [X20,#0x530]                                      ; +0xd0, 0x6900fc\nMOV             X0, X20                                                ; +0xd4, 0x690100\nLDR             X1, [X20]                                              ; +0xd8, 0x690104\nLDR             X2, [X1,#0x180]                                        ; +0xdc, 0x690108\nLDR             X21, [X1,#0x178]                                       ; +0xe0, 0x69010c\nBLR             X2                                                     ; +0xe4, 0x690110\nFADD            S0, S8, S0                                             ; +0xe8, 0x690114\nMOV             X0, X20                                                ; +0xec, 0x690118\nBLR             X21                                                    ; +0xf0, 0x69011c\nB               loc_6900B0                                             ; +0xf4, 0x690120\nLDR             X0, [X20,#0x338]; this                                 ; +0xf8, 0x690124\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xfc, 0x690128\nCBZ             W0, loc_6900B0                                         ; +0x100, 0x69012c\nADD             X2, X29, #0x60+var_10                                  ; +0x104, 0x690130\nADD             X1, X20, #0x2B8; cocos2d::CCPoint *                    ; +0x108, 0x690134\nMOV             X0, X2; this                                           ; +0x10c, 0x690138\nLDR             X21, [X20,#0x338]                                      ; +0x110, 0x69013c\nSTR             X2, [X29,#0x60+var_18]                                 ; +0x114, 0x690140\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x118, 0x690144\nFMOV            S0, S8                                                 ; +0x11c, 0x690148\nLDR             X2, [X29,#0x60+var_18]                                 ; +0x120, 0x69014c\nMOV             X0, X20                                                ; +0x124, 0x690150\nMOV             X1, X21                                                ; +0x128, 0x690154\nBL              _ZN8EditorUI13rotateObjectsEPN7cocos2d7CCArrayEfNS0_7CCPointE; EditorUI::rotateObjects(cocos2d::CCArray *,float,cocos2d::CCPoint) ; +0x12c, 0x690158\nB               loc_6900B0                                             ; +0x130, 0x69015c\nBL              .__stack_chk_fail                                      ; +0x134, 0x690160", "xrefs": ["`non-virtual thunk to'EditorUI::angleChanged @ 0x690168", "<???> @ 0x4a850", "<???> @ 0x1156bd8"], "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"}