//
// LevelAreaInnerLayer::playStep1 from 0x100268060 to 0x100268110 (176 bytes)
//
// 1 xrefs:
// > LevelAreaInnerLayer::onDoor @ 0x10026723d
//
// 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:27:34 +0000
//
__int64 __fastcall LevelAreaInnerLayer::playStep1(__int64 a1, __int64 a2, __int64 a3)
{
double v3; // xmm0_8
__int64 v4; // rax
__int64 v5; // rax
__int64 MainLevel; // rbx
__int64 v7; // rax
std::string::pointer data; // rdi
__int64 v9; // r14
_DWORD *v10; // rax
char *v11; // rax
std::string __str; // [rsp+8h] [rbp-28h] BYREF
*(_QWORD *)&v3 = GameManager::sharedState(a1, a2, a3).u64[0];
*(_DWORD *)(v4 + 708) = 15;
*(_BYTE *)(a1 + 432) = 1;
v5 = GameLevelManager::sharedState(v3);
MainLevel = GameLevelManager::getMainLevel(v5, *(unsigned int *)(a1 + 428), 1);
v7 = LocalLevelManager::sharedState(v3);
LocalLevelManager::getMainLevelString(&__str, v7, *(unsigned int *)(a1 + 428));
data = (std::string::pointer)(MainLevel + 392);
std::string::operator=((std::string *)(MainLevel + 392), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
{
data = __str.__r_.__value_.__l.__data_;
operator delete(__str.__r_.__value_.__l.__data_);
}
v9 = cocos2d::CCDirector::sharedDirector(data, &__str);
v10 = PlayLayer::scene(MainLevel, 0);
v11 = cocos2d::CCTransitionFade::create_1((__int64)v10, 0.5);
return cocos2d::CCDirector::replaceScene(v9, v11);
}