{"type": "func", "start": 5370923712, "end": 5370923812, "name": "GameLevelManager::getLocalLevelList", "pseudocode": "// \n// GameLevelManager::getLocalLevelList from 0x14021cac0 to 0x14021cb24 (100 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a700\n// > GameLevelManager::handleIt @ 0x14021a715\n// > <???> @ 0x14091ba70\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:23 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall GameLevelManager::getLocalLevelList(__int64 a1, int a2)\n{\n  unsigned int v3; // ebx\n  cocos2d::CCArray *v4; // rdi\n  struct cocos2d::CCObject *result; // rax\n\n  v3 = 0;\n  v4 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState(a1) + 376);\n  if ( !cocos2d::CCArray::count(v4) )\n    return nullptr;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::objectAtIndex(v4, v3);\n    if ( *((_DWORD *)result + 147) == a2 )\n      break;\n    if ( ++v3 >= cocos2d::CCArray::count(v4) )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getLocalLevelList from 0x14021cac0 to 0x14021cb24 (100 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a700\n; > GameLevelManager::handleIt @ 0x14021a715\n; > <???> @ 0x14091ba70\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:23 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14021cac0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14021cac5\npush    rdi                                                            ; +0xa, 0x14021caca\nsub     rsp, 20h                                                       ; +0xb, 0x14021cacb\nmov     esi, edx                                                       ; +0xf, 0x14021cacf\ncall    LocalLevelManager__sharedState                                 ; +0x11, 0x14021cad1\nxor     ebx, ebx                                                       ; +0x16, 0x14021cad6\nmov     rdi, [rax+178h]                                                ; +0x18, 0x14021cad8\nmov     rcx, rdi                                                       ; +0x1f, 0x14021cadf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x14021cae2\ntest    eax, eax                                                       ; +0x28, 0x14021cae8\njz      short loc_14021CB12                                            ; +0x2a, 0x14021caea\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x14021caec\nmov     edx, ebx                                                       ; +0x30, 0x14021caf0\nmov     rcx, rdi                                                       ; +0x32, 0x14021caf2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x35, 0x14021caf5\ncmp     [rax+24Ch], esi                                                ; +0x3b, 0x14021cafb\njz      short loc_14021CB14                                            ; +0x41, 0x14021cb01\nmov     rcx, rdi                                                       ; +0x43, 0x14021cb03\ninc     ebx                                                            ; +0x46, 0x14021cb06\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x48, 0x14021cb08\ncmp     ebx, eax                                                       ; +0x4e, 0x14021cb0e\njb      short loc_14021CAF0                                            ; +0x50, 0x14021cb10\nxor     eax, eax                                                       ; +0x52, 0x14021cb12\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x54, 0x14021cb14\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x59, 0x14021cb19\nadd     rsp, 20h                                                       ; +0x5e, 0x14021cb1e\npop     rdi                                                            ; +0x62, 0x14021cb22\nretn                                                                   ; +0x63, 0x14021cb23", "xrefs": ["GameLevelManager::handleIt @ 0x14021a700", "GameLevelManager::handleIt @ 0x14021a715", "<???> @ 0x14091ba70"], "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"}