//
// cocos2d::CCSplitCols::create from 0x18003ab00 to 0x18003ac13 (275 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionSplitCols::action @ 0x180052c45
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0e70
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=3
struct cocos2d::CCSplitCols *__fastcall cocos2d::CCSplitCols::create(float a1, int a2)
{
char *v3; // rbx
bool (__fastcall *v4)(cocos2d::CCSplitCols *__hidden, float, unsigned int); // rdx
struct cocos2d::CCSize *v5; // rax
char v6; // al
char *v8; // [rsp+50h] [rbp+18h] BYREF
v3 = (char *)operator new(0x78u);
v8 = v3;
if ( v3 )
{
*(_OWORD *)v3 = 0;
*((_OWORD *)v3 + 1) = 0;
*((_OWORD *)v3 + 2) = 0;
*((_OWORD *)v3 + 3) = 0;
*((_OWORD *)v3 + 4) = 0;
*((_OWORD *)v3 + 5) = 0;
*((_OWORD *)v3 + 6) = 0;
*((_QWORD *)v3 + 14) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);
*((_DWORD *)v3 + 20) = 0;
*(_QWORD *)v3 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v3 + 12);
*(_QWORD *)v3 = &cocos2d::CCSplitCols::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 108));
}
else
{
v3 = nullptr;
}
if ( !v3 )
return (struct cocos2d::CCSplitCols *)v3;
v4 = *(bool (__fastcall **)(cocos2d::CCSplitCols *__hidden, float, unsigned int))(*(_QWORD *)v3 + 128LL);
if ( v4 == cocos2d::CCSplitCols::initWithDuration )
{
*((_DWORD *)v3 + 26) = a2;
v5 = (struct cocos2d::CCSize *)kmVec2Fill((float *)&v8, (float)a2, 1.0);
v6 = cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v3, a1, v5);
}
else
{
v6 = ((__int64 (__fastcall *)(char *, bool (__fastcall *)(cocos2d::CCSplitCols *__hidden, float, unsigned int), _QWORD))v4)(
v3,
v4,
(unsigned int)a2);
}
if ( v6 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return (struct cocos2d::CCSplitCols *)v3;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v3);
return nullptr;
}