//
// sub_1001F0210 from 0x1001f0210 to 0x1001f0320 (272 bytes)
//
// 1 xrefs:
// > AccountHelpLayer::customSetup @ 0x1001eff74
//
// 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_1001F0210(__int64 a1)
{
__int64 v2; // x0
void **v3; // x8
__int64 v4; // x0
char *CString; // x20
__int64 *v6; // x19
void *v8[2]; // [xsp+8h] [xbp-48h] BYREF
char v9; // [xsp+1Fh] [xbp-31h]
void *__p[2]; // [xsp+20h] [xbp-30h] BYREF
__int64 v11; // [xsp+30h] [xbp-20h]
v2 = GJAccountManager::sharedState(a1);
if ( *(char *)(v2 + 351) < 0 )
{
sub_1000097D0(__p, *(void **)(v2 + 328), *(_QWORD *)(v2 + 336));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v2 + 328);
v11 = *(_QWORD *)(v2 + 344);
}
v3 = __p;
if ( v11 < 0 )
v3 = (void **)__p[0];
v4 = sub_1003065B0(
"Are you sure you want to unlink from the account %s?\n"
"Unlinking will delete all data from this device.",
(const char *)v3);
CString = (char *)cocos2d::CCString::getCString(v4);
if ( SHIBYTE(v11) < 0 )
operator delete(__p[0]);
sub_100009900(v8, CString);
v6 = (__int64 *)FLAlertLayer::create_1(a1 + 616, "Unlink Account", v8, "Cancel", "Unlink", 300.0);
if ( v9 < 0 )
operator delete(v8[0]);
ButtonSprite::updateBGImage(v6[77], (__int64)"GJ_button_05.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v6 + 72))(v6, 3);
return (*(__int64 (__fastcall **)(__int64 *))(*v6 + 1312))(v6);
}