//
// sub_10000C244 from 0x10000c244 to 0x10000c2bc (120 bytes)
//
// 2 xrefs:
// > sub_10000C170 @ 0x10000c200
// > SetupTeleportPopup::updateDefaultTriggerValues @ 0x10000c240
//
// 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 10:57:14 +0000
//
__int64 __fastcall sub_10000C244(__int64 result, int a2)
{
__int64 v2; // x8
unsigned int *v3; // x9
__int64 v4; // x8
_QWORD *v6; // x21
unsigned __int64 v7; // x22
__int64 v8; // x20
_BOOL8 v9; // x1
v2 = *(_QWORD *)(result + 1016);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v6 = *((_QWORD **)v3 + 2);
v7 = (unsigned __int64)&v6[v4 - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
v9 = (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 64LL))(*v6) == a2;
result = CCMenuItemToggler::toggle(v8, v9);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
return result;
}