//
// sub_E1575C from 0xe1575c to 0xe157e8 (140 bytes)
//
// 1 xrefs:
// > sub_DE7794 @ 0xde78d8
//
// 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
//
__int64 __fastcall sub_E1575C(__int64 a1)
{
unsigned int v1; // w19
int v3; // w0
unsigned int v4; // w1
v1 = 1;
if ( *(_QWORD *)(a1 + 1040) != 2 )
return v1;
v3 = dword_154A3E8;
if ( dword_154A3E8 == -1 )
{
v4 = socket(10, 2, 0);
if ( v4 == -1 )
{
dword_154A3E8 = 0;
return 0;
}
dword_154A3E8 = 1;
sub_E0F2FC(0, v4);
v3 = dword_154A3E8;
}
return v3 > 0;
}