//
// AccountLayer::syncAccountFailed from 0x467504 to 0x4675bc (184 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountLayer::syncAccountFailed @ 0x4675d0
//
// 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
//
void AccountLayer::syncAccountFailed(AccountLayer *a1, BackupAccountError a2, int a3)
{
TextArea *m_textArea; // r6
cocos2d::CCString *v7; // r0
char *CString; // r0
int v9; // [sp+8h] [bp+4h] BYREF
v9 = a3;
AccountLayer::hideLoadingUI(a1);
m_textArea = a1->m_textArea;
if ( a2 == BackupOrSyncFailed )
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Sync failed. Error code: %i",
(const char *)a3);
CString = (char *)cocos2d::CCString::getCString(v7);
sub_776584((int)&v9, CString);
TextArea::setString((int)m_textArea, &v9);
}
else
{
if ( a2 == LoginFailed )
sub_776584((int)&v9, "Login failed. Please login to verify your account.");
else
sub_776584((int)&v9, "Sync failed. Please try again later.");
TextArea::setString((int)m_textArea, &v9);
}
sub_774008(&v9);
LOWORD(v9) = 19455;
BYTE2(v9) = 0;
TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)v9);
}