//
// LevelSettingsObject::getCustomSFXPathRaw from 0x467020 to 0x467090 (112 bytes)
//
// 3 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0x6b1440
// > SFXBrowser::refreshLevelIDList @ 0x6c45e4
// > SFXBrowser::setupSFXBrowser @ 0x6c678c
//
// 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:57 +0000
//
LevelSettingsObject *__fastcall LevelSettingsObject::getCustomSFXPathRaw(
LevelSettingsObject *this,
int a2,
int a3,
int a4)
{
_DWORD *v4; // r4
_DWORD *v6; // r0
_DWORD *v7; // r1
int v8; // r6
int v9; // r0
_DWORD *v10; // r6
v4 = (_DWORD *)(a2 + 456);
v6 = *(_DWORD **)(a2 + 456);
v7 = (_DWORD *)(a2 + 456);
while ( v6 )
{
v8 = v6[4];
if ( v8 < a4 || a4 >= v8 && v6[5] < a3 )
{
v10 = (_DWORD *)v6[1];
v6 = v7;
}
else
{
v10 = (_DWORD *)*v6;
}
v7 = v6;
v6 = v10;
}
if ( v7 != v4 )
{
v9 = v7[4];
if ( a4 < v9 )
{
v7 = v4;
}
else if ( v9 >= a4 && a3 < v7[5] )
{
v7 = v4;
}
}
if ( v7 == v4 )
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
}
else
{
std::string::basic_string((int *)this, (int)(v7 + 6));
}
return this;
}