{"type": "func", "start": 5371278656, "end": 5371278811, "name": "GJLevelList::completedLevels", "pseudocode": "// \n// GJLevelList::completedLevels from 0x140273540 to 0x1402735db (155 bytes)\n// \n// 5 xrefs:\n// > LevelListCell::loadFromList @ 0x14015e530\n// > LevelListLayer::updateStatsArt @ 0x14042d165\n// > LevelListLayer::onClaimReward @ 0x14042df55\n// > LevelListLayer::onClaimReward @ 0x14042dfab\n// > <???> @ 0x14091cb98\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 11:28:55 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJLevelList::completedLevels(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int *v2; // rbx\n  unsigned int *i; // rsi\n  unsigned int v4; // edi\n  __int64 v5; // rcx\n  char hasCompletedOnlineLevel; // cl\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  result = 0;\n  v2 = *(unsigned int **)(a1 + 320);\n  for ( i = *(unsigned int **)(a1 + 328); v2 != i; ++v2 )\n  {\n    v4 = result;\n    v5 = qword_14090BFE0;\n    if ( !qword_14090BFE0 )\n    {\n      v7 = operator new(0x3E8u);\n      qword_14090BFE0 = sub_1402D6480(v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n      v5 = qword_14090BFE0;\n    }\n    hasCompletedOnlineLevel = GameStatsManager::hasCompletedOnlineLevel(v5, *v2);\n    result = v4 + 1;\n    if ( !hasCompletedOnlineLevel )\n      result = v4;\n  }\n  return result;\n}", "assembly": "; \n; GJLevelList::completedLevels from 0x140273540 to 0x1402735db (155 bytes)\n; \n; 5 xrefs:\n; > LevelListCell::loadFromList @ 0x14015e530\n; > LevelListLayer::updateStatsArt @ 0x14042d165\n; > LevelListLayer::onClaimReward @ 0x14042df55\n; > LevelListLayer::onClaimReward @ 0x14042dfab\n; > <???> @ 0x14091cb98\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 11:28:55 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140273540\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140273545\npush    rdi                                                            ; +0xa, 0x14027354a\nsub     rsp, 20h                                                       ; +0xb, 0x14027354b\nxor     eax, eax                                                       ; +0xf, 0x14027354f\nmov     rbx, [rcx+140h]                                                ; +0x11, 0x140273551\nmov     rsi, [rcx+148h]                                                ; +0x18, 0x140273558\ncmp     rbx, rsi                                                       ; +0x1f, 0x14027355f\njz      short loc_1402735CB                                            ; +0x22, 0x140273562\nnop     dword ptr [rax+00h]                                            ; +0x24, 0x140273564\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x140273568\nmov     edi, eax                                                       ; +0x30, 0x140273570\nmov     rcx, cs:qword_14090BFE0                                        ; +0x32, 0x140273572\ntest    rcx, rcx                                                       ; +0x39, 0x140273579\njnz     short loc_1402735B0                                            ; +0x3c, 0x14027357c\nmov     ecx, 3E8h; Size                                                ; +0x3e, 0x14027357e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x43, 0x140273583\nmov     [rsp+28h+arg_0], rax                                           ; +0x48, 0x140273588\nmov     rcx, rax                                                       ; +0x4d, 0x14027358d\ncall    sub_1402D6480                                                  ; +0x50, 0x140273590\nnop                                                                    ; +0x55, 0x140273595\nmov     cs:qword_14090BFE0, rax                                        ; +0x56, 0x140273596\nmov     rcx, [rax]                                                     ; +0x5d, 0x14027359d\nmov     rdx, [rcx+48h]                                                 ; +0x60, 0x1402735a0\nmov     rcx, rax                                                       ; +0x64, 0x1402735a4\ncall    rdx                                                            ; +0x67, 0x1402735a7\nmov     rcx, cs:qword_14090BFE0                                        ; +0x69, 0x1402735a9\nmov     edx, [rbx]                                                     ; +0x70, 0x1402735b0\ncall    GameStatsManager__hasCompletedOnlineLevel                      ; +0x72, 0x1402735b2\nmovzx   ecx, al                                                        ; +0x77, 0x1402735b7\nlea     eax, [rdi+1]                                                   ; +0x7a, 0x1402735ba\ntest    cl, cl                                                         ; +0x7d, 0x1402735bd\ncmovz   eax, edi                                                       ; +0x7f, 0x1402735bf\nadd     rbx, 4                                                         ; +0x82, 0x1402735c2\ncmp     rbx, rsi                                                       ; +0x86, 0x1402735c6\njnz     short loc_140273570                                            ; +0x89, 0x1402735c9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8b, 0x1402735cb\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x90, 0x1402735d0\nadd     rsp, 20h                                                       ; +0x95, 0x1402735d5\npop     rdi                                                            ; +0x99, 0x1402735d9\nretn                                                                   ; +0x9a, 0x1402735da", "xrefs": ["LevelListCell::loadFromList @ 0x14015e530", "LevelListLayer::updateStatsArt @ 0x14042d165", "LevelListLayer::onClaimReward @ 0x14042df55", "LevelListLayer::onClaimReward @ 0x14042dfab", "<???> @ 0x14091cb98"], "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"}