//
// AccountLayer::syncAccountFailed from 0x58448c to 0x58455c (208 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountLayer::syncAccountFailed @ 0x584570
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:57 +0000
//
int __fastcall AccountLayer::syncAccountFailed(int *a1, int a2, const char *a3)
{
int v6; // r6
cocos2d::CCString *v7; // r0
const char *CString; // r8
size_t v9; // r0
int v11; // [sp+4h] [bp-18h]
int v12; // [sp+8h] [bp-14h] BYREF
int v13; // [sp+Ch] [bp-10h]
int v14; // [sp+10h] [bp-Ch]
AccountLayer::hideLoadingUI((AccountLayer *)a1);
v6 = a1[125];
if ( a2 == -3 )
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Sync failed. Error code: %i",
a3);
v12 = 0;
v13 = 0;
v14 = 0;
CString = (const char *)cocos2d::CCString::getCString(v7);
v9 = strlen(CString);
std::string::__init(&v12, CString, v9);
TextArea::setString(v6, &v12);
}
else
{
v12 = 0;
v13 = 0;
v14 = 0;
if ( a2 == -2 )
std::string::__init(&v12, "Login failed. Please login to verify your account.", 0x32u);
else
std::string::__init(&v12, "Sync failed. Please try again later.", 0x24u);
TextArea::setString(v6, &v12);
}
std::string::~string((int)&v12);
LOWORD(v11) = 19455;
BYTE2(v11) = 0;
return TextArea::colorAllCharactersTo(a1[125], v11);
}