//
// sub_1005E1A68 from 0x1005e1a68 to 0x1005e1ab0 (72 bytes)
//
// 6 xrefs:
// > sub_1005CBC9C @ 0x1005cbe0c
// > sub_1005E33B0 @ 0x1005e3464
// > sub_1005F6E24 @ 0x1005f6f24
// > sub_1005F6FF4 @ 0x1005f702c
// > sub_1005F7098 @ 0x1005f70c0
// > sub_1005F71F8 @ 0x1005f727c
//
// 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_1005E1A68(__int64 a1, int a2, _QWORD *a3)
{
_QWORD *v3; // x9
__int64 v4; // x10
if ( !a3 )
return 31;
*a3 = 0;
v3 = (_QWORD *)(a1 + 320);
while ( 1 )
{
v3 = (_QWORD *)*v3;
if ( v3 == (_QWORD *)(a1 + 320) )
break;
v4 = v3[2];
if ( *(_DWORD *)(v4 + 20) == a2 )
{
*a3 = v4;
return 0;
}
}
return 54;
}