//
// AccountLayer::syncAccountFailed from 0x98d3e0 to 0x98d554 (372 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountLayer::syncAccountFailed @ 0x98d558
// > ??> @ 0xa8088
// > ??> @ 0x1472ee0
//
// 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 12:57:57 +0000
//
__int64 __fastcall AccountLayer::syncAccountFailed(__int64 *a1, int a2, unsigned int a3)
{
__int64 *v4; // x22
__int64 *v6; // x22
cocos2d::CCString *v7; // x0
const char *CString; // x0
size_t v9; // x0
char *v12; // [xsp+38h] [xbp+38h]
__int64 v13; // [xsp+48h] [xbp+48h]
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
__int64 v15; // [xsp+58h] [xbp+58h]
void *v16; // [xsp+60h] [xbp+60h]
AccountLayer::hideLoadingUI((AccountLayer *)a1);
if ( a2 == -3 )
{
v6 = (__int64 *)a1[81];
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Sync failed. Error code: %i",
(const char *)a3);
CString = (const char *)cocos2d::CCString::getCString(v7);
v14 = 0;
v12 = (char *)CString;
v15 = 0;
v16 = nullptr;
v9 = strlen(CString);
std::string::__init(&v14, v12, v9);
TextArea::setString(v6, (char *)&v14);
}
else
{
v4 = (__int64 *)a1[81];
v14 = 0;
v15 = 0;
v16 = nullptr;
if ( a2 == -2 )
std::string::__init(&v14, "Login failed. Please login to verify your account.", 0x32u);
else
std::string::__init(&v14, "Sync failed. Please try again later.", 0x24u);
TextArea::setString(v4, (char *)&v14);
}
if ( (v14 & 1) != 0 )
operator delete(v16);
LOBYTE(v13) = -1;
*(_WORD *)((char *)&v13 + 1) = 75;
TextArea::colorAllCharactersTo(a1[81], v13);
return _stack_chk_guard;
}