//
// cocos2d::CCLens3D::create from 0x18002cef0 to 0x18002cfd7 (231 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9e08
//
// 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:32 +0000
//
// 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
_DWORD *v7; // rbx
v6 = (_OWORD *)sub_1800E4AC0(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);
v7[20] = 0;
*(_QWORD *)v7 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v7 + 24));
*(_QWORD *)v7 = &cocos2d::CCLens3D::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v7 + 26));
}
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;
}