//
// cocos2d::CCTransitionScene::initWithDuration from 0xd5f8f0 to 0xd5f9c4 (212 bytes)
//
// 45 xrefs:
// > cocos2d::CCTransitionPageTurn::initWithDuration @ 0xd5e59c
// > cocos2d::CCTransitionSceneOriented::initWithDuration @ 0xd5f9dc
// > cocos2d::CCTransitionFade::initWithDuration @ 0xd5fa14
// > cocos2d::CCTransitionProgressRadialCCW::create @ 0xd62fec
// > cocos2d::CCTransitionProgressRadialCW::create @ 0xd63080
// > cocos2d::CCTransitionProgressHorizontal::create @ 0xd63114
// > cocos2d::CCTransitionProgressVertical::create @ 0xd631a8
// > cocos2d::CCTransitionProgressInOut::create @ 0xd6323c
// > cocos2d::CCTransitionProgressOutIn::create @ 0xd632d0
// > ??> @ 0xb7f88
// > ??> @ 0x151b800
// > ??> @ 0x151bf40
// > ??> @ 0x151c2e0
// > ??> @ 0x151c690
// > ??> @ 0x151ca30
// > ??> @ 0x151cdd0
// > ??> @ 0x151d1a0
// > ??> @ 0x151d570
// > ??> @ 0x151d940
// > ??> @ 0x151dd10
// > ??> @ 0x151e0e0
// > ??> @ 0x151e4b0
// > ??> @ 0x151e880
// > ??> @ 0x151ec50
// > ??> @ 0x151f010
// > ??> @ 0x151f3c0
// > ??> @ 0x151f770
// > ??> @ 0x151fb20
// > ??> @ 0x151fed0
// > ??> @ 0x1520280
// > ??> @ 0x15209e0
// > ??> @ 0x1520d80
// > ??> @ 0x1521140
// > ??> @ 0x1521510
// > ??> @ 0x15218e0
// > ??> @ 0x1521cb0
// > ??> @ 0x1522080
// > ??> @ 0x1522450
// > ??> @ 0x15228d0
// > ??> @ 0x1522c80
// > ??> @ 0x1523030
// > ??> @ 0x15233e0
// > ??> @ 0x1523790
// > ??> @ 0x1523b40
// > ??> @ 0x1523ef0
//
// This function is hookable on this platform (idp: arm, 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 13:07:50 +0000
//
__int64 __fastcall cocos2d::CCTransitionScene::initWithDuration(
cocos2d::CCTransitionScene *this,
float a2,
cocos2d::CCScene *a3)
{
float v3; // s8
unsigned __int8 v6; // w0
unsigned int v7; // w20
cocos2d::CCDirector *v9; // x0
__int64 v10; // x0
cocos2d::CCScene *v11; // x0
v3 = a2;
if ( a2 > 0.01 && *(_BYTE *)(cocos2d::CCDirector::sharedDirector(this) + 405) )
v3 = 0.01;
v6 = cocos2d::CCScene::init(this);
v7 = v6;
if ( !v6 )
return 0;
*((_QWORD *)this + 41) = a3;
*((float *)this + 86) = v3;
v9 = (cocos2d::CCDirector *)cocos2d::CCObject::retain((__int64)a3);
v10 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v9) + 272);
*((_QWORD *)this + 42) = v10;
if ( !v10 )
{
v11 = cocos2d::CCScene::create(nullptr);
*((_QWORD *)this + 42) = v11;
(*(void (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)v11 + 80LL))(v11);
v10 = *((_QWORD *)this + 42);
}
cocos2d::CCObject::retain(v10);
(*(void (__fastcall **)(cocos2d::CCTransitionScene *))(*(_QWORD *)this + 904LL))(this);
return v7;
}