//
// TXT_DB_get_by_index from 0x839240 to 0x839298 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x6683c
//
// 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
//
int __fastcall TXT_DB_get_by_index(_DWORD *a1, int a2, int a3)
{
int result; // r0
_DWORD *v5; // r4
if ( *a1 <= a2 )
{
a1[4] = 3;
return 0;
}
else
{
result = *(_DWORD *)(a1[2] + 4 * a2);
if ( result )
{
v5 = a1;
result = OPENSSL_LH_retrieve(result, a3);
v5[4] = 0;
}
else
{
a1[4] = 4;
}
}
return result;
}