{"type": "func", "start": 4300508720, "end": 4300508903, "name": "GameLevelManager::getCompletedGauntletDemons", "pseudocode": "// \n// GameLevelManager::getCompletedGauntletDemons from 0x100548e30 to 0x100548ee7 (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::getCompletedGauntletDemons(__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] == 10 && 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::getCompletedGauntletDemons from 0x100548e30 to 0x100548ee7 (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, 0x100548e30\nmov     rbp, rsp                                                       ; +0x1, 0x100548e31\npush    r15                                                            ; +0x4, 0x100548e34\npush    r14                                                            ; +0x6, 0x100548e36\npush    r13                                                            ; +0x8, 0x100548e38\npush    r12                                                            ; +0xa, 0x100548e3a\npush    rbx                                                            ; +0xc, 0x100548e3c\npush    rax                                                            ; +0xd, 0x100548e3d\nmov     rax, [rdi+3A8h]                                                ; +0xe, 0x100548e3e\nxor     ebx, ebx                                                       ; +0x15, 0x100548e45\ntest    rax, rax                                                       ; +0x17, 0x100548e47\njz      loc_100548ED6                                                  ; +0x1a, 0x100548e4a\nmov     r13, [rax+38h]                                                 ; +0x20, 0x100548e50\ntest    r13, r13                                                       ; +0x24, 0x100548e54\njz      loc_100548ED6                                                  ; +0x27, 0x100548e57\nxor     ebx, ebx                                                       ; +0x2d, 0x100548e5d\nlea     r14, _ZTIN7cocos2d8CCObjectE; `typeinfo for'cocos2d::CCObject  ; +0x2f, 0x100548e5f\nlea     r15, _ZTI11GJGameLevel; `typeinfo for'GJGameLevel              ; +0x36, 0x100548e66\njmp     short loc_100548E75                                            ; +0x3d, 0x100548e6d\nalign 10h                                                              ; +0x3f, 0x100548e6f\ntest    r13, r13                                                       ; +0x40, 0x100548e70\njz      short loc_100548ED6                                            ; +0x43, 0x100548e73\nmov     rdi, [r13+108h]; lpsrc                                         ; +0x45, 0x100548e75\nmov     r13, [r13+120h]                                                ; +0x4c, 0x100548e7c\ntest    rdi, rdi                                                       ; +0x53, 0x100548e83\njz      short loc_100548E70                                            ; +0x56, 0x100548e86\nmov     rsi, r14; lpstype                                              ; +0x58, 0x100548e88\nmov     rdx, r15; lpdtype                                              ; +0x5b, 0x100548e8b\nxor     ecx, ecx; s2d                                                  ; +0x5e, 0x100548e8e\ncall    ___dynamic_cast                                                ; +0x60, 0x100548e90\ntest    rax, rax                                                       ; +0x65, 0x100548e95\njz      short loc_100548E70                                            ; +0x68, 0x100548e98\nmov     ecx, [rax+3B4h]                                                ; +0x6a, 0x100548e9a\nsub     ecx, [rax+3B8h]                                                ; +0x70, 0x100548ea0\ncmp     ecx, 0Ah                                                       ; +0x76, 0x100548ea6\njnz     short loc_100548E70                                            ; +0x79, 0x100548ea9\nmov     ecx, [rax+35Ch]                                                ; +0x7b, 0x100548eab\nsub     ecx, [rax+358h]                                                ; +0x81, 0x100548eb1\ncmp     ecx, 64h ; 'd'                                                 ; +0x87, 0x100548eb7\njnz     short loc_100548E70                                            ; +0x8a, 0x100548eba\nmov     r12, rax                                                       ; +0x8c, 0x100548ebc\ncall    GameStatsManager__sharedState                                  ; +0x8f, 0x100548ebf\nmov     rdi, rax                                                       ; +0x94, 0x100548ec4\nmov     rsi, r12                                                       ; +0x97, 0x100548ec7\ncall    GameStatsManager__hasCompletedLevel                            ; +0x9a, 0x100548eca\nmovzx   eax, al                                                        ; +0x9f, 0x100548ecf\nadd     ebx, eax                                                       ; +0xa2, 0x100548ed2\njmp     short loc_100548E70                                            ; +0xa4, 0x100548ed4\nmov     eax, ebx                                                       ; +0xa6, 0x100548ed6\nadd     rsp, 8                                                         ; +0xa8, 0x100548ed8\npop     rbx                                                            ; +0xac, 0x100548edc\npop     r12                                                            ; +0xad, 0x100548edd\npop     r13                                                            ; +0xaf, 0x100548edf\npop     r14                                                            ; +0xb1, 0x100548ee1\npop     r15                                                            ; +0xb3, 0x100548ee3\npop     rbp                                                            ; +0xb5, 0x100548ee5\nretn                                                                   ; +0xb6, 0x100548ee6", "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"}