{"type": "func", "start": 5370041008, "end": 5370041108, "name": "GameLevelManager::getLocalLevelList", "pseudocode": "// \n// GameLevelManager::getLocalLevelList from 0x1401452b0 to 0x140145314 (100 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::handleIt @ 0x140143d3c\n// > GameLevelManager::handleIt @ 0x140143d55\n// > <???> @ 0x1406ca560\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\nGJLevelList *GameLevelManager::getLocalLevelList(GameLevelManager *a1, int a2)\n{\n  unsigned int v3; // ebx\n  cocos2d::CCArray *m_localLists; // rdi\n  GJLevelList *result; // rax\n\n  v3 = 0;\n  m_localLists = LocalLevelManager::sharedState()->m_localLists;\n  if ( !cocos2d::CCArray::count(m_localLists) )\n    return nullptr;\n  while ( 1 )\n  {\n    result = (GJLevelList *)cocos2d::CCArray::objectAtIndex(m_localLists, v3);\n    if ( result->m_M_ID == a2 )\n      break;\n    if ( ++v3 >= cocos2d::CCArray::count(m_localLists) )\n      return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getLocalLevelList from 0x1401452b0 to 0x140145314 (100 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::handleIt @ 0x140143d3c\n; > GameLevelManager::handleIt @ 0x140143d55\n; > <???> @ 0x1406ca560\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401452b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1401452b5\npush    rdi                                                            ; +0xa, 0x1401452ba\nsub     rsp, 20h                                                       ; +0xb, 0x1401452bb\nmov     esi, edx                                                       ; +0xf, 0x1401452bf\ncall    LocalLevelManager__sharedState                                 ; +0x11, 0x1401452c1\nxor     ebx, ebx                                                       ; +0x16, 0x1401452c6\nmov     rdi, [rax+170h]                                                ; +0x18, 0x1401452c8\nmov     rcx, rdi                                                       ; +0x1f, 0x1401452cf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x1401452d2\ntest    eax, eax                                                       ; +0x28, 0x1401452d8\njz      short loc_140145302                                            ; +0x2a, 0x1401452da\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x1401452dc\nmov     edx, ebx                                                       ; +0x30, 0x1401452e0\nmov     rcx, rdi                                                       ; +0x32, 0x1401452e2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x35, 0x1401452e5\ncmp     [rax+244h], esi                                                ; +0x3b, 0x1401452eb\njz      short loc_140145304                                            ; +0x41, 0x1401452f1\nmov     rcx, rdi                                                       ; +0x43, 0x1401452f3\ninc     ebx                                                            ; +0x46, 0x1401452f6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x48, 0x1401452f8\ncmp     ebx, eax                                                       ; +0x4e, 0x1401452fe\njb      short loc_1401452E0                                            ; +0x50, 0x140145300\nxor     eax, eax                                                       ; +0x52, 0x140145302\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x54, 0x140145304\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x59, 0x140145309\nadd     rsp, 20h                                                       ; +0x5e, 0x14014530e\npop     rdi                                                            ; +0x62, 0x140145312\nretn                                                                   ; +0x63, 0x140145313", "xrefs": ["GameLevelManager::handleIt @ 0x140143d3c", "GameLevelManager::handleIt @ 0x140143d55", "<???> @ 0x1406ca560"], "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"}