// // IDNameBrowserPopup::rebuildList from 0x792078 to 0x7923b0 (824 bytes) // // 5 xrefs: // > IDNameBrowserPopup::init @ 0x7930d4 // > IDNameBrowserPopup::textChanged @ 0x793342 // > IDNameBrowserPopup::onDeleteRow @ 0x7933f6 // > IDNameBrowserPopup::onToggleSort @ 0x793454 // > IDNameBrowserPopup::onFormAdd @ 0x7935c2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:42 +0000 // void __fastcall IDNameBrowserPopup::rebuildList(IDNameBrowserPopup *this) { GameManager *v2; // r5 GameManager *v3; // r0 GameManager *v4; // r0 GameManager *v5; // r0 int v6; // r2 int v7; // r0 unsigned int v8; // r2 int *IDNames; // r0 int v10; // r1 int *v11; // r6 int v12; // r0 int v13; // r1 char *v14; // r2 int i; // r5 int v16; // r3 const char *v17; // r1 unsigned __int8 *v18; // r0 int v19; // r3 unsigned __int8 *v20; // r1 int v21; // r2 char *v22; // lr unsigned __int8 *v23; // r12 char *v24; // r3 int v25; // r9 unsigned __int8 *v26; // r8 char *v27; // r9 _BOOL4 v28; // r8 int v29; // r1 int v30; // r2 _DWORD *v31; // r3 _DWORD *v32; // r3 int v33; // r1 int v34; // r2 int v35; // r3 int v36; // r0 int v37; // r0 int *v38; // r1 int v39; // r0 char *v40; // r1 const char *v41; // r1 int v42; // r2 int v43; // t1 char v44[4]; // [sp+18h] [bp-74h] BYREF _BYTE *v45; // [sp+1Ch] [bp-70h] BYREF int v46; // [sp+20h] [bp-6Ch] BYREF int v47; // [sp+24h] [bp-68h] char *v48; // [sp+28h] [bp-64h] int v49; // [sp+2Ch] [bp-60h] BYREF int v50; // [sp+30h] [bp-5Ch] char *v51; // [sp+34h] [bp-58h] int v52; // [sp+38h] [bp-54h] BYREF int v53; // [sp+3Ch] [bp-50h] unsigned __int8 *v54; // [sp+40h] [bp-4Ch] int v55[3]; // [sp+44h] [bp-48h] BYREF int v56; // [sp+50h] [bp-3Ch] BYREF int v57; // [sp+54h] [bp-38h] BYREF int v58; // [sp+58h] [bp-34h] int v59; // [sp+5Ch] [bp-30h] _BYTE v60[20]; // [sp+60h] [bp-2Ch] BYREF char v61[16]; // [sp+74h] [bp-18h] BYREF if ( !*((_DWORD *)this + 135) ) return; v2 = *((GameManager **)this + 143); while ( 1 ) { v3 = *((GameManager **)this + 144); if ( v2 == v3 ) break; *((_DWORD *)this + 144) = (char *)v3 - 16; std::string::~string((int)v3 - 12); } v4 = (GameManager *)GameManager::sharedState(v3); if ( !*((_DWORD *)v4 + 102) || (v5 = (GameManager *)GameManager::sharedState(v4), !*(_DWORD *)(*((_DWORD *)v5 + 102) + 2084)) ) { (*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 136) + 464))( *((_DWORD *)this + 136), "No level"); ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 135), 0.0, v6); return; } v7 = GameManager::sharedState(v5); IDNames = LevelSettingsObject::getIDNames( *(LevelSettingsObject **)(*(_DWORD *)(v7 + 408) + 2084), *((_DWORD *)this + 132), v8); v10 = *((_DWORD *)this + 134); v46 = 0; v47 = 0; v48 = nullptr; v11 = IDNames; if ( v10 ) { CCTextInputNode::getString((CCTextInputNode *)&v49, v10); LOWORD(v46) = 0; std::string::reserve(&v46, 0); v12 = v49; v13 = v50; v14 = v51; v49 = 0; v50 = 0; v51 = nullptr; v46 = v12; v47 = v13; v48 = v14; std::string::~string((int)&v49); } GameToolbox::lowercaseASCII(&v52, (int)&v46); for ( i = v11[2]; i; i = *(_DWORD *)i ) { if ( (v52 & 1) != 0 ) v16 = v53; else v16 = (int)(unsigned __int8)v52 >> 1; if ( v16 ) { sub_993B88(v61, 16, "%d", *(_DWORD *)(i + 8)); v17 = (v46 & 1) != 0 ? v48 : (char *)&v46 + 1; if ( !strstr(v61, v17) ) { GameToolbox::lowercaseASCII(v55, i + 12); if ( (v55[0] & 1) != 0 ) { v18 = (unsigned __int8 *)v55[2]; v19 = v55[1]; } else { v19 = (int)LOBYTE(v55[0]) >> 1; v18 = (unsigned __int8 *)v55 + 1; } if ( (v52 & 1) != 0 ) { v20 = v54; v21 = v53; } else { v21 = (int)(unsigned __int8)v52 >> 1; v20 = (unsigned __int8 *)&v52 + 1; } if ( v19 < (unsigned int)v21 ) goto LABEL_61; if ( v21 ) { v22 = (char *)&v18[v19]; if ( v19 >= v21 ) { v23 = v18; LABEL_28: while ( 1 ) { v24 = (char *)v23; if ( v23 == (unsigned __int8 *)&v22[1 - v21] ) break; v25 = *v23++; if ( v25 == *v20 ) { v26 = v20; v27 = v24; while ( ++v26 != &v20[v21] ) { v43 = (unsigned __int8)*++v27; if ( v43 != *v26 ) goto LABEL_28; } goto LABEL_32; } } } v24 = v22; LABEL_32: if ( v24 != v22 ) { v28 = v24 - (char *)v18 != -1; goto LABEL_34; } LABEL_61: v28 = 0; } else { v28 = 1; } LABEL_34: std::string::~string((int)v55); if ( !v28 ) continue; } } v56 = *(_DWORD *)(i + 8); v57 = 0; v58 = 0; v59 = 0; if ( (*(_BYTE *)(i + 12) & 1) != 0 ) { std::string::__init(&v57, *(const void **)(i + 20), *(_DWORD *)(i + 16)); } else { v29 = *(_DWORD *)(i + 16); v30 = *(_DWORD *)(i + 20); v57 = *(_DWORD *)(i + 12); v58 = v29; v59 = v30; } v31 = *((_DWORD **)this + 144); if ( (unsigned int)v31 >= *((_DWORD *)this + 145) ) { std::vector>::__push_back_slow_path>( (void **)this + 143, &v56); } else { if ( v31 ) { *v31 = v56; v32 = v31 + 1; v33 = v58; v34 = v59; *v32 = v57; v32[1] = v33; v32[2] = v34; v57 = 0; v58 = 0; v59 = 0; } *((_DWORD *)this + 144) += 16; } std::string::~string((int)&v57); } v35 = *((_DWORD *)this + 140); if ( v35 == 2 ) { v36 = *((_DWORD *)this + 143); v44[0] = 0; sub_7903B4(v36, *((char **)this + 144), (int)v44); } else if ( v35 == 1 ) { v37 = *((_DWORD *)this + 143); v38 = *((int **)this + 144); v60[0] = 0; std::__sort,std::pair> &,std::pair*>( v37, v38, (int)v60); } else { IDNameInput::useRank((IDNameInput *)v60, *((_DWORD *)this + 132)); v39 = *((_DWORD *)this + 143); v40 = *((char **)this + 144); v45 = v60; sub_790990(v39, v40, &v45); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v60); } if ( *((_DWORD *)this + 143) == *((_DWORD *)this + 144) ) { if ( v11[3] ) v41 = "No matches for search."; else v41 = "No names yet. Add one below."; } else { v41 = (const char *)&unk_B6B226; } (*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 136) + 464))(*((_DWORD *)this + 136), v41); ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 135), 0.0, v42); std::string::~string((int)&v52); std::string::~string((int)&v46); }
GD Web Decomp Icon

GD Web Decomp

Raw Source