//
// AccountLayer::syncAccountFailed from 0x1001ef934 to 0x1001efa5c (296 bytes)
//
// 2 xrefs:
// > sub_1001EFAA4 @ 0x1001efaa8
// > ??> @ 0x1008f19f0
//
// 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 11:00:37 +0000
//
__int64 __fastcall AccountLayer::syncAccountFailed(__int64 a1, int a2, int a3)
{
__int64 v6; // x20
const void **v7; // x8
__int64 v8; // x0
char *CString; // x0
const void *v11[2]; // [xsp+8h] [xbp-68h] BYREF
char v12; // [xsp+1Fh] [xbp-51h]
const void *v13[2]; // [xsp+20h] [xbp-50h] BYREF
char v14; // [xsp+37h] [xbp-39h]
const void *v15[2]; // [xsp+38h] [xbp-38h] BYREF
char v16; // [xsp+4Fh] [xbp-21h]
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 560) + 1272LL))(*(_QWORD *)(a1 + 560), 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 0);
v6 = *(_QWORD *)(a1 + 648);
if ( a2 == -3 )
{
v8 = sub_1003065B0("Sync failed. Error code: %i", a3);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_100009900(v13, CString);
TextArea::setString(v6, v13);
if ( v14 < 0 )
{
v7 = v13;
goto LABEL_9;
}
}
else if ( a2 == -2 )
{
sub_100009900(v15, "Login failed. Please login to verify your account.");
TextArea::setString(v6, v15);
if ( v16 < 0 )
{
v7 = v15;
LABEL_9:
operator delete((void *)*v7);
}
}
else
{
sub_100009900(v11, "Sync failed. Please try again later.");
TextArea::setString(v6, v11);
if ( v12 < 0 )
{
v7 = v11;
goto LABEL_9;
}
}
return TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 648), 19455);
}