//
// cocos2d::CCTransitionProgress::create from 0x180058e40 to 0x180058f10 (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcbd4
//
// 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:48 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTransitionProgress *__fastcall cocos2d::CCTransitionProgress::create(
float a1,
struct cocos2d::CCScene *a2)
{
cocos2d::CCTransitionScene *v3; // rax
cocos2d::CCObject *v4; // rbx
cocos2d::CCObject **(__fastcall *v6)(cocos2d::CCObject **, char); // r8
v3 = (cocos2d::CCTransitionScene *)sub_1800E4AC0(0x170u);
v4 = v3;
if ( v3 )
{
cocos2d::CCTransitionScene::CCTransitionScene(v3);
*(_QWORD *)v4 = &cocos2d::CCTransitionProgress::`vftable';
*((_QWORD *)v4 + 44) = 0;
*((_QWORD *)v4 + 45) = 0;
}
else
{
v4 = nullptr;
}
if ( v4 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, _QWORD, struct cocos2d::CCScene *))(*(_QWORD *)v4 + 888LL))(
v4,
*(_QWORD *)(*(_QWORD *)v4 + 888LL),
a2) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
v6 = *(cocos2d::CCObject **(__fastcall **)(cocos2d::CCObject **, char))(*(_QWORD *)v4 + 8LL);
if ( v6 == sub_180058DB0 )
{
sub_180058DB0((cocos2d::CCObject **)v4, 1);
return nullptr;
}
v6((cocos2d::CCObject **)v4, 1);
}
return nullptr;
}