//
// SetupKeyframePopup::updateTimeModeButtons from 0x1405bc470 to 0x1405bc4fc (140 bytes)
//
// 5 xrefs:
// > SetupKeyframePopup::init @ 0x1405bba7f
// > SetupKeyframePopup::onTimeMode @ 0x1405bc464
// > ??> @ 0x1408e005c
// > ??> @ 0x1408e006c
// > ??> @ 0x14092df08
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:34:46 +0000
//
void __fastcall SetupKeyframePopup::updateTimeModeButtons(_QWORD *a1)
{
float v2; // xmm0_4
__int64 v3; // rdi
unsigned int *v4; // rdi
__int64 v5; // rax
__int64 *v6; // rdi
__int64 *i; // rsi
__int64 v8; // rbx
__int64 v9; // rdx
v2 = (*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1168LL))(a1, 379);
v3 = a1[125];
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((__int64 **)v4 + 2);
for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )
{
v8 = *v6;
if ( !*v6 )
break;
LOBYTE(v9) = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v8 + 56LL))(*v6) == (int)v2;
CCMenuItemToggler::toggle(v8, v9);
}
}
}
}