//
// sub_10072B188 from 0x10072b188 to 0x10072b224 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ebe80
//
// 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:13:10 +0000
//
__int64 __fastcall sub_10072B188(__int64 a1, int a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
const char *v5; // x0
char *v6; // x8
__int64 v7; // x0
const char *v8; // x1
__int64 result; // x0
if ( a2 != 2 )
return 0;
v4 = *(_QWORD *)(a1 + 16);
if ( a4 != 3 )
return sub_10072B6D4(*(_QWORD *)(a1 + 16), a3, a4);
v5 = sub_100724D58();
v6 = getenv(v5);
if ( v6 )
{
v7 = v4;
v8 = v6;
}
else
{
v8 = sub_100724D40();
v7 = v4;
}
result = sub_10072B6D4(v7, v8, 1);
if ( !(_DWORD)result )
{
sub_100706FB0(11, 102, 103, (__int64)"by_dir.c", 138);
return 0;
}
return result;
}