//
// cocos2d::CCTransitionFlipX::create from 0x180053340 to 0x1800533df (159 bytes)
//
// 3 xrefs:
// > cocos2d::CCTransitionFlipX::create @ 0x180053336
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b25bc
//
// 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
//
struct cocos2d::CCTransitionFlipX *__fastcall cocos2d::CCTransitionFlipX::create(
float a1,
struct cocos2d::CCScene *a2,
unsigned int a3)
{
cocos2d::CCScene *v5; // rax
cocos2d::CCTransitionScene *v6; // rbx
cocos2d::CCObject *(__stdcall *copyWithZone)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *); // rdx
v5 = (cocos2d::CCScene *)operator new(0x168u);
v6 = (cocos2d::CCTransitionScene *)v5;
if ( v5 )
{
cocos2d::CCScene::CCScene(v5);
v6->__vftable = (cocos2d::CCTransitionScene_vtbl *)&cocos2d::CCTransitionFlipX::`vftable';
}
else
{
v6 = nullptr;
}
copyWithZone = v6->__vftable[1].copyWithZone;
if ( (char *)copyWithZone == (char *)cocos2d::CCTransitionSceneOriented::initWithDuration )
{
if ( cocos2d::CCTransitionScene::initWithDuration(v6, a1, a2) )
v6[1].m_uAutoReleaseCount = a3;
}
else
{
((void (__fastcall *)(cocos2d::CCTransitionScene *, cocos2d::CCObject *(__stdcall *)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *), struct cocos2d::CCScene *, _QWORD))copyWithZone)(
v6,
copyWithZone,
a2,
a3);
}
cocos2d::CCObject::autorelease(v6);
return (struct cocos2d::CCTransitionFlipX *)v6;
}