//
// EditorUI::updatePanDecay from 0x10060e270 to 0x10060e351 (225 bytes)
//
// 2 xrefs:
// > EditorUI::scrollWheel @ 0x10060e231
// > EditorUI::updatePanDecay @ 0x10060e330
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:34:33 +0000
//
__int64 __fastcall EditorUI::updatePanDecay(__int64 a1, __m128 a2)
{
__m128 v2; // xmm2
__m128 v3; // xmm1
__m128 v4; // xmm2
float v5; // xmm0_4
float v6; // xmm2_4
float v7; // xmm1_4
__int64 result; // rax
float v9[6]; // [rsp+8h] [rbp-18h] BYREF
v2 = (__m128)*(unsigned __int64 *)(a1 + 1636);
v3 = _mm_mul_ps(_mm_mul_ps(_mm_moveldup_ps(a2), v2), (__m128)xmmword_100A0A740);
v4 = _mm_sub_ps(v2, v3);
_mm_storel_ps((double *)(a1 + 1636), v4);
if ( fabs(v4.f32[0]) >= 0.1 )
{
v5 = v3.f32[0];
}
else
{
v5 = v3.f32[0] + v4.f32[0];
*(_DWORD *)(a1 + 1636) = 0;
}
v6 = _mm_movehdup_ps(v4).f32[0];
v7 = _mm_movehdup_ps(v3).f32[0];
if ( fabs(v6) < 0.1 )
{
v7 = v7 + v6;
*(_DWORD *)(a1 + 1640) = 0;
}
sub_100278250(v9, v5, v7);
EditorUI::moveGamelayer(a1, (__int64)v9);
result = EditorUI::updateSlider(a1);
if ( *(float *)(a1 + 1636) == 0.0 && *(float *)(a1 + 1640) == 0.0 )
{
result = cocos2d::CCNode::unschedule(a1, (__int64)EditorUI::updatePanDecay, 0);
*(_BYTE *)(a1 + 1644) = 0;
}
return result;
}