//
// SetupKeyframePopup::updateTimeModeButtons from 0xa3b1b4 to 0xa3b254 (160 bytes)
//
// 3 xrefs:
// > SetupKeyframePopup::onTimeMode @ 0xa3b2dc
// > SetupKeyframePopup::init @ 0xa3c110
// > ??> @ 0x35070
//
// 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 SetupKeyframePopup::updateTimeModeButtons(SetupKeyframePopup *a1)
{
float v2; // s0
cocos2d::CCArray *m_timeModeToggles; // x0
cocos2d::ccArray *data; // x0
CCMenuItemToggler **arr; // x20
CCMenuItemToggler **v6; // x21
CCMenuItemToggler *v7; // x19
int v8; // w22
bool v9; // w1
a1->getValue(a1, 379);
m_timeModeToggles = a1->m_timeModeToggles;
if ( m_timeModeToggles )
{
data = m_timeModeToggles->data;
if ( data->num )
{
arr = (CCMenuItemToggler **)data->arr;
v6 = &arr[data->num - 1];
if ( arr <= v6 )
{
v7 = *arr;
if ( *arr )
{
v8 = (int)v2;
do
{
++arr;
v9 = v8 == v7->getTag(v7);
CCMenuItemToggler::toggle(v7, v9);
if ( v6 < arr )
break;
v7 = *arr;
}
while ( *arr );
}
}
}
}
}