//
// sub_1001B4454 from 0x1001b4454 to 0x1001b44b8 (100 bytes)
//
// 1 xrefs:
// > sub_1001B4408 @ 0x1001b4408
//
// This function is hookable on this platform (idp: arm, 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:00:09 +0000
//
FILE *__fastcall sub_1001B4454(int a1, char *__filename, char a3)
{
int v3; // w8
const char *v4; // x11
const char *v5; // x14
int v6; // w12
char v7; // w9
const char *v8; // x8
v3 = a3 & 3;
v4 = "r+b";
v5 = "wb";
if ( (a3 & 8) == 0 )
v5 = nullptr;
if ( (a3 & 4) != 0 )
LOBYTE(v6) = 1;
else
v6 = (unsigned __int8)(a3 & 8) >> 3;
if ( (a3 & 4) == 0 )
v4 = v5;
if ( v3 == 1 )
v7 = 1;
else
v7 = v6;
if ( v3 == 1 )
v8 = "rb";
else
v8 = v4;
if ( __filename && (v7 & 1) != 0 )
return fopen(__filename, v8);
else
return nullptr;
}