//
// ColorAction::create from 0x9f8f74 to 0x9f90d4 (352 bytes)
//
// 5 xrefs:
// > ColorAction::create @ 0x9f90f8
// > ColorAction::create @ 0x9f9124
// > ColorAction::create @ 0x9f913c
// > ColorAction::getCopy @ 0x9f9494
// > ??> @ 0xce458
//
// 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 12:59:15 +0000
//
__int64 __fastcall ColorAction::create(int a1, int a2, char a3, int a4, float a5, double a6, float a7, float a8)
{
__int64 v14; // x19
__int64 v15; // x6
__int64 v16; // x7
v14 = operator new(0xA8u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v14);
v15 = qword_155D348;
v16 = qword_155D350;
*(float *)(v14 + 64) = 1.0;
*(_BYTE *)(v14 + 56) = 0;
*(float *)(v14 + 96) = 1.0;
*(_BYTE *)(v14 + 57) = 0;
*(float *)(v14 + 100) = 1.0;
*(_BYTE *)(v14 + 84) = 0;
*(_DWORD *)(v14 + 88) = 0;
*(_DWORD *)(v14 + 92) = 0;
*(_QWORD *)v14 = &off_14772D0;
*(_DWORD *)(v14 + 68) = 0;
*(_DWORD *)(v14 + 80) = 0;
*(_QWORD *)(v14 + 104) = v15;
*(_QWORD *)(v14 + 112) = v16;
*(_DWORD *)(v14 + 120) = 0;
*(_BYTE *)(v14 + 124) = 0;
*(_BYTE *)(v14 + 125) = 0;
*(_BYTE *)(v14 + 126) = 0;
*(_DWORD *)(v14 + 128) = 0;
*(_DWORD *)(v14 + 132) = 0;
*(_BYTE *)(v14 + 136) = 0;
*(_QWORD *)(v14 + 144) = 0;
*(_QWORD *)(v14 + 152) = 0;
*(_DWORD *)(v14 + 160) = 0;
*(_DWORD *)(v14 + 164) = 0;
if ( (unsigned __int8)ColorAction::init(v14, a1, a2, a3, a4, a5, a6, a7, a8) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v14);
return v14;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 16LL))(v14);
return 0;
}
}