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