//
// cocos2d::CCLens3D::initWithDuration from 0x18002cf60 to 0x18002d000 (160 bytes)
//
// 6 xrefs:
// > cocos2d::CCLens3D::copyWithZone @ 0x18002beb6
// > cocos2d::CCLens3D::create @ 0x18002c8e0
// > ??> @ 0x180134be4
// > ??> @ 0x180134bf4
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afd54
//
// 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
//
char __fastcall cocos2d::CCLens3D::initWithDuration(
cocos2d::CCLens3D *this,
float a2,
struct cocos2d::CCSize *a3,
cocos2d::CCSize *a4,
float a5)
{
float *v7; // rax
float v9[6]; // [rsp+20h] [rbp-18h] BYREF
if ( !cocos2d::CCGridAction::initWithDuration(this, a2, a3) )
return 0;
v7 = kmVec2Fill(v9, -1.0, -1.0);
cocos2d::CCSize::operator=((_DWORD *)this + 26, v7);
if ( !cocos2d::CCSize::equals(a4, (const struct cocos2d::CCSize *)this + 13) )
{
cocos2d::CCSize::operator=((_DWORD *)this + 26, a4);
*((_BYTE *)this + 121) = 1;
}
*((float *)this + 28) = a5;
*((_DWORD *)this + 29) = 1060320051;
*((_WORD *)this + 60) = 256;
return 1;
}