{"type": "func", "start": 4300602736, "end": 4300602907, "name": "GJMapPack::completedMaps", "pseudocode": "// \n// GJMapPack::completedMaps from 0x10055fd70 to 0x10055fe1b (171 bytes)\n// \n// 5 xrefs:\n// > MapPackCell::loadFromMapPack @ 0x100244cf5\n// > MapPackCell::loadFromMapPack @ 0x100244f77\n// > MapPackCell::loadFromMapPack @ 0x100244fe5\n// > GJMapPack::hasCompletedMapPack @ 0x10055fe47\n// > GauntletNode::generateNode @ 0x100574f76\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 GJMapPack::completedMaps(GJMapPack *a1)\n{\n  cocos2d::CCArray *m_levels; // rdi\n  int v3; // r14d\n  unsigned int v4; // r15d\n  bool hasCompletedGauntletLevel; // al\n  cocos2d::CCString *v6; // rax\n  int v7; // r12d\n  bool m_isGauntlet; // r13\n  GameStatsManager *v9; // rdi\n\n  m_levels = a1->m_levels;\n  v3 = 0;\n  if ( m_levels && (unsigned int)sub_100720070(m_levels) )\n  {\n    v4 = 0;\n    v3 = 0;\n    do\n    {\n      v6 = (cocos2d::CCString *)sub_1007200C0(a1->m_levels, v4);\n      v7 = cocos2d::CCString::intValue(v6);\n      m_isGauntlet = a1->m_isGauntlet;\n      v9 = GameStatsManager::sharedState();\n      if ( m_isGauntlet )\n        hasCompletedGauntletLevel = GameStatsManager::hasCompletedGauntletLevel(v9, v7);\n      else\n        hasCompletedGauntletLevel = GameStatsManager::hasCompletedOnlineLevel(v9, v7);\n      v3 += hasCompletedGauntletLevel;\n      ++v4;\n    }\n    while ( v4 < (unsigned int)sub_100720070(a1->m_levels) );\n  }\n  return v3;\n}", "assembly": "; \n; GJMapPack::completedMaps from 0x10055fd70 to 0x10055fe1b (171 bytes)\n; \n; 5 xrefs:\n; > MapPackCell::loadFromMapPack @ 0x100244cf5\n; > MapPackCell::loadFromMapPack @ 0x100244f77\n; > MapPackCell::loadFromMapPack @ 0x100244fe5\n; > GJMapPack::hasCompletedMapPack @ 0x10055fe47\n; > GauntletNode::generateNode @ 0x100574f76\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, 0x10055fd70\nmov     rbp, rsp                                                       ; +0x1, 0x10055fd71\npush    r15                                                            ; +0x4, 0x10055fd74\npush    r14                                                            ; +0x6, 0x10055fd76\npush    r13                                                            ; +0x8, 0x10055fd78\npush    r12                                                            ; +0xa, 0x10055fd7a\npush    rbx                                                            ; +0xc, 0x10055fd7c\npush    rax                                                            ; +0xd, 0x10055fd7d\nmov     rbx, rdi                                                       ; +0xe, 0x10055fd7e\nmov     rdi, [rdi+140h]                                                ; +0x11, 0x10055fd81\nxor     r14d, r14d                                                     ; +0x18, 0x10055fd88\ntest    rdi, rdi                                                       ; +0x1b, 0x10055fd8b\njz      short loc_10055FE09                                            ; +0x1e, 0x10055fd8e\ncall    sub_100720070                                                  ; +0x20, 0x10055fd90\ntest    eax, eax                                                       ; +0x25, 0x10055fd95\njz      short loc_10055FE09                                            ; +0x27, 0x10055fd97\nxor     r15d, r15d                                                     ; +0x29, 0x10055fd99\nxor     r14d, r14d                                                     ; +0x2c, 0x10055fd9c\njmp     short loc_10055FDCF                                            ; +0x2f, 0x10055fd9f\nalign 10h                                                              ; +0x31, 0x10055fda1\ncall    GameStatsManager__hasCompletedOnlineLevel                      ; +0x40, 0x10055fdb0\nmovzx   eax, al                                                        ; +0x45, 0x10055fdb5\nadd     r14d, eax                                                      ; +0x48, 0x10055fdb8\ninc     r15d                                                           ; +0x4b, 0x10055fdbb\nmov     rdi, [rbx+140h]                                                ; +0x4e, 0x10055fdbe\ncall    sub_100720070                                                  ; +0x55, 0x10055fdc5\ncmp     r15d, eax                                                      ; +0x5a, 0x10055fdca\njnb     short loc_10055FE09                                            ; +0x5d, 0x10055fdcd\nmov     rdi, [rbx+140h]                                                ; +0x5f, 0x10055fdcf\nmov     esi, r15d                                                      ; +0x66, 0x10055fdd6\ncall    sub_1007200C0                                                  ; +0x69, 0x10055fdd9\nmov     rdi, rax                                                       ; +0x6e, 0x10055fdde\ncall    cocos2d__CCString__intValue                                    ; +0x71, 0x10055fde1\nmov     r12d, eax                                                      ; +0x76, 0x10055fde6\nmovzx   r13d, byte ptr [rbx+194h]                                      ; +0x79, 0x10055fde9\ncall    GameStatsManager__sharedState                                  ; +0x81, 0x10055fdf1\nmov     rdi, rax                                                       ; +0x86, 0x10055fdf6\nmov     esi, r12d                                                      ; +0x89, 0x10055fdf9\ncmp     r13b, 1                                                        ; +0x8c, 0x10055fdfc\njnz     short loc_10055FDB0                                            ; +0x90, 0x10055fe00\ncall    GameStatsManager__hasCompletedGauntletLevel                    ; +0x92, 0x10055fe02\njmp     short loc_10055FDB5                                            ; +0x97, 0x10055fe07\nmov     eax, r14d                                                      ; +0x99, 0x10055fe09\nadd     rsp, 8                                                         ; +0x9c, 0x10055fe0c\npop     rbx                                                            ; +0xa0, 0x10055fe10\npop     r12                                                            ; +0xa1, 0x10055fe11\npop     r13                                                            ; +0xa3, 0x10055fe13\npop     r14                                                            ; +0xa5, 0x10055fe15\npop     r15                                                            ; +0xa7, 0x10055fe17\npop     rbp                                                            ; +0xa9, 0x10055fe19\nretn                                                                   ; +0xaa, 0x10055fe1a", "xrefs": ["MapPackCell::loadFromMapPack @ 0x100244cf5", "MapPackCell::loadFromMapPack @ 0x100244f77", "MapPackCell::loadFromMapPack @ 0x100244fe5", "GJMapPack::hasCompletedMapPack @ 0x10055fe47", "GauntletNode::generateNode @ 0x100574f76"], "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"}