//
// sub_10040C224 from 0x10040c224 to 0x10040c2c8 (164 bytes)
//
// 1 xrefs:
// > sub_1003FC41C @ 0x1003fc468
//
// 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_10040C224(__int64 a1, __int64 a2)
{
double *v3; // x0
double v4; // d0
*(_QWORD *)(a1 + 56) = a2;
cocos2d::CCObject::retain(a2);
v3 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 56) + 192LL))(*(_QWORD *)(a1 + 56));
v4 = sub_10002630C((_QWORD *)(a1 + 64), v3);
*(float *)(a1 + 72) = (*(float (__fastcall **)(_QWORD, double))(**(_QWORD **)(a1 + 56) + 384LL))(
*(_QWORD *)(a1 + 56),
v4);
*(float *)(a1 + 76) = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 56) + 400LL))(*(_QWORD *)(a1 + 56));
*(_BYTE *)(a1 + 80) = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 56) + 1424LL))(*(_QWORD *)(a1 + 56));
*(_BYTE *)(a1 + 81) = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 56) + 1432LL))(*(_QWORD *)(a1 + 56));
*(_QWORD *)(a1 + 84) = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 1152LL);
return 1;
}