//
// SetupKeyframePopup::onTimeMode from 0x1001e3de0 to 0x1001e3ec4 (228 bytes)
//
// 3 xrefs:
// > SetupKeyframePopup::init @ 0x1001e36e0
// > SetupKeyframePopup::init @ 0x1001e382a
// > SetupKeyframePopup::init @ 0x1001e3977
//
// 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 12:26:29 +0000
//
unsigned int *__fastcall SetupKeyframePopup::onTimeMode(_QWORD *a1, __int64 a2)
{
int v2; // r14d
__int64 v3; // r12
_DWORD *v4; // r15
unsigned int *result; // rax
int v6; // r14d
__int64 *v7; // r15
unsigned __int64 v8; // r12
__int64 v9; // rbx
int v10; // eax
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = a1[104];
v4 = operator new(0x40u);
cocos2d::CCObject::CCObject(v4);
*(_QWORD *)v4 = off_100ABB920;
v4[14] = v2;
cocos2d::CCObject::autorelease(v4);
cocos2d::CCDictionary::setObject_1(v3, v4, 379);
SetupTriggerPopup::valueChanged(a1, 379, (float)v2);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 379);
result = (unsigned int *)a1[127];
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v6 = (int)(float)v2;
v7 = *((__int64 **)result + 2);
v8 = (unsigned __int64)&v7[*result - 1];
do
{
v9 = *v7;
if ( !*v7 )
break;
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 64LL))(*v7);
result = (unsigned int *)CCMenuItemToggler::toggle(v9, v10 == v6);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
return result;
}