//
// TXT_DB_get_by_index from 0xde11b0 to 0xde1214 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0xac518
//
// 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 TXT_DB_get_by_index(__int64 a1, int a2, __int64 a3)
{
__int64 result; // x0
if ( *(_DWORD *)a1 <= a2 )
{
*(_QWORD *)(a1 + 32) = 3;
return 0;
}
else
{
result = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * a2);
if ( result )
{
result = OPENSSL_LH_retrieve(result, a3);
*(_QWORD *)(a1 + 32) = 0;
}
else
{
*(_QWORD *)(a1 + 32) = 4;
}
}
return result;
}