//
// cocos2d::CCTransitionCrossFade::onEnter from 0x5d2bcc to 0x5d2e62 (662 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCTransitionCrossFade::onEnter(cocos2d::CCTransitionCrossFade *a1)
{
cocos2d::CCDirector *v2; // r0
cocos2d::CCLayerColor *v3; // r10
int v4; // r2
cocos2d::CCRenderTexture *v5; // r0
cocos2d::CCRenderTexture *v6; // r6
int v7; // r4
void (__fastcall *v8)(int, cocos2d::CCPoint *); // r11
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r4
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r4
int v11; // r2
cocos2d::CCRenderTexture *v12; // r4
int v13; // r11
void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
cocos2d::CCRenderTexture_vtbl *v16; // r3
int v17; // r0
int v18; // r0
int v19; // r0
int v20; // r0
cocos2d::CCFadeTo *v21; // r0
cocos2d::CCSequence *v22; // r6
cocos2d::CCCallFunc *v23; // r0
cocos2d::CCFiniteTimeAction *v24; // r11
cocos2d::CCCallFunc *v25; // r0
cocos2d::CCSequence *v26; // r5
cocos2d::CCNode *v27; // r0
void (__fastcall *v28)(int, cocos2d::CCPoint *); // [sp+4h] [bp-38h]
cocos2d::CCSize v29; // [sp+Ch] [bp-30h] BYREF
int v30; // [sp+14h] [bp-28h]
int v31; // [sp+18h] [bp-24h]
int v32; // [sp+1Ch] [bp-20h]
int v33; // [sp+20h] [bp-1Ch]
void (*v34)(cocos2d::CCTransitionScene *); // [sp+24h] [bp-18h]
int v35; // [sp+28h] [bp-14h]
cocos2d::CCPoint v36; // [sp+2Ch] [bp-10h] BYREF
cocos2d::CCTransitionScene::onEnter(a1);
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v29, v2);
v3 = cocos2d::CCLayerColor::create();
v5 = (cocos2d::CCRenderTexture *)cocos2d::CCRenderTexture::create(
(cocos2d::CCRenderTexture *)(int)v29.width,
(int)v29.height,
v4);
v6 = v5;
if ( v5 )
{
v7 = (int)v5->getSprite(v5);
v8 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v7 + 140);
cocos2d::CCPoint::CCPoint(&v36, 0.5, 0.5);
v8(v7, &v36);
setPosition = v6->setPosition;
cocos2d::CCPoint::CCPoint(&v36, v29.width * 0.5, v29.height * 0.5);
setPosition(v6, &v36);
setAnchorPoint = v6->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v36, 0.5, 0.5);
setAnchorPoint(v6, &v36);
cocos2d::CCRenderTexture::begin(v6);
(*((void (__fastcall **)(cocos2d::CCTransitionCrossFade_vtbl *))a1[1].copyWithZone + 92))(a1[1].__vftable);
cocos2d::CCRenderTexture::end(v6);
v12 = (cocos2d::CCRenderTexture *)cocos2d::CCRenderTexture::create(
(cocos2d::CCRenderTexture *)(int)v29.width,
(int)v29.height,
v11);
v13 = (int)v12->getSprite(v12);
v28 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v13 + 140);
cocos2d::CCPoint::CCPoint(&v36, 0.5, 0.5);
v28(v13, &v36);
v14 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v36, v29.width * 0.5, v29.height * 0.5);
v14(v12, &v36);
v15 = v12->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v36, 0.5, 0.5);
v15(v12, &v36);
cocos2d::CCRenderTexture::begin(v12);
(*(void (__fastcall **)(unsigned int))(*(_DWORD *)a1[1].m_uID + 368))(a1[1].m_uID);
cocos2d::CCRenderTexture::end(v12);
v30 = 1;
v31 = 1;
v16 = v6->__vftable;
v32 = 770;
v33 = 771;
v17 = (int)v16->getSprite(v6);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v17 + 532))(v17, v30, v31);
v18 = (int)v12->getSprite(v12);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v18 + 532))(v18, v32, v33);
v3->addChild(v3, v6);
v3->addChild(v3, v12);
v19 = (int)v6->getSprite(v6);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 448))(v19, 255);
v20 = (int)v12->getSprite(v12);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 448))(v20, 255);
v21 = cocos2d::CCFadeTo::create(*(float *)&a1[1].m_nLuaID, 0);
v35 = 0;
v34 = cocos2d::CCTransitionScene::hideOutShowIn;
v22 = (cocos2d::CCSequence *)v21;
v23 = cocos2d::CCCallFunc::create((int)a1, (int)cocos2d::CCTransitionScene::hideOutShowIn, 0);
v36.y = 0.0;
LODWORD(v36.x) = cocos2d::CCTransitionScene::finish;
v24 = v23;
v25 = cocos2d::CCCallFunc::create((int)a1, (int)cocos2d::CCTransitionScene::finish, 0);
v26 = cocos2d::CCSequence::create(v22, v24, v25, 0);
v27 = v12->getSprite(v12);
cocos2d::CCNode::runAction(v27, v26);
a1->addChild_1(a1, v3, 2, -86050082);
}
}