//
// sub_10036C9A0 from 0x10036c9a0 to 0x10036ca4c (172 bytes)
//
// 1 xrefs:
// > sub_100369218 @ 0x1003696f4
//
// 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:03:21 +0000
//
_QWORD *__fastcall sub_10036C9A0(__int64 a1)
{
_QWORD *v2; // x19
double v3; // d0
v2 = operator new(0x238u);
v3 = cocos2d::CCLayerColor::CCLayerColor((__int64)v2);
*v2 = &off_100931948;
v2[40] = off_100931E70;
v2[41] = &off_100931EE0;
v2[42] = off_100931EF8;
v2[43] = &off_100931F18;
v2[44] = off_100931F40;
v2[51] = off_100931F70;
v2[54] = off_100931FF0;
*((_DWORD *)v2 + 136) = 0;
v2[69] = 0;
*((_BYTE *)v2 + 560) = 1;
if ( (unsigned int)sub_100370574(v2, a1, v3) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}