//
// sub_10028E54C from 0x10028e54c to 0x10028e6d8 (396 bytes)
//
// 1 xrefs:
// > sub_10047A668 @ 0x10047a700
//
// 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:02:02 +0000
//
double __fastcall sub_10028E54C(__int64 a1, __int64 a2, int a3, int a4)
{
__int64 v8; // x0
double result; // d0
__int64 v10; // x24
__int64 v11; // x0
__int64 v12; // x23
int v13; // w0
__int64 v14; // x24
char v15; // w25
int v16; // w8
_DWORD *v17; // x0
__int64 v18; // x22
__int64 v19; // x0
__int64 v20; // x21
if ( a3 != a4 )
{
if ( a2 )
{
if ( a3 >= 1 && a4 >= 1 )
{
*(_QWORD *)&result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688), (unsigned int)a3).n128_u64[0];
if ( v8 )
{
v10 = v8;
if ( (unsigned int)sub_1002E7638(v8) )
{
sub_1002E765C(v10, a2, 1);
if ( !(unsigned int)sub_1002E757C(v10) )
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3688), (unsigned int)a3);
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3696), *(unsigned int *)(a2 + 916));
if ( v11 )
{
v12 = v11;
v13 = sub_1002E757C(v11);
if ( v13 - 1 < 0 )
goto LABEL_17;
LODWORD(v14) = v13;
v15 = 0;
do
{
v14 = (unsigned int)(v14 - 1);
v16 = *(_DWORD *)(sub_1002E75A0(v12, v14) + 56);
if ( v16 == a3 )
sub_1002E7664(v12, v14, 1);
else
v15 |= v16 == a4;
}
while ( (int)v14 > 0 );
if ( (v15 & 1) == 0 )
{
LABEL_17:
v17 = sub_100145068(a4);
sub_1002E74E0(v12, v17);
}
}
v18 = (unsigned int)a4;
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688), (unsigned int)a4);
v20 = v19;
if ( !v19 )
{
v20 = sub_1002E736C(0);
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3688), v20, v18);
}
if ( (sub_1002E7638(v20) & 1) == 0 )
*(_QWORD *)&result = sub_1002E74E0(v20, a2).n128_u64[0];
}
}
}
}
}
return result;
}