//
// cocos2d::CCTouchDispatcher::registerForcePrio from 0xdb1398 to 0xdb14d0 (312 bytes)
//
// 11 xrefs:
// > CCBlockLayer::incrementForcePrio @ 0x690494
// > FLAlertLayer::incrementForcePrio @ 0x699cf4
// > SlideInLayer::init @ 0x6b3a80
// > LevelBrowserLayer::init @ 0x7f9530
// > GJDropDownLayer::init @ 0x8ecf24
// > GJCommentListLayer::init @ 0xa27b6c
// > DailyLevelNode::init @ 0xa6dff8
// > DialogLayer::init @ 0xa7107c
// > GJShopLayer::init @ 0xa7eef8
// > LevelBadgePopup::buildCell @ 0xc66c08
// > ??> @ 0x79c90
//
// 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 13:08:39 +0000
//
__int64 __fastcall cocos2d::CCTouchDispatcher::registerForcePrio(__int64 this, cocos2d::CCObject *a2, int a3, int a4)
{
__int64 v5; // x21
int v6; // w19
__int64 v7; // x0
int v8; // w3
cocos2d::CCDictionary *v9; // x22
cocos2d::CCObject *v10; // x21
cocos2d::CCDictionary *v11; // x0
cocos2d::CCObject *v12; // x1
cocos2d::CCDictionary *v13; // x22
int v14; // w21
cocos2d::CCObject *v15; // x19
cocos2d::CCObject *v16; // x22
v5 = this;
v6 = a3;
if ( a2 )
{
cocos2d::CCTouchDispatcher::incrementForcePrio(this, a3);
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v5 + 136), *((unsigned int *)a2 + 2));
v8 = a4;
if ( v7 )
{
this = *(unsigned int *)(v7 + 56);
v6 += this;
if ( !a4 )
return this;
}
else
{
v16 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v16);
*((_DWORD *)v16 + 14) = v6;
*(_QWORD *)v16 = &off_1428350;
cocos2d::CCObject::autorelease(v16);
this = (__int64)cocos2d::CCDictionary::setObject(
*(cocos2d::CCDictionary **)(v5 + 136),
v16,
*((unsigned int *)a2 + 2));
v8 = a4;
if ( !a4 )
return this;
}
if ( v8 == 1 )
{
v13 = *(cocos2d::CCDictionary **)(v5 + 144);
v14 = *(_DWORD *)(v5 + 128);
v15 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v15);
*((_DWORD *)v15 + 14) = v14;
*(_QWORD *)v15 = &off_1428350;
cocos2d::CCObject::autorelease(v15);
v11 = v13;
v12 = v15;
}
else
{
v9 = *(cocos2d::CCDictionary **)(v5 + 152);
v10 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v10);
*((_DWORD *)v10 + 14) = v6;
*(_QWORD *)v10 = &off_1428350;
cocos2d::CCObject::autorelease(v10);
v11 = v9;
v12 = v10;
}
return (__int64)cocos2d::CCDictionary::setObject(v11, v12, *((unsigned int *)a2 + 2));
}
return this;
}