//
// SetupKeyframePopup::updateTimeModeButtons from 0xb692e4 to 0xb69384 (160 bytes)
//
// 3 xrefs:
// > SetupKeyframePopup::onTimeMode @ 0xb6940c
// > SetupKeyframePopup::init @ 0xb6ad00
// > ??> @ 0x4dfb0
//
// This function is hookable on this platform (idp: arm, 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 13:02:16 +0000
//
unsigned int *__fastcall SetupKeyframePopup::updateTimeModeButtons(SetupKeyframePopup *this)
{
float v2; // s0
unsigned int *result; // x0
CCMenuItemToggler **v4; // x20
CCMenuItemToggler **v5; // x21
CCMenuItemToggler *v6; // x19
int v7; // w22
unsigned __int8 v8; // w1
(*(void (__fastcall **)(SetupKeyframePopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 379);
result = *((unsigned int **)this + 127);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v4 = *((CCMenuItemToggler ***)result + 2);
v5 = &v4[*result - 1];
if ( v4 <= v5 )
{
v6 = *v4;
if ( *v4 )
{
v7 = (int)v2;
do
{
++v4;
v8 = v7 == (*(unsigned int (__fastcall **)(CCMenuItemToggler *))(*(_QWORD *)v6 + 64LL))(v6);
result = (unsigned int *)CCMenuItemToggler::toggle(v6, v8);
if ( v5 < v4 )
break;
v6 = *v4;
}
while ( *v4 );
}
}
}
}
return result;
}