{"type": "func", "start": 4301318784, "end": 4301319153, "name": "EditorUI::activateRotationControl", "pseudocode": "// \n// EditorUI::activateRotationControl from 0x10060ea80 to 0x10060ebf1 (369 bytes)\n// \n// 6 xrefs:\n// > EditorUI::undoLastAction @ 0x10000816f\n// > EditorUI::redoLastAction @ 0x10000820f\n// > EditorUI::toggleSpecialEditButtons @ 0x10000c5ad\n// > EditorUI::moveObjectCall_1 @ 0x10060e5fb\n// > EditorUI::deactivateTransformControl @ 0x100611227\n// > EditorUI::createMoveMenu @ 0x100639b21\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:34:33 +0000\n// \n\n__int64 __fastcall EditorUI::activateRotationControl(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 result; // rax\n  __int64 v3; // r14\n  __int64 v4; // rax\n  __int64 v5; // r14\n  double v6; // xmm1_8\n  _QWORD v7[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v7[0] = v1;\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 896));\n  if ( (_DWORD)result || *(_QWORD *)(a1 + 1496) )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760));\n    if ( !(_BYTE)result || *(_BYTE *)(a1 + 776) == 1 )\n    {\n      if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n      {\n        (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 792) + 344LL))(*(_QWORD *)(a1 + 792), 0);\n        sub_100645530(*(_QWORD *)(a1 + 792));\n      }\n      EditorUI::updateEditButtonColor(a1, 47, 0xFFFFFF);\n      *(_BYTE *)(a1 + 776) = 0;\n      if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )\n      {\n        EditorUI::getGroupCenter(v7, 47, *(_QWORD *)(a1 + 896), 0);\n        sub_100278300((_QWORD *)(a1 + 768), v7);\n        (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 760) + 184LL))(*(_QWORD *)(a1 + 760), a1 + 768);\n      }\n      else\n      {\n        v3 = *(_QWORD *)(a1 + 760);\n        v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1496) + 192LL))(*(_QWORD *)(a1 + 1496));\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 184LL))(v3, v4);\n      }\n      v5 = *(_QWORD *)(a1 + 760);\n      HIDWORD(v6) = 0;\n      *(float *)&v6 = 1.0\n                    / (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));\n      (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v5 + 160LL))(v5, v6);\n      GJRotationControl::setAngle(*(_QWORD *)(a1 + 760), 0.0);\n      return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 760) + 344LL))(*(_QWORD *)(a1 + 760), 1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateRotationControl from 0x10060ea80 to 0x10060ebf1 (369 bytes)\n; \n; 6 xrefs:\n; > EditorUI::undoLastAction @ 0x10000816f\n; > EditorUI::redoLastAction @ 0x10000820f\n; > EditorUI::toggleSpecialEditButtons @ 0x10000c5ad\n; > EditorUI::moveObjectCall_1 @ 0x10060e5fb\n; > EditorUI::deactivateTransformControl @ 0x100611227\n; > EditorUI::createMoveMenu @ 0x100639b21\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:34:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x10060ea80\nmov     rbp, rsp                                                       ; +0x1, 0x10060ea81\npush    r15                                                            ; +0x4, 0x10060ea84\npush    r14                                                            ; +0x6, 0x10060ea86\npush    rbx                                                            ; +0x8, 0x10060ea88\npush    rax                                                            ; +0x9, 0x10060ea89\nmov     rbx, rdi                                                       ; +0xa, 0x10060ea8a\nmov     rdi, [rdi+380h]                                                ; +0xd, 0x10060ea8d\ncall    sub_1007FEF90                                                  ; +0x14, 0x10060ea94\ntest    eax, eax                                                       ; +0x19, 0x10060ea99\njnz     short loc_10060EAAB                                            ; +0x1b, 0x10060ea9b\ncmp     qword ptr [rbx+5D8h], 0                                        ; +0x1d, 0x10060ea9d\njz      loc_10060EBE6                                                  ; +0x25, 0x10060eaa5\nmov     rdi, [rbx+2F8h]                                                ; +0x2b, 0x10060eaab\nmov     rax, [rdi]                                                     ; +0x32, 0x10060eab2\ncall    qword ptr [rax+160h]                                           ; +0x35, 0x10060eab5\ntest    al, al                                                         ; +0x3b, 0x10060eabb\njz      short loc_10060EACC                                            ; +0x3d, 0x10060eabd\ncmp     byte ptr [rbx+308h], 1                                         ; +0x3f, 0x10060eabf\njnz     loc_10060EBE6                                                  ; +0x46, 0x10060eac6\nmov     rdi, [rbx+318h]                                                ; +0x4c, 0x10060eacc\nmov     rax, [rdi]                                                     ; +0x53, 0x10060ead3\ncall    qword ptr [rax+160h]                                           ; +0x56, 0x10060ead6\ntest    al, al                                                         ; +0x5c, 0x10060eadc\njz      short loc_10060EAFE                                            ; +0x5e, 0x10060eade\nmov     rdi, [rbx+318h]                                                ; +0x60, 0x10060eae0\nmov     rax, [rdi]                                                     ; +0x67, 0x10060eae7\nxor     esi, esi                                                       ; +0x6a, 0x10060eaea\ncall    qword ptr [rax+158h]                                           ; +0x6c, 0x10060eaec\nmov     rdi, [rbx+318h]                                                ; +0x72, 0x10060eaf2\ncall    sub_100645530                                                  ; +0x79, 0x10060eaf9\nmov     rdi, rbx                                                       ; +0x7e, 0x10060eafe\nmov     esi, 2Fh ; '/'                                                 ; +0x81, 0x10060eb01\nmov     edx, 0FFFFFFh                                                  ; +0x86, 0x10060eb06\ncall    EditorUI__updateEditButtonColor                                ; +0x8b, 0x10060eb0b\nmov     byte ptr [rbx+308h], 0                                         ; +0x90, 0x10060eb10\nmov     rdi, [rbx+380h]                                                ; +0x97, 0x10060eb17\ncall    sub_1007FEF90                                                  ; +0x9e, 0x10060eb1e\ntest    eax, eax                                                       ; +0xa3, 0x10060eb23\njz      short loc_10060EB63                                            ; +0xa5, 0x10060eb25\nmov     rdx, [rbx+380h]                                                ; +0xa7, 0x10060eb27\nlea     r14, [rbp+var_20]                                              ; +0xae, 0x10060eb2e\nmov     rdi, r14                                                       ; +0xb2, 0x10060eb32\nxor     ecx, ecx                                                       ; +0xb5, 0x10060eb35\ncall    EditorUI__getGroupCenter                                       ; +0xb7, 0x10060eb37\nlea     r15, [rbx+300h]                                                ; +0xbc, 0x10060eb3c\nmov     rdi, r15                                                       ; +0xc3, 0x10060eb43\nmov     rsi, r14                                                       ; +0xc6, 0x10060eb46\ncall    sub_100278300                                                  ; +0xc9, 0x10060eb49\nmov     rdi, [rbx+2F8h]                                                ; +0xce, 0x10060eb4e\nmov     rax, [rdi]                                                     ; +0xd5, 0x10060eb55\nmov     rsi, r15                                                       ; +0xd8, 0x10060eb58\ncall    qword ptr [rax+0B8h]                                           ; +0xdb, 0x10060eb5b\njmp     short loc_10060EB89                                            ; +0xe1, 0x10060eb61\nmov     r14, [rbx+2F8h]                                                ; +0xe3, 0x10060eb63\nmov     rdi, [rbx+5D8h]                                                ; +0xea, 0x10060eb6a\nmov     rax, [rdi]                                                     ; +0xf1, 0x10060eb71\ncall    qword ptr [rax+0C0h]                                           ; +0xf4, 0x10060eb74\nmov     rcx, [r14]                                                     ; +0xfa, 0x10060eb7a\nmov     rdi, r14                                                       ; +0xfd, 0x10060eb7d\nmov     rsi, rax                                                       ; +0x100, 0x10060eb80\ncall    qword ptr [rcx+0B8h]                                           ; +0x103, 0x10060eb83\nmov     r14, [rbx+2F8h]                                                ; +0x109, 0x10060eb89\nmov     rax, [rbx+5A0h]                                                ; +0x110, 0x10060eb90\nmov     rdi, [rax+0F50h]                                               ; +0x117, 0x10060eb97\nmov     rax, [rdi]                                                     ; +0x11e, 0x10060eb9e\ncall    qword ptr [rax+0A8h]                                           ; +0x121, 0x10060eba1\nmovss   xmm1, cs:alpha                                                 ; +0x127, 0x10060eba7\ndivss   xmm1, xmm0                                                     ; +0x12f, 0x10060ebaf\nmov     rax, [r14]                                                     ; +0x133, 0x10060ebb3\nmov     rdi, r14                                                       ; +0x136, 0x10060ebb6\nmovaps  xmm0, xmm1                                                     ; +0x139, 0x10060ebb9\ncall    qword ptr [rax+0A0h]                                           ; +0x13c, 0x10060ebbc\nmov     rdi, [rbx+2F8h]                                                ; +0x142, 0x10060ebc2\nxorps   xmm0, xmm0                                                     ; +0x149, 0x10060ebc9\ncall    GJRotationControl__setAngle                                    ; +0x14c, 0x10060ebcc\nmov     rdi, [rbx+2F8h]                                                ; +0x151, 0x10060ebd1\nmov     rax, [rdi]                                                     ; +0x158, 0x10060ebd8\nmov     esi, 1                                                         ; +0x15b, 0x10060ebdb\ncall    qword ptr [rax+158h]                                           ; +0x160, 0x10060ebe0\nadd     rsp, 8                                                         ; +0x166, 0x10060ebe6\npop     rbx                                                            ; +0x16a, 0x10060ebea\npop     r14                                                            ; +0x16b, 0x10060ebeb\npop     r15                                                            ; +0x16d, 0x10060ebed\npop     rbp                                                            ; +0x16f, 0x10060ebef\nretn                                                                   ; +0x170, 0x10060ebf0", "xrefs": ["EditorUI::undoLastAction @ 0x10000816f", "EditorUI::redoLastAction @ 0x10000820f", "EditorUI::toggleSpecialEditButtons @ 0x10000c5ad", "EditorUI::moveObjectCall_1 @ 0x10060e5fb", "EditorUI::deactivateTransformControl @ 0x100611227", "EditorUI::createMoveMenu @ 0x100639b21"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}