//
// PlatformToolbox::doesFileExist from 0x394d3c to 0x394dac (112 bytes)
//
// 1 xrefs:
// > GJMoreGamesLayer::getMoreGamesList @ 0x538344
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:19 +0000
//
int __fastcall PlatformToolbox::doesFileExist(cocos2d::CCFileUtils *a1, int a2, int a3, int a4)
{
cocos2d::CCFileUtils *v4; // r4
int v5; // r7
int (__fastcall *v6)(int, cocos2d::CCFileUtils **); // r8
bool v7; // nf
size_t v8; // r0
int v9; // r4
cocos2d::CCFileUtils *v11; // [sp+0h] [bp-10h] BYREF
int v12; // [sp+4h] [bp-Ch]
int v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = a1;
v12 = a2;
v13 = a3;
v14 = a4;
v4 = a1;
v5 = cocos2d::CCFileUtils::sharedFileUtils(a1);
v6 = *(int (__fastcall **)(int, cocos2d::CCFileUtils **))(*(_DWORD *)v5 + 80);
v7 = (*(_BYTE *)v4 & 1) != 0;
if ( (*(_BYTE *)v4 & 1) == 0 )
v4 = (cocos2d::CCFileUtils *)((char *)v4 + 1);
v11 = nullptr;
if ( v7 )
v4 = *((cocos2d::CCFileUtils **)v4 + 2);
v12 = 0;
v13 = 0;
v8 = strlen((const char *)v4);
std::string::__init((int *)&v11, v4, v8);
v9 = v6(v5, &v11);
std::string::~string((int)&v11);
return v9;
}