{"type": "func", "start": 5371248336, "end": 5371248629, "name": "GJMapPack::completedMaps", "pseudocode": "// \n// GJMapPack::completedMaps from 0x14026bed0 to 0x14026bff5 (293 bytes)\n// \n// 8 xrefs:\n// > MapPackCell::loadFromMapPack @ 0x14014db05\n// > MapPackCell::loadFromMapPack @ 0x14014dd8c\n// > MapPackCell::loadFromMapPack @ 0x14014de0a\n// > GauntletSelectLayer::onPlay @ 0x1402ffbd3\n// > GauntletNode::generateNode @ 0x1403022b9\n// > GauntletNode::generateNode @ 0x14030248d\n// > GJAccountManager::onSyncAccountCompleted @ 0x140309147\n// > <???> @ 0x14091ca48\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:52 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GJMapPack::completedMaps(__int64 a1)\n{\n  cocos2d::CCArray *v2; // rcx\n  unsigned int v4; // ebx\n  unsigned int v5; // edi\n  unsigned int v6; // r14d\n  cocos2d::CCString *v7; // rax\n  unsigned int v8; // ebp\n  __int64 v9; // rcx\n  void *v10; // [rsp+40h] [rbp+8h]\n  void *v11; // [rsp+48h] [rbp+10h]\n\n  v2 = *(cocos2d::CCArray **)(a1 + 320);\n  if ( !v2 )\n    return 0;\n  v4 = 0;\n  v5 = 0;\n  if ( cocos2d::CCArray::count(v2) )\n  {\n    do\n    {\n      v6 = v4;\n      v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 320), v5);\n      v8 = cocos2d::CCString::intValue(v7);\n      v9 = qword_14090BFE0;\n      if ( *(_BYTE *)(a1 + 420) )\n      {\n        if ( !qword_14090BFE0 )\n        {\n          v10 = operator new(0x3E8u);\n          qword_14090BFE0 = sub_1402D6480(v10);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n          v9 = qword_14090BFE0;\n        }\n        ++v4;\n        if ( !(unsigned __int8)GameStatsManager::hasCompletedGauntletLevel(v9, v8) )\n          v4 = v6;\n      }\n      else\n      {\n        if ( !qword_14090BFE0 )\n        {\n          v11 = operator new(0x3E8u);\n          qword_14090BFE0 = sub_1402D6480(v11);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n          v9 = qword_14090BFE0;\n        }\n        if ( (unsigned __int8)GameStatsManager::hasCompletedOnlineLevel(v9, v8) )\n          ++v4;\n      }\n      ++v5;\n    }\n    while ( v5 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 320)) );\n  }\n  return v4;\n}", "assembly": "; \n; GJMapPack::completedMaps from 0x14026bed0 to 0x14026bff5 (293 bytes)\n; \n; 8 xrefs:\n; > MapPackCell::loadFromMapPack @ 0x14014db05\n; > MapPackCell::loadFromMapPack @ 0x14014dd8c\n; > MapPackCell::loadFromMapPack @ 0x14014de0a\n; > GauntletSelectLayer::onPlay @ 0x1402ffbd3\n; > GauntletNode::generateNode @ 0x1403022b9\n; > GauntletNode::generateNode @ 0x14030248d\n; > GJAccountManager::onSyncAccountCompleted @ 0x140309147\n; > <???> @ 0x14091ca48\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:52 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14026bed0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14026bed5\npush    rsi                                                            ; +0xa, 0x14026beda\npush    rdi                                                            ; +0xb, 0x14026bedb\npush    r14                                                            ; +0xc, 0x14026bedc\nsub     rsp, 20h                                                       ; +0xe, 0x14026bede\nmov     rsi, rcx                                                       ; +0x12, 0x14026bee2\nmov     rcx, [rcx+140h]                                                ; +0x15, 0x14026bee5\ntest    rcx, rcx                                                       ; +0x1c, 0x14026beec\njnz     short loc_14026BEF8                                            ; +0x1f, 0x14026beef\nxor     eax, eax                                                       ; +0x21, 0x14026bef1\njmp     loc_14026BFE2                                                  ; +0x23, 0x14026bef3\nxor     ebx, ebx                                                       ; +0x28, 0x14026bef8\nmov     edi, ebx                                                       ; +0x2a, 0x14026befa\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2c, 0x14026befc\ntest    eax, eax                                                       ; +0x32, 0x14026bf02\njz      loc_14026BFE0                                                  ; +0x34, 0x14026bf04\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x14026bf0a\nmov     r14d, ebx                                                      ; +0x40, 0x14026bf10\nmov     edx, edi                                                       ; +0x43, 0x14026bf13\nmov     rcx, [rsi+140h]                                                ; +0x45, 0x14026bf15\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x14026bf1c\nmov     rcx, rax                                                       ; +0x52, 0x14026bf22\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x55, 0x14026bf25\nmov     ebp, eax                                                       ; +0x5b, 0x14026bf2b\nmov     rcx, cs:qword_14090BFE0                                        ; +0x5d, 0x14026bf2d\ncmp     byte ptr [rsi+1A4h], 0                                         ; +0x64, 0x14026bf34\njz      short loc_14026BF85                                            ; +0x6b, 0x14026bf3b\ntest    rcx, rcx                                                       ; +0x6d, 0x14026bf3d\njnz     short loc_14026BF74                                            ; +0x70, 0x14026bf40\nmov     ecx, 3E8h; Size                                                ; +0x72, 0x14026bf42\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x77, 0x14026bf47\nmov     [rsp+38h+arg_0], rax                                           ; +0x7c, 0x14026bf4c\nmov     rcx, rax                                                       ; +0x81, 0x14026bf51\ncall    sub_1402D6480                                                  ; +0x84, 0x14026bf54\nnop                                                                    ; +0x89, 0x14026bf59\nmov     cs:qword_14090BFE0, rax                                        ; +0x8a, 0x14026bf5a\nmov     rcx, [rax]                                                     ; +0x91, 0x14026bf61\nmov     rdx, [rcx+48h]                                                 ; +0x94, 0x14026bf64\nmov     rcx, rax                                                       ; +0x98, 0x14026bf68\ncall    rdx                                                            ; +0x9b, 0x14026bf6b\nmov     rcx, cs:qword_14090BFE0                                        ; +0x9d, 0x14026bf6d\nmov     edx, ebp                                                       ; +0xa4, 0x14026bf74\ncall    GameStatsManager__hasCompletedGauntletLevel                    ; +0xa6, 0x14026bf76\ninc     ebx                                                            ; +0xab, 0x14026bf7b\ntest    al, al                                                         ; +0xad, 0x14026bf7d\ncmovz   ebx, r14d                                                      ; +0xaf, 0x14026bf7f\njmp     short loc_14026BFC9                                            ; +0xb3, 0x14026bf83\ntest    rcx, rcx                                                       ; +0xb5, 0x14026bf85\njnz     short loc_14026BFBC                                            ; +0xb8, 0x14026bf88\nmov     ecx, 3E8h; Size                                                ; +0xba, 0x14026bf8a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbf, 0x14026bf8f\nmov     [rsp+38h+arg_8], rax                                           ; +0xc4, 0x14026bf94\nmov     rcx, rax                                                       ; +0xc9, 0x14026bf99\ncall    sub_1402D6480                                                  ; +0xcc, 0x14026bf9c\nnop                                                                    ; +0xd1, 0x14026bfa1\nmov     cs:qword_14090BFE0, rax                                        ; +0xd2, 0x14026bfa2\nmov     rcx, [rax]                                                     ; +0xd9, 0x14026bfa9\nmov     rdx, [rcx+48h]                                                 ; +0xdc, 0x14026bfac\nmov     rcx, rax                                                       ; +0xe0, 0x14026bfb0\ncall    rdx                                                            ; +0xe3, 0x14026bfb3\nmov     rcx, cs:qword_14090BFE0                                        ; +0xe5, 0x14026bfb5\nmov     edx, ebp                                                       ; +0xec, 0x14026bfbc\ncall    GameStatsManager__hasCompletedOnlineLevel                      ; +0xee, 0x14026bfbe\ntest    al, al                                                         ; +0xf3, 0x14026bfc3\njz      short loc_14026BFC9                                            ; +0xf5, 0x14026bfc5\ninc     ebx                                                            ; +0xf7, 0x14026bfc7\ninc     edi                                                            ; +0xf9, 0x14026bfc9\nmov     rcx, [rsi+140h]                                                ; +0xfb, 0x14026bfcb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x102, 0x14026bfd2\ncmp     edi, eax                                                       ; +0x108, 0x14026bfd8\njb      loc_14026BF10                                                  ; +0x10a, 0x14026bfda\nmov     eax, ebx                                                       ; +0x110, 0x14026bfe0\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x112, 0x14026bfe2\nmov     rbp, [rsp+38h+arg_18]                                          ; +0x117, 0x14026bfe7\nadd     rsp, 20h                                                       ; +0x11c, 0x14026bfec\npop     r14                                                            ; +0x120, 0x14026bff0\npop     rdi                                                            ; +0x122, 0x14026bff2\npop     rsi                                                            ; +0x123, 0x14026bff3\nretn                                                                   ; +0x124, 0x14026bff4", "xrefs": ["MapPackCell::loadFromMapPack @ 0x14014db05", "MapPackCell::loadFromMapPack @ 0x14014dd8c", "MapPackCell::loadFromMapPack @ 0x14014de0a", "GauntletSelectLayer::onPlay @ 0x1402ffbd3", "GauntletNode::generateNode @ 0x1403022b9", "GauntletNode::generateNode @ 0x14030248d", "GJAccountManager::onSyncAccountCompleted @ 0x140309147", "<???> @ 0x14091ca48"], "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"}