//
// CCBlockLayer::decrementForcePrio from 0x10008f974 to 0x10008f9b8 (68 bytes)
//
// 9 xrefs:
// > PauseLayer::onRestartFull @ 0x1001bf7dc
// > PauseLayer::onResume @ 0x1001bf8c8
// > PauseLayer::onResume @ 0x1001bf910
// > PauseLayer::onRestart @ 0x1001bfad4
// > PauseLayer::goEdit @ 0x1001c108c
// > PauseLayer::onQuit @ 0x1001c1120
// > EditorPauseLayer::onResume @ 0x100444364
// > EditorPauseLayer::playStep3 @ 0x100444af4
// > EditorPauseLayer::onExitEditor @ 0x100444b4c
//
// This function is hookable on this platform (idp: arm, 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 10:58:23 +0000
//
__int64 __fastcall CCBlockLayer::decrementForcePrio(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x0
if ( *(_BYTE *)(result + 545) == 1 )
{
v1 = result;
*(_BYTE *)(result + 545) = 0;
v2 = cocos2d::CCDirector::sharedDirector(result);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
return cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, v1);
}
return result;
}