//
// sub_1003E34D0 from 0x1003e34d0 to 0x1003e3585 (181 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3cc20
//
// This function is hookable on this platform (idp: pc, 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:29:46 +0000
//
unsigned int *__fastcall sub_1003E34D0(unsigned int *a1, __int64 a2)
{
unsigned int *result; // rax
__int64 v3; // rdi
const void **v4; // r12
unsigned __int64 v5; // r13
result = a1;
v3 = *((_QWORD *)a1 + 14);
if ( v3 )
{
*((_BYTE *)result + 196) = *(_BYTE *)(a2 + 2);
*((_WORD *)result + 97) = *(_WORD *)a2;
result = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v4 = *((const void ***)result + 2);
v5 = (unsigned __int64)&v4[*result - 1];
do
{
if ( !*v4 )
break;
result = (unsigned int *)__dynamic_cast(
*v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( result )
result = (unsigned int *)(**(__int64 (__fastcall ***)(unsigned int *, __int64))result)(result, a2);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
}
return result;
}