//
// sub_1006588D0 from 0x1006588d0 to 0x100658941 (113 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009866e0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1006588D0(__int64 a1, int a2, int a3)
{
__int64 v5; // rdi
const char *v6; // rsi
__int64 result; // rax
if ( *(_DWORD *)(a1 + 8) == a2 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 40) + 328LL))(*(_QWORD *)(a1 + 40), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 64) + 328LL))(*(_QWORD *)(a1 + 64), 1);
v5 = *(_QWORD *)(a1 + 16);
v6 = "Something went wrong";
if ( a3 == -2 )
v6 = "Nothing found";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v5 + 912LL))(v5, v6);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 16) + 328LL))(*(_QWORD *)(a1 + 16), 1);
}
return result;
}