//
// cocos2d::CCFlipX3D::create from 0x18002c650 to 0x18002c73a (234 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afcdc
//
// 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=2
struct cocos2d::CCFlipX3D *__fastcall cocos2d::CCFlipX3D::create(float a1)
{
void *v1; // rbx
bool (__fastcall *v2)(cocos2d::CCFlipX3D *__hidden, float); // rdx
struct cocos2d::CCSize *v3; // rax
char v4; // al
void *v6; // [rsp+48h] [rbp+10h] BYREF
v1 = operator new(0x68u);
v6 = v1;
if ( v1 )
{
*(_OWORD *)v1 = 0;
*((_OWORD *)v1 + 1) = 0;
*((_OWORD *)v1 + 2) = 0;
*((_OWORD *)v1 + 3) = 0;
*((_OWORD *)v1 + 4) = 0;
*((_OWORD *)v1 + 5) = 0;
*((_QWORD *)v1 + 12) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v1);
*((_DWORD *)v1 + 20) = 0;
*(_QWORD *)v1 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v1 + 12);
*(_QWORD *)v1 = &cocos2d::CCFlipX3D::`vftable';
}
else
{
v1 = nullptr;
}
if ( !v1 )
return (struct cocos2d::CCFlipX3D *)v1;
v2 = *(bool (__fastcall **)(cocos2d::CCFlipX3D *__hidden, float))(*(_QWORD *)v1 + 128LL);
if ( v2 == cocos2d::CCFlipX3D::initWithDuration )
{
v3 = (struct cocos2d::CCSize *)kmVec2Fill((float *)&v6, 1.0, 1.0);
v4 = cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v1, a1, v3);
}
else
{
v4 = ((__int64 (__fastcall *)(void *))v2)(v1);
}
if ( v4 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return (struct cocos2d::CCFlipX3D *)v1;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v1);
return nullptr;
}