//
// sub_1005E23A8 from 0x1005e23a8 to 0x1005e23f8 (80 bytes)
//
// 3 xrefs:
// > sub_1005E33B0 @ 0x1005e3404
// > sub_1005F6C44 @ 0x1005f6cc0
// > sub_1005F71F8 @ 0x1005f7240
//
// 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 11:09:40 +0000
//
__int64 __fastcall sub_1005E23A8(__int64 a1, _DWORD *a2)
{
_QWORD *v2; // x9
int v3; // w10
if ( !a2 )
return 31;
v2 = *(_QWORD **)(a1 + 320);
if ( v2 == (_QWORD *)(a1 + 320) )
{
v3 = 0;
}
else
{
v3 = 0;
do
{
if ( *(_DWORD *)(v2[2] + 24LL) != 1010 )
++v3;
v2 = (_QWORD *)*v2;
}
while ( v2 != (_QWORD *)(a1 + 320) );
}
*a2 = v3;
return 0;
}