//
// sub_E2F878 from 0xe2f878 to 0xe2f8dc (100 bytes)
//
// 1 xrefs:
// > sub_E30ACC @ 0xe30acc
//
// 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:09:54 +0000
//
__int64 __fastcall sub_E2F878(__int64 a1, int a2)
{
__int64 v2; // x19
__int64 result; // x0
int v4; // w0
unsigned int v5; // w1
v2 = a1 + 40LL * a2;
result = *(_QWORD *)(v2 + 688);
if ( result )
{
v4 = ((__int64 (*)(void))SSL_pending)();
v5 = 1;
if ( v4 )
return v5;
result = *(_QWORD *)(v2 + 768);
if ( result )
return (unsigned int)SSL_pending(result, 1) != 0;
}
return (unsigned int)result;
}