{"type": "func", "start": 5372819008, "end": 5372819145, "name": "LevelBrowserLayer::show", "pseudocode": "// \n// LevelBrowserLayer::show from 0x1403eb640 to 0x1403eb6c9 (137 bytes)\n// \n// 6 xrefs:\n// > LevelInfoLayer::onAddToList @ 0x14041e841\n// > SetupSmartBlockLayer::onSelectTemplate @ 0x1405ee3f4\n// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1405ef230\n// > SetupSmartTemplateLayer::onBack @ 0x1405ef669\n// > SetupSmartTemplateLayer::keyBackClicked @ 0x1405ef770\n// > <???> @ 0x1409251f0\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:31:45 +0000\n// \n\n__int64 __fastcall LevelBrowserLayer::show(__int64 a1)\n{\n  cocos2d::CCScene *v2; // rbx\n  int v3; // eax\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);\n  if ( *(_QWORD *)(a1 + 752) )\n  {\n    v2 = *(cocos2d::CCScene **)(a1 + 752);\n  }\n  else\n  {\n    if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 105 )\n      v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;\n    else\n      v3 = 105;\n    *(_DWORD *)(a1 + 760) = v3;\n  }\n  if ( !*(_DWORD *)(a1 + 760) )\n    *(_DWORD *)(a1 + 760) = 105;\n  return (*(__int64 (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);\n}", "assembly": "; \n; LevelBrowserLayer::show from 0x1403eb640 to 0x1403eb6c9 (137 bytes)\n; \n; 6 xrefs:\n; > LevelInfoLayer::onAddToList @ 0x14041e841\n; > SetupSmartBlockLayer::onSelectTemplate @ 0x1405ee3f4\n; > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1405ef230\n; > SetupSmartTemplateLayer::onBack @ 0x1405ef669\n; > SetupSmartTemplateLayer::keyBackClicked @ 0x1405ef770\n; > <???> @ 0x1409251f0\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:31:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403eb640\npush    rdi                                                            ; +0x5, 0x1403eb645\nsub     rsp, 20h                                                       ; +0x6, 0x1403eb646\nmov     rdi, rcx                                                       ; +0xa, 0x1403eb64a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1403eb64d\nmov     rbx, [rax+110h]                                                ; +0x13, 0x1403eb653\nmov     rax, [rdi+2F0h]                                                ; +0x1a, 0x1403eb65a\ntest    rax, rax                                                       ; +0x21, 0x1403eb661\njz      short loc_1403EB66B                                            ; +0x24, 0x1403eb664\nmov     rbx, rax                                                       ; +0x26, 0x1403eb666\njmp     short loc_1403EB693                                            ; +0x29, 0x1403eb669\nmov     rcx, rbx                                                       ; +0x2b, 0x1403eb66b\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x2e, 0x1403eb66e\ninc     eax                                                            ; +0x34, 0x1403eb674\ncmp     eax, 69h ; 'i'                                                 ; +0x36, 0x1403eb676\njge     short loc_1403EB682                                            ; +0x39, 0x1403eb679\nmov     eax, 69h ; 'i'                                                 ; +0x3b, 0x1403eb67b\njmp     short loc_1403EB68D                                            ; +0x40, 0x1403eb680\nmov     rcx, rbx                                                       ; +0x42, 0x1403eb682\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x45, 0x1403eb685\ninc     eax                                                            ; +0x4b, 0x1403eb68b\nmov     [rdi+2F8h], eax                                                ; +0x4d, 0x1403eb68d\nmov     r8d, [rdi+2F8h]                                                ; +0x53, 0x1403eb693\ntest    r8d, r8d                                                       ; +0x5a, 0x1403eb69a\njnz     short loc_1403EB6AF                                            ; +0x5d, 0x1403eb69d\nmov     dword ptr [rdi+2F8h], 69h ; 'i'                                ; +0x5f, 0x1403eb69f\nmov     r8d, 69h ; 'i'                                                 ; +0x69, 0x1403eb6a9\nmov     rax, [rbx]                                                     ; +0x6f, 0x1403eb6af\nmov     rdx, rdi                                                       ; +0x72, 0x1403eb6b2\nmov     rcx, rbx                                                       ; +0x75, 0x1403eb6b5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x78, 0x1403eb6b8\nadd     rsp, 20h                                                       ; +0x7d, 0x1403eb6bd\npop     rdi                                                            ; +0x81, 0x1403eb6c1\njmp     qword ptr [rax+1C8h]                                           ; +0x82, 0x1403eb6c2", "xrefs": ["LevelInfoLayer::onAddToList @ 0x14041e841", "SetupSmartBlockLayer::onSelectTemplate @ 0x1405ee3f4", "SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1405ef230", "SetupSmartTemplateLayer::onBack @ 0x1405ef669", "SetupSmartTemplateLayer::keyBackClicked @ 0x1405ef770", "<???> @ 0x1409251f0"], "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"}