//
// sub_100612634 from 0x100612634 to 0x1006126d8 (164 bytes)
//
// 2 xrefs:
// > ??> @ 0x100864ec8
// > ??> @ 0x100864f18
//
// 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_100612634(__int64 a1, const char *a2, __int64 *a3)
{
_QWORD *v5; // x21
__int64 v6; // x19
__int16 v8; // w2
int v9; // w4
v5 = sub_1005DB6A0(a2, "rb");
if ( v5 )
{
v6 = sub_100611CB0(a1, (__int64)v5, a3);
sub_1005DA554(v5);
return v6;
}
else
{
if ( (sub_1005E146C() & 0xFFF) == 0x80 )
{
v8 = 114;
v9 = 195;
}
else
{
v8 = 2;
v9 = 197;
}
sub_1005E0E48(14, 120, v8, (__int64)"conf_def.c", v9);
return 0;
}
}