//
// SXNET_get_id_INTEGER from 0xe020bc to 0xe02138 (124 bytes)
//
// 4 xrefs:
// > SXNET_add_id_INTEGER @ 0xe02194
// > SXNET_get_id_asc @ 0xe024f0
// > SXNET_get_id_ulong @ 0xe02568
// > ??> @ 0x41040
//
// 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 SXNET_get_id_INTEGER(__int64 a1, __int64 a2)
{
int v4; // w19
_QWORD *v5; // x21
bool v6; // cc
int v7; // w1
v4 = 0;
do
{
v6 = v4 < (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 8));
v7 = v4++;
if ( !v6 )
return 0;
v5 = (_QWORD *)OPENSSL_sk_value(*(_QWORD *)(a1 + 8), v7);
}
while ( (unsigned int)ASN1_INTEGER_cmp(*v5, a2) );
return v5[1];
}