//
// GJRotateCommandLayer::sliderDegreesChanged from 0x1000035e0 to 0x100003688 (168 bytes)
//
// 1 xrefs:
// > GJRotateCommandLayer::init @ 0x100002434
//
// 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 GJRotateCommandLayer::sliderDegreesChanged(GJRotateCommandLayer *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
EffectGameObject *m_gameObject; // rax
unsigned int v4; // r14d
v2.f32[0] = SliderThumb::getValue((SliderThumb *)a2) * 720.0;
a1->m_degrees = _mm_round_ss(v2, v2, 9).f32[0] + -360.0;
GJRotateCommandLayer::updateDegreesLabel(a1);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_rotationDegrees = a1->m_degrees;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v4 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObjects, v4++) + 1544) = a1->m_degrees;
while ( v4 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}