//
// sub_1005A0560 from 0x1005a0560 to 0x1005a05db (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b72480
//
// 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:32:32 +0000
//
void __fastcall sub_1005A0560(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rdi
__int64 v3; // rbx
_QWORD *v4; // rax
char *v5; // rax
if ( !*(_BYTE *)(a1 + 137) && !*(_BYTE *)(a1 + 177) )
{
*(_DWORD *)(GameManager::sharedState() + 1084) = 1;
*(_WORD *)(a1 + 136) = 257;
v1 = *(_QWORD *)(a1 - 336);
v2 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(v1 + 1072))(v2, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = CreatorLayer::scene(v2, 0);
v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);
cocos2d::CCDirector::replaceScene(v3, v5);
}
}