//
// cocos2d::CCTransitionProgressVertical::create from 0x180059370 to 0x180059450 (224 bytes)
//
// 3 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcc10
// > ??> @ 0x1801bcc1c
//
// 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
//
struct cocos2d::CCTransitionProgressVertical *__fastcall cocos2d::CCTransitionProgressVertical::create(
float a1,
struct cocos2d::CCScene *a2)
{
cocos2d::CCTransitionScene *v3; // rax
cocos2d::CCTransitionScene *v4; // rbx
cocos2d::CCObject **(__fastcall *v6)(cocos2d::CCObject **, char); // r8
v3 = (cocos2d::CCTransitionScene *)sub_1800E4AC0(0x170u);
v4 = v3;
if ( v3 )
{
memset(v3, 0, 0x170u);
cocos2d::CCTransitionScene::CCTransitionScene(v4);
*((_QWORD *)v4 + 44) = 0;
*((_QWORD *)v4 + 45) = 0;
*(_QWORD *)v4 = &cocos2d::CCTransitionProgressVertical::`vftable';
}
else
{
v4 = nullptr;
}
if ( v4 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCTransitionScene *, _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;
}