// // GJRotationControl::updateSliderPosition from 0x100051a80 to 0x100051b78 (248 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJRotationControl::updateSliderPosition(GJRotationControl *a1, cocos2d::CCPoint a2) { __int64 v2; // rsi __m128 v3; // xmm0 __m128 v4; // xmm2 __m128 v5; // xmm0 float v6; // xmm0_4 float m_currentRotation; // xmm1_4 GJRotationControlDelegate *m_delegate; // rdi _BYTE v9[8]; // [rsp+8h] [rbp-38h] BYREF __m128 v10; // [rsp+10h] [rbp-30h] v3 = (__m128)*(unsigned int *)(v2 + 4); v3.f32[0] = atan2f(v3.f32[0] - a1->m_cursorDifference.y, *(float *)v2 - a1->m_cursorDifference.x); v10 = v3; *(__float2 *)v3.f32 = __sincosf_stret(v3.f32[0]); sub_10028CBE0(v9, (float)(_mm_movehdup_ps(v3).f32[0] * 60.0) + 0.0, (float)(60.0 * v3.f32[0]) + 0.0); *(double *)v3.i64 = sub_10028CC90(); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)( a1->m_controlSprite, &a1->m_controlPosition, *(double *)v3.i64); v4 = v10; v4.f32[0] = (float)(v10.f32[0] * -57.29578) * 1000.0; v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v4), (__m128)xmmword_1008150C0); v5.f32[0] = v5.f32[0] + v4.f32[0]; v6 = _mm_round_ss(v5, v5, 11).f32[0] / 1000.0; m_currentRotation = a1->m_currentRotation; if ( v6 != m_currentRotation ) { a1->m_currentRotation = v6; m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJRotationControlDelegate *, float))m_delegate->angleChanged)( m_delegate, v6 - m_currentRotation); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source