{"type": "func", "start": 4295301632, "end": 4295301757, "name": "GJRotationControl::setAngle", "pseudocode": "// \n// GJRotationControl::setAngle from 0x100051a00 to 0x100051a7d (125 bytes)\n// \n// 0 xrefs:\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 GJRotationControl::setAngle(GJRotationControl *a1, float a2)\n{\n  __int64 v2; // rax\n  __m128 v3; // xmm0\n  _QWORD v4[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v4[0] = v2;\n  a1->m_startingRotation = a2;\n  a1->m_currentRotation = a2;\n  *(__float2 *)v3.f32 = __sincosf_stret(a2 * -0.017453292);\n  sub_10028CBE0(v4, _mm_movehdup_ps(v3).f32[0] * 60.0, 60.0 * v3.f32[0]);\n  *(double *)v3.i64 = sub_10028CC90();\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)(\n    a1->m_controlSprite,\n    &a1->m_controlPosition,\n    *(double *)v3.i64);\n}", "assembly": "; \n; GJRotationControl::setAngle from 0x100051a00 to 0x100051a7d (125 bytes)\n; \n; 0 xrefs:\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, 0x100051a00\nmov     rbp, rsp                                                       ; +0x1, 0x100051a01\npush    r15                                                            ; +0x4, 0x100051a04\npush    r14                                                            ; +0x6, 0x100051a06\npush    rbx                                                            ; +0x8, 0x100051a08\npush    rax                                                            ; +0x9, 0x100051a09\nmov     rbx, rdi                                                       ; +0xa, 0x100051a0a\nmovss   dword ptr [rdi+1B0h], xmm0                                     ; +0xd, 0x100051a0d\nmovss   dword ptr [rdi+1B4h], xmm0                                     ; +0x15, 0x100051a15\nmulss   xmm0, cs:dword_100815428; float                                ; +0x1d, 0x100051a1d\ncall    ___sincosf_stret                                               ; +0x25, 0x100051a25\nmovshdup xmm2, xmm0                                                    ; +0x2a, 0x100051a2a\nmovss   xmm1, cs:dword_100815028                                       ; +0x2e, 0x100051a2e\nmulss   xmm2, xmm1                                                     ; +0x36, 0x100051a36\nmulss   xmm1, xmm0                                                     ; +0x3a, 0x100051a3a\nlea     r14, [rbp+var_20]                                              ; +0x3e, 0x100051a3e\nmov     rdi, r14                                                       ; +0x42, 0x100051a42\nmovaps  xmm0, xmm2                                                     ; +0x45, 0x100051a45\ncall    sub_10028CBE0                                                  ; +0x48, 0x100051a48\nlea     r15, [rbx+19Ch]                                                ; +0x4d, 0x100051a4d\nmov     rdi, r15                                                       ; +0x54, 0x100051a54\nmov     rsi, r14                                                       ; +0x57, 0x100051a57\ncall    sub_10028CC90                                                  ; +0x5a, 0x100051a5a\nmov     rdi, [rbx+1A8h]                                                ; +0x5f, 0x100051a5f\nmov     rax, [rdi]                                                     ; +0x66, 0x100051a66\nmov     rsi, r15                                                       ; +0x69, 0x100051a69\ncall    qword ptr [rax+0B8h]                                           ; +0x6c, 0x100051a6c\nadd     rsp, 8                                                         ; +0x72, 0x100051a72\npop     rbx                                                            ; +0x76, 0x100051a76\npop     r14                                                            ; +0x77, 0x100051a77\npop     r15                                                            ; +0x79, 0x100051a79\npop     rbp                                                            ; +0x7b, 0x100051a7b\nretn                                                                   ; +0x7c, 0x100051a7c", "xrefs": [], "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"}