//
// TXT_DB_get_by_index from 0xa4de40 to 0xa4de98 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x802bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:08:21 +0000
//
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;
}