//
// AccountLayer::syncAccountFinished from 0x1000cd860 to 0x1000cd98f (303 bytes)
//
// 2 xrefs:
// > sub_1000CD9C0 @ 0x1000cd9cc
// > ??> @ 0x1008b8928
//
// 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; // rdi
__int64 v3; // rbx
_QWORD v4[2]; // [rsp+0h] [rbp-40h] BYREF
void *v5; // [rsp+10h] [rbp-30h]
char v6; // [rsp+18h] [rbp-28h] BYREF
_BYTE v7[23]; // [rsp+19h] [rbp-27h] BYREF
((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;
v6 = 30;
strcpy(v7, "Sync successful");
TextArea::setString(m_textArea, &v6);
if ( (v6 & 1) != 0 )
operator delete(*(void **)&v7[15]);
TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)65280);
v5 = operator new(0x30u);
v4[0] = 49;
v4[1] = 47;
strcpy((char *)v5, "Saved data has been downloaded.");
v3 = FLAlertLayer::create_1(0, "Load Data", v4, "OK", 0, 300.0);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1288LL))(v3);
}