//
// SetupKeyframePopup::updateTimeModeButtons from 0x140426e70 to 0x140426efc (140 bytes)
//
// 5 xrefs:
// > SetupKeyframePopup::init @ 0x1404265a1
// > SetupKeyframePopup::onTimeMode @ 0x140426e67
// > ??> @ 0x1406a0ad4
// > ??> @ 0x1406a0ae4
// > ??> @ 0x1406d9764
//
// 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; // xmm0_4
cocos2d::CCArray *m_timeModeToggles; // rdi
cocos2d::ccArray *data; // rdi
__int64 num; // rax
CCMenuItemToggler **arr; // rdi
CCMenuItemToggler **i; // rsi
CCMenuItemToggler *v8; // rbx
int v9; // eax
v2 = a1->getValue(a1, 379);
m_timeModeToggles = a1->m_timeModeToggles;
if ( m_timeModeToggles )
{
data = m_timeModeToggles->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (CCMenuItemToggler **)data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
v8 = *arr;
if ( !*arr )
break;
v9 = v8->getTag(*arr);
CCMenuItemToggler::toggle(v8, v9 == (int)v2);
}
}
}
}