//
// AccountLayer::syncAccountFinished from 0x140094700 to 0x1400948bc (444 bytes)
//
// 2 xrefs:
// > ??> @ 0x140718b38
// > ??> @ 0x140912bf0
//
// 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 11:26:02 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall AccountLayer::syncAccountFinished(__int64 a1, __int64 a2)
{
__int64 v3; // rdx
__int64 v4; // rax
cocos2d::CCObject *v5; // rbx
__int128 v7; // [rsp+50h] [rbp+17h] BYREF
__int64 v8; // [rsp+60h] [rbp+27h]
__int64 v9; // [rsp+68h] [rbp+2Fh]
_BYTE v10[32]; // [rsp+70h] [rbp+37h] BYREF
__int128 *v11; // [rsp+A0h] [rbp+67h] BYREF
LOBYTE(a2) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 - 64) + 1040LL))(*(_QWORD *)(a1 - 64), a2);
LOBYTE(v3) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 624) + 992LL))(a1 - 624, v3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 80) + 336LL))(*(_QWORD *)(a1 + 80), 0);
v8 = 15;
v9 = 15;
strcpy((char *)&v7, "Sync successful");
TextArea::setString(*(__int64 **)(a1 + 24), (__int64)&v7);
LOWORD(v11) = -256;
BYTE2(v11) = 0;
TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 24), (__int64)&v11);
v7 = 0;
v8 = 0;
v9 = 0;
*(_QWORD *)&v7 = sub_14003D460(0x30u);
v8 = 47;
v9 = 47;
strcpy((char *)v7, "Saved data has been downloaded.");
v11 = &v7;
v4 = sub_14003F4F0((__int64)v10, (__int64)&v7);
v5 = FLAlertLayer::create(0, (int)"Load Data", v4, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003D310((__int64)&v7);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 1064LL))(v5);
}