//
// TXT_DB_get_by_index from 0x105f4f0 to 0x105f554 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0xe1bc8
//
// This function is hookable on this platform (idp: arm, 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 13:16:50 +0000
//
__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;
}