//
// sub_1005FE8B0 from 0x1005fe8b0 to 0x1005fe964 (180 bytes)
//
// 4 xrefs:
// > sub_1005FCFD8 @ 0x1005fd044
// > sub_1005FE744 @ 0x1005fe774
// > sub_1005FE7C4 @ 0x1005fe7f4
// > sub_1005FE87C @ 0x1005fe8ac
//
// 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_1005FE8B0(
__int64 (__fastcall *a1)(__int64, void **, __int64),
const char *a2,
__int64 a3,
__int64 a4,
int a5,
char *a6)
{
__int64 v8; // x21
__int64 v10; // [xsp+8h] [xbp-38h] BYREF
void *v11; // [xsp+10h] [xbp-30h] BYREF
void *v12; // [xsp+18h] [xbp-28h] BYREF
v11 = nullptr;
v12 = nullptr;
v8 = 0;
if ( (unsigned int)sub_1005FD094(&v11, &v10, nullptr, a2, a3, a5, a6) )
{
v12 = v11;
v8 = a1(a4, &v12, v10);
if ( !v8 )
sub_1005E0E48(9, 103, 13, (__int64)"pem_oth.c", 83);
sub_100588C44(v11);
}
return v8;
}