//
// sub_E1B690 from 0xe1b690 to 0xe1b764 (212 bytes)
//
// 2 xrefs:
// > ??> @ 0x13fc368
// > ??> @ 0x13fc418
//
// 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:44 +0000
//
__int64 __fastcall sub_E1B690(__int64 a1, _BYTE *a2)
{
__int64 v4; // x21
unsigned int v5; // w19
int v6; // w0
v4 = a1 + 1560;
if ( (*(_DWORD *)(*(_QWORD *)(a1 + 1024) + 124LL) & 1) != 0 && !*(_BYTE *)(a1 + 1676) )
{
v5 = sub_E30164(a1, *(unsigned __int8 *)(a1 + 1676), a1 + 1676);
if ( v5 )
return v5;
if ( !*(_BYTE *)(v4 + 116) )
{
v6 = (unsigned __int8)*a2;
goto LABEL_4;
}
}
v5 = sub_E202AC(v4, 0);
v6 = *(_DWORD *)(v4 + 112) == 0;
*a2 = v6;
if ( v5 )
return v5;
LABEL_4:
v5 = 0;
if ( !v6 || !**(_DWORD **)(*(_QWORD *)a1 + 536LL) )
return v5;
sub_E0A54C(a1, -1, -1, 0, 0, -1, 0);
return 0;
}