//
// GJRotateCommandLayer::toggleEasingRateVisibility from 0x925c48 to 0x925ce0 (152 bytes)
//
// 3 xrefs:
// > GJRotateCommandLayer::init @ 0x926f08
// > GJRotateCommandLayer::onEasing @ 0x928524
// > ??> @ 0xbb6c8
//
// 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 GJRotateCommandLayer::toggleEasingRateVisibility(GJRotateCommandLayer *a1)
{
bool isRateEasing; // w0
int v3; // w21
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v5; // w19
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
isRateEasing = GameToolbox::isRateEasing(a1->m_rotateEasingType);
v3 = isRateEasing;
if ( !isRateEasing )
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);
if ( !GameToolbox::isRateEasing(*(_DWORD *)(v6 + 1480)) )
goto LABEL_9;
}
v3 = 1;
}
}
}
LABEL_9:
a1->m_rotateEasingRateButton->setVisible(a1->m_rotateEasingRateButton, v3);
}