//
// SetupKeyframePopup::updateTimeModeButtons from 0x1001b57a4 to 0x1001b5830 (140 bytes)
//
// 2 xrefs:
// > SetupKeyframePopup::init @ 0x1001b5468
// > SetupKeyframePopup::onTimeMode @ 0x1001b57a0
//
// 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 SetupKeyframePopup::updateTimeModeButtons(SetupKeyframePopup *a1)
{
float v2; // s0
cocos2d::CCArray *m_timeModeToggles; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
int v6; // w20
CCMenuItemToggler **arr; // x21
unsigned __int64 v8; // x22
CCMenuItemToggler *v9; // x19
bool v10; // w1
((void (__fastcall *)(SetupKeyframePopup *, __int64))a1->getValue)(a1, 379);
m_timeModeToggles = a1->m_timeModeToggles;
if ( m_timeModeToggles )
{
data = m_timeModeToggles->data;
num = data->num;
if ( (_DWORD)num )
{
v6 = (int)v2;
arr = (CCMenuItemToggler **)data->arr;
v8 = (unsigned __int64)&arr[num - 1];
do
{
v9 = *arr;
if ( !*arr )
break;
v10 = ((unsigned int (__fastcall *)(CCMenuItemToggler *))v9->getTag)(*arr) == v6;
CCMenuItemToggler::toggle(v9, v10);
++arr;
}
while ( (unsigned __int64)arr <= v8 );
}
}
}