//
// sub_E304EC from 0xe304ec to 0xe305ac (192 bytes)
//
// 3 xrefs:
// > sub_E14B00 @ 0xe14bb4
// > sub_E305AC @ 0xe305fc
// > sub_E30600 @ 0xe306fc
//
// 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:55 +0000
//
__int64 __fastcall sub_E304EC(__int64 a1)
{
__int64 result; // x0
void (*v3)(void *); // x1
__int64 v4; // x0
result = *(_QWORD *)(a1 + 24);
if ( result )
{
j_SSL_SESSION_free();
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 40) = 0;
off_154A3C8(*(void **)(a1 + 80));
*(_QWORD *)(a1 + 80) = 0;
off_154A3C8(*(void **)(a1 + 72));
*(_QWORD *)(a1 + 72) = 0;
off_154A3C8(*(void **)(a1 + 112));
*(_QWORD *)(a1 + 112) = 0;
off_154A3C8(*(void **)(a1 + 104));
*(_QWORD *)(a1 + 104) = 0;
off_154A3C8(*(void **)(a1 + 96));
*(_QWORD *)(a1 + 96) = 0;
off_154A3C8(*(void **)(a1 + 88));
*(_QWORD *)(a1 + 88) = 0;
off_154A3C8(*(void **)a1);
v3 = off_154A3C8;
v4 = *(_QWORD *)(a1 + 8);
*(_QWORD *)a1 = 0;
result = ((__int64 (__fastcall *)(__int64))v3)(v4);
*(_QWORD *)(a1 + 8) = 0;
}
return result;
}