//
// GJRotateCommandLayer::toggleEasingRateVisibility from 0x100003470 to 0x10000351b (171 bytes)
//
// 2 xrefs:
// > GJRotateCommandLayer::init @ 0x100002091
// > GJRotateCommandLayer::onEasing @ 0x1000035ce
//
// 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::toggleEasingRateVisibility(GJRotateCommandLayer *a1)
{
bool isRateEasing; // r14
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v4; // r15d
__int64 v5; // rax
isRateEasing = 1;
if ( !GameToolbox::isRateEasing(a1->m_rotateEasingType) )
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v4 = 0;
do
{
v5 = sub_1007200C0(a1->m_gameObjects, v4);
isRateEasing = GameToolbox::isRateEasing(*(_DWORD *)(v5 + 1496));
if ( !isRateEasing )
break;
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
else
{
isRateEasing = 0;
}
}
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_rotateEasingRateButton->setVisible)(
a1->m_rotateEasingRateButton,
isRateEasing);
}