//
// sub_E3218C from 0xe3218c to 0xe321fc (112 bytes)
//
// 4 xrefs:
// > sub_E35FA0 @ 0xe365bc
// > sub_E392B4 @ 0xe39380
// > sub_E395A4 @ 0xe397b0
// > sub_E3A3A0 @ 0xe3a458
//
// 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:56 +0000
//
__int64 __fastcall sub_E3218C(__int64 a1)
{
__int64 v1; // x1
__int64 v2; // x1
__int64 v5; // x0
v1 = *(_QWORD *)(a1 + 8);
if ( !v1 )
return 1;
v2 = *(_QWORD *)(v1 + 16);
if ( !v2 )
return 0;
if ( *(_QWORD *)(a1 + 144) )
return 0;
v5 = sub_E35A68(v2);
*(_QWORD *)(a1 + 144) = v5;
if ( v5 )
return 0;
lws_log(1, "Out of memory for conn user space\n");
return 1;
}