//
// cocos2d::CCTransitionFade::create from 0x180054b80 to 0x180054c0c (140 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::popSceneWithTransition @ 0x1800c24fa
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc7fc
//
// 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:46 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTransitionFade *__fastcall cocos2d::CCTransitionFade::create(float a1, struct cocos2d::CCScene *a2)
{
cocos2d::CCScene *v3; // rax
cocos2d::CCTransitionFade *v4; // rbx
bool (__fastcall *v5)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *); // rdx
v3 = (cocos2d::CCScene *)sub_1800E4AC0(0x168u);
v4 = v3;
if ( v3 )
{
cocos2d::CCScene::CCScene(v3);
*(_QWORD *)v4 = &cocos2d::CCTransitionFade::`vftable';
}
else
{
v4 = nullptr;
}
v5 = *(bool (__fastcall **)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *))(*(_QWORD *)v4 + 904LL);
if ( v5 == cocos2d::CCTransitionFade::initWithDuration )
cocos2d::CCTransitionFade::initWithDuration(v4, a1, a2, (const struct cocos2d::_ccColor3B *)&unk_1800F4E50);
else
((void (__fastcall *)(cocos2d::CCTransitionFade *, bool (__fastcall *)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *), struct cocos2d::CCScene *, void *))v5)(
v4,
v5,
a2,
&unk_1800F4E50);
cocos2d::CCObject::autorelease(v4);
return v4;
}