//
// GameToolbox::showFolderDialog from 0x3ced04 to 0x3ced7e (122 bytes)
//
// 0 xrefs:
//
// 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:39 +0000
//
int __fastcall GameToolbox::showFolderDialog(cocos2d::CCFileUtils *a1, char *a2, int a3, int a4)
{
char v5; // r5
_BYTE *v6; // r2
int v7; // r0
cocos2d::CCFileUtils *v8; // r0
char *v9; // r1
int v10; // r2
cocos2d::CCFileUtils *v12; // [sp+0h] [bp-10h] BYREF
char *v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = a1;
v13 = a2;
v14 = a3;
v15 = a4;
v5 = *a2;
v6 = &_stack_chk_guard;
if ( (*a2 & 1) != 0 )
v6 = *((_BYTE **)a2 + 2);
else
a2[1] = 0;
if ( (v5 & 1) != 0 )
{
*v6 = 0;
*((_DWORD *)a2 + 1) = 0;
}
else
{
*a2 = 0;
}
v7 = cocos2d::CCFileUtils::sharedFileUtils(a1);
(*(void (__fastcall **)(cocos2d::CCFileUtils **, int))(*(_DWORD *)v7 + 72))(&v12, v7);
if ( (*a2 & 1) != 0 )
{
**((_BYTE **)a2 + 2) = 0;
*((_DWORD *)a2 + 1) = 0;
}
else
{
a2[1] = 0;
*a2 = 0;
}
std::string::reserve((int *)a2, 0);
v8 = v12;
v9 = v13;
v10 = v14;
v12 = nullptr;
v13 = nullptr;
v14 = 0;
*(_DWORD *)a2 = v8;
*((_DWORD *)a2 + 1) = v9;
*((_DWORD *)a2 + 2) = v10;
std::string::~string((int)&v12);
return 1;
}