{"type": "func", "start": 5372779808, "end": 5372780351, "name": "LevelBrowserLayer::dLevelBrowserLayer", "pseudocode": "// \n// LevelBrowserLayer::dLevelBrowserLayer from 0x1403e1d20 to 0x1403e1f3f (543 bytes)\n// \n// 5 xrefs:\n// > sub_1403E1CE0 @ 0x1403e1cef\n// > sub_14042AB40 @ 0x14042ad2a\n// > sub_1406B547D @ 0x1406b5484\n// > <???> @ 0x1408c9d1c\n// > <???> @ 0x140924e9c\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:41 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::dLevelBrowserLayer(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  cocos2d::CCNotificationCenter *v5; // rax\n  __int64 v6; // rcx\n  cocos2d::CCNotificationCenter *v7; // rax\n  cocos2d::CCObject *v8; // rcx\n  cocos2d::CCObject *v9; // rcx\n  cocos2d::CCObject *v10; // rcx\n  cocos2d::CCObject *v11; // rcx\n  __int64 v12; // rax\n  void *v13; // rax\n  __int64 v14; // rax\n  void *v15; // rax\n\n  *(_QWORD *)a1 = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 320) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 328) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 336) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 344) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 352) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 408) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 432) = &LevelBrowserLayer::`vftable';\n  v2 = a1 + 544;\n  *(_QWORD *)(a1 + 544) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 552) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 560) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 568) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 576) = &LevelBrowserLayer::`vftable';\n  *(_QWORD *)(a1 + 584) = &LevelBrowserLayer::`vftable';\n  if ( *(_BYTE *)(a1 + 748) )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (struct cocos2d::CCObject *)a1);\n  }\n  v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(a1);\n  cocos2d::CCNotificationCenter::removeObserver(v5, (struct cocos2d::CCObject *)a1, \"LevelSelectionChangedNotification\");\n  v7 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v6);\n  cocos2d::CCNotificationCenter::removeObserver(v7, (struct cocos2d::CCObject *)a1, \"LevelsImportedNotification\");\n  v8 = *(cocos2d::CCObject **)(a1 + 656);\n  if ( v8 )\n    cocos2d::CCObject::release(v8);\n  v9 = *(cocos2d::CCObject **)(a1 + 736);\n  if ( v9 )\n    cocos2d::CCObject::release(v9);\n  v10 = *(cocos2d::CCObject **)(a1 + 664);\n  if ( v10 )\n    cocos2d::CCObject::release(v10);\n  v11 = *(cocos2d::CCObject **)(a1 + 832);\n  if ( v11 )\n    cocos2d::CCObject::release(v11);\n  if ( !*(_BYTE *)(a1 + 748) )\n  {\n    v12 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v13 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v12 = qword_14090BFD0;\n    }\n    *(_DWORD *)(v12 + 740) = 7;\n  }\n  v14 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v15 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v15);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v14 = *(_QWORD *)&qword_14090BFB0;\n  }\n  if ( *(_QWORD *)(v14 + 1352) == v2 )\n    *(_QWORD *)(v14 + 1352) = 0;\n  cocos2d::CCLayerColor::~CCLayerColor((cocos2d::CCLayerColor *)a1);\n}", "assembly": "; \n; LevelBrowserLayer::dLevelBrowserLayer from 0x1403e1d20 to 0x1403e1f3f (543 bytes)\n; \n; 5 xrefs:\n; > sub_1403E1CE0 @ 0x1403e1cef\n; > sub_14042AB40 @ 0x14042ad2a\n; > sub_1406B547D @ 0x1406b5484\n; > <???> @ 0x1408c9d1c\n; > <???> @ 0x140924e9c\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:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403e1d20\npush    rdi                                                            ; +0x5, 0x1403e1d25\nsub     rsp, 20h                                                       ; +0x6, 0x1403e1d26\nmov     rbx, rcx                                                       ; +0xa, 0x1403e1d2a\nlea     rax, ??_7LevelBrowserLayer@@6B@; const LevelBrowserLayer::`vftable' ; +0xd, 0x1403e1d2d\nmov     [rcx], rax                                                     ; +0x14, 0x1403e1d34\nlea     rax, ??_7LevelBrowserLayer@@6B@_0; const LevelBrowserLayer::`vftable' ; +0x17, 0x1403e1d37\nmov     [rcx+140h], rax                                                ; +0x1e, 0x1403e1d3e\nlea     rax, ??_7LevelBrowserLayer@@6B@_1; const LevelBrowserLayer::`vftable' ; +0x25, 0x1403e1d45\nmov     [rcx+148h], rax                                                ; +0x2c, 0x1403e1d4c\nlea     rax, ??_7LevelBrowserLayer@@6B@_2; const LevelBrowserLayer::`vftable' ; +0x33, 0x1403e1d53\nmov     [rcx+150h], rax                                                ; +0x3a, 0x1403e1d5a\nlea     rax, ??_7LevelBrowserLayer@@6B@_3; const LevelBrowserLayer::`vftable' ; +0x41, 0x1403e1d61\nmov     [rcx+158h], rax                                                ; +0x48, 0x1403e1d68\nlea     rax, ??_7LevelBrowserLayer@@6B@_4; const LevelBrowserLayer::`vftable' ; +0x4f, 0x1403e1d6f\nmov     [rcx+160h], rax                                                ; +0x56, 0x1403e1d76\nlea     rax, ??_7LevelBrowserLayer@@6B@_5; const LevelBrowserLayer::`vftable' ; +0x5d, 0x1403e1d7d\nmov     [rcx+198h], rax                                                ; +0x64, 0x1403e1d84\nlea     rax, ??_7LevelBrowserLayer@@6B@_6; const LevelBrowserLayer::`vftable' ; +0x6b, 0x1403e1d8b\nmov     [rcx+1B0h], rax                                                ; +0x72, 0x1403e1d92\nlea     rdi, [rcx+220h]                                                ; +0x79, 0x1403e1d99\nlea     rax, ??_7LevelBrowserLayer@@6B@_7; const LevelBrowserLayer::`vftable' ; +0x80, 0x1403e1da0\nmov     [rdi], rax                                                     ; +0x87, 0x1403e1da7\nlea     rax, ??_7LevelBrowserLayer@@6B@_8; const LevelBrowserLayer::`vftable' ; +0x8a, 0x1403e1daa\nmov     [rcx+228h], rax                                                ; +0x91, 0x1403e1db1\nlea     rax, ??_7LevelBrowserLayer@@6B@_9; const LevelBrowserLayer::`vftable' ; +0x98, 0x1403e1db8\nmov     [rcx+230h], rax                                                ; +0x9f, 0x1403e1dbf\nlea     rax, ??_7LevelBrowserLayer@@6B@_10; const LevelBrowserLayer::`vftable' ; +0xa6, 0x1403e1dc6\nmov     [rcx+238h], rax                                                ; +0xad, 0x1403e1dcd\nlea     rax, ??_7LevelBrowserLayer@@6B@_11; const LevelBrowserLayer::`vftable' ; +0xb4, 0x1403e1dd4\nmov     [rcx+240h], rax                                                ; +0xbb, 0x1403e1ddb\nlea     rax, ??_7LevelBrowserLayer@@6B@_12; const LevelBrowserLayer::`vftable' ; +0xc2, 0x1403e1de2\nmov     [rcx+248h], rax                                                ; +0xc9, 0x1403e1de9\ncmp     byte ptr [rcx+2ECh], 0                                         ; +0xd0, 0x1403e1df0\njz      short loc_1403E1E1A                                            ; +0xd7, 0x1403e1df7\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd9, 0x1403e1df9\nmov     rcx, [rax]                                                     ; +0xdf, 0x1403e1dff\nmov     rdx, [rcx+90h]                                                 ; +0xe2, 0x1403e1e02\nmov     rcx, rax                                                       ; +0xe9, 0x1403e1e09\ncall    rdx                                                            ; +0xec, 0x1403e1e0c\nmov     rcx, rax                                                       ; +0xee, 0x1403e1e0e\nmov     rdx, rbx                                                       ; +0xf1, 0x1403e1e11\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0xf4, 0x1403e1e14\ncall    cs:?sharedNotificationCenter@CCNotificationCenter@cocos2d@@SAPEAV12@XZ; cocos2d::CCNotificationCenter::sharedNotificationCenter(void) ; +0xfa, 0x1403e1e1a\nmov     rcx, rax                                                       ; +0x100, 0x1403e1e20\nlea     r8, aLevelselection; \"LevelSelectionChangedNotification\"       ; +0x103, 0x1403e1e23\nmov     rdx, rbx                                                       ; +0x10a, 0x1403e1e2a\ncall    cs:?removeObserver@CCNotificationCenter@cocos2d@@QEAAXPEAVCCObject@2@PEBD@Z; cocos2d::CCNotificationCenter::removeObserver(cocos2d::CCObject *,char const *) ; +0x10d, 0x1403e1e2d\ncall    cs:?sharedNotificationCenter@CCNotificationCenter@cocos2d@@SAPEAV12@XZ; cocos2d::CCNotificationCenter::sharedNotificationCenter(void) ; +0x113, 0x1403e1e33\nmov     rcx, rax                                                       ; +0x119, 0x1403e1e39\nlea     r8, aLevelsimported; \"LevelsImportedNotification\"              ; +0x11c, 0x1403e1e3c\nmov     rdx, rbx                                                       ; +0x123, 0x1403e1e43\ncall    cs:?removeObserver@CCNotificationCenter@cocos2d@@QEAAXPEAVCCObject@2@PEBD@Z; cocos2d::CCNotificationCenter::removeObserver(cocos2d::CCObject *,char const *) ; +0x126, 0x1403e1e46\nmov     rcx, [rbx+290h]                                                ; +0x12c, 0x1403e1e4c\ntest    rcx, rcx                                                       ; +0x133, 0x1403e1e53\njz      short loc_1403E1E5E                                            ; +0x136, 0x1403e1e56\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x138, 0x1403e1e58\nmov     rcx, [rbx+2E0h]                                                ; +0x13e, 0x1403e1e5e\ntest    rcx, rcx                                                       ; +0x145, 0x1403e1e65\njz      short loc_1403E1E70                                            ; +0x148, 0x1403e1e68\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x14a, 0x1403e1e6a\nmov     rcx, [rbx+298h]                                                ; +0x150, 0x1403e1e70\ntest    rcx, rcx                                                       ; +0x157, 0x1403e1e77\njz      short loc_1403E1E82                                            ; +0x15a, 0x1403e1e7a\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x15c, 0x1403e1e7c\nmov     rcx, [rbx+340h]                                                ; +0x162, 0x1403e1e82\ntest    rcx, rcx                                                       ; +0x169, 0x1403e1e89\njz      short loc_1403E1E94                                            ; +0x16c, 0x1403e1e8c\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x16e, 0x1403e1e8e\ncmp     byte ptr [rbx+2ECh], 0                                         ; +0x174, 0x1403e1e94\njnz     short loc_1403E1EDF                                            ; +0x17b, 0x1403e1e9b\nmov     rax, cs:qword_14090BFD0                                        ; +0x17d, 0x1403e1e9d\ntest    rax, rax                                                       ; +0x184, 0x1403e1ea4\njnz     short loc_1403E1ED5                                            ; +0x187, 0x1403e1ea7\nmov     ecx, 6E8h; Size                                                ; +0x189, 0x1403e1ea9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18e, 0x1403e1eae\nmov     rcx, rax                                                       ; +0x193, 0x1403e1eb3\ncall    GameManager__GameManager                                       ; +0x196, 0x1403e1eb6\nmov     cs:qword_14090BFD0, rax                                        ; +0x19b, 0x1403e1ebb\nmov     rcx, [rax]                                                     ; +0x1a2, 0x1403e1ec2\nmov     rdx, [rcx+48h]                                                 ; +0x1a5, 0x1403e1ec5\nmov     rcx, rax                                                       ; +0x1a9, 0x1403e1ec9\ncall    rdx                                                            ; +0x1ac, 0x1403e1ecc\nmov     rax, cs:qword_14090BFD0                                        ; +0x1ae, 0x1403e1ece\nmov     dword ptr [rax+2E4h], 7                                        ; +0x1b5, 0x1403e1ed5\nmov     rax, cs:qword_14090BFB0                                        ; +0x1bf, 0x1403e1edf\ntest    rax, rax                                                       ; +0x1c6, 0x1403e1ee6\njnz     short loc_1403E1F17                                            ; +0x1c9, 0x1403e1ee9\nmov     ecx, 690h; Size                                                ; +0x1cb, 0x1403e1eeb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1d0, 0x1403e1ef0\nmov     rcx, rax                                                       ; +0x1d5, 0x1403e1ef5\ncall    GameLevelManager__GameLevelManager                             ; +0x1d8, 0x1403e1ef8\nmov     cs:qword_14090BFB0, rax                                        ; +0x1dd, 0x1403e1efd\nmov     rcx, [rax]                                                     ; +0x1e4, 0x1403e1f04\nmov     rdx, [rcx+48h]                                                 ; +0x1e7, 0x1403e1f07\nmov     rcx, rax                                                       ; +0x1eb, 0x1403e1f0b\ncall    rdx                                                            ; +0x1ee, 0x1403e1f0e\nmov     rax, cs:qword_14090BFB0                                        ; +0x1f0, 0x1403e1f10\ncmp     [rax+548h], rdi                                                ; +0x1f7, 0x1403e1f17\njnz     short loc_1403E1F2B                                            ; +0x1fe, 0x1403e1f1e\nmov     qword ptr [rax+548h], 0                                        ; +0x200, 0x1403e1f20\nmov     rcx, rbx                                                       ; +0x20b, 0x1403e1f2b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x20e, 0x1403e1f2e\nadd     rsp, 20h                                                       ; +0x213, 0x1403e1f33\npop     rdi                                                            ; +0x217, 0x1403e1f37\njmp     cs:__imp_??1CCLayerColor@cocos2d@@UEAA@XZ; cocos2d::CCLayerColor::~CCLayerColor(void) ; +0x218, 0x1403e1f38", "xrefs": ["sub_1403E1CE0 @ 0x1403e1cef", "sub_14042AB40 @ 0x14042ad2a", "sub_1406B547D @ 0x1406b5484", "<???> @ 0x1408c9d1c", "<???> @ 0x140924e9c"], "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"}