//
// GJAccountManager::onUpdateAccountSettingsCompleted from 0x10039fe2c to 0x10039feb8 (140 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x10039ef80
//
// 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
//
GJAccountSettingsDelegate *__fastcall GJAccountManager::onUpdateAccountSettingsCompleted(
GJAccountManager *a1,
_QWORD *a2)
{
_BOOL4 v4; // w20
GJAccountSettingsDelegate *result; // x0
__int64 (**p_updateSettingsFailed)(void); // x8
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
GJAccountManager::removeDLFromActive(a1, "acc_sett");
sub_100009900(__p, "-1");
v4 = sub_1000045BC(a2, __p);
if ( v8 < 0 )
operator delete(__p[0]);
result = a1->m_accountSettingsDelegate;
if ( v4 )
{
if ( !result )
return result;
p_updateSettingsFailed = (__int64 (**)(void))&result->updateSettingsFailed;
}
else
{
if ( !result )
return result;
p_updateSettingsFailed = (__int64 (**)(void))result->__vftable;
}
return (GJAccountSettingsDelegate *)(*p_updateSettingsFailed)();
}