{"type": "func", "start": 4300798128, "end": 4300798203, "name": "GJLevelList::completedLevels", "pseudocode": "// \n// GJLevelList::completedLevels from 0x10058f8b0 to 0x10058f8fb (75 bytes)\n// \n// 4 xrefs:\n// > GameStatsManager::claimListReward @ 0x10003977a\n// > LevelListCell::loadFromList @ 0x10022b287\n// > LevelListLayer::updateStatsArt @ 0x100349877\n// > LevelListLayer::onClaimReward @ 0x10034a646\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:26 +0000\n// \n\n__int64 __fastcall GJLevelList::completedLevels(__int64 a1)\n{\n  unsigned int *v1; // r14\n  unsigned int *v2; // r15\n  unsigned int i; // ebx\n  __int64 v4; // rax\n\n  v1 = *(unsigned int **)(a1 + 320);\n  v2 = *(unsigned int **)(a1 + 328);\n  for ( i = 0; v1 != v2; ++v1 )\n  {\n    v4 = GameStatsManager::sharedState();\n    i += GameStatsManager::hasCompletedOnlineLevel(v4, *v1);\n  }\n  return i;\n}", "assembly": "; \n; GJLevelList::completedLevels from 0x10058f8b0 to 0x10058f8fb (75 bytes)\n; \n; 4 xrefs:\n; > GameStatsManager::claimListReward @ 0x10003977a\n; > LevelListCell::loadFromList @ 0x10022b287\n; > LevelListLayer::updateStatsArt @ 0x100349877\n; > LevelListLayer::onClaimReward @ 0x10034a646\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:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x10058f8b0\nmov     rbp, rsp                                                       ; +0x1, 0x10058f8b1\npush    r15                                                            ; +0x4, 0x10058f8b4\npush    r14                                                            ; +0x6, 0x10058f8b6\npush    rbx                                                            ; +0x8, 0x10058f8b8\npush    rax                                                            ; +0x9, 0x10058f8b9\nmov     r14, [rdi+140h]                                                ; +0xa, 0x10058f8ba\nmov     r15, [rdi+148h]                                                ; +0x11, 0x10058f8c1\nxor     ebx, ebx                                                       ; +0x18, 0x10058f8c8\ncmp     r14, r15                                                       ; +0x1a, 0x10058f8ca\njz      short loc_10058F8EE                                            ; +0x1d, 0x10058f8cd\nnop                                                                    ; +0x1f, 0x10058f8cf\ncall    GameStatsManager__sharedState                                  ; +0x20, 0x10058f8d0\nmov     esi, [r14]                                                     ; +0x25, 0x10058f8d5\nmov     rdi, rax                                                       ; +0x28, 0x10058f8d8\ncall    GameStatsManager__hasCompletedOnlineLevel                      ; +0x2b, 0x10058f8db\nmovzx   eax, al                                                        ; +0x30, 0x10058f8e0\nadd     ebx, eax                                                       ; +0x33, 0x10058f8e3\nadd     r14, 4                                                         ; +0x35, 0x10058f8e5\ncmp     r14, r15                                                       ; +0x39, 0x10058f8e9\njnz     short loc_10058F8D0                                            ; +0x3c, 0x10058f8ec\nmov     eax, ebx                                                       ; +0x3e, 0x10058f8ee\nadd     rsp, 8                                                         ; +0x40, 0x10058f8f0\npop     rbx                                                            ; +0x44, 0x10058f8f4\npop     r14                                                            ; +0x45, 0x10058f8f5\npop     r15                                                            ; +0x47, 0x10058f8f7\npop     rbp                                                            ; +0x49, 0x10058f8f9\nretn                                                                   ; +0x4a, 0x10058f8fa", "xrefs": ["GameStatsManager::claimListReward @ 0x10003977a", "LevelListCell::loadFromList @ 0x10022b287", "LevelListLayer::updateStatsArt @ 0x100349877", "LevelListLayer::onClaimReward @ 0x10034a646"], "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"}