//
// sub_E156EC from 0xe156ec to 0xe1575c (112 bytes)
//
// 3 xrefs:
// > sub_E0AAF8 @ 0xe0ab68
// > sub_E0ABBC @ 0xe0ac54
// > sub_E0ACDC @ 0xe0ad5c
//
// 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:41 +0000
//
bool sub_E156EC()
{
int v0; // w0
unsigned int v2; // w1
v0 = dword_154A3E8;
if ( dword_154A3E8 == -1 )
{
v2 = socket(10, 2, 0);
if ( v2 == -1 )
{
dword_154A3E8 = 0;
return 0;
}
dword_154A3E8 = 1;
sub_E0F2FC(0, v2);
v0 = dword_154A3E8;
}
return v0 > 0;
}