//
// cocos2d::CCSkewBy::create from 0x1800347b0 to 0x1800348ed (317 bytes)
//
// 3 xrefs:
// > cocos2d::CCSkewBy::reverse @ 0x180035dbd
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0660
//
// 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=1
struct cocos2d::CCSkewBy *__fastcall cocos2d::CCSkewBy::create(float a1, float a2, float a3)
{
cocos2d::CCAction *v3; // rax
cocos2d::CCAction *v4; // rbx
bool (__fastcall *v5)(cocos2d::CCSkewBy *__hidden, float, float, float); // rdx
void (__stdcall *v7)(cocos2d::CCAction *__hidden); // r8
v3 = (cocos2d::CCAction *)operator new(0x80u);
v4 = v3;
if ( v3 )
{
*(_OWORD *)&v3->__vftable = 0;
*(_OWORD *)&v3->cocos2d::CCObject::m_nTag = 0;
*(_OWORD *)&v3->m_uIndexInArray = 0;
*(_OWORD *)&v3->m_uOrderOfArrival = 0;
*(_OWORD *)&v3->m_pTarget = 0;
*(_OWORD *)&v3[1].__vftable = 0;
*(_OWORD *)&v3[1].cocos2d::CCObject::m_nTag = 0;
*(_OWORD *)&v3[1].m_uIndexInArray = 0;
cocos2d::CCAction::CCAction(v3);
LODWORD(v4[1].__vftable) = 0;
*(_QWORD *)&v4[1].cocos2d::CCObject::m_nTag = 0;
*(_QWORD *)&v4[1].m_uAutoReleaseCount = 0;
*(_QWORD *)&v4[1].m_uIndexInArray = 0;
*(_QWORD *)&v4[1].m_unknown2 = 0;
v4->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCSkewBy::`vftable';
}
else
{
v4 = nullptr;
}
if ( !v4 )
return (struct cocos2d::CCSkewBy *)v4;
v5 = (bool (__fastcall *)(cocos2d::CCSkewBy *__hidden, float, float, float))v4->__vftable[1].~CCAction;
if ( v5 == cocos2d::CCSkewBy::initWithDuration )
{
*(float *)&v4[1].__vftable = a1;
if ( a1 == 0.0 )
LODWORD(v4[1].__vftable) = 872415232;
v4[1].m_uID = 0;
LOBYTE(v4[1].m_nLuaID) = 1;
*(float *)&v4[1].m_uIndexInArray = a2;
*(float *)&v4[1].m_uUnknown = a3;
*(float *)&v4[1].cocos2d::CCObject::m_nTag = a2;
*(float *)&v4[1].m_uReference = a3;
goto LABEL_10;
}
if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCAction *))v5)(v4) )
{
LABEL_10:
cocos2d::CCObject::autorelease(v4);
return (struct cocos2d::CCSkewBy *)v4;
}
v7 = v4->~CCAction;
if ( (char *)v7 == (char *)sub_18002BA10 )
sub_18002BA10(v4, 1);
else
((void (__fastcall *)(cocos2d::CCAction *, __int64))v7)(v4, 1);
return nullptr;
}