// // LevelBrowserLayer::setupLevelBrowser from 0x1403e5440 to 0x1403e5747 (775 bytes) // // 9 xrefs: // > LevelBrowserLayer::loadPage @ 0x1403e46df // > LevelBrowserLayer::loadLevelsFinished @ 0x1403e610b // > LevelBrowserLayer::onEnter @ 0x1403eaae2 // > LevelListLayer::init @ 0x14042ce67 // > LevelListLayer::onRefreshLevelList @ 0x14042e575 // > LevelListLayer::loadLevelsFinished @ 0x14042e9ce // > LevelListLayer::cellPerformedAction @ 0x14042edd6 // > LevelListLayer::setIDPopupClosed @ 0x14042ee8c // > @ 0x140924ee4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:43 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall LevelBrowserLayer::setupLevelBrowser(__int64 a1, cocos2d::CCObject *a2) { int v4; // ebp __int64 v5; // rax struct cocos2d::CCObject *v6; // rbx cocos2d::CCTouchDispatcher *v7; // rax __int64 v8; // rax int v9; // r14d int v10; // r15d int v11; // ebx _DWORD *v12; // rdx int v13; // eax int v14; // edx _QWORD *SearchTitle; // rax __int64 *v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 v20; // [rsp+20h] [rbp-98h] float v21[2]; // [rsp+40h] [rbp-78h] BYREF _BYTE v22[8]; // [rsp+48h] [rbp-70h] BYREF _BYTE v23[32]; // [rsp+50h] [rbp-68h] BYREF v4 = 0; if ( *(_QWORD *)(a1 + 608) ) { v5 = cocos2d::CCDirector::sharedDirector(a1); v6 = *(struct cocos2d::CCObject **)(a1 + 608); v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, v6); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 608) + 528LL))(*(_QWORD *)(a1 + 608)); *(_QWORD *)(a1 + 608) = 0; } v8 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v8, v21); v9 = 220; if ( *(int *)(a1 + 768) > 0 ) v9 = *(_DWORD *)(a1 + 768); v10 = 0; v11 = 4; v12 = *(_DWORD **)(a1 + 664); v13 = v12[80]; if ( v12[116] == 1 ) { if ( v13 == 102 ) LABEL_11: v11 = (*(_BYTE *)(a1 + 748) != 0) + 27; else LABEL_7: v11 = 25; } else { switch ( v13 ) { case 9: v11 = 13; break; case 14: v11 = 12; break; case 25: v11 = 26; goto LABEL_14; case 26: v11 = v12[113]; LABEL_14: a2 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1 + 1064LL))( a1, a2); break; case 98: v11 = 5; break; case 101: v11 = 20; break; case 102: goto LABEL_11; case 103: goto LABEL_7; default: break; } } if ( a2 ) v10 = (unsigned int)CustomListView::create(a2, a1 + 576, (float)v9, 356.0, v20, v11); v14 = *(_DWORD *)(*(_QWORD *)(a1 + 664) + 320LL); if ( v14 == 25 || v14 == 26 ) v4 = 1; SearchTitle = (_QWORD *)LevelBrowserLayer::getSearchTitle(a1, v23); if ( SearchTitle[3] > 0xFu ) SearchTitle = (_QWORD *)*SearchTitle; *(_QWORD *)(a1 + 608) = GJListLayer::create(v10, (int)SearchTitle, -12684609, 356.0, COERCE_INT((float)v9), v4); sub_14003D310((__int64)v23); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 608)); v16 = *(__int64 **)(a1 + 608); v17 = *v16; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v22, (float)(v21[0] - 356.0) * 0.5, (float)((float)((float)((float)(v21[1] - (float)v9) * 0.5) - 10.0) + 5.0) + *(float *)(a1 + 772)); return (*(__int64 (__fastcall **)(__int64 *, __int64))(v17 + 184))(v16, v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source