{"type": "func", "start": 4295288160, "end": 4295288422, "name": "EditorUI::angleChanged", "pseudocode": "// \n// EditorUI::angleChanged from 0x10004e560 to 0x10004e666 (262 bytes)\n// \n// 2 xrefs:\n// > sub_10004E670 @ 0x10004e67c\n// > <???> @ 0x1008b0630\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall EditorUI::angleChanged(EditorUI *a1, float a2)\n{\n  cocos2d::CCPoint v2; // xmm1_8\n  GameObject *m_selectedObject; // rdi\n  float v5; // xmm0_4\n  GameObject *v6; // r14\n  GameObject_vtbl *v7; // rax\n  float v8; // xmm0_4\n  GameObject *v9; // rbx\n  double v10; // xmm0_8\n  cocos2d::CCArray *m_selectedObjects; // r14\n  double v12; // xmm0_8\n  _BYTE v13[8]; // [rsp+8h] [rbp-28h] BYREF\n  float v14; // [rsp+10h] [rbp-20h]\n  float v15; // [rsp+14h] [rbp-1Ch]\n\n  v15 = a2;\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    v14 = ((float (__fastcall *)(GameObject *))m_selectedObject->getRotationX)(m_selectedObject);\n    v5 = ((float (__fastcall *)(GameObject *))a1->m_selectedObject->getRotationY)(a1->m_selectedObject);\n    v6 = a1->m_selectedObject;\n    v7 = v6->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    if ( v14 == v5 )\n    {\n      *(float *)&v12 = ((float (__fastcall *)(GameObject *))v7->getRotation)(v6) + v15;\n      ((void (__fastcall *)(GameObject *, double))v6->setRotation)(v6, v12);\n    }\n    else\n    {\n      v8 = ((float (__fastcall *)(GameObject *))v7->getRotationX)(v6);\n      ((void (__fastcall *)(GameObject *, float))v6->setRotationX)(v6, v8 + v15);\n      v9 = a1->m_selectedObject;\n      *(float *)&v10 = ((float (__fastcall *)(GameObject *))v9->getRotationY)(v9) + v15;\n      ((void (__fastcall *)(GameObject *, double))v9->setRotationY)(v9, v10);\n    }\n  }\n  else if ( (unsigned int)sub_100720070(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    sub_10028CC60(v13);\n    EditorUI::rotateObjects(a1, m_selectedObjects, v15, v2);\n  }\n}", "assembly": "; \n; EditorUI::angleChanged from 0x10004e560 to 0x10004e666 (262 bytes)\n; \n; 2 xrefs:\n; > sub_10004E670 @ 0x10004e67c\n; > <???> @ 0x1008b0630\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, 0x10004e560\nmov     rbp, rsp                                                       ; +0x1, 0x10004e561\npush    r15                                                            ; +0x4, 0x10004e564\npush    r14                                                            ; +0x6, 0x10004e566\npush    rbx                                                            ; +0x8, 0x10004e568\nsub     rsp, 18h                                                       ; +0x9, 0x10004e569\nmovss   [rbp+var_1C], xmm0                                             ; +0xd, 0x10004e56d\nmov     rbx, rdi                                                       ; +0x12, 0x10004e572\nmov     rdi, [rdi+520h]                                                ; +0x15, 0x10004e575\ntest    rdi, rdi                                                       ; +0x1c, 0x10004e57c\njz      short loc_10004E5FA                                            ; +0x1f, 0x10004e57f\nmov     rax, [rdi]                                                     ; +0x21, 0x10004e581\ncall    qword ptr [rax+170h]                                           ; +0x24, 0x10004e584\nmovss   [rbp+var_20], xmm0                                             ; +0x2a, 0x10004e58a\nmov     rdi, [rbx+520h]                                                ; +0x2f, 0x10004e58f\nmov     rax, [rdi]                                                     ; +0x36, 0x10004e596\ncall    qword ptr [rax+180h]                                           ; +0x39, 0x10004e599\nmovss   xmm1, [rbp+var_20]                                             ; +0x3f, 0x10004e59f\nucomiss xmm1, xmm0                                                     ; +0x44, 0x10004e5a4\nmov     r14, [rbx+520h]                                                ; +0x47, 0x10004e5a7\nmov     rax, [r14]                                                     ; +0x4e, 0x10004e5ae\nmov     rdi, r14                                                       ; +0x51, 0x10004e5b1\njnz     short loc_10004E5BC                                            ; +0x54, 0x10004e5b4\njnp     loc_10004E642                                                  ; +0x56, 0x10004e5b6\ncall    qword ptr [rax+170h]                                           ; +0x5c, 0x10004e5bc\naddss   xmm0, [rbp+var_1C]                                             ; +0x62, 0x10004e5c2\nmov     rax, [r14]                                                     ; +0x67, 0x10004e5c7\nmov     rdi, r14                                                       ; +0x6a, 0x10004e5ca\ncall    qword ptr [rax+168h]                                           ; +0x6d, 0x10004e5cd\nmov     rbx, [rbx+520h]                                                ; +0x73, 0x10004e5d3\nmov     rax, [rbx]                                                     ; +0x7a, 0x10004e5da\nmov     rdi, rbx                                                       ; +0x7d, 0x10004e5dd\ncall    qword ptr [rax+180h]                                           ; +0x80, 0x10004e5e0\naddss   xmm0, [rbp+var_1C]                                             ; +0x86, 0x10004e5e6\nmov     rax, [rbx]                                                     ; +0x8b, 0x10004e5eb\nmov     rax, [rax+178h]                                                ; +0x8e, 0x10004e5ee\nmov     rdi, rbx                                                       ; +0x95, 0x10004e5f5\njmp     short loc_10004E65A                                            ; +0x98, 0x10004e5f8\nmov     rdi, [rbx+328h]                                                ; +0x9a, 0x10004e5fa\ncall    sub_100720070                                                  ; +0xa1, 0x10004e601\ntest    eax, eax                                                       ; +0xa6, 0x10004e606\njz      short loc_10004E637                                            ; +0xa8, 0x10004e608\nmov     r14, [rbx+328h]                                                ; +0xaa, 0x10004e60a\nlea     rsi, [rbx+2A8h]                                                ; +0xb1, 0x10004e611\nlea     r15, [rbp+var_28]                                              ; +0xb8, 0x10004e618\nmov     rdi, r15                                                       ; +0xbc, 0x10004e61c\ncall    sub_10028CC60                                                  ; +0xbf, 0x10004e61f\nmov     rdi, rbx                                                       ; +0xc4, 0x10004e624\nmov     rsi, r14                                                       ; +0xc7, 0x10004e627\nmovss   xmm0, [rbp+var_1C]                                             ; +0xca, 0x10004e62a\nmov     rdx, r15                                                       ; +0xcf, 0x10004e62f\ncall    EditorUI__rotateObjects                                        ; +0xd2, 0x10004e632\nadd     rsp, 18h                                                       ; +0xd7, 0x10004e637\npop     rbx                                                            ; +0xdb, 0x10004e63b\npop     r14                                                            ; +0xdc, 0x10004e63c\npop     r15                                                            ; +0xde, 0x10004e63e\npop     rbp                                                            ; +0xe0, 0x10004e640\nretn                                                                   ; +0xe1, 0x10004e641\ncall    qword ptr [rax+160h]                                           ; +0xe2, 0x10004e642\naddss   xmm0, [rbp+var_1C]                                             ; +0xe8, 0x10004e648\nmov     rax, [r14]                                                     ; +0xed, 0x10004e64d\nmov     rax, [rax+158h]                                                ; +0xf0, 0x10004e650\nmov     rdi, r14                                                       ; +0xf7, 0x10004e657\nadd     rsp, 18h                                                       ; +0xfa, 0x10004e65a\npop     rbx                                                            ; +0xfe, 0x10004e65e\npop     r14                                                            ; +0xff, 0x10004e65f\npop     r15                                                            ; +0x101, 0x10004e661\npop     rbp                                                            ; +0x103, 0x10004e663\njmp     rax                                                            ; +0x104, 0x10004e664", "xrefs": ["sub_10004E670 @ 0x10004e67c", "<???> @ 0x1008b0630"], "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"}