{"type": "func", "start": 4300697392, "end": 4300697536, "name": "GameLevelManager::syncFollowListIfNeeded", "pseudocode": "// \n// GameLevelManager::syncFollowListIfNeeded from 0x100576f30 to 0x100576fc0 (144 bytes)\n// \n// 2 xrefs:\n// > GJAccountManager::linkToAccount @ 0x1000a2448\n// > MenuLayer::init @ 0x10037c1b6\n// \n// This function is hookable on this platform (idp: pc, 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 12:32:17 +0000\n// \n\nchar __fastcall GameLevelManager::syncFollowListIfNeeded(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n\n  v2 = GJAccountManager::sharedState(a1, a2);\n  if ( *(_DWORD *)(v2 + 352) > *(_DWORD *)(v2 + 356) )\n  {\n    v3 = GameManager::sharedState();\n    LOBYTE(v2) = GameManager::getGameVariable(v3, \"0241\");\n    if ( (_BYTE)v2 )\n    {\n      if ( !*(_BYTE *)(a1 + 472) )\n      {\n        *(_BYTE *)(a1 + 472) = 1;\n        LOBYTE(v2) = GameLevelManager::getFollowing(a1);\n      }\n    }\n    else\n    {\n      v4 = GameManager::sharedState();\n      LOBYTE(v2) = GameManager::safeModeEnabled(v4);\n      if ( !(_BYTE)v2 )\n      {\n        if ( (unsigned int)cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 776)) )\n          LOBYTE(v2) = GameLevelManager::syncFollowing(a1);\n        else\n          LOBYTE(v2) = GameLevelManager::getFollowing(a1);\n        *(_BYTE *)(a1 + 472) = 1;\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; GameLevelManager::syncFollowListIfNeeded from 0x100576f30 to 0x100576fc0 (144 bytes)\n; \n; 2 xrefs:\n; > GJAccountManager::linkToAccount @ 0x1000a2448\n; > MenuLayer::init @ 0x10037c1b6\n; \n; This function is hookable on this platform (idp: pc, 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 12:32:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x100576f30\nmov     rbp, rsp                                                       ; +0x1, 0x100576f31\npush    rbx                                                            ; +0x4, 0x100576f34\npush    rax                                                            ; +0x5, 0x100576f35\nmov     rbx, rdi                                                       ; +0x6, 0x100576f36\ncall    GJAccountManager__sharedState                                  ; +0x9, 0x100576f39\nmov     ecx, [rax+160h]                                                ; +0xe, 0x100576f3e\ncmp     ecx, [rax+164h]                                                ; +0x14, 0x100576f44\njle     short loc_100576FB9                                            ; +0x1a, 0x100576f4a\ncall    GameManager__sharedState                                       ; +0x1c, 0x100576f4c\nlea     rsi, a0241; \"0241\"                                             ; +0x21, 0x100576f51\nmov     rdi, rax                                                       ; +0x28, 0x100576f58\ncall    GameManager__getGameVariable                                   ; +0x2b, 0x100576f5b\ntest    al, al                                                         ; +0x30, 0x100576f60\njz      short loc_100576F82                                            ; +0x32, 0x100576f62\ncmp     byte ptr [rbx+1D8h], 0                                         ; +0x34, 0x100576f64\njnz     short loc_100576FB9                                            ; +0x3b, 0x100576f6b\nmov     byte ptr [rbx+1D8h], 1                                         ; +0x3d, 0x100576f6d\nmov     rdi, rbx                                                       ; +0x44, 0x100576f74\nadd     rsp, 8                                                         ; +0x47, 0x100576f77\npop     rbx                                                            ; +0x4b, 0x100576f7b\npop     rbp                                                            ; +0x4c, 0x100576f7c\njmp     GameLevelManager__getFollowing                                 ; +0x4d, 0x100576f7d\ncall    GameManager__sharedState                                       ; +0x52, 0x100576f82\nmov     rdi, rax                                                       ; +0x57, 0x100576f87\ncall    GameManager__safeModeEnabled                                   ; +0x5a, 0x100576f8a\ntest    al, al                                                         ; +0x5f, 0x100576f8f\njnz     short loc_100576FB9                                            ; +0x61, 0x100576f91\nmov     rdi, [rbx+308h]                                                ; +0x63, 0x100576f93\ncall    cocos2d__CCDictionary__count                                   ; +0x6a, 0x100576f9a\nmov     rdi, rbx                                                       ; +0x6f, 0x100576f9f\ntest    eax, eax                                                       ; +0x72, 0x100576fa2\njz      short loc_100576FAD                                            ; +0x74, 0x100576fa4\ncall    GameLevelManager__syncFollowing                                ; +0x76, 0x100576fa6\njmp     short loc_100576FB2                                            ; +0x7b, 0x100576fab\ncall    GameLevelManager__getFollowing                                 ; +0x7d, 0x100576fad\nmov     byte ptr [rbx+1D8h], 1                                         ; +0x82, 0x100576fb2\nadd     rsp, 8                                                         ; +0x89, 0x100576fb9\npop     rbx                                                            ; +0x8d, 0x100576fbd\npop     rbp                                                            ; +0x8e, 0x100576fbe\nretn                                                                   ; +0x8f, 0x100576fbf", "xrefs": ["GJAccountManager::linkToAccount @ 0x1000a2448", "MenuLayer::init @ 0x10037c1b6"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}