//
// sub_100007338 from 0x100007338 to 0x1000073c4 (140 bytes)
//
// 3 xrefs:
// > sub_10007BEFC @ 0x10007bf98
// > sub_10007C0E4 @ 0x10007c1ec
// > sub_1004796B4 @ 0x10047992c
//
// 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:11 +0000
//
__int64 __fastcall sub_100007338(__int64 a1, __int64 a2, int a3)
{
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x21
if ( a3 < 1 )
return 0;
result = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), a2);
if ( result )
{
v5 = result;
if ( (unsigned int)sub_1002E757C(result) && (unsigned int)sub_1002E757C(v5) )
{
v6 = 0;
while ( 1 )
{
result = sub_1002E75A0(v5, v6);
if ( *(_DWORD *)(result + 104) == a3 )
break;
v6 = (unsigned int)(v6 + 1);
if ( (unsigned int)v6 >= (unsigned int)sub_1002E757C(v5) )
return 0;
}
}
else
{
return 0;
}
}
return result;
}