//
// cocos2d::CCTouchDispatcher::registerForcePrio from 0x807ce2 to 0x807d40 (94 bytes)
//
// 10 xrefs:
// > CCBlockLayer::incrementForcePrio @ 0x3c5a58
// > FLAlertLayer::incrementForcePrio @ 0x3cb8b2
// > SlideInLayer::init @ 0x3da52a
// > LevelBrowserLayer::init @ 0x4a6cb4
// > GJDropDownLayer::init @ 0x52bd54
// > GJCommentListLayer::init @ 0x5d949a
// > DailyLevelNode::init @ 0x607192
// > DialogLayer::init @ 0x609b6a
// > GJShopLayer::init @ 0x612a62
// > LevelBadgePopup::buildCell @ 0x747722
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:26 +0000
//
void __fastcall cocos2d::CCTouchDispatcher::registerForcePrio(
cocos2d::CCDictionary **this,
cocos2d::CCObject *a2,
cocos2d::CCInteger *a3,
int a4)
{
cocos2d::CCInteger *v5; // r5
int v8; // r0
int v9; // r1
cocos2d::CCObject *v10; // r0
cocos2d::CCDictionary *v11; // r5
cocos2d::CCObject *v12; // r1
cocos2d::CCDictionary *v13; // r0
cocos2d::CCDictionary *v14; // r6
v5 = a3;
if ( a2 )
{
cocos2d::CCTouchDispatcher::incrementForcePrio((int)this, (int)a3);
v8 = cocos2d::CCDictionary::objectForKey(*(this + 26), *((_DWORD *)a2 + 1));
if ( v8 )
{
v5 = (cocos2d::CCInteger *)((char *)v5 + *(_DWORD *)(v8 + 52));
}
else
{
v10 = cocos2d::CCInteger::create(v5, v9);
cocos2d::CCDictionary::setObject(*(this + 26), v10, *((_DWORD *)a2 + 1));
}
if ( a4 )
{
if ( a4 == 1 )
{
v11 = *(this + 27);
v12 = cocos2d::CCInteger::create(*(this + 25), v9);
v13 = v11;
}
else
{
v14 = *(this + 28);
v12 = cocos2d::CCInteger::create(v5, v9);
v13 = v14;
}
cocos2d::CCDictionary::setObject(v13, v12, *((_DWORD *)a2 + 1));
}
}
}