//
// sub_1005E9988 from 0x1005e9988 to 0x1005e99e8 (96 bytes)
//
// 4 xrefs:
// > sub_10051FFFC @ 0x100520320
// > sub_100524748 @ 0x100524a6c
// > sub_100525468 @ 0x100525518
// > sub_100525468 @ 0x1005258c8
//
// 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_1005E9988(__int64 a1)
{
if ( *(_DWORD *)a1 == 28 || *(_DWORD *)a1 == 920 )
{
sub_1005D2DD0(*(_QWORD *)(a1 + 32));
return *(_QWORD *)(a1 + 32);
}
else
{
sub_1005E0E48(6, 119, 128, (__int64)"p_lib.c", 341);
return 0;
}
}