//
// cocos2d::CCTransitionTurnOffTiles::onEnter from 0x1000a8050 to 0x1000a814e (254 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac1df0
//
// 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 12:20:15 +0000
//
__int64 __fastcall cocos2d::CCTransitionTurnOffTiles::onEnter(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rax
__m128 v7; // xmm0
__int64 v8; // rax
int v9; // r14d
__int64 v10; // r15
int v11; // eax
int v12; // r8d
int v13; // r9d
__int64 v14; // rax
_BYTE v16[8]; // [rsp+4h] [rbp-2Ch] BYREF
float v17[2]; // [rsp+Ch] [rbp-24h] BYREF
float v18; // [rsp+14h] [rbp-1Ch]
v2 = a1;
cocos2d::CCNode::onEnter(a1);
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::setDispatchEvents(v4, 0);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 336) + 728LL))(*(_QWORD *)(v2 + 336));
v5 = *(_QWORD *)(a1 + 328);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 704LL))(v5);
v6 = cocos2d::CCDirector::sharedDirector(v5, 0);
cocos2d::CCDirector::getWinSize(v17, v6);
v7 = (__m128)LODWORD(v17[0]);
v7.f32[0] = (float)(v17[0] / v17[1]) * 12.0;
v18 = *(float *)(v2 + 344);
sub_100278260(v16, *(double *)_mm_cvtepi32_ps(_mm_cvttps_epi32(v7)).i64, COERCE_DOUBLE(1094713344));
v8 = cocos2d::CCTurnOffTiles::create_1(v16, v18);
v9 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 912LL))(v2, v8);
v10 = *(_QWORD *)(v2 + 336);
LODWORD(v2) = cocos2d::CCCallFunc::create(v2, cocos2d::CCTransitionScene::finish, 0);
v11 = cocos2d::CCStopGrid::create();
v14 = sub_10039EB60(v9, v2, v11, 0, v12, v13);
return cocos2d::CCNode::runAction(v10, v14);
}