//
// sub_18009F940 from 0x18009f940 to 0x18009f98d (77 bytes)
//
// 1 xrefs:
// > sub_18009F880 @ 0x18009f880
//
// 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
//
FILE *__fastcall sub_18009F940(__int64 a1, const char *a2, char a3)
{
const char *v4; // rdx
if ( (a3 & 3) == 1 )
{
v4 = "rb";
}
else if ( (a3 & 4) != 0 )
{
v4 = "r+b";
}
else
{
v4 = "wb";
if ( (a3 & 8) == 0 )
v4 = nullptr;
}
if ( a2 && v4 )
return fopen(a2, v4);
else
return nullptr;
}