{"type": "func", "start": 4298613312, "end": 4298613398, "name": "GameManager::verifyStarUnlocks", "pseudocode": "// \n// GameManager::verifyStarUnlocks from 0x10037a240 to 0x10037a296 (86 bytes)\n// \n// 0 xrefs:\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 GameManager::verifyStarUnlocks(GameManager *a1)\n{\n  int i; // ebx\n  GameLevelManager *v2; // rax\n  GJGameLevel *MainLevel; // r14\n  GameStatsManager *v4; // rax\n  GameStatsManager *v5; // rax\n\n  for ( i = 1; i != 23; ++i )\n  {\n    v2 = GameLevelManager::sharedState();\n    MainLevel = GameLevelManager::getMainLevel(v2, i, 0);\n    v4 = GameStatsManager::sharedState();\n    if ( GameStatsManager::hasCompletedLevel(v4, MainLevel) )\n    {\n      v5 = GameStatsManager::sharedState();\n      GameStatsManager::completedStarLevel(v5, MainLevel);\n    }\n  }\n}", "assembly": "; \n; GameManager::verifyStarUnlocks from 0x10037a240 to 0x10037a296 (86 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10037a240\nmov     rbp, rsp                                                       ; +0x1, 0x10037a241\npush    r14                                                            ; +0x4, 0x10037a244\npush    rbx                                                            ; +0x6, 0x10037a246\nmov     ebx, 1                                                         ; +0x7, 0x10037a247\njmp     short loc_10037A257                                            ; +0xc, 0x10037a24c\nalign 10h                                                              ; +0xe, 0x10037a24e\ninc     ebx                                                            ; +0x10, 0x10037a250\ncmp     ebx, 17h                                                       ; +0x12, 0x10037a252\njz      short loc_10037A291                                            ; +0x15, 0x10037a255\ncall    GameLevelManager__sharedState                                  ; +0x17, 0x10037a257\nmov     rdi, rax                                                       ; +0x1c, 0x10037a25c\nmov     esi, ebx                                                       ; +0x1f, 0x10037a25f\nxor     edx, edx                                                       ; +0x21, 0x10037a261\ncall    GameLevelManager__getMainLevel                                 ; +0x23, 0x10037a263\nmov     r14, rax                                                       ; +0x28, 0x10037a268\ncall    GameStatsManager__sharedState                                  ; +0x2b, 0x10037a26b\nmov     rdi, rax                                                       ; +0x30, 0x10037a270\nmov     rsi, r14                                                       ; +0x33, 0x10037a273\ncall    GameStatsManager__hasCompletedLevel                            ; +0x36, 0x10037a276\ntest    al, al                                                         ; +0x3b, 0x10037a27b\njz      short loc_10037A250                                            ; +0x3d, 0x10037a27d\ncall    GameStatsManager__sharedState                                  ; +0x3f, 0x10037a27f\nmov     rdi, rax                                                       ; +0x44, 0x10037a284\nmov     rsi, r14                                                       ; +0x47, 0x10037a287\ncall    GameStatsManager__completedStarLevel                           ; +0x4a, 0x10037a28a\njmp     short loc_10037A250                                            ; +0x4f, 0x10037a28f\npop     rbx                                                            ; +0x51, 0x10037a291\npop     r14                                                            ; +0x52, 0x10037a292\npop     rbp                                                            ; +0x54, 0x10037a294\nretn                                                                   ; +0x55, 0x10037a295", "xrefs": [], "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"}