//
// sub_1005E19E0 from 0x1005e19e0 to 0x1005e1a24 (68 bytes)
//
// 3 xrefs:
// > sub_100563530 @ 0x1005635d0
// > sub_100563530 @ 0x1005636b8
// > sub_1005F6E24 @ 0x1005f6e70
//
// 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_1005E19E0(__int64 a1, int a2, __int64 **a3)
{
__int64 *v3; // x9
if ( !a3 )
return 31;
*a3 = nullptr;
v3 = (__int64 *)(a1 + 640);
while ( 1 )
{
v3 = (__int64 *)*v3;
if ( v3 == (__int64 *)(a1 + 640) )
break;
if ( *((_DWORD *)v3 + 48) == a2 )
{
*a3 = v3;
return 0;
}
}
return 54;
}