//
// sub_1005E2144 from 0x1005e2144 to 0x1005e223c (248 bytes)
//
// 1 xrefs:
// > ??> @ 0x10083b858
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005E2144(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x20
__int64 v4; // x19
__int64 v6; // [xsp+8h] [xbp-28h] BYREF
v2 = qword_100883228;
if ( !qword_100883228 )
{
sub_100588190(9, 1, (__int64)"err.c", 295);
if ( !qword_100883228 )
qword_100883228 = (__int64)off_10083B820;
sub_100588190(10, 1, (__int64)"err.c", 298);
v2 = qword_100883228;
}
v3 = (*(__int64 (__fastcall **)(_QWORD))(v2 + 40))(0);
v6 = v3;
if ( !v3 )
return 0;
sub_100588190(5, 1, (__int64)"err.c", 499);
v4 = sub_1005DF1B8(v3, a1);
sub_100588190(6, 1, (__int64)"err.c", 501);
(*(void (__fastcall **)(__int64 *))(qword_100883228 + 48))(&v6);
return v4;
}