{"type": "func", "start": 4296435236, "end": 4296435372, "name": "AccountLayer::doSync", "pseudocode": "// \n// AccountLayer::doSync from 0x100166624 to 0x1001666ac (136 bytes)\n// \n// 1 xrefs:\n// > AccountLayer::FLAlert_Clicked @ 0x100166d64\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall AccountLayer::doSync(AccountLayer *a1)\n{\n  GJAccountManager *v2; // x0\n\n  AccountLayer::updatePage(a1, 0);\n  v2 = GJAccountManager::sharedState();\n  if ( GJAccountManager::getAccountSyncURL(v2) )\n  {\n    ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0);\n    ((void (__fastcall *)(AccountLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    ((void (__fastcall *)(LoadingCircle *, __int64))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 1);\n  }\n  else\n  {\n    ((void (__fastcall *)(AccountLayer *, __int64, _QWORD))a1->syncAccountFailed)(a1, 0xFFFFFFFFLL, 0);\n  }\n}", "assembly": "; \n; AccountLayer::doSync from 0x100166624 to 0x1001666ac (136 bytes)\n; \n; 1 xrefs:\n; > AccountLayer::FLAlert_Clicked @ 0x100166d64\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100166624\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100166628\nADD             X29, SP, #0x10                                         ; +0x8, 0x10016662c\nMOV             X19, X0                                                ; +0xc, 0x100166630\nMOV             W1, #0                                                 ; +0x10, 0x100166634\nBL              AccountLayer__updatePage                               ; +0x14, 0x100166638\nBL              GJAccountManager__sharedState                          ; +0x18, 0x10016663c\nBL              GJAccountManager__getAccountSyncURL                    ; +0x1c, 0x100166640\nCBZ             W0, loc_10016668C                                      ; +0x20, 0x100166644\nLDR             X0, [X19,#0x230]                                       ; +0x24, 0x100166648\nLDR             X8, [X0]                                               ; +0x28, 0x10016664c\nLDR             X8, [X8,#0x4E8]                                        ; +0x2c, 0x100166650\nMOV             W1, #0                                                 ; +0x30, 0x100166654\nBLR             X8                                                     ; +0x34, 0x100166658\nLDR             X8, [X19]                                              ; +0x38, 0x10016665c\nLDR             X8, [X8,#0x420]                                        ; +0x3c, 0x100166660\nMOV             X0, X19                                                ; +0x40, 0x100166664\nMOV             W1, #0                                                 ; +0x44, 0x100166668\nBLR             X8                                                     ; +0x48, 0x10016666c\nLDR             X0, [X19,#0x2C0]                                       ; +0x4c, 0x100166670\nLDR             X8, [X0]                                               ; +0x50, 0x100166674\nLDR             X2, [X8,#0x148]                                        ; +0x54, 0x100166678\nMOV             W1, #1                                                 ; +0x58, 0x10016667c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x100166680\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x100166684\nBR              X2                                                     ; +0x64, 0x100166688\nLDR             X8, [X19]                                              ; +0x68, 0x10016668c\nLDR             X3, [X8,#0x570]                                        ; +0x6c, 0x100166690\nMOV             X0, X19                                                ; +0x70, 0x100166694\nMOV             W1, #0xFFFFFFFF                                        ; +0x74, 0x100166698\nMOV             W2, #0                                                 ; +0x78, 0x10016669c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x1001666a0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x1001666a4\nBR              X3                                                     ; +0x84, 0x1001666a8", "xrefs": ["AccountLayer::FLAlert_Clicked @ 0x100166d64"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}