//
// sub_1800A3670 from 0x1800a3670 to 0x1800a36bd (77 bytes)
//
// 1 xrefs:
// > sub_1800A35B0 @ 0x1800a35b0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:14 +0000
//
FILE *__fastcall sub_1800A3670(__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;
}