//
// sub_E1D718 from 0xe1d718 to 0xe1d7cc (180 bytes)
//
// 2 xrefs:
// > ??> @ 0x13fc468
// > ??> @ 0x13fc518
//
// 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:45 +0000
//
__int64 __fastcall sub_E1D718(__int64 a1)
{
__int64 v2; // x20
void *v3; // x0
int v4; // w0
char **v6; // x1
__int64 (__fastcall *v7)(__int64); // x2
v2 = *(_QWORD *)a1;
v3 = off_154A3E0(0x18u, 1u);
*(_QWORD *)(v2 + 536) = v3;
if ( !v3 )
return 27;
v4 = *(unsigned __int8 *)(a1 + 958);
*(_BYTE *)(a1 + 952) = 0;
if ( !v4 || *(_BYTE *)(v2 + 1554) )
{
++*(_QWORD *)(v2 + 36032);
return 0;
}
else
{
v6 = &off_1532A88;
if ( *(char ***)(a1 + 1024) != &off_13FC460 )
v6 = &off_1532B08;
v7 = (__int64 (__fastcall *)(__int64))v6[1];
*(_QWORD *)(a1 + 1024) = v6;
return v7(a1);
}
}