//
// LevelSettingsObject::getCustomSFXPathRaw from 0x79415c to 0x794258 (252 bytes)
//
// 4 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0xb6d66c
// > SFXBrowser::refreshLevelIDList @ 0xb8f718
// > SFXBrowser::setupSFXBrowser @ 0xb93098
// > ??> @ 0x640a8
//
// 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:53:31 +0000
//
__int64 *__usercall LevelSettingsObject::getCustomSFXPathRaw@(
LevelSettingsObject *this@,
int a2@,
int a3@,
__int64 *a4@)
{
char *v4; // x5
char *v5; // x0
char *v6; // x4
int v7; // w3
int v8; // w0
__int64 v9; // x1
__int64 *v11; // [xsp+18h] [xbp+18h]
__int64 *v12; // [xsp+18h] [xbp+18h]
v4 = (char *)this + 592;
v5 = *((char **)this + 74);
if ( !v5 )
goto LABEL_18;
v6 = v4;
do
{
while ( 1 )
{
v7 = *((_DWORD *)v5 + 8);
if ( a3 > v7 || a3 >= v7 && a2 > *((_DWORD *)v5 + 9) )
break;
v6 = v5;
v5 = *(char **)v5;
if ( !v5 )
goto LABEL_7;
}
v5 = *((char **)v5 + 1);
}
while ( v5 );
LABEL_7:
if ( v4 == v6 || (v8 = *((_DWORD *)v6 + 8), a3 < v8) || a3 <= v8 && a2 < *((_DWORD *)v6 + 9) || v4 == v6 )
{
LABEL_18:
*a4 = 0;
a4[1] = 0;
a4[2] = 0;
v12 = a4;
std::string::__init(a4, &byte_11B8890, 0);
return v12;
}
*a4 = 0;
a4[1] = 0;
a4[2] = 0;
if ( (v6[40] & 1) == 0 )
{
v9 = *((_QWORD *)v6 + 6);
*a4 = *((_QWORD *)v6 + 5);
a4[1] = v9;
a4[2] = *((_QWORD *)v6 + 7);
return a4;
}
v11 = a4;
std::string::__init(a4, *((void **)v6 + 7), *((_QWORD *)v6 + 6));
return v11;
}