//
// EditorSFXSettingsPopup::getValue from 0x14018d730 to 0x14018d806 (214 bytes)
//
// 4 xrefs:
// > ??> @ 0x14074c070
// > ??> @ 0x14089f178
// > ??> @ 0x14089f188
// > ??> @ 0x14091916c
//
// This function is hookable on this platform (idp: pc, 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 11:27:41 +0000
//
__int64 __fastcall EditorSFXSettingsPopup::getValue(__int64 a1, int a2)
{
unsigned int v2; // ebx
_QWORD *v3; // rax
__int64 v4; // rcx
__int64 v5; // r9
unsigned __int64 v6; // r8
__int64 result; // rax
__int64 v8; // rcx
if ( a2 != 9001 )
return SetupTriggerPopup::getValue();
v2 = *(_DWORD *)(a1 + 1000);
v3 = (_QWORD *)EditorSFXManager::sharedState();
v4 = v3[19];
v5 = v3[17];
v6 = 2
* (v3[22]
& (0x100000001B3LL
* (((unsigned __int64)v2 >> 24)
^ (0x100000001B3LL
* (BYTE2(v2)
^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v2))))))));
result = *(_QWORD *)(v4
+ 16
* (v3[22]
& (0x100000001B3LL
* (((unsigned __int64)v2 >> 24)
^ (0x100000001B3LL
* (BYTE2(v2)
^ (0x100000001B3LL
* ((0x100000001B3LL * ((unsigned __int8)v2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v2))))))))
+ 8);
if ( result != v5 )
{
v8 = *(_QWORD *)(v4 + 8 * v6);
if ( v2 == *(_DWORD *)(result + 16) )
goto LABEL_8;
while ( result != v8 )
{
result = *(_QWORD *)(result + 8);
if ( v2 == *(_DWORD *)(result + 16) )
goto LABEL_8;
}
}
result = 0;
LABEL_8:
if ( !result )
return v5;
return result;
}