//
// cocos2d::CCTouchDispatcher::unregisterForcePrio from 0x1001cd668 to 0x1001cd6dc (116 bytes)
//
// 75 xrefs:
// > sub_100058C00 @ 0x100058c48
// > CustomizeObjectSettingsPopup::onClose @ 0x1000598c0
// > CustomizeObjectSettingsPopup::onClose @ 0x100059900
// > SetupSmartBlockLayer::onClose @ 0x100078440
// > sub_100079768 @ 0x100079800
// > sub_10007AF98 @ 0x10007afbc
// > sub_10008F5F4 @ 0x10008f660
// > CCBlockLayer::decrementForcePrio @ 0x10008f9b0
// > sub_10008FBA4 @ 0x10008fc0c
// > SetupTriggerPopup::onClose @ 0x1001ae664
// > sub_1001C17A4 @ 0x1001c17d0
// > sub_1001C1818 @ 0x1001c185c
// > sub_1001C8D50 @ 0x1001c8db4
// > GJShopLayer::onBack @ 0x1001ca4b4
// > GJShopLayer::dialogClosed @ 0x1001cbf7c
// > sub_1001F50BC @ 0x1001f5474
// > ProfilePage::onClose @ 0x10022aac0
// > ProfilePage::onClose @ 0x10022aad8
// > sub_10022B0A0 @ 0x10022b0d4
// > sub_100239D50 @ 0x100239d84
// > sub_10024B91C @ 0x10024b948
// > sub_10024B91C @ 0x10024b960
// > FRequestProfilePage::setupCommentsBrowser @ 0x10024c7c8
// > sub_100250A28 @ 0x100250a60
// > sub_100264620 @ 0x10026464c
// > sub_100264620 @ 0x100264664
// > sub_1002646C4 @ 0x1002646f0
// > sub_1002646C4 @ 0x100264708
// > sub_100265244 @ 0x100265278
// > sub_10026A060 @ 0x10026a0a8
// > FriendsProfilePage::onSwitchList @ 0x1002722b4
// > FriendsProfilePage::onSwitchList @ 0x1002722cc
// > FriendsProfilePage::onClose @ 0x100273cfc
// > FriendsProfilePage::onClose @ 0x100273d14
// > sub_1002ED8E8 @ 0x1002ed91c
// > sub_1002EDE1C @ 0x1002ede54
// > sub_1002EDE1C @ 0x1002ede6c
// > sub_10034A834 @ 0x10034a8a8
// > FLAlertLayer::onButtonTag @ 0x10034b840
// > sub_100372C30 @ 0x100372c90
// > sub_100380318 @ 0x10038033c
// > sub_100394CE0 @ 0x100394d2c
// > sub_1003F00FC @ 0x1003f0128
// > InfoLayer::setupCommentsBrowser @ 0x1003f08d4
// > sub_1003F1D70 @ 0x1003f1e48
// > sub_1003F1D70 @ 0x1003f1e60
// > LeaderboardsLayer::onBack @ 0x1004587a4
// > LeaderboardsLayer::setupLevelBrowser @ 0x1004588a8
// > sub_100459174 @ 0x1004591d4
// > sub_10045F128 @ 0x10045f14c
// > sub_100460D64 @ 0x100460d94
// > sub_100462A4C @ 0x100462a70
// > sub_100468D88 @ 0x100468eb0
// > sub_100469F94 @ 0x10046a14c
// > sub_10046B4C4 @ 0x10046b50c
// > OptionsScrollLayer::setupList @ 0x10046b6c4
// > sub_100494DB0 @ 0x100494e4c
// > LevelBrowserLayer::setupLevelBrowser @ 0x100499564
// > LevelBrowserLayer::exitLayer @ 0x10049a410
// > EditButtonBar::loadFromItems @ 0x1004a304c
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1004d464c
// > sub_1004D501C @ 0x1004d50d0
// > sub_1004F4FC8 @ 0x1004f5010
// > sub_1004F4FC8 @ 0x1004f5028
// > sub_1004F5088 @ 0x1004f50b4
// > sub_1004F5088 @ 0x1004f50cc
// > sub_1004F5C34 @ 0x1004f5d34
// > sub_1004F7820 @ 0x1004f7868
// > sub_10050244C @ 0x1005024d8
// > sub_100506074 @ 0x1005060a8
// > sub_10053B54C @ 0x10053b578
// > sub_10053B54C @ 0x10053b590
// > sub_10053B858 @ 0x10053b88c
// > sub_1005408FC @ 0x100540954
// > sub_10054C6B8 @ 0x10054c728
//
// 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 11:00:21 +0000
//
__int64 __fastcall cocos2d::CCTouchDispatcher::unregisterForcePrio(__int64 result, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
int v5; // w8
if ( a2 )
{
v3 = result;
v4 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(result + 136), *(unsigned int *)(a2 + 8));
if ( v4 )
{
v5 = *(_DWORD *)(v4 + 56);
*(_DWORD *)(v3 + 160) -= v5;
*(_DWORD *)(v3 + 128) += v5;
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(v3 + 136), *(unsigned int *)(a2 + 8));
}
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(v3 + 144), *(unsigned int *)(a2 + 8));
return cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(v3 + 152), *(unsigned int *)(a2 + 8));
}
return result;
}