//
// Java_com_customRobTop_JniToCpp_filesPicked from 0x6429d0 to 0x642bc8 (504 bytes)
//
// 1 xrefs:
// > ??> @ 0x4b1c0
//
// 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:18 +0000
//
__int64 __fastcall Java_com_customRobTop_JniToCpp_filesPicked(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v5; // x2
__int64 (__fastcall *v7)(__int64 *, __int64); // x2
LocalLevelManager *v8; // x0
int v9; // w23
unsigned int v10; // w21
void *v11; // x3
void **v12; // x0
__int64 v13; // x26
__int64 v14; // x0
void **v15; // x19
void **v16; // x0
void *v18; // [xsp+58h] [xbp+58h] BYREF
void **v19; // [xsp+60h] [xbp+60h]
unsigned __int64 v20; // [xsp+68h] [xbp+68h]
void *v21; // [xsp+70h] [xbp+70h] BYREF
void *v22; // [xsp+78h] [xbp+78h]
void *v23; // [xsp+80h] [xbp+80h]
v5 = *a1;
v18 = nullptr;
v7 = *(__int64 (__fastcall **)(__int64 *, __int64))(v5 + 1368);
v19 = nullptr;
v20 = 0;
v8 = (LocalLevelManager *)v7(a1, a3);
v9 = (int)v8;
v10 = 0;
if ( (int)v8 > 0 )
{
while ( 1 )
{
v13 = (*(__int64 (__fastcall **)(__int64 *, __int64, _QWORD))(*a1 + 1384))(a1, a3, v10);
cocos2d::JniHelper::jstring2string(&v21);
v12 = v19;
if ( (unsigned __int64)v19 < v20 )
break;
std::vector::__push_back_slow_path((void ***)&v18, &v21);
if ( ((unsigned __int8)v21 & 1) != 0 )
goto LABEL_9;
LABEL_6:
v8 = (LocalLevelManager *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 184))(a1, v13);
if ( ++v10 == v9 )
goto LABEL_10;
}
if ( v19 )
{
v11 = v22;
*v19 = v21;
v12[1] = v11;
v12[2] = v23;
v12 = v19;
v21 = nullptr;
v22 = nullptr;
v23 = nullptr;
}
v19 = v12 + 3;
if ( ((unsigned __int8)v21 & 1) == 0 )
goto LABEL_6;
LABEL_9:
operator delete(v23);
goto LABEL_6;
}
LABEL_10:
v14 = LocalLevelManager::sharedState(v8);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v14 + 944LL))(v14, &v18);
v15 = (void **)v18;
if ( v18 )
{
v16 = v19;
if ( v18 != v19 )
{
do
{
v19 = v16 - 3;
if ( (*(_BYTE *)(v16 - 3) & 1) != 0 )
operator delete(*(v16 - 1));
v16 = v19;
}
while ( v15 != v19 );
v16 = (void **)v18;
}
operator delete(v16);
}
return _stack_chk_guard;
}