//
// sub_10005C864 from 0x10005c864 to 0x10005c968 (260 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::init @ 0x10005b2a0
//
// 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 10:57:48 +0000
//
__int64 __fastcall sub_10005C864(__int64 a1, __int64 a2)
{
__int64 v3; // x19
int v4; // w0
char v5; // w22
__int64 v6; // x20
__int64 v7; // x23
__int64 v8; // x24
__int64 v9; // x0
char *CString; // x0
__int64 v11; // x0
__int16 v12; // w8
__int64 v13; // x0
__int64 v14; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v17; // [xsp+1Fh] [xbp-31h]
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = sub_10005D930(a1, v3);
v5 = v4;
v6 = v4 ^ 1u;
v7 = *(_QWORD *)(a1 + 480);
v8 = sub_1003065B0("%i", v4 ^ 1u);
v9 = sub_1003065B0("T%i", v3);
CString = (char *)cocos2d::CCString::getCString(v9);
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject(v7, v8, __p);
if ( v17 < 0 )
operator delete(__p[0]);
v11 = sub_1002E75A0(*(_QWORD *)(a1 + 472), v3);
if ( (v5 & 1) != 0 )
{
BYTE2(__p[0]) = 125;
v12 = 32125;
}
else
{
BYTE2(__p[0]) = -1;
v12 = -1;
}
LOWORD(__p[0]) = v12;
v13 = (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v11 + 1072LL))(v11, __p);
v14 = GameLevelManager::sharedState(v13);
return sub_1000CDC38(v14, v3, v6);
}