//
// cocos2d::CCTransitionCrossFade::onEnter from 0xd61e84 to 0xd62200 (892 bytes)
//
// 2 xrefs:
// > ??> @ 0xdcab0
// > ??> @ 0x1520920
//
// 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:51 +0000
//
__int64 __fastcall cocos2d::CCTransitionCrossFade::onEnter(cocos2d::CCTransitionCrossFade *this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x0
cocos2d::CCLayerColor *v4; // x24
int v5; // w2
__int64 v6; // x0
cocos2d::CCRenderTexture *v7; // x19
__int64 v8; // x20
void (__fastcall *v9)(__int64, float *); // x27
void (__fastcall *v10)(cocos2d::CCRenderTexture *, float *); // x20
void (__fastcall *v11)(cocos2d::CCRenderTexture *, float *); // x20
int v12; // w2
cocos2d::CCRenderTexture *v13; // x20
__int64 v14; // x27
void (__fastcall *v15)(__int64, float *); // x28
void (__fastcall *v16)(cocos2d::CCRenderTexture *, float *); // x27
void (__fastcall *v17)(cocos2d::CCRenderTexture *, float *); // x27
__int64 v18; // x0
__int64 v19; // x0
__int64 v20; // x0
__int64 v21; // x0
cocos2d::CCAction *v22; // x21
__int64 v23; // x19
__int64 v24; // x0
cocos2d::CCActionManager **v25; // x0
cocos2d::CCSequence *v27; // [xsp+78h] [xbp+78h]
_BYTE v28[8]; // [xsp+80h] [xbp+80h] BYREF
__int64 v29; // [xsp+88h] [xbp+88h] BYREF
float v30; // [xsp+90h] [xbp+90h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCTransitionScene::onEnter(this);
v28[0] = 0;
v28[1] = 0;
v28[2] = 0;
v28[3] = 0;
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(&v29, v3);
v4 = cocos2d::CCLayerColor::create((__int64)v28);
v6 = cocos2d::CCRenderTexture::create(
(cocos2d::CCRenderTexture *)(unsigned int)(int)*(float *)&v29,
(int)*((float *)&v29 + 1),
v5);
v7 = (cocos2d::CCRenderTexture *)v6;
if ( v6 )
{
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 896LL))(v6);
v9 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 296LL);
cocos2d::CCPoint::CCPoint(&v30, 0.5, 0.5);
v9(v8, &v30);
v10 = *(void (__fastcall **)(cocos2d::CCRenderTexture *, float *))(*(_QWORD *)v7 + 184LL);
cocos2d::CCPoint::CCPoint(&v30, *(float *)&v29 * 0.5, *((float *)&v29 + 1) * 0.5);
v10(v7, &v30);
v11 = *(void (__fastcall **)(cocos2d::CCRenderTexture *, float *))(*(_QWORD *)v7 + 296LL);
cocos2d::CCPoint::CCPoint(&v30, 0.5, 0.5);
v11(v7, &v30);
cocos2d::CCRenderTexture::begin(v7);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 752LL))(*((_QWORD *)this + 41));
cocos2d::CCRenderTexture::end(v7);
v13 = (cocos2d::CCRenderTexture *)cocos2d::CCRenderTexture::create(
(cocos2d::CCRenderTexture *)(unsigned int)(int)*(float *)&v29,
(int)*((float *)&v29 + 1),
v12);
v14 = (*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v13 + 896LL))(v13);
v15 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v14 + 296LL);
cocos2d::CCPoint::CCPoint(&v30, 0.5, 0.5);
v15(v14, &v30);
v16 = *(void (__fastcall **)(cocos2d::CCRenderTexture *, float *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint(&v30, *(float *)&v29 * 0.5, *((float *)&v29 + 1) * 0.5);
v16(v13, &v30);
v17 = *(void (__fastcall **)(cocos2d::CCRenderTexture *, float *))(*(_QWORD *)v13 + 296LL);
cocos2d::CCPoint::CCPoint(&v30, 0.5, 0.5);
v17(v13, &v30);
cocos2d::CCRenderTexture::begin(v13);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 42) + 752LL))(*((_QWORD *)this + 42));
cocos2d::CCRenderTexture::end(v13);
v18 = (*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v7 + 896LL))(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 1080LL))(v18, 0x100000001LL);
v19 = (*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v13 + 896LL))(v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 1080LL))(v19, 0x30300000302LL);
(*(void (__fastcall **)(cocos2d::CCLayerColor *, cocos2d::CCRenderTexture *))(*(_QWORD *)v4 + 456LL))(v4, v7);
(*(void (__fastcall **)(cocos2d::CCLayerColor *, cocos2d::CCRenderTexture *))(*(_QWORD *)v4 + 456LL))(v4, v13);
v20 = (*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v7 + 896LL))(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 912LL))(v20, 0xFFFFFFFFLL);
v21 = (*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v13 + 896LL))(v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 912LL))(v21, 0xFFFFFFFFLL);
v22 = cocos2d::CCFadeTo::create(nullptr, *((float *)this + 86));
v23 = cocos2d::CCCallFunc::create(this, (__int64)cocos2d::CCTransitionScene::hideOutShowIn, 0);
v24 = cocos2d::CCCallFunc::create(this, (__int64)cocos2d::CCTransitionScene::finish, 0);
v27 = cocos2d::CCSequence::create(v22, v23, v24, 0);
v25 = (cocos2d::CCActionManager **)(*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v13 + 896LL))(v13);
cocos2d::CCNode::runAction(v25, v27);
(*(void (__fastcall **)(cocos2d::CCTransitionCrossFade *, cocos2d::CCLayerColor *, __int64, __int64))(*(_QWORD *)this + 472LL))(
this,
v4,
2,
4208917214LL);
}
return _stack_chk_guard;
}