//
// cocos2d::CCTransitionTurnOffTiles::onEnter from 0x180057e40 to 0x180057f48 (264 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f9d48
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcab4
//
// 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:47 +0000
//
void __fastcall cocos2d::CCTransitionTurnOffTiles::onEnter(cocos2d::CCTransitionTurnOffTiles *this)
{
struct cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
struct cocos2d::CCDirector *v4; // rax
float v5; // xmm6_4
float *v6; // rax
struct cocos2d::CCTurnOffTiles *v7; // rax
__int64 v8; // rax
cocos2d::CCActionManager **v9; // rsi
struct cocos2d::CCFiniteTimeAction *v10; // rdi
struct cocos2d::CCStopGrid *v11; // rbx
cocos2d::CCAction *v12; // rax
struct cocos2d::CCAction *v13; // rax
float v14; // [rsp+50h] [rbp+8h] BYREF
float v15; // [rsp+54h] [rbp+Ch]
float v16; // [rsp+58h] [rbp+10h] BYREF
cocos2d::CCNode::onEnter(this);
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::setDispatchEvents(v3, 0);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 42) + 720LL))(*((_QWORD *)this + 42));
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 696LL))(*((_QWORD *)this + 41));
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, &v14);
v5 = *((float *)this + 86);
v6 = kmVec2Fill(&v16, (float)(int)(float)((float)(v14 / v15) * 12.0), 12.0);
v7 = cocos2d::CCTurnOffTiles::create(v5, (const struct cocos2d::CCSize *)v6);
v8 = (**((__int64 (__fastcall ***)(char *, struct cocos2d::CCTurnOffTiles *))this + 44))((char *)this + 352, v7);
v9 = *((cocos2d::CCActionManager ***)this + 42);
v10 = (struct cocos2d::CCFiniteTimeAction *)v8;
v11 = cocos2d::CCStopGrid::create();
v12 = cocos2d::CCCallFunc::create(this, (__int64)cocos2d::CCTransitionScene::finish);
v13 = cocos2d::CCSequence::create(v10, v12, v11, 0);
cocos2d::CCNode::runAction(v9, v13);
}