//
// GJAccountManager::unlinkFromAccount from 0x1000a25b0 to 0x1000a2661 (177 bytes)
//
// 3 xrefs:
// > AccountHelpLayer::doUnlink @ 0x10009d371
// > AccountHelpLayer::FLAlert_Clicked @ 0x10009d402
// > sub_10009D450 @ 0x10009d489
//
// 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:20:14 +0000
//
__int64 __fastcall GJAccountManager::unlinkFromAccount(__int64 a1)
{
std::string *v2; // rdi
__int64 v3; // rdx
__int64 v4; // rax
__int64 v5; // rdx
double v6; // xmm0_8
__int64 v7; // rax
__int64 v8; // rdi
__int64 v9; // rdx
double v10; // xmm0_8
__int64 v11; // rax
__int64 v12; // rax
double v13; // xmm0_8
__int64 v14; // rax
__int64 v15; // rdx
void (__fastcall ***v16)(_QWORD); // rdi
double v17; // xmm0_8
__int64 v18; // rax
std::string::assign((std::string *)(a1 + 368), "");
std::string::assign((std::string *)(a1 + 448), "");
v2 = (std::string *)(a1 + 328);
std::string::assign(v2, "");
*(_DWORD *)(a1 + 352) = 0;
GameManager::sharedState(v2, "", v3);
*(_BYTE *)(v4 + 1026) = 1;
*(_QWORD *)&v6 = GameManager::sharedState(v2, "", v5).u64[0];
v8 = v7;
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)v7 + 936LL))(v7, v6);
*(_QWORD *)&v10 = GameManager::sharedState(v8, "", v9).u64[0];
*(_BYTE *)(v11 + 1026) = 0;
v12 = LocalLevelManager::sharedState(v10);
v13 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v12 + 936LL))(v12);
v14 = GameLevelManager::sharedState(v13);
sub_10054AC80(v14);
v16 = *(void (__fastcall ****)(_QWORD))(a1 + 408);
if ( v16 )
(**v16)(v16);
*(_QWORD *)&v17 = GameManager::sharedState(v16, "", v15).u64[0];
return GameManager::accountStatusChanged(v18, v17);
}