//
// SetupCameraOffsetTrigger::toggleEasingRateVisibility from 0x100190064 to 0x100190104 (160 bytes)
//
// 2 xrefs:
// > SetupCameraOffsetTrigger::init @ 0x10018f588
// > SetupCameraOffsetTrigger::onEasing @ 0x100190164
//
// 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 SetupCameraOffsetTrigger::toggleEasingRateVisibility(SetupCameraOffsetTrigger *a1)
{
_BOOL8 isRateEasing; // x20
cocos2d::CCArray *m_gameObjects; // x0
__int64 v4; // x21
__int64 v5; // x0
if ( GameToolbox::isRateEasing(a1->m_cameraEasingType) )
goto LABEL_2;
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects || !(unsigned int)sub_10024A36C(m_gameObjects) )
{
isRateEasing = 0;
goto LABEL_11;
}
if ( !(unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
LABEL_2:
isRateEasing = 1;
}
else
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_gameObjects, v4);
isRateEasing = GameToolbox::isRateEasing(*(_DWORD *)(v5 + 1496));
if ( !isRateEasing )
break;
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
LABEL_11:
((void (__fastcall *)(CCMenuItemSpriteExtra *, _BOOL8))a1->m_cameraEasingRateButton->setVisible)(
a1->m_cameraEasingRateButton,
isRateEasing);
}