//
// sub_E0B524 from 0xe0b524 to 0xe0b604 (224 bytes)
//
// 0 xrefs:
//
// 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:36 +0000
//
__int64 __fastcall sub_E0B524(__int64 a1, __int64 a2, __int64 a3, _QWORD *a4)
{
int v8; // w1
__int64 v9; // x0
unsigned int v10; // w2
__int64 result; // x0
__int64 v12; // [xsp+30h] [xbp+30h] BYREF
__int64 v13; // [xsp+38h] [xbp+38h] BYREF
v13 = 0;
if ( !a1 )
return 43;
if ( *(_BYTE *)(a1 + 1601) )
{
v8 = sub_E0F214(a1, &v13);
if ( v8 == -1 )
{
sub_DF1848(a1, "Failed to get recent socket");
return 1;
}
else
{
v9 = v13;
*a4 = 0;
v10 = sub_DF1C7C(v9, v8, a2, a3, &v12);
result = 55;
if ( v12 != -1 )
{
if ( v10 || (result = 81, v12) )
{
*a4 = v12;
return v10;
}
}
}
}
else
{
sub_DF1848(a1, "CONNECT_ONLY is required!");
return 1;
}
return result;
}