//
// cocos2d::CCTransitionFade::onEnter from 0x1000d8ae0 to 0x1000d8c03 (291 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008bdfb8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCTransitionFade::onEnter(cocos2d::CCTransitionFade *a1)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
cocos2d::CCLayerColor *v4; // r14
cocos2d::CCNode *v5; // r14
unsigned int v6; // r15d
unsigned int v7; // r12d
unsigned int v8; // r13d
unsigned int v9; // eax
int v10; // r9d
cocos2d::CCAction *v11; // rax
cocos2d::CCNode::onEnter(a1);
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::setDispatchEvents(v3, 0);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 712LL))(*(_QWORD *)&a1[1].m_uID);
(*((void (__fastcall **)(cocos2d::CCTransitionFade_vtbl *))a1[1].copyWithZone + 86))(a1[1].__vftable);
v4 = cocos2d::CCLayerColor::create_1((const cocos2d::ccColor4B *)((char *)&a1[1].m_uReference + 2));
(*((void (__fastcall **)(cocos2d::CCTransitionFade_vtbl *, _QWORD))a1[1].copyWithZone + 41))(a1[1].__vftable, 0);
((void (__fastcall *)(cocos2d::CCTransitionFade *, cocos2d::CCLayerColor *, __int64, __int64))a1->addChild_1)(
a1,
v4,
2,
4208917214LL);
v5 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCTransitionFade *, __int64))a1->getChildByTag)(
a1,
4208917214LL);
v6 = (unsigned int)cocos2d::CCFadeIn::create(*(float *)&a1[1].m_nTag * 0.5);
v7 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)cocos2d::CCTransitionScene::hideOutShowIn);
v8 = (unsigned int)cocos2d::CCFadeOut::create(0.5 * *(float *)&a1[1].m_nTag);
v9 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)cocos2d::CCTransitionScene::finish);
v11 = (cocos2d::CCAction *)sub_1003B5760(v6, v7, v8, v9, 0, v10);
cocos2d::CCNode::runAction(v5, v11);
}