{"type": "func", "start": 4300615648, "end": 4300615723, "name": "GJLevelList::completedLevels", "pseudocode": "// \n// GJLevelList::completedLevels from 0x100562fe0 to 0x10056302b (75 bytes)\n// \n// 4 xrefs:\n// > GameStatsManager::claimListReward @ 0x100073caa\n// > LevelListCell::loadFromList @ 0x10024562b\n// > LevelListLayer::updateStatsArt @ 0x10035e287\n// > LevelListLayer::onClaimReward @ 0x10035f026\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 __fastcall GJLevelList::completedLevels(GJLevelList *a1)\n{\n  int *begin; // r14\n  std::__vector_base<int>::pointer end; // r15\n  int i; // ebx\n  GameStatsManager *v4; // rax\n\n  begin = a1->m_levels.__begin_;\n  end = a1->m_levels.__end_;\n  for ( i = 0; begin != end; ++begin )\n  {\n    v4 = GameStatsManager::sharedState();\n    i += GameStatsManager::hasCompletedOnlineLevel(v4, *begin);\n  }\n  return i;\n}", "assembly": "; \n; GJLevelList::completedLevels from 0x100562fe0 to 0x10056302b (75 bytes)\n; \n; 4 xrefs:\n; > GameStatsManager::claimListReward @ 0x100073caa\n; > LevelListCell::loadFromList @ 0x10024562b\n; > LevelListLayer::updateStatsArt @ 0x10035e287\n; > LevelListLayer::onClaimReward @ 0x10035f026\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, 0x100562fe0\nmov     rbp, rsp                                                       ; +0x1, 0x100562fe1\npush    r15                                                            ; +0x4, 0x100562fe4\npush    r14                                                            ; +0x6, 0x100562fe6\npush    rbx                                                            ; +0x8, 0x100562fe8\npush    rax                                                            ; +0x9, 0x100562fe9\nmov     r14, [rdi+140h]                                                ; +0xa, 0x100562fea\nmov     r15, [rdi+148h]                                                ; +0x11, 0x100562ff1\nxor     ebx, ebx                                                       ; +0x18, 0x100562ff8\ncmp     r14, r15                                                       ; +0x1a, 0x100562ffa\njz      short loc_10056301E                                            ; +0x1d, 0x100562ffd\nnop                                                                    ; +0x1f, 0x100562fff\ncall    GameStatsManager__sharedState                                  ; +0x20, 0x100563000\nmov     esi, [r14]                                                     ; +0x25, 0x100563005\nmov     rdi, rax                                                       ; +0x28, 0x100563008\ncall    GameStatsManager__hasCompletedOnlineLevel                      ; +0x2b, 0x10056300b\nmovzx   eax, al                                                        ; +0x30, 0x100563010\nadd     ebx, eax                                                       ; +0x33, 0x100563013\nadd     r14, 4                                                         ; +0x35, 0x100563015\ncmp     r14, r15                                                       ; +0x39, 0x100563019\njnz     short loc_100563000                                            ; +0x3c, 0x10056301c\nmov     eax, ebx                                                       ; +0x3e, 0x10056301e\nadd     rsp, 8                                                         ; +0x40, 0x100563020\npop     rbx                                                            ; +0x44, 0x100563024\npop     r14                                                            ; +0x45, 0x100563025\npop     r15                                                            ; +0x47, 0x100563027\npop     rbp                                                            ; +0x49, 0x100563029\nretn                                                                   ; +0x4a, 0x10056302a", "xrefs": ["GameStatsManager::claimListReward @ 0x100073caa", "LevelListCell::loadFromList @ 0x10024562b", "LevelListLayer::updateStatsArt @ 0x10035e287", "LevelListLayer::onClaimReward @ 0x10035f026"], "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"}