//
// SFXInfoObject::getLowerCaseName from 0x100598dc0 to 0x100598e6c (172 bytes)
//
// 1 xrefs:
// > SFXSearchResult::updateObjects @ 0x10059afd3
//
// 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
//
_QWORD *__fastcall SFXInfoObject::getLowerCaseName(_QWORD *a1, __int64 a2, double a3)
{
__int64 v3; // rsi
unsigned int v4; // eax
__int64 v5; // r14
__int64 v6; // r12
char *v7; // rax
char v8; // al
char *v9; // rcx
if ( (*(_BYTE *)(a2 + 80) & 1) == 0 )
{
v3 = a2 + 80;
a1[2] = *(_QWORD *)(v3 + 16);
*(_OWORD *)a1 = *(_OWORD *)v3;
v4 = *(unsigned __int8 *)a1;
if ( (v4 & 1) == 0 )
goto LABEL_3;
LABEL_6:
v5 = (unsigned int)a1[1];
if ( !(unsigned int)a1[1] )
return a1;
goto LABEL_7;
}
sub_100006B70(a1, *(const void **)(a2 + 96), *(_QWORD *)(a2 + 88), a3);
v4 = *(unsigned __int8 *)a1;
if ( (v4 & 1) != 0 )
goto LABEL_6;
LABEL_3:
v5 = v4 >> 1;
if ( !(v4 >> 1) )
return a1;
LABEL_7:
v6 = 0;
do
{
v7 = (char *)a1 + 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v7 = (char *)a1[2];
v8 = __tolower(v7[v6]);
v9 = (char *)a1 + 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v9 = (char *)a1[2];
v9[v6++] = v8;
}
while ( v5 != v6 );
return a1;
}