//
// PauseLayer::onResume from 0x14037e380 to 0x14037e410 (144 bytes)
//
// 3 xrefs:
// > PauseLayer::keyDown @ 0x14037ed4f
// > PauseLayer::customSetup @ 0x14037cd58
// > ??> @ 0x1406d5d8c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void PauseLayer::onResume(PauseLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
__int64 v5; // rcx
void *v6; // [rsp+30h] [rbp+8h]
if ( a1->m_forcePrioRegistered )
{
a1->m_forcePrioRegistered = 0;
v3 = cocos2d::CCDirector::sharedDirector(a1);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
}
v5 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v5 = qword_1406C2ED8;
}
PlayLayer::resume(*(PlayLayer **)(v5 + 520));
a1->removeMeAndCleanup(a1);
}