//
// cocos2d::CCTransitionScene::create from 0x180055780 to 0x180055852 (210 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc8b0
//
// 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:47 +0000
//
struct cocos2d::CCTransitionScene *__fastcall cocos2d::CCTransitionScene::create(float a1, struct cocos2d::CCScene *a2)
{
cocos2d::CCScene *v3; // rax
cocos2d::CCTransitionScene *v4; // rbx
bool (__fastcall *v5)(cocos2d::CCTransitionScene *__hidden, float, struct cocos2d::CCScene *); // rdx
char v6; // al
cocos2d::CCScene *(__fastcall *v8)(cocos2d::CCObject **, char); // r8
v3 = (cocos2d::CCScene *)sub_1800E4AC0(0x160u);
v4 = v3;
if ( v3 )
{
cocos2d::CCScene::CCScene(v3);
*(_QWORD *)v4 = &cocos2d::CCTransitionScene::`vftable';
}
else
{
v4 = nullptr;
}
if ( v4 )
{
v5 = *(bool (__fastcall **)(cocos2d::CCTransitionScene *__hidden, float, struct cocos2d::CCScene *))(*(_QWORD *)v4 + 888LL);
if ( v5 == cocos2d::CCTransitionScene::initWithDuration )
v6 = cocos2d::CCTransitionScene::initWithDuration(v4, a1, a2);
else
v6 = ((__int64 (__fastcall *)(cocos2d::CCTransitionScene *, bool (__fastcall *)(cocos2d::CCTransitionScene *__hidden, float, struct cocos2d::CCScene *), struct cocos2d::CCScene *))v5)(
v4,
v5,
a2);
if ( v6 )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
v8 = *(cocos2d::CCScene *(__fastcall **)(cocos2d::CCObject **, char))(*(_QWORD *)v4 + 8LL);
if ( v8 == sub_180054470 )
{
sub_180054470((cocos2d::CCObject **)v4, 1);
return nullptr;
}
v8((cocos2d::CCObject **)v4, 1);
}
return nullptr;
}