{"type": "func", "start": 4296994112, "end": 4296994392, "name": "AccountLayer::onSync", "pseudocode": "// \n// AccountLayer::onSync from 0x1001eed40 to 0x1001eee58 (280 bytes)\n// \n// 1 xrefs:\n// > AccountLayer::customSetup @ 0x1001ee6f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:00:37 +0000\n// \n\n__int64 __fastcall AccountLayer::onSync(__int64 a1)\n{\n  __int64 v2; // x0\n  int v3; // w0\n  __int64 v4; // x0\n  char *CString; // x0\n  __int64 v6; // x19\n  void *v8[2]; // [xsp+10h] [xbp-40h] BYREF\n  char v9; // [xsp+27h] [xbp-29h]\n  void *__p[2]; // [xsp+28h] [xbp-28h] BYREF\n  char v11; // [xsp+3Fh] [xbp-11h]\n\n  v2 = GameLevelManager::sharedState();\n  v3 = sub_1000ADD00(v2, \"sync_account\", 30.0);\n  if ( (unsigned int)(v3 - 1) > 0x1D )\n  {\n    sub_100009900(\n      v8,\n      \"Do you want to <cg>download</c> your account data from the <cl>cloud</c>?\\n\"\n      \"<cy>This will merge current data with the saved data.</c>\");\n    v6 = FLAlertLayer::create_1(a1 + 632, \"Load Data\", v8, \"Cancel\", \"Load\", 300.0);\n    if ( v9 < 0 )\n      operator delete(v8[0]);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 2);\n  }\n  else\n  {\n    v4 = sub_1003065B0(\"Please wait %i seconds before attempting to sync your account again.\", v3);\n    CString = (char *)cocos2d::CCString::getCString(v4);\n    sub_100009900(__p, CString);\n    v6 = FLAlertLayer::create_1(0, \"Too fast\", __p, \"OK\", 0, 300.0);\n    if ( v11 < 0 )\n      operator delete(__p[0]);\n  }\n  return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n}", "assembly": "; \n; AccountLayer::onSync from 0x1001eed40 to 0x1001eee58 (280 bytes)\n; \n; 1 xrefs:\n; > AccountLayer::customSetup @ 0x1001ee6f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:00:37 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1001eed40\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x1001eed44\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x1001eed48\nADD             X29, SP, #0x50                                         ; +0xc, 0x1001eed4c\nMOV             X19, X0                                                ; +0x10, 0x1001eed50\nBL              GameLevelManager__sharedState                          ; +0x14, 0x1001eed54\nADRL            X1, aSyncAccount; \"sync_account\"                       ; +0x18, 0x1001eed58\nFMOV            S0, #30.0                                              ; +0x20, 0x1001eed60\nBL              sub_1000ADD00                                          ; +0x24, 0x1001eed64\nSUB             W8, W0, #1                                             ; +0x28, 0x1001eed68\nCMP             W8, #0x1D                                              ; +0x2c, 0x1001eed6c\nB.HI            loc_1001EEDD4                                          ; +0x30, 0x1001eed70\nSTR             X0, [SP,#0x50+var_50]                                  ; +0x34, 0x1001eed74\nADRL            X0, aPleaseWaitISec_0; \"Please wait %i seconds before attemptin\"... ; +0x38, 0x1001eed78\nBL              sub_1003065B0                                          ; +0x40, 0x1001eed80\nBL              cocos2d__CCString__getCString                          ; +0x44, 0x1001eed84\nMOV             X1, X0; __s                                            ; +0x48, 0x1001eed88\nADD             X0, SP, #0x50+__p; int                                 ; +0x4c, 0x1001eed8c\nBL              sub_100009900                                          ; +0x50, 0x1001eed90\nADRL            X1, aTooFast_0; \"Too fast\"                             ; +0x54, 0x1001eed94\nADRL            X3, aOk; \"OK\"                                          ; +0x5c, 0x1001eed9c\nMOV             W8, #0x43960000                                        ; +0x64, 0x1001eeda4\nFMOV            S0, W8                                                 ; +0x68, 0x1001eeda8\nADD             X2, SP, #0x50+__p                                      ; +0x6c, 0x1001eedac\nMOV             X0, #0                                                 ; +0x70, 0x1001eedb0\nMOV             X4, #0                                                 ; +0x74, 0x1001eedb4\nBL              FLAlertLayer__create_1                                 ; +0x78, 0x1001eedb8\nMOV             X19, X0                                                ; +0x7c, 0x1001eedbc\nLDRSB           W8, [SP,#0x50+var_11]                                  ; +0x80, 0x1001eedc0\nTBZ             W8, #0x1F, loc_1001EEE38                               ; +0x84, 0x1001eedc4\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x88, 0x1001eedc8\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1001eedcc\nB               loc_1001EEE38                                          ; +0x90, 0x1001eedd0\nADRL            X1, aDoYouWantToCgD; \"Do you want to <cg>download</c> your ac\"... ; +0x94, 0x1001eedd4\nADD             X0, SP, #0x50+var_40; int                              ; +0x9c, 0x1001eeddc\nBL              sub_100009900                                          ; +0xa0, 0x1001eede0\nADRL            X1, aLoadData; \"Load Data\"                             ; +0xa4, 0x1001eede4\nADRL            X3, aCancel; \"Cancel\"                                  ; +0xac, 0x1001eedec\nADRL            X4, aLoad; \"Load\"                                      ; +0xb4, 0x1001eedf4\nMOV             W8, #0x43960000                                        ; +0xbc, 0x1001eedfc\nFMOV            S0, W8                                                 ; +0xc0, 0x1001eee00\nADD             X0, X19, #0x278                                        ; +0xc4, 0x1001eee04\nADD             X2, SP, #0x50+var_40                                   ; +0xc8, 0x1001eee08\nBL              FLAlertLayer__create_1                                 ; +0xcc, 0x1001eee0c\nMOV             X19, X0                                                ; +0xd0, 0x1001eee10\nLDRSB           W8, [SP,#0x50+var_29]                                  ; +0xd4, 0x1001eee14\nTBZ             W8, #0x1F, loc_1001EEE24                               ; +0xd8, 0x1001eee18\nLDR             X0, [SP,#0x50+var_40]; __p                             ; +0xdc, 0x1001eee1c\nBL              __ZdlPv; operator delete(void *)                       ; +0xe0, 0x1001eee20\nLDR             X8, [X19]                                              ; +0xe4, 0x1001eee24\nLDR             X8, [X8,#0x48]                                         ; +0xe8, 0x1001eee28\nMOV             X0, X19                                                ; +0xec, 0x1001eee2c\nMOV             W1, #2                                                 ; +0xf0, 0x1001eee30\nBLR             X8                                                     ; +0xf4, 0x1001eee34\nLDR             X8, [X19]                                              ; +0xf8, 0x1001eee38\nLDR             X8, [X8,#0x520]                                        ; +0xfc, 0x1001eee3c\nMOV             X0, X19                                                ; +0x100, 0x1001eee40\nBLR             X8                                                     ; +0x104, 0x1001eee44\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x108, 0x1001eee48\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x10c, 0x1001eee4c\nADD             SP, SP, #0x60 ; '`'                                    ; +0x110, 0x1001eee50\nRET                                                                    ; +0x114, 0x1001eee54", "xrefs": ["AccountLayer::customSetup @ 0x1001ee6f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}