//
// sub_10024A4D4 from 0x10024a4d4 to 0x10024a560 (140 bytes)
//
// 2 xrefs:
// > SetupKeyframePopup::init @ 0x10024a1b0
// > sub_10024A470 @ 0x10024a4d0
//
// 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 11:01:28 +0000
//
__int64 __fastcall sub_10024A4D4(_QWORD *a1)
{
__int64 result; // x0
float v3; // s0
__int64 v4; // x8
unsigned int *v5; // x9
__int64 v6; // x8
int v7; // w20
__int64 *v8; // x21
unsigned __int64 v9; // x22
__int64 v10; // x19
_BOOL8 v11; // x1
result = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 379);
v4 = a1[127];
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = (int)v3;
v8 = *((__int64 **)v5 + 2);
v9 = (unsigned __int64)&v8[v6 - 1];
do
{
v10 = *v8;
if ( !*v8 )
break;
v11 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v10 + 64LL))(*v8) == v7;
result = CCMenuItemToggler::toggle(v10, v11);
++v8;
}
while ( (unsigned __int64)v8 <= v9 );
}
}
return result;
}