{"type": "func", "start": 7443508, "end": 7443596, "name": "GJLevelList::completedLevels", "pseudocode": "// \n// GJLevelList::completedLevels from 0x719434 to 0x71948c (88 bytes)\n// \n// 5 xrefs:\n// > LevelListCell::loadFromList @ 0x61e5d0\n// > GameStatsManager::claimListReward @ 0x7bb648\n// > LevelListLayer::onClaimReward @ 0xa73804\n// > LevelListLayer::updateStatsArt @ 0xa748f8\n// > <???> @ 0x8e9c8\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\nint GJLevelList::completedLevels(GJLevelList *a1)\n{\n  int v1; // w20\n  int *m_start; // x19\n  int *m_finish; // x21\n  GameStatsManager *v4; // x0\n  int v5; // t1\n\n  v1 = 0;\n  m_start = a1->m_levels.m_start;\n  m_finish = a1->m_levels.m_finish;\n  while ( m_finish != m_start )\n  {\n    v4 = GameStatsManager::sharedState();\n    v5 = *m_start++;\n    if ( GameStatsManager::hasCompletedOnlineLevel(v4, v5) )\n      ++v1;\n  }\n  return v1;\n}", "assembly": "; \n; GJLevelList::completedLevels from 0x719434 to 0x71948c (88 bytes)\n; \n; 5 xrefs:\n; > LevelListCell::loadFromList @ 0x61e5d0\n; > GameStatsManager::claimListReward @ 0x7bb648\n; > LevelListLayer::onClaimReward @ 0xa73804\n; > LevelListLayer::updateStatsArt @ 0xa748f8\n; > <???> @ 0x8e9c8\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x719434\nMOV             X29, SP                                                ; +0x4, 0x719438\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x71943c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x719440\nMOV             W20, #0                                                ; +0x10, 0x719444\nLDR             X19, [X0,#0x140]                                       ; +0x14, 0x719448\nLDR             X21, [X0,#0x148]                                       ; +0x18, 0x71944c\nCMP             X21, X19                                               ; +0x1c, 0x719450\nB.EQ            loc_719478                                             ; +0x20, 0x719454\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x24, 0x719458\nLDR             W1, [X19],#4; int                                      ; +0x28, 0x71945c\nBL              _ZN16GameStatsManager23hasCompletedOnlineLevelEi; GameStatsManager::hasCompletedOnlineLevel(int) ; +0x2c, 0x719460\nUXTB            W0, W0                                                 ; +0x30, 0x719464\nCMP             W0, WZR                                                ; +0x34, 0x719468\nCINC            W20, W20, NE                                           ; +0x38, 0x71946c\nCMP             X21, X19                                               ; +0x3c, 0x719470\nB.NE            loc_719458                                             ; +0x40, 0x719474\nMOV             W0, W20                                                ; +0x44, 0x719478\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x48, 0x71947c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x4c, 0x719480\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x50, 0x719484\nRET                                                                    ; +0x54, 0x719488", "xrefs": ["LevelListCell::loadFromList @ 0x61e5d0", "GameStatsManager::claimListReward @ 0x7bb648", "LevelListLayer::onClaimReward @ 0xa73804", "LevelListLayer::updateStatsArt @ 0xa748f8", "<???> @ 0x8e9c8"], "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"}