//
// sub_1003EDABC from 0x1003edabc to 0x1003edbd0 (276 bytes)
//
// 1 xrefs:
// > sub_1003E8974 @ 0x1003e9360
//
// 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:04:28 +0000
//
__int64 __fastcall sub_1003EDABC(__int64 result, int a2, unsigned int a3, __int64 a4, __int64 a5)
{
__int64 v9; // x22
__int64 v10; // x8
__int64 v11; // x0
__int64 v12; // x24
unsigned int v13; // w25
__int64 v14; // x0
__int64 v15; // x21
unsigned int v16; // w22
v9 = result;
v10 = *(char *)(a4 + 23);
if ( v10 < 0 )
v10 = *(_QWORD *)(a4 + 8);
if ( v10 )
{
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(result + 376), a2);
v12 = v11;
v13 = sub_1002E757C(v11);
sub_1003064AC((__int128 *)a4);
if ( v13 >= a3 )
result = sub_1002E7640(v12);
else
result = sub_1002E74E0(v12);
}
if ( (*(char *)(a5 + 23) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(a5 + 8) )
return result;
}
else if ( !*(_BYTE *)(a5 + 23) )
{
return result;
}
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v9 + 384), a2);
v15 = v14;
v16 = sub_1002E757C(v14);
sub_1003064AC((__int128 *)a5);
if ( v16 >= a3 )
return sub_1002E7640(v15);
else
return sub_1002E74E0(v15);
}