//
// cocos2d::CCSplitRows::create from 0x18003b380 to 0x18003b493 (275 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionSplitRows::action @ 0x180054a15
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bafa8
//
// This function is hookable on this platform (idp: pc, 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:21:37 +0000
//
struct cocos2d::CCSplitRows *__fastcall cocos2d::CCSplitRows::create(float a1, int a2)
{
__int64 v3; // rbx
bool (__fastcall *v4)(cocos2d::CCSplitRows *__hidden, float, unsigned int); // rdx
float *v5; // rax
char v6; // al
__int64 v8; // [rsp+50h] [rbp+18h] BYREF
v3 = sub_1800E4AC0(0x78u);
v8 = v3;
if ( v3 )
{
*(_OWORD *)v3 = 0;
*(_OWORD *)(v3 + 16) = 0;
*(_OWORD *)(v3 + 32) = 0;
*(_OWORD *)(v3 + 48) = 0;
*(_OWORD *)(v3 + 64) = 0;
*(_OWORD *)(v3 + 80) = 0;
*(_OWORD *)(v3 + 96) = 0;
*(_QWORD *)(v3 + 112) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);
*(_DWORD *)(v3 + 80) = 0;
*(_QWORD *)v3 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 96));
*(_QWORD *)v3 = &cocos2d::CCSplitRows::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v3 + 108));
}
else
{
v3 = 0;
}
if ( !v3 )
return (struct cocos2d::CCSplitRows *)v3;
v4 = *(bool (__fastcall **)(cocos2d::CCSplitRows *__hidden, float, unsigned int))(*(_QWORD *)v3 + 128LL);
if ( v4 == cocos2d::CCSplitRows::initWithDuration )
{
*(_DWORD *)(v3 + 104) = a2;
v5 = kmVec2Fill((float *)&v8, 1.0, (float)a2);
v6 = cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v3, a1, (const struct cocos2d::CCSize *)v5);
}
else
{
v6 = ((__int64 (__fastcall *)(__int64, bool (__fastcall *)(cocos2d::CCSplitRows *__hidden, float, unsigned int), _QWORD))v4)(
v3,
v4,
(unsigned int)a2);
}
if ( v6 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return (struct cocos2d::CCSplitRows *)v3;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v3);
return nullptr;
}