//
// cocos2d::CCLens3D::create from 0x18002c830 to 0x18002c917 (231 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afcf4
//
// 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::CCLens3D *__fastcall cocos2d::CCLens3D::create(
float a1,
const struct cocos2d::CCSize *a2,
const struct cocos2d::CCPoint *a3,
float a4)
{
_OWORD *v6; // rax
_OWORD *v7; // rbx
v6 = operator new(0x80u);
v7 = v6;
if ( v6 )
{
*v6 = 0;
v6[1] = 0;
v6[2] = 0;
v6[3] = 0;
v6[4] = 0;
v6[5] = 0;
v6[6] = 0;
v6[7] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);
*((_DWORD *)v7 + 20) = 0;
*(_QWORD *)v7 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7 + 12);
*(_QWORD *)v7 = &cocos2d::CCLens3D::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7 + 13);
}
else
{
v7 = nullptr;
}
if ( !v7 )
return (struct cocos2d::CCLens3D *)v7;
if ( cocos2d::CCLens3D::initWithDuration((cocos2d::CCLens3D *)v7, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
return (struct cocos2d::CCLens3D *)v7;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v7);
return nullptr;
}