//
// AccountLayer::syncAccountFinished from 0x100166a58 to 0x100166b50 (248 bytes)
//
// 2 xrefs:
// > sub_100166B84 @ 0x100166b88
// > ??> @ 0x10079c338
//
// 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 __fastcall AccountLayer::syncAccountFinished(AccountLayer *a1)
{
TextArea *m_textArea; // x20
__int64 v3; // x19
void *v4[2]; // [xsp+0h] [xbp-40h] BYREF
char v5; // [xsp+17h] [xbp-29h]
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v7; // [xsp+2Fh] [xbp-11h]
((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 1);
((void (__fastcall *)(AccountLayer *, __int64))a1->setKeypadEnabled)(a1, 1);
((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0);
m_textArea = a1->m_textArea;
sub_100009900(__p, "Sync successful");
TextArea::setString((__int64)m_textArea, (const void **)__p);
if ( v7 < 0 )
operator delete(__p[0]);
TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)65280);
sub_100009900(v4, "Saved data has been downloaded.");
v3 = FLAlertLayer::create_1(0, "Load Data", v4, "OK", 0, 300.0);
if ( v5 < 0 )
operator delete(v4[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1288LL))(v3);
}