//
// sub_10028C130 from 0x10028c130 to 0x10028c1b7 (135 bytes)
//
// 3 xrefs:
// > GJAccountSettingsLayer::init @ 0x10028b42a
// > GJAccountSettingsLayer::init @ 0x10028b4e3
// > GJAccountSettingsLayer::init @ 0x10028b59a
//
// 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:27:48 +0000
//
unsigned int *__fastcall sub_10028C130(__int64 a1, __int64 a2)
{
unsigned int *result; // rax
__int64 *v3; // r15
unsigned __int64 v4; // r12
__int64 v5; // r14
int v6; // eax
if ( a2 )
*(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
result = *(unsigned int **)(a1 + 736);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v3 = *((__int64 **)result + 2);
v4 = (unsigned __int64)&v3[*result - 1];
do
{
v5 = *v3;
if ( !*v3 )
break;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(*v3);
result = (unsigned int *)CCMenuItemToggler::toggle(v5, v6 != *(_DWORD *)(a1 + 672));
++v3;
}
while ( (unsigned __int64)v3 <= v4 );
}
}
return result;
}