{"type": "func", "start": 6442484448, "end": 6442484531, "name": "cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher", "pseudocode": "// \n// cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher from 0x1800082e0 to 0x180008333 (83 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180027258\n// > <???> @ 0x180027e30\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b810\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:36 +0000\n// \n\n// Alternative name is '?registerWithTouchDispatcher@CCControlHuePicker@extension@cocos2d@@UEAAXXZ'\nvoid __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher(\n        cocos2d::extension::CCControlSaturationBrightnessPicker *this,\n        __int64 a2)\n{\n  __int64 v3; // rax\n  struct cocos2d::CCTouchDelegate *v4; // rdi\n  cocos2d::CCTouchDispatcher *v5; // rax\n\n  v3 = cocos2d::CCDirector::sharedDirector(this, a2);\n  v4 = (cocos2d::extension::CCControlSaturationBrightnessPicker *)((char *)this + 320);\n  if ( !this )\n    v4 = nullptr;\n  v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(v5, v4, -500, 1);\n}", "assembly": "; \n; cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher from 0x1800082e0 to 0x180008333 (83 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180027258\n; > <???> @ 0x180027e30\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b810\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800082e0\npush    rdi                                                            ; +0x5, 0x1800082e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800082e6\nmov     rbx, rcx                                                       ; +0xa, 0x1800082ea\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1800082ed\nxor     ecx, ecx                                                       ; +0x13, 0x1800082f3\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x1800082f5\ntest    rbx, rbx                                                       ; +0x1c, 0x1800082fc\ncmovz   rdi, rcx                                                       ; +0x1f, 0x1800082ff\nmov     rcx, [rax]                                                     ; +0x23, 0x180008303\nmov     r8, [rcx+90h]                                                  ; +0x26, 0x180008306\nmov     rcx, rax                                                       ; +0x2d, 0x18000830d\ncall    r8                                                             ; +0x30, 0x180008310\nmov     rcx, rax                                                       ; +0x33, 0x180008313\nmov     r9b, 1                                                         ; +0x36, 0x180008316\nmov     r8d, 0FFFFFE0Ch                                                ; +0x39, 0x180008319\nmov     rdx, rdi                                                       ; +0x3f, 0x18000831f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x42, 0x180008322\nadd     rsp, 20h                                                       ; +0x47, 0x180008327\npop     rdi                                                            ; +0x4b, 0x18000832b\njmp     cs:?addPrioTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x4c, 0x18000832c", "xrefs": ["<???> @ 0x180027258", "<???> @ 0x180027e30", "<???> @ 0x180032408", "<???> @ 0x18004b810"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}