{"type": "func", "start": 5371657792, "end": 5371657929, "name": "LevelBrowserLayer::show", "pseudocode": "// \n// LevelBrowserLayer::show from 0x1402cfe40 to 0x1402cfec9 (137 bytes)\n// \n// 6 xrefs:\n// > LevelInfoLayer::onAddToList @ 0x1402f99d1\n// > SetupSmartBlockLayer::onSelectTemplate @ 0x140458a64\n// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x14045980d\n// > SetupSmartTemplateLayer::onBack @ 0x140459c09\n// > SetupSmartTemplateLayer::keyBackClicked @ 0x140459d10\n// > <???> @ 0x1406d2e7c\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\nvoid LevelBrowserLayer::show(LevelBrowserLayer *a1)\n{\n  cocos2d::CCScene *m_scene; // rbx\n  int v3; // eax\n\n  m_scene = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 264);\n  if ( a1->m_scene )\n  {\n    m_scene = a1->m_scene;\n  }\n  else\n  {\n    if ( cocos2d::CCScene::getHighestChildZ(m_scene) + 1 >= 105 )\n      v3 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;\n    else\n      v3 = 105;\n    a1->m_zOffset = v3;\n  }\n  if ( !a1->m_zOffset )\n    a1->m_zOffset = 105;\n  ((void (__fastcall *)(cocos2d::CCScene *, LevelBrowserLayer *))m_scene->addChild_0)(m_scene, a1);\n}", "assembly": "; \n; LevelBrowserLayer::show from 0x1402cfe40 to 0x1402cfec9 (137 bytes)\n; \n; 6 xrefs:\n; > LevelInfoLayer::onAddToList @ 0x1402f99d1\n; > SetupSmartBlockLayer::onSelectTemplate @ 0x140458a64\n; > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x14045980d\n; > SetupSmartTemplateLayer::onBack @ 0x140459c09\n; > SetupSmartTemplateLayer::keyBackClicked @ 0x140459d10\n; > <???> @ 0x1406d2e7c\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, 0x1402cfe40\npush    rdi                                                            ; +0x5, 0x1402cfe45\nsub     rsp, 20h                                                       ; +0x6, 0x1402cfe46\nmov     rdi, rcx                                                       ; +0xa, 0x1402cfe4a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1402cfe4d\nmov     rbx, [rax+108h]                                                ; +0x13, 0x1402cfe53\nmov     rax, [rdi+2F0h]                                                ; +0x1a, 0x1402cfe5a\ntest    rax, rax                                                       ; +0x21, 0x1402cfe61\njz      short loc_1402CFE6B                                            ; +0x24, 0x1402cfe64\nmov     rbx, rax                                                       ; +0x26, 0x1402cfe66\njmp     short loc_1402CFE93                                            ; +0x29, 0x1402cfe69\nmov     rcx, rbx                                                       ; +0x2b, 0x1402cfe6b\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x2e, 0x1402cfe6e\ninc     eax                                                            ; +0x34, 0x1402cfe74\ncmp     eax, 69h ; 'i'                                                 ; +0x36, 0x1402cfe76\njge     short loc_1402CFE82                                            ; +0x39, 0x1402cfe79\nmov     eax, 69h ; 'i'                                                 ; +0x3b, 0x1402cfe7b\njmp     short loc_1402CFE8D                                            ; +0x40, 0x1402cfe80\nmov     rcx, rbx                                                       ; +0x42, 0x1402cfe82\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x45, 0x1402cfe85\ninc     eax                                                            ; +0x4b, 0x1402cfe8b\nmov     [rdi+2F8h], eax                                                ; +0x4d, 0x1402cfe8d\nmov     r8d, [rdi+2F8h]                                                ; +0x53, 0x1402cfe93\ntest    r8d, r8d                                                       ; +0x5a, 0x1402cfe9a\njnz     short loc_1402CFEAF                                            ; +0x5d, 0x1402cfe9d\nmov     dword ptr [rdi+2F8h], 69h ; 'i'                                ; +0x5f, 0x1402cfe9f\nmov     r8d, 69h ; 'i'                                                 ; +0x69, 0x1402cfea9\nmov     rax, [rbx]                                                     ; +0x6f, 0x1402cfeaf\nmov     rdx, rdi                                                       ; +0x72, 0x1402cfeb2\nmov     rcx, rbx                                                       ; +0x75, 0x1402cfeb5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x78, 0x1402cfeb8\nadd     rsp, 20h                                                       ; +0x7d, 0x1402cfebd\npop     rdi                                                            ; +0x81, 0x1402cfec1\njmp     qword ptr [rax+1B8h]                                           ; +0x82, 0x1402cfec2", "xrefs": ["LevelInfoLayer::onAddToList @ 0x1402f99d1", "SetupSmartBlockLayer::onSelectTemplate @ 0x140458a64", "SetupSmartTemplateLayer::FLAlert_Clicked @ 0x14045980d", "SetupSmartTemplateLayer::onBack @ 0x140459c09", "SetupSmartTemplateLayer::keyBackClicked @ 0x140459d10", "<???> @ 0x1406d2e7c"], "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"}