//
// AccountLayer::doSync from 0x100166624 to 0x1001666ac (136 bytes)
//
// 1 xrefs:
// > AccountLayer::FLAlert_Clicked @ 0x100166d64
//
// 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::doSync(AccountLayer *a1)
{
GJAccountManager *v2; // x0
AccountLayer::updatePage(a1, 0);
v2 = GJAccountManager::sharedState();
if ( GJAccountManager::getAccountSyncURL(v2) )
{
((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0);
((void (__fastcall *)(AccountLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(LoadingCircle *, __int64))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 1);
}
else
{
((void (__fastcall *)(AccountLayer *, __int64, _QWORD))a1->syncAccountFailed)(a1, 0xFFFFFFFFLL, 0);
}
}