//
// SFXInfoObject::getLowerCaseName from 0x82e184 to 0x82e2a0 (284 bytes)
//
// 2 xrefs:
// > SFXSearchResult::updateObjects @ 0x832764
// > ??> @ 0x9c000
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 *__usercall SFXInfoObject::getLowerCaseName@(SFXInfoObject *this@, __int64 *a2@)
{
__int64 v3; // x0
unsigned int v4; // w22
__int64 v5; // x20
_BYTE *v6; // x19
unsigned __int8 *v7; // x0
_BYTE *v8; // x19
sub_D18D28(a2);
v3 = *a2;
v4 = *(_QWORD *)(*a2 - 24);
if ( v4 )
{
v5 = 0;
while ( 1 )
{
if ( (*(_DWORD *)(v3 - 8) & 0x80000000) != 0 )
{
v8 = (_BYTE *)(v3 + v5++);
*v8 = tolower((unsigned __int8)*v8);
if ( v4 <= (unsigned int)v5 )
return a2;
}
else
{
sub_D176A8(a2);
v6 = (_BYTE *)(*a2 + v5);
if ( (*(_DWORD *)(*a2 - 8) & 0x80000000) == 0 )
sub_D176A8(a2);
v7 = (unsigned __int8 *)(*a2 + v5++);
*v6 = tolower(*v7);
if ( v4 <= (unsigned int)v5 )
return a2;
}
v3 = *a2;
}
}
return a2;
}