//
// LocalLevelManager::filesPicked from 0x100261898 to 0x100261990 (248 bytes)
//
// 2 xrefs:
// > sub_100261A18 @ 0x100261a1c
// > ??> @ 0x100910ea0
//
// 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 11:01:39 +0000
//
void __fastcall LocalLevelManager::filesPicked(__int64 a1, __int64 ***a2)
{
__int64 **v4; // x21
__int64 **v5; // x24
_BOOL4 v6; // w0
_BOOL4 v7; // w23
std::error_code *v8; // x1
__int64 **v9; // x20
__int64 **v10; // x21
const std::__fs::filesystem::path *v11; // x0
void *__p[2]; // [xsp+0h] [xbp-60h] BYREF
char v13; // [xsp+17h] [xbp-49h]
__int64 *v14[3]; // [xsp+18h] [xbp-48h] BYREF
memset(v14, 0, sizeof(v14));
v4 = *a2;
v5 = a2[1];
if ( *a2 != v5 )
{
while ( 1 )
{
sub_100009900(__p, ".gdlvl");
v6 = sub_10004B4E0(v4, __p);
v7 = v6;
if ( (v13 & 0x80000000) == 0 )
break;
operator delete(__p[0]);
if ( v7 )
goto LABEL_6;
LABEL_7:
v4 += 3;
if ( v4 == v5 )
goto LABEL_8;
}
if ( !v6 )
goto LABEL_7;
LABEL_6:
sub_100017C70((__int64)v14);
goto LABEL_7;
}
LABEL_8:
*(_DWORD *)(a1 + 612) = LocalLevelManager::importLevelsFromPaths(a1, v14, *(_DWORD *)(a1 + 604));
v10 = *a2;
v9 = a2[1];
while ( v10 != v9 )
{
v11 = (const std::__fs::filesystem::path *)v10;
if ( *((char *)v10 + 23) < 0 )
v11 = (const std::__fs::filesystem::path *)*v10;
remove(v11, v8);
v10 += 3;
}
LocalLevelManager::queueFileResults(a1);
__p[0] = v14;
sub_100018250((void ***)__p);
}