{"type": "func", "start": 4300508912, "end": 4300509095, "name": "GameLevelManager::getCompletedGauntletLevels", "pseudocode": "// \n// GameLevelManager::getCompletedGauntletLevels from 0x100548ef0 to 0x100548fa7 (183 bytes)\n// \n// 0 xrefs:\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:00 +0000\n// \n\n__int64 __fastcall GameLevelManager::getCompletedGauntletLevels(__int64 a1)\n{\n  __int64 v1; // rax\n  unsigned int v2; // ebx\n  __int64 v3; // r13\n  const void *v4; // rdi\n  _DWORD *v5; // rax\n  __int64 v6; // r12\n  __int64 v7; // rax\n\n  v1 = *(_QWORD *)(a1 + 936);\n  v2 = 0;\n  if ( v1 )\n  {\n    v3 = *(_QWORD *)(v1 + 56);\n    if ( v3 )\n    {\n      v2 = 0;\n      do\n      {\n        v4 = *(const void **)(v3 + 264);\n        v3 = *(_QWORD *)(v3 + 288);\n        if ( v4 )\n        {\n          v5 = __dynamic_cast(\n                 v4,\n                 (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,\n                 (const struct __class_type_info *)&`typeinfo for'GJGameLevel,\n                 0);\n          if ( v5 )\n          {\n            if ( v5[237] - v5[238] <= 9 && v5[215] - v5[214] == 100 )\n            {\n              v6 = (__int64)v5;\n              v7 = GameStatsManager::sharedState();\n              v2 += GameStatsManager::hasCompletedLevel(v7, v6);\n            }\n          }\n        }\n      }\n      while ( v3 );\n    }\n  }\n  return v2;\n}", "assembly": "; \n; GameLevelManager::getCompletedGauntletLevels from 0x100548ef0 to 0x100548fa7 (183 bytes)\n; \n; 0 xrefs:\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:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x100548ef0\nmov     rbp, rsp                                                       ; +0x1, 0x100548ef1\npush    r15                                                            ; +0x4, 0x100548ef4\npush    r14                                                            ; +0x6, 0x100548ef6\npush    r13                                                            ; +0x8, 0x100548ef8\npush    r12                                                            ; +0xa, 0x100548efa\npush    rbx                                                            ; +0xc, 0x100548efc\npush    rax                                                            ; +0xd, 0x100548efd\nmov     rax, [rdi+3A8h]                                                ; +0xe, 0x100548efe\nxor     ebx, ebx                                                       ; +0x15, 0x100548f05\ntest    rax, rax                                                       ; +0x17, 0x100548f07\njz      loc_100548F96                                                  ; +0x1a, 0x100548f0a\nmov     r13, [rax+38h]                                                 ; +0x20, 0x100548f10\ntest    r13, r13                                                       ; +0x24, 0x100548f14\njz      loc_100548F96                                                  ; +0x27, 0x100548f17\nxor     ebx, ebx                                                       ; +0x2d, 0x100548f1d\nlea     r14, _ZTIN7cocos2d8CCObjectE; `typeinfo for'cocos2d::CCObject  ; +0x2f, 0x100548f1f\nlea     r15, _ZTI11GJGameLevel; `typeinfo for'GJGameLevel              ; +0x36, 0x100548f26\njmp     short loc_100548F35                                            ; +0x3d, 0x100548f2d\nalign 10h                                                              ; +0x3f, 0x100548f2f\ntest    r13, r13                                                       ; +0x40, 0x100548f30\njz      short loc_100548F96                                            ; +0x43, 0x100548f33\nmov     rdi, [r13+108h]; lpsrc                                         ; +0x45, 0x100548f35\nmov     r13, [r13+120h]                                                ; +0x4c, 0x100548f3c\ntest    rdi, rdi                                                       ; +0x53, 0x100548f43\njz      short loc_100548F30                                            ; +0x56, 0x100548f46\nmov     rsi, r14; lpstype                                              ; +0x58, 0x100548f48\nmov     rdx, r15; lpdtype                                              ; +0x5b, 0x100548f4b\nxor     ecx, ecx; s2d                                                  ; +0x5e, 0x100548f4e\ncall    ___dynamic_cast                                                ; +0x60, 0x100548f50\ntest    rax, rax                                                       ; +0x65, 0x100548f55\njz      short loc_100548F30                                            ; +0x68, 0x100548f58\nmov     ecx, [rax+3B4h]                                                ; +0x6a, 0x100548f5a\nsub     ecx, [rax+3B8h]                                                ; +0x70, 0x100548f60\ncmp     ecx, 9                                                         ; +0x76, 0x100548f66\njg      short loc_100548F30                                            ; +0x79, 0x100548f69\nmov     ecx, [rax+35Ch]                                                ; +0x7b, 0x100548f6b\nsub     ecx, [rax+358h]                                                ; +0x81, 0x100548f71\ncmp     ecx, 64h ; 'd'                                                 ; +0x87, 0x100548f77\njnz     short loc_100548F30                                            ; +0x8a, 0x100548f7a\nmov     r12, rax                                                       ; +0x8c, 0x100548f7c\ncall    GameStatsManager__sharedState                                  ; +0x8f, 0x100548f7f\nmov     rdi, rax                                                       ; +0x94, 0x100548f84\nmov     rsi, r12                                                       ; +0x97, 0x100548f87\ncall    GameStatsManager__hasCompletedLevel                            ; +0x9a, 0x100548f8a\nmovzx   eax, al                                                        ; +0x9f, 0x100548f8f\nadd     ebx, eax                                                       ; +0xa2, 0x100548f92\njmp     short loc_100548F30                                            ; +0xa4, 0x100548f94\nmov     eax, ebx                                                       ; +0xa6, 0x100548f96\nadd     rsp, 8                                                         ; +0xa8, 0x100548f98\npop     rbx                                                            ; +0xac, 0x100548f9c\npop     r12                                                            ; +0xad, 0x100548f9d\npop     r13                                                            ; +0xaf, 0x100548f9f\npop     r14                                                            ; +0xb1, 0x100548fa1\npop     r15                                                            ; +0xb3, 0x100548fa3\npop     rbp                                                            ; +0xb5, 0x100548fa5\nretn                                                                   ; +0xb6, 0x100548fa6", "xrefs": [], "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"}