//
// sub_1001EEAA4 from 0x1001eeaa4 to 0x1001eeb20 (124 bytes)
//
// 1 xrefs:
// > AccountLayer::customSetup @ 0x1001ee5f8
//
// 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:00:37 +0000
//
__int64 __fastcall sub_1001EEAA4(__int64 a1)
{
__int64 v1; // x0
char *v2; // x19
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v5; // [xsp+10h] [xbp-20h]
v1 = GJAccountManager::sharedState(a1);
if ( *(char *)(v1 + 351) < 0 )
{
sub_1000097D0(__p, *(void **)(v1 + 328), *(_QWORD *)(v1 + 336));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v1 + 328);
v5 = *(_QWORD *)(v1 + 344);
}
v2 = sub_10008C698((__int64)__p);
if ( SHIBYTE(v5) < 0 )
operator delete(__p[0]);
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v2 + 1312LL))(v2);
}