//
// SetupCameraRotatePopup::toggleEasingRateVisibility from 0x1004bdca0 to 0x1004bdd4b (171 bytes)
//
// 2 xrefs:
// > SetupCameraRotatePopup::init @ 0x1004bd2fd
// > SetupCameraRotatePopup::onEasing @ 0x1004bddfe
//
// 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 SetupCameraRotatePopup::toggleEasingRateVisibility(SetupCameraRotatePopup *a1)
{
bool isRateEasing; // r14
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v4; // r15d
__int64 v5; // rax
isRateEasing = 1;
if ( !GameToolbox::isRateEasing(a1->m_cameraEasingType) )
{
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_cameraEasingRateButton->setVisible)(
a1->m_cameraEasingRateButton,
isRateEasing);
}