//
// sub_100746DD0 from 0x100746dd0 to 0x100746e24 (84 bytes)
//
// 0 xrefs:
//
// 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:36:31 +0000
//
unsigned __int64 __fastcall sub_100746DD0(unsigned int *a1, unsigned int *a2)
{
unsigned __int64 v2; // r12
__int64 v3; // r15
__int64 v4; // rcx
unsigned __int64 result; // rax
if ( *a2 )
{
v2 = 0;
do
{
v3 = *(_QWORD *)(*((_QWORD *)a2 + 2) + 8 * v2);
cocos2d::CCObject::retain(v3);
v4 = *a1;
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * v4) = v3;
*a1 = v4 + 1;
++v2;
result = *a2;
}
while ( v2 < result );
}
return result;
}