{"type": "func", "start": 3988730, "end": 3988772, "name": "GJLevelList::completedLevels", "pseudocode": "// \n// GJLevelList::completedLevels from 0x3cdcfa to 0x3cdd24 (42 bytes)\n// \n// 4 xrefs:\n// > LevelListCell::loadFromList @ 0x33a7ca\n// > GameStatsManager::claimListReward @ 0x41c568\n// > LevelListLayer::onClaimReward @ 0x58ec50\n// > LevelListLayer::updateStatsArt @ 0x58fcc4\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; // r5\n  int *m_finish; // r6\n  int *i; // r4\n  GameStatsManager *v4; // r0\n  int v5; // r1\n\n  v1 = 0;\n  m_finish = a1->m_levels.m_finish;\n  for ( i = a1->m_levels.m_start; i != m_finish; ++i )\n  {\n    v4 = GameStatsManager::sharedState();\n    v5 = *i;\n    if ( GameStatsManager::hasCompletedOnlineLevel(v4, v5) )\n      ++v1;\n  }\n  return v1;\n}", "assembly": "; \n; GJLevelList::completedLevels from 0x3cdcfa to 0x3cdd24 (42 bytes)\n; \n; 4 xrefs:\n; > LevelListCell::loadFromList @ 0x33a7ca\n; > GameStatsManager::claimListReward @ 0x41c568\n; > LevelListLayer::onClaimReward @ 0x58ec50\n; > LevelListLayer::updateStatsArt @ 0x58fcc4\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            {R3-R7,LR}                                             ; +0x0, 0x3cdcfa\nMOVS            R5, #0                                                 ; +0x2, 0x3cdcfc\nLDR.W           R6, [R0,#0x10C]                                        ; +0x4, 0x3cdcfe\nLDR.W           R4, [R0,#0x108]                                        ; +0x8, 0x3cdd02\nCMP             R4, R6                                                 ; +0xc, 0x3cdd06\nMOV             R7, R4                                                 ; +0xe, 0x3cdd08\nBEQ             loc_3CDD20                                             ; +0x10, 0x3cdd0a\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x12, 0x3cdd0c\nLDR             R1, [R7]; bool                                         ; +0x16, 0x3cdd10\nADDS            R4, #4                                                 ; +0x18, 0x3cdd12\nBL              _ZN16GameStatsManager23hasCompletedOnlineLevelEi; GameStatsManager::hasCompletedOnlineLevel(int) ; +0x1a, 0x3cdd14\nCMP             R0, #0                                                 ; +0x1e, 0x3cdd18\nBEQ             loc_3CDD06                                             ; +0x20, 0x3cdd1a\nADDS            R5, #1                                                 ; +0x22, 0x3cdd1c\nB               loc_3CDD06                                             ; +0x24, 0x3cdd1e\nMOV             R0, R5                                                 ; +0x26, 0x3cdd20\nPOP             {R3-R7,PC}                                             ; +0x28, 0x3cdd22", "xrefs": ["LevelListCell::loadFromList @ 0x33a7ca", "GameStatsManager::claimListReward @ 0x41c568", "LevelListLayer::onClaimReward @ 0x58ec50", "LevelListLayer::updateStatsArt @ 0x58fcc4"], "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"}