//
// PlayLayer::resume from 0x10008dc30 to 0x10008ddca (410 bytes)
//
// 2 xrefs:
// > PauseLayer::onResume @ 0x1003c12ef
// > PauseLayer::onResume @ 0x1003c1366
//
// 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:07 +0000
//
void __fastcall PlayLayer::resume(__int64 a1, __int64 a2, double a3)
{
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rdx
double v8; // xmm0_8
const char *v9; // rsi
__int64 v10; // rax
__int64 v11; // rdi
__int64 v12; // rdx
__int64 v13; // rdi
double v14; // xmm0_8
__int64 v15; // rax
__int64 v16; // rdi
timeb v17; // [rsp+8h] [rbp-18h] BYREF
if ( *(_BYTE *)(AppDelegate::get(a1, a2) + 65) == 1 )
{
if ( *(_BYTE *)(a1 + 12650) )
{
v4 = FMODAudioEngine::sharedEngine(a3);
a3 = FMODAudioEngine::resumeAllAudio(v4);
v5 = FMODAudioEngine::sharedEngine(a3);
FMOD::System::update(*(FMOD::System **)(v5 + 488));
}
else
{
GJBaseGameLayer::preResumeGame(a1);
*(_BYTE *)(a1 + 13806) = 1;
}
v6 = FMODAudioEngine::sharedEngine(a3);
*(_BYTE *)(a1 + 14288) = FMODAudioEngine::getBackgroundMusicVolume(v6) <= 0.0;
*(_BYTE *)(a1 + 14751) = 0;
*(_BYTE *)(a1 + 1982) = *(_BYTE *)(a1 + 12650);
*(_BYTE *)(cocos2d::CCDirector::sharedDirector(v6, a2) + 178) = 1;
*(_QWORD *)&v8 = GameManager::sharedState(v6, a2, v7).u64[0];
v9 = "0128";
v11 = v10;
if ( (unsigned __int8)GameManager::getGameVariable(v10, "0128") )
{
v13 = 1;
PlatformToolbox::toggleLockCursor(1, v8);
}
else
{
*(_QWORD *)&v14 = GameManager::sharedState(v11, "0128", v12).u64[0];
v9 = "0024";
v13 = v15;
if ( !(unsigned __int8)GameManager::getGameVariable(v15, "0024") )
PlatformToolbox::hideCursor(v14);
}
*(_BYTE *)(AppDelegate::get(v13, v9) + 65) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 704LL))(a1);
sub_100408220(*(_QWORD *)(a1 + 3256));
if ( *(_BYTE *)(a1 + 1010) == 1 )
sub_100408220(*(_QWORD *)(a1 + 3264));
PlayerObject::releaseAllButtons(*(_QWORD *)(a1 + 3256));
v16 = *(_QWORD *)(a1 + 3264);
if ( v16 )
PlayerObject::releaseAllButtons(v16);
UILayer::refreshDpad(*(_QWORD *)(a1 + 13288));
UILayer::resetAllButtons(*(_QWORD *)(a1 + 13288));
UILayer::toggleMenuVisibility(*(_QWORD *)(a1 + 13288), 1);
ftime(&v17);
*(double *)(a1 + 14736) = (double)v17.millitm / 1000.0
+ (double)SLODWORD(v17.time)
- *(double *)(a1 + 14720)
+ *(double *)(a1 + 14736);
PlayLayer::updateTestModeLabel(a1);
}
}