//
// EditorSFXManager::getCustomSFXRawPath from 0x77d600 to 0x77d66e (110 bytes)
//
// 3 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0x6b147a
// > SFXBrowser::setupSFXBrowser @ 0x6c67c6
// > EditorSFXActionConfigLayer::refreshRows @ 0x77c11a
//
// 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:59:24 +0000
//
EditorSFXManager *__fastcall EditorSFXManager::getCustomSFXRawPath(EditorSFXManager *this, int a2, int a3, int a4)
{
_DWORD *v5; // r0
_DWORD *v6; // r1
_DWORD *v7; // t1
_DWORD *v8; // r4
int v9; // r6
int v10; // r0
_DWORD *v11; // r6
v7 = *(_DWORD **)(a2 + 64);
v6 = (_DWORD *)(a2 + 64);
v5 = v7;
v8 = v6;
while ( v5 )
{
v9 = v5[4];
if ( v9 < a4 || a4 >= v9 && v5[5] < a3 )
{
v11 = (_DWORD *)v5[1];
v5 = v8;
}
else
{
v11 = (_DWORD *)*v5;
}
v8 = v5;
v5 = v11;
}
if ( v8 != v6 )
{
v10 = v8[4];
if ( a4 < v10 )
{
v8 = v6;
}
else if ( v10 >= a4 && a3 < v8[5] )
{
v8 = v6;
}
}
if ( v8 == v6 )
{
*(_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)(v8 + 6));
}
return this;
}