{"type": "func", "start": 6442485792, "end": 6442485872, "name": "cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher", "pseudocode": "// \n// cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher from 0x180008820 to 0x180008870 (80 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180024cd0\n// > <???> @ 0x180025868\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800498dc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 0x180008820 to 0x180008870 (80 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180024cd0\n; > <???> @ 0x180025868\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800498dc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180008820\npush    rdi                                                            ; +0x5, 0x180008825\nsub     rsp, 20h                                                       ; +0x6, 0x180008826\nmov     rbx, rcx                                                       ; +0xa, 0x18000882a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x18000882d\nxor     ecx, ecx                                                       ; +0x13, 0x180008833\nlea     rdi, [rbx+140h]                                                ; +0x15, 0x180008835\ntest    rbx, rbx                                                       ; +0x1c, 0x18000883c\nmov     r8, [rax]                                                      ; +0x1f, 0x18000883f\ncmovz   rdi, rcx                                                       ; +0x22, 0x180008842\nmov     rcx, rax                                                       ; +0x26, 0x180008846\ncall    qword ptr [r8+90h]                                             ; +0x29, 0x180008849\nmov     r9b, 1                                                         ; +0x30, 0x180008850\nmov     r8d, 0FFFFFE0Ch                                                ; +0x33, 0x180008853\nmov     rcx, rax                                                       ; +0x39, 0x180008859\nmov     rdx, rdi                                                       ; +0x3c, 0x18000885c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x18000885f\nadd     rsp, 20h                                                       ; +0x44, 0x180008864\npop     rdi                                                            ; +0x48, 0x180008868\njmp     cs:?addPrioTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x49, 0x180008869", "xrefs": ["<???> @ 0x180024cd0", "<???> @ 0x180025868", "<???> @ 0x18002fdf8", "<???> @ 0x1800498dc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}