//
// GameToolbox::showFolderDialog from 0x69e710 to 0x69e7e0 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0xdfa80
//
// 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::showFolderDialog(__int64 a1, unsigned __int8 *a2)
{
cocos2d::CCFileUtils *v3; // x0
cocos2d::CCFileUtils *v4; // x0
__int64 v5; // x0
__int64 v6; // x4
__int64 v7; // x5
__int64 v9; // x0
_QWORD v10[3]; // [xsp+20h] [xbp+20h] BYREF
v3 = (cocos2d::CCFileUtils *)*a2;
if ( ((unsigned __int8)v3 & 1) == 0 )
{
a2[1] = 0;
*a2 = 0;
v9 = cocos2d::CCFileUtils::sharedFileUtils(v3);
(*(void (__fastcall **)(_QWORD *__return_ptr))(*(_QWORD *)v9 + 144LL))(v10);
if ( (*a2 & 1) != 0 )
goto LABEL_3;
LABEL_6:
a2[1] = 0;
*a2 = 0;
goto LABEL_4;
}
v4 = *((cocos2d::CCFileUtils **)a2 + 2);
*(_BYTE *)v4 = 0;
*((_QWORD *)a2 + 1) = 0;
v5 = cocos2d::CCFileUtils::sharedFileUtils(v4);
(*(void (__fastcall **)(_QWORD *__return_ptr))(*(_QWORD *)v5 + 144LL))(v10);
if ( (*a2 & 1) == 0 )
goto LABEL_6;
LABEL_3:
**((_BYTE **)a2 + 2) = 0;
*((_QWORD *)a2 + 1) = 0;
LABEL_4:
std::string::reserve((__int64 *)a2, 0);
v6 = v10[0];
v7 = v10[1];
*((_QWORD *)a2 + 2) = v10[2];
*(_QWORD *)a2 = v6;
*((_QWORD *)a2 + 1) = v7;
return 1;
}