// // LevelSettingsObject::findIDByName from 0x468f0c to 0x468ff6 (234 bytes) // // 2 xrefs: // > IDNameBrowserPopup::updateConflictLabel @ 0x78fc62 // > IDNameBrowserPopup::onFormAdd @ 0x793544 // // 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:48:58 +0000 // int __fastcall LevelSettingsObject::findIDByName(LevelSettingsObject *a1, int a2, unsigned int a3) { unsigned int v5; // r2 _DWORD *v6; // r4 int v7; // r6 int v8; // lr size_t v9; // r2 int v10; // r3 char *v11; // r0 unsigned __int8 *v12; // r1 _BOOL4 v13; // r9 char *v15; // r0 unsigned __int8 *v16; // r2 int v17; // t1 int v18[3]; // [sp+4h] [bp+0h] BYREF int v19[3]; // [sp+10h] [bp+Ch] BYREF GameToolbox::lowercaseASCII(v18, a2); v6 = (_DWORD *)LevelSettingsObject::getIDNames(a1, a3, v5)[2]; v7 = 0; while ( v6 ) { if ( v7 <= 0 || v6[2] <= v7 ) { GameToolbox::lowercaseASCII(v19, (int)(v6 + 3)); v8 = v19[0] & 1; if ( v8 ) v9 = v19[1]; else v9 = (int)LOBYTE(v19[0]) >> 1; if ( (v18[0] & 1) != 0 ) v10 = v18[1]; else v10 = (int)LOBYTE(v18[0]) >> 1; if ( v9 == v10 ) { if ( v8 ) { v11 = (char *)v19[2]; if ( (v18[0] & 1) != 0 ) goto LABEL_14; v12 = (unsigned __int8 *)v18 + 1; LABEL_15: v13 = std::char_traits::compare(v11, v12, v9) == 0; } else { v11 = (char *)v19 + 1; if ( (v18[0] & 1) != 0 ) { LABEL_14: v12 = (unsigned __int8 *)v18[2]; if ( v8 ) goto LABEL_15; } else { v12 = (unsigned __int8 *)v18 + 1; } v15 = v11 - 1; v16 = &v12[v9]; while ( v12 != v16 ) { v17 = (unsigned __int8)*++v15; if ( v17 != *v12 ) goto LABEL_28; ++v12; } v13 = 1; } } else { LABEL_28: v13 = 0; } std::string::~string((int)v19); if ( v13 ) v7 = v6[2]; } v6 = (_DWORD *)*v6; } std::string::~string((int)v18); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source