//
// GJAccountManager::onUpdateAccountSettingsCompleted from 0x140203f00 to 0x14020405a (346 bytes)
//
// 2 xrefs:
// > GJAccountManager::handleIt @ 0x1402004a7
// > ??> @ 0x1406ccb7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=3
void __fastcall GJAccountManager::onUpdateAccountSettingsCompleted(__int64 a1, const void **a2, __int64 a3)
{
void *v6; // rcx
const void *v7; // rcx
unsigned __int64 v8; // rdi
size_t v9; // r8
void (__fastcall ***v10)(_QWORD); // rcx
__int64 v11; // rcx
void *Block[2]; // [rsp+30h] [rbp-48h] BYREF
__int64 v13; // [rsp+40h] [rbp-38h]
unsigned __int64 v14; // [rsp+48h] [rbp-30h]
*(_OWORD *)Block = 0;
v13 = 8;
v14 = 15;
strcpy((char *)Block, "acc_sett");
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 320), Block);
if ( v14 > 0xF )
{
v6 = Block[0];
if ( v14 + 1 >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v6);
}
*(_OWORD *)Block = 0;
v13 = 2;
v14 = 15;
strcpy((char *)Block, "-1");
v7 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v7 = *a2;
v8 = (unsigned __int64)a2[2];
v9 = v8;
if ( v8 > 2 )
v9 = 2;
if ( !memcmp(v7, Block, v9) && v8 == 2 )
{
v11 = *(_QWORD *)(a1 + 448);
if ( v11 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 8LL))(v11);
}
else
{
v10 = *(void (__fastcall ****)(_QWORD))(a1 + 448);
if ( v10 )
(**v10)(v10);
}
sub_14003A830((__int64)a2);
sub_14003A830(a3);
}