//
// cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher from 0x1800082e0 to 0x180008333 (83 bytes)
//
// 4 xrefs:
// > ??> @ 0x180027258
// > ??> @ 0x180027e30
// > ??> @ 0x180032408
// > ??> @ 0x18004b810
//
// This function is hookable on this platform (idp: pc, 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 12:15:36 +0000
//
// Alternative name is '?registerWithTouchDispatcher@CCControlHuePicker@extension@cocos2d@@UEAAXXZ'
void __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher(
cocos2d::extension::CCControlSaturationBrightnessPicker *this,
__int64 a2)
{
__int64 v3; // rax
struct cocos2d::CCTouchDelegate *v4; // rdi
cocos2d::CCTouchDispatcher *v5; // rax
v3 = cocos2d::CCDirector::sharedDirector(this, a2);
v4 = (cocos2d::extension::CCControlSaturationBrightnessPicker *)((char *)this + 320);
if ( !this )
v4 = nullptr;
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(v5, v4, -500, 1);
}