// // LevelBrowserLayer::getSearchTitle from 0x7f7c5c to 0x7f8414 (1976 bytes) // // 2 xrefs: // > LevelBrowserLayer::setupLevelBrowser @ 0x7f8520 // > @ 0x66be0 // // This function is hookable on this platform (idp: arm, 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 12:54:39 +0000 // __int64 *__usercall LevelBrowserLayer::getSearchTitle@(LevelBrowserLayer *this@, __int64 *a2@) { __int64 v3; // x3 __int64 v5; // x0 int v6; // w1 char v7; // w1 __int64 v8; // x2 __int64 v9; // x0 __int64 v10; // x1 int v11; // w23 __int64 v12; // x2 GameLevelManager *v13; // x0 GameLevelManager *v15; // x0 cocos2d::CCString *v16; // x0 size_t v17; // x0 __int64 v18; // x0 char v19; // w1 char *v20; // x22 char v21; // w1 __int64 v22; // x2 __int64 v23; // x4 __int64 v24; // x5 __int64 v25; // x0 int v26; // w1 const char *v27; // x20 GameLevelManager *v28; // x1 char *v29; // x2 cocos2d::CCString *v30; // x0 char *v31; // x0 int v32; // w0 GameLevelManager *v33; // x22 __int64 v34; // x0 __int64 SavedMapPack; // x0 char v36; // w1 __int64 v37; // x2 __int64 v38; // x0 __int64 v39; // x1 char *v40; // x1 unsigned __int64 v41; // x0 __int64 v42; // x0 GameLevelManager *v43; // x0 GameLevelManager *v44; // x0 GameLevelManager *v45; // x0 GameLevelManager *v46; // x0 char *v47; // x1 cocos2d::CCString *v48; // x0 char *v49; // x0 __int64 v50; // x0 GameLevelManager *v51; // x24 GameLevelManager *v52; // x0 int v53; // w1 char *v54; // x26 int v55; // w25 char *v56; // x0 GameLevelManager *v57; // x2 size_t v58; // x2 unsigned __int64 v59; // x0 unsigned __int64 v60; // x0 char *CString; // [xsp+58h] [xbp+58h] __int64 v62; // [xsp+68h] [xbp+68h] BYREF __int64 v63; // [xsp+70h] [xbp+70h] char *v64; // [xsp+78h] [xbp+78h] __int64 v65; // [xsp+80h] [xbp+80h] BYREF __int64 v66; // [xsp+88h] [xbp+88h] void *v67; // [xsp+90h] [xbp+90h] __int64 v68[3]; // [xsp+98h] [xbp+98h] BYREF __int64 v69[2]; // [xsp+B0h] [xbp+B0h] BYREF char *v70; // [xsp+C0h] [xbp+C0h] __int64 v71; // [xsp+C8h] [xbp+C8h] BYREF __int64 v72; // [xsp+D0h] [xbp+D0h] void *v73; // [xsp+D8h] [xbp+D8h] __int64 v74; // [xsp+E0h] [xbp+E0h] BYREF GameLevelManager *v75; // [xsp+E8h] [xbp+E8h] void *v76; // [xsp+F0h] [xbp+F0h] __int64 v77; // [xsp+F8h] [xbp+F8h] a2[1] = 0; v3 = _stack_chk_guard; a2[2] = 0; *a2 = 0; v77 = v3; std::string::__init(a2, "Online Levels", 0xDu); v5 = *((_QWORD *)this + 83); if ( !v5 ) return a2; v6 = *(_DWORD *)(v5 + 316); if ( (unsigned int)(v6 - 102) <= 1 || (unsigned int)(v6 - 98) <= 2 ) { switch ( v6 ) { case 'c': std::string::assign(a2, "Saved Levels"); break; case 'd': std::string::assign(a2, "Favorite Levels"); break; case 'f': std::string::assign(a2, "My Lists"); break; case 'g': std::string::assign(a2, "Favorite Lists"); break; default: std::string::assign(a2, "My Levels"); break; } v5 = *((_QWORD *)this + 83); if ( *(int *)(v5 + 420) <= 0 ) { LABEL_5: v7 = *(_BYTE *)(v5 + 320); v62 = 0; v8 = v5 + 320; v63 = 0; v64 = nullptr; if ( (v7 & 1) == 0 ) goto LABEL_6; LABEL_25: std::string::__init(&v62, *(void **)(v8 + 16), *(_QWORD *)(v8 + 8)); if ( (v62 & 1) == 0 ) goto LABEL_7; LABEL_26: v20 = v64; v11 = atoi(v64); operator delete(v20); v12 = *((_QWORD *)this + 83); v13 = (GameLevelManager *)(unsigned int)(*(_DWORD *)(v12 + 316) - 5); if ( (unsigned int)v13 > 0x60 ) goto LABEL_27; goto LABEL_8; } v15 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v5); GameLevelManager::getFolderName( v15, *(_DWORD *)(*((_QWORD *)this + 83) + 420LL), *(_DWORD *)(*((_QWORD *)this + 83) + 316LL) == 98); if ( (v74 & 1) != 0 ) { if ( v75 ) { v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)" (%i: %s)", (const char *)*(unsigned int *)(*((_QWORD *)this + 83) + 420LL), v76); goto LABEL_21; } } else if ( (int)(unsigned __int8)v74 >> 1 ) { v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)" (%i: %s)", (const char *)*(unsigned int *)(*((_QWORD *)this + 83) + 420LL), (char *)&v74 + 1); goto LABEL_21; } v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)" (%i)", (const char *)*(unsigned int *)(*((_QWORD *)this + 83) + 420LL)); LABEL_21: CString = (char *)cocos2d::CCString::getCString(v16); v17 = strlen(CString); std::string::append((__int64)a2, CString, v17); if ( (v74 & 1) != 0 ) operator delete(v76); goto LABEL_23; } if ( *(_DWORD *)(v5 + 432) != 1 ) goto LABEL_5; std::string::assign(a2, "Online Lists"); LABEL_23: v18 = *((_QWORD *)this + 83); if ( !v18 ) return a2; v19 = *(_BYTE *)(v18 + 320); v62 = 0; v8 = v18 + 320; v63 = 0; v64 = nullptr; if ( (v19 & 1) != 0 ) goto LABEL_25; LABEL_6: v9 = *(_QWORD *)v8; v10 = *(_QWORD *)(v8 + 8); v64 = *(char **)(v8 + 16); v62 = v9; v63 = v10; if ( (v9 & 1) != 0 ) goto LABEL_26; LABEL_7: v11 = atoi((const char *)&v62 + 1); v12 = *((_QWORD *)this + 83); v13 = (GameLevelManager *)(unsigned int)(*(_DWORD *)(v12 + 316) - 5); LABEL_8: switch ( (int)v13 ) { case 0: v41 = *(unsigned int *)(v12 + 432); if ( (_DWORD)v41 == 1 ) { v50 = GJAccountManager::sharedState((GJAccountManager *)v41); v41 = (unsigned int)(*(_DWORD *)(v50 + 352) - *(_DWORD *)(v50 + 356)); if ( v11 == (_DWORD)v41 ) { std::string::assign(a2, "My Online Lists"); v12 = *((_QWORD *)this + 83); goto LABEL_27; } } v42 = GameManager::sharedState((GameManager *)v41); v43 = (GameLevelManager *)(unsigned int)(*(_DWORD *)(v42 + 660) - *(_DWORD *)(v42 + 664)); if ( v11 == (_DWORD)v43 ) { std::string::assign(a2, "My Online Levels"); v12 = *((_QWORD *)this + 83); goto LABEL_27; } v44 = (GameLevelManager *)GameLevelManager::sharedState(v43); GameLevelManager::userNameForUserID(&v74, v44, v11); if ( (v74 & 1) == 0 ) { v45 = (GameLevelManager *)((int)(unsigned __int8)v74 >> 1); if ( (int)v45 > 1 ) goto LABEL_73; LABEL_85: v51 = (GameLevelManager *)GameLevelManager::sharedState(v45); v52 = (GameLevelManager *)GameLevelManager::sharedState(v51); v53 = GameLevelManager::accountIDForUserID(v52, v11); GameLevelManager::tryGetUsername(v68, v51, v53); if ( (v74 & 1) != 0 ) { *(_BYTE *)v76 = 0; v75 = nullptr; if ( (v74 & 1) != 0 ) { v54 = (char *)v76; v55 = 1; v56 = (char *)&v74 + 1; goto LABEL_88; } v59 = (unsigned __int8)v74 >> 1; if ( v59 > 0x16 ) { v60 = (v59 + 16) & 0xFFFFFFFFFFFFFFF0LL; if ( v60 != 23 ) { v56 = (char *)operator new(v60); v55 = v74 & 1; if ( (v74 & 1) == 0 ) { v54 = (char *)&v74 + 1; v57 = (GameLevelManager *)((unsigned __int8)v74 >> 1); goto LABEL_89; } v54 = (char *)v76; LABEL_88: v57 = v75; LABEL_89: v58 = (size_t)v57 + 1; if ( v58 ) memcpy(v56, v54, v58); if ( v55 ) operator delete(v54); } } } v75 = (GameLevelManager *)v68[1]; v74 = v68[0]; v76 = (void *)v68[2]; if ( (v68[0] & 1) != 0 ) { v45 = v75; goto LABEL_63; } v45 = (GameLevelManager *)((int)LOBYTE(v68[0]) >> 1); LABEL_73: if ( (int)v45 <= 2 ) goto LABEL_47; goto LABEL_74; } v45 = v75; if ( (unsigned __int64)v75 <= 1 ) goto LABEL_85; LABEL_63: if ( (unsigned __int64)v45 <= 2 ) { LABEL_64: operator delete(v76); v12 = *((_QWORD *)this + 83); goto LABEL_27; } LABEL_74: v46 = (GameLevelManager *)GameLevelManager::sharedState(v45); GameLevelManager::userNameForUserID(v69, v46, v11); v47 = (char *)v69 + 1; if ( (v69[0] & 1) != 0 ) v47 = v70; v48 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%ss Levels", v47); v49 = (char *)cocos2d::CCString::getCString(v48); std::string::assign(a2, v49); if ( (v69[0] & 1) != 0 ) operator delete(v70); if ( (v74 & 1) != 0 ) goto LABEL_64; v12 = *((_QWORD *)this + 83); LABEL_27: v21 = *(_BYTE *)(v12 + 320); v71 = 0; v22 = v12 + 320; v72 = 0; v73 = nullptr; if ( (v21 & 1) != 0 ) { std::string::__init(&v71, *(void **)(v22 + 16), *(_QWORD *)(v22 + 8)); } else { v23 = *(_QWORD *)v22; v24 = *(_QWORD *)(v22 + 8); v73 = *(void **)(v22 + 16); v71 = v23; v72 = v24; } if ( (v71 & 1) != 0 ) { if ( !v72 || (v32 = *(_DWORD *)(*((_QWORD *)this + 83) + 316LL), (unsigned int)(v32 - 102) > 1) && (unsigned int)(v32 - 98) > 2 ) { operator delete(v73); return a2; } operator delete(v73); v25 = *((_QWORD *)this + 83); } else { if ( !((int)(unsigned __int8)v71 >> 1) ) return a2; v25 = *((_QWORD *)this + 83); v26 = *(_DWORD *)(v25 + 316); if ( (unsigned int)(v26 - 102) > 1 && (unsigned int)(v26 - 98) > 2 ) return a2; } v27 = (char *)a2 + 1; if ( (*(_BYTE *)a2 & 1) != 0 ) v27 = (const char *)a2[2]; v74 = 0; v75 = nullptr; v76 = nullptr; if ( (*(_BYTE *)(v25 + 320) & 1) != 0 ) { std::string::__init(&v74, *(void **)(v25 + 336), *(_QWORD *)(v25 + 328)); } else { v28 = *(GameLevelManager **)(v25 + 328); v74 = *(_QWORD *)(v25 + 320); v75 = v28; v76 = *(void **)(v25 + 336); } v29 = (char *)&v74 + 1; if ( (v74 & 1) != 0 ) v29 = (char *)v76; v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s (%s)", v27, v29); v31 = (char *)cocos2d::CCString::getCString(v30); std::string::assign(a2, v31); if ( (v74 & 1) != 0 ) operator delete(v76); return a2; case 1: case 11: case 12: case 16: case 17: case 18: case 20: case 21: case 23: case 24: case 27: case 28: case 29: std::string::assign(a2, &byte_11E1A70); v12 = *((_QWORD *)this + 83); goto LABEL_27; case 4: std::string::assign(a2, "Map Packs"); v12 = *((_QWORD *)this + 83); goto LABEL_27; case 5: v33 = (GameLevelManager *)GameLevelManager::sharedState(v13); v34 = GameLevelManager::sharedState(v33); SavedMapPack = GameLevelManager::getSavedMapPack(v33, *(_DWORD *)(v34 + 1484)); if ( !SavedMapPack ) goto LABEL_47; v36 = *(_BYTE *)(SavedMapPack + 344); v65 = 0; v37 = SavedMapPack + 344; v66 = 0; v67 = nullptr; if ( (v36 & 1) != 0 ) { std::string::__init(&v65, *(void **)(SavedMapPack + 360), *(_QWORD *)(SavedMapPack + 352)); } else { v38 = *(_QWORD *)v37; v39 = *(_QWORD *)(v37 + 8); v67 = *(void **)(v37 + 16); v65 = v38; v66 = v39; } v40 = (char *)&v65 + 1; if ( (v65 & 1) != 0 ) v40 = (char *)v67; std::string::assign(a2, v40); if ( (v65 & 1) == 0 ) goto LABEL_47; operator delete(v67); v12 = *((_QWORD *)this + 83); goto LABEL_27; case 9: std::string::assign(a2, "Find Users"); v12 = *((_QWORD *)this + 83); goto LABEL_27; case 26: std::string::assign(a2, "Hyped"); v12 = *((_QWORD *)this + 83); goto LABEL_27; case 96: std::string::assign(a2, "Smart Templates"); LABEL_47: v12 = *((_QWORD *)this + 83); goto LABEL_27; default: goto LABEL_27; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source