//
// GameToolbox::directoryExists from 0x69e33c to 0x69e3b0 (116 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x7a83e0
// > AutoSaveSettingsLayer::getBackupDirectory @ 0xbc9d18
// > AutoSaveSettingsLayer::openBackupDirectory @ 0xbc9e50
// > AutoSaveSettingsLayer::onOpenBackupDir @ 0xbc9f2c
// > ??> @ 0x593e0
//
// 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 12:50:41 +0000
//
__int64 __fastcall GameToolbox::directoryExists(char *a1)
{
const char *v2; // x0
char v3; // t1
int v4; // w0
unsigned int v5; // w1
_BYTE v7[16]; // [xsp+28h] [xbp+28h] BYREF
int v8; // [xsp+38h] [xbp+38h]
v3 = *a1;
v2 = a1 + 1;
if ( (v3 & 1) != 0 )
v2 = *((const char **)a1 + 2);
v4 = stat(v2, (struct stat *)v7);
v5 = 0;
if ( !v4 )
return (v8 & 0xF000) == 0x4000;
return v5;
}