//
// sub_1008ED230 from 0x1008ed230 to 0x1008ed2e6 (182 bytes)
//
// 0 xrefs:
//
// 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 12:37:54 +0000
//
__int64 __fastcall sub_1008ED230(__int64 a1, int a2, unsigned __int8 a3, std::string *a4)
{
__int64 v6; // rdi
unsigned int v8; // r13d
__int64 v9; // rax
v6 = *(_QWORD *)(a1 + 144);
if ( v6 && (unsigned int)sub_1007FEF90(v6) )
{
v8 = 0;
while ( 1 )
{
v9 = sub_1007FEFE0(*(_QWORD *)(a1 + 144), v8);
if ( v9 )
{
if ( *(_DWORD *)(v9 + 316) == a2 )
return sub_1008ED2F0(a1, v9, a3, a4);
}
if ( ++v8 >= (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 144)) )
goto LABEL_8;
}
}
else
{
LABEL_8:
if ( a4 )
std::string::assign(a4, "Favorite not found.");
return 0;
}
}