//
// sub_E305AC from 0xe305ac to 0xe30600 (84 bytes)
//
// 1 xrefs:
// > sub_E2C94C @ 0xe2cd68
//
// 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
//
_QWORD *__fastcall sub_E305AC(_QWORD **a1, __int64 a2)
{
_QWORD *result; // x0
__int64 v3; // x5
_QWORD *v4; // x2
__int64 v5; // x3
result = *a1;
v3 = result[183];
if ( v3 )
{
result = (_QWORD *)result[4454];
if ( result[3] == a2 )
{
return (_QWORD *)sub_E304EC((__int64)result);
}
else
{
v4 = result + 15;
v5 = 0;
while ( 1 )
{
++v5;
result = v4;
v4 += 15;
if ( v5 == v3 )
break;
if ( *(v4 - 12) == a2 )
return (_QWORD *)sub_E304EC((__int64)result);
}
}
}
return result;
}