//
// sub_10040C0FC from 0x10040c0fc to 0x10040c180 (132 bytes)
//
// 1 xrefs:
// > sub_10040C094 @ 0x10040c0c8
//
// 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:46 +0000
//
__int64 __fastcall sub_10040C0FC(__int64 a1, __int64 a2, int a3)
{
unsigned int v6; // w22
__int64 v7; // x0
*(_QWORD *)(a1 + 72) = sub_1002E736C();
if ( (unsigned int)sub_1002E757C(a2) )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(a2, v6);
sub_1003FC41C(v7);
sub_1002E74E0(*(_QWORD *)(a1 + 72));
++v6;
}
while ( v6 < (unsigned int)sub_1002E757C(a2) );
}
cocos2d::CCObject::retain(*(_QWORD *)(a1 + 72));
*(_DWORD *)(a1 + 64) = a3;
return 1;
}