{"type": "func", "start": 5370423520, "end": 5370423713, "name": "GJRotationControl::setAngle", "pseudocode": "// \n// GJRotationControl::setAngle from 0x1401a28e0 to 0x1401a29a1 (193 bytes)\n// \n// 4 xrefs:\n// > GJRotationControl::init @ 0x1401a2592\n// > GJRotationControl::onApplyAngle @ 0x1401a27d2\n// > EditorUI::activateRotationControl @ 0x1402026f5\n// > <???> @ 0x140919928\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 11:27:48 +0000\n// \n\nvoid __fastcall GJRotationControl::setAngle(__int64 a1, float a2)\n{\n  float v3; // xmm8_4\n  float v4; // xmm7_4\n  float v5; // xmm0_4\n  __int64 v6; // rax\n  char v7; // [rsp+50h] [rbp+8h] BYREF\n\n  *(float *)(a1 + 432) = a2;\n  *(float *)(a1 + 436) = a2;\n  v3 = (float)-a2 * 0.017453292;\n  v4 = sinf(v3) * 60.0;\n  v5 = cosf(v3) * 60.0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, v5, v4);\n  cocos2d::CCPoint::operator=(a1 + 416, v6);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 424) + 184LL))(*(_QWORD *)(a1 + 424), a1 + 416);\n  GJRotationControl::updateAngleInput(a1, *(float *)(a1 + 436));\n}", "assembly": "; \n; GJRotationControl::setAngle from 0x1401a28e0 to 0x1401a29a1 (193 bytes)\n; \n; 4 xrefs:\n; > GJRotationControl::init @ 0x1401a2592\n; > GJRotationControl::onApplyAngle @ 0x1401a27d2\n; > EditorUI::activateRotationControl @ 0x1402026f5\n; > <???> @ 0x140919928\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 11:27:48 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401a28e0\npush    rdi                                                            ; +0x5, 0x1401a28e5\nsub     rsp, 40h                                                       ; +0x6, 0x1401a28e6\nmovaps  [rsp+48h+var_18], xmm7                                         ; +0xa, 0x1401a28ea\nmov     rdi, rcx                                                       ; +0xf, 0x1401a28ef\nmovaps  [rsp+48h+var_28], xmm8                                         ; +0x12, 0x1401a28f2\nmovaps  xmm8, xmm1                                                     ; +0x18, 0x1401a28f8\nmovss   dword ptr [rcx+1B0h], xmm8                                     ; +0x1c, 0x1401a28fc\nmovss   dword ptr [rcx+1B4h], xmm8                                     ; +0x25, 0x1401a2905\nxorps   xmm8, cs:xmmword_140836CC0                                     ; +0x2e, 0x1401a290e\nmulss   xmm8, cs:dword_140834DAC                                       ; +0x36, 0x1401a2916\nmovaps  xmm0, xmm8; X                                                  ; +0x3f, 0x1401a291f\ncall    sinf                                                           ; +0x43, 0x1401a2923\nmovaps  xmm7, xmm0                                                     ; +0x48, 0x1401a2928\nmovaps  xmm0, xmm8; X                                                  ; +0x4b, 0x1401a292b\nmulss   xmm7, cs:dword_1408356E4                                       ; +0x4f, 0x1401a292f\ncall    cosf                                                           ; +0x57, 0x1401a2937\nmulss   xmm0, cs:dword_1408356E4                                       ; +0x5c, 0x1401a293c\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x64, 0x1401a2944\nmovaps  xmm2, xmm7                                                     ; +0x69, 0x1401a2949\nmovaps  xmm1, xmm0                                                     ; +0x6c, 0x1401a294c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x6f, 0x1401a294f\nmov     rdx, rax                                                       ; +0x75, 0x1401a2955\nlea     rcx, [rdi+1A0h]                                                ; +0x78, 0x1401a2958\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x7f, 0x1401a295f\nmov     rcx, [rdi+1A8h]                                                ; +0x85, 0x1401a2965\nlea     rdx, [rdi+1A0h]                                                ; +0x8c, 0x1401a296c\nmov     rax, [rcx]                                                     ; +0x93, 0x1401a2973\ncall    qword ptr [rax+0B8h]                                           ; +0x96, 0x1401a2976\nmovss   xmm1, dword ptr [rdi+1B4h]                                     ; +0x9c, 0x1401a297c\nmov     rcx, rdi                                                       ; +0xa4, 0x1401a2984\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa7, 0x1401a2987\nmovaps  xmm7, [rsp+48h+var_18]                                         ; +0xac, 0x1401a298c\nmovaps  xmm8, [rsp+48h+var_28]                                         ; +0xb1, 0x1401a2991\nadd     rsp, 40h                                                       ; +0xb7, 0x1401a2997\npop     rdi                                                            ; +0xbb, 0x1401a299b\njmp     GJRotationControl__updateAngleInput                            ; +0xbc, 0x1401a299c", "xrefs": ["GJRotationControl::init @ 0x1401a2592", "GJRotationControl::onApplyAngle @ 0x1401a27d2", "EditorUI::activateRotationControl @ 0x1402026f5", "<???> @ 0x140919928"], "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"}