//
// PlatformToolbox::shareFiles from 0x640c58 to 0x640e4c (500 bytes)
//
// 2 xrefs:
// > LocalLevelManager::exportLevelsToFile @ 0x913cd0
// > ??> @ 0xdac80
//
// 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:17 +0000
//
__int64 __fastcall PlatformToolbox::shareFiles(__int64 *a1)
{
__int64 v3; // x25
unsigned __int64 v4; // x19
__int64 v5; // x24
__int64 v6; // x21
__int64 i; // x1
char v8; // w3
__int64 v9; // x2
__int64 v10; // x1
__int64 v11; // x26
__int64 v12; // x2
__int64 v13; // [xsp+60h] [xbp+60h] BYREF
__int64 v14; // [xsp+68h] [xbp+68h]
__int64 v15; // [xsp+70h] [xbp+70h]
if ( (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(
&v13,
"com/customRobTop/BaseRobTopActivity",
"shareFiles",
"([Ljava/lang/String;)V") )
{
v3 = 0;
v4 = 0;
v5 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v13 + 48LL))(v13, "java/lang/String");
v6 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, _QWORD))(*(_QWORD *)v13 + 1376LL))(
v13,
-1431655765 * (unsigned int)((a1[1] - *a1) >> 3),
v5,
0);
for ( i = *a1; v4 < 0xAAAAAAAAAAAAAAABLL * ((a1[1] - *a1) >> 3); i = *a1 )
{
v8 = *(_BYTE *)(i + v3);
v9 = i + v3;
v10 = i + v3 + 1;
if ( (v8 & 1) != 0 )
v10 = *(_QWORD *)(v9 + 16);
v3 += 24;
v11 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1336LL))(v13, v10);
v12 = (unsigned int)v4++;
(*(void (__fastcall **)(__int64, __int64, __int64, __int64))(*(_QWORD *)v13 + 1392LL))(v13, v6, v12, v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v11);
}
_JNIEnv::CallStaticVoidMethod(v13, v14, v15, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v14);
}
return _stack_chk_guard;
}