//
// sub_E8883C from 0xe8883c to 0xe888f0 (180 bytes)
//
// 2 xrefs:
// > jinit_marker_reader @ 0xe88fec
// > jinit_marker_reader @ 0xe88ff8
//
// 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:10:51 +0000
//
__int64 __fastcall sub_E8883C(__int64 *a1)
{
int v1; // w1
unsigned int v3; // w2
__int64 v5; // x3
v1 = *((_DWORD *)a1 + 143);
if ( !v1 )
{
if ( !(unsigned int)sub_E86330(a1) )
return 0;
v1 = *((_DWORD *)a1 + 143);
}
v3 = *(_DWORD *)(a1[77] + 32);
if ( v3 + 208 == v1 )
{
v5 = *a1;
*(_DWORD *)(v5 + 44) = v3;
*(_DWORD *)(v5 + 40) = 100;
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 8))(a1, 3);
*((_DWORD *)a1 + 143) = 0;
goto LABEL_4;
}
if ( (*(unsigned int (__fastcall **)(__int64 *, _QWORD))(a1[5] + 40))(a1, v3) )
{
LABEL_4:
*(_DWORD *)(a1[77] + 32) = ((unsigned __int8)*(_DWORD *)(a1[77] + 32) + 1) & 7;
return 1;
}
return 0;
}