//
// LocalLevelManager::filesPicked from 0x543514 to 0x5435f4 (224 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LocalLevelManager::filesPicked @ 0x543600
//
// 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:52:20 +0000
//
int __fastcall LocalLevelManager::filesPicked(int a1, unsigned __int8 **a2)
{
unsigned __int8 *v2; // r4
unsigned __int8 *v3; // r9
_BOOL4 v6; // r11
unsigned __int8 *v7; // r9
int i; // r4
const char *v9; // r0
int v11; // [sp+4h] [bp-20h] BYREF
int *v12; // [sp+8h] [bp-1Ch]
int *v13; // [sp+Ch] [bp-18h]
int v14[3]; // [sp+10h] [bp-14h] BYREF
v2 = *a2;
v3 = a2[1];
v11 = 0;
v12 = nullptr;
v13 = nullptr;
while ( v2 != v3 )
{
memset(v14, 0, sizeof(v14));
std::string::__init(v14, ".gdlvl", 6u);
v6 = GameToolbox::stringEndsWith(v2, (unsigned __int8 *)v14);
std::string::~string((int)v14);
if ( v6 )
{
if ( v12 == v13 )
{
std::vector::__push_back_slow_path(&v11, (int)v2);
}
else
{
if ( v12 )
std::string::basic_string(v12, (int)v2);
v12 += 3;
}
}
v2 += 12;
}
*(_DWORD *)(a1 + 388) = LocalLevelManager::importLevelsFromPaths((cocos2d::CCArray **)a1, &v11, *(_DWORD *)(a1 + 380));
v7 = a2[1];
for ( i = (int)(*a2 + 1); v7 != (unsigned __int8 *)(i - 1); i += 12 )
{
if ( (*(_BYTE *)(i - 1) & 1) != 0 )
v9 = *(const char **)(i + 7);
else
v9 = (const char *)i;
remove(v9);
}
LocalLevelManager::queueFileResults((LocalLevelManager *)a1);
return std::__vector_base::~__vector_base((int)&v11);
}