//
// sub_B94A04 from 0xb94a04 to 0xb94ac8 (196 bytes)
//
// 0 xrefs:
//
// 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_B94A04(
__int64 a1,
void *(*a2)(size_t byte_count),
void (*a3)(void *p),
void *(*a4)(void *p, size_t byte_count),
char *(*a5)(const char *),
void *(*a6)(size_t item_count, size_t item_size))
{
if ( !a2 || !a3 || a4 == nullptr || a5 == nullptr || !a6 )
return 2;
if ( dword_1247830 )
{
++dword_1247830;
return 0;
}
dword_1247830 = 1;
off_1231000 = a2;
off_1231008 = a3;
off_1231018 = a5;
off_1231010 = a4;
off_1231020 = a6;
if ( (a1 & 1) != 0 && !(unsigned int)sub_BB9E70() )
return 2;
sub_B9F534();
if ( (a1 & 4) != 0 )
dword_1247840 = 1;
qword_1247838 = a1;
sub_B8B28C();
return 0;
}