//
// AccountLayer::syncAccountFinished from 0x10009bcb0 to 0x10009bddf (303 bytes)
//
// 2 xrefs:
// > sub_10009BE10 @ 0x10009be1c
// > ??> @ 0x100abbf10
//
// This function is hookable on this platform (idp: pc, 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 12:20:12 +0000
//
__int64 __fastcall AccountLayer::syncAccountFinished(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rbx
_QWORD v5[2]; // [rsp+0h] [rbp-40h] BYREF
void *v6; // [rsp+10h] [rbp-30h]
char v7; // [rsp+18h] [rbp-28h] BYREF
_BYTE v8[23]; // [rsp+19h] [rbp-27h] BYREF
(*(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);
v2 = *(_QWORD *)(a1 + 648);
v7 = 30;
strcpy(v8, "Sync successful");
TextArea::setString(v2, &v7);
if ( (v7 & 1) != 0 )
operator delete(*(void **)&v8[15]);
TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 648), 65280);
v6 = operator new(0x30u);
v5[0] = 49;
v5[1] = 47;
strcpy((char *)v6, "Saved data has been downloaded.");
v3 = FLAlertLayer::create_1(0, "Load Data", v5, "OK", 0, 300.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}