//
// sub_E6A950 from 0xe6a950 to 0xe6a9b4 (100 bytes)
//
// 2 xrefs:
// > sub_E6A9B4 @ 0xe6abec
// > sub_E6B168 @ 0xe6b53c
//
// 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:33 +0000
//
__int64 __fastcall sub_E6A950(__int64 a1)
{
_DWORD *v1; // x1
__int64 result; // x0
unsigned int v3; // w2
__int64 v4; // x0
v1 = *(_DWORD **)(a1 + 520);
if ( *(int *)(a1 + 372) <= 1 )
{
v3 = *(_DWORD *)(a1 + 368) - 1;
v4 = *(_QWORD *)(a1 + 376);
if ( v1[4] < v3 )
result = *(unsigned int *)(v4 + 12);
else
result = *(unsigned int *)(v4 + 76);
v1[7] = result;
v1[5] = 0;
v1[6] = 0;
}
else
{
v1[5] = 0;
v1[7] = 1;
v1[6] = 0;
return 1;
}
return result;
}