{"type": "func", "start": 6442856560, "end": 6442856922, "name": "cocos2d::CCMouseDispatcher::dispatchScrollMSG", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::dispatchScrollMSG from 0x180063070 to 0x1800631da (362 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCApplication::updateMouseControl @ 0x1800776c3\n// > cocos2d::CCEGLView::onGLFWMouseScrollCallback @ 0x18007a59d\n// > sub_18007A5B0 @ 0x18007a600\n// > <???> @ 0x180142a28\n// > <???> @ 0x180142aa8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd840\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 11:21:51 +0000\n// \n\nchar __fastcall cocos2d::CCMouseDispatcher::dispatchScrollMSG(cocos2d::CCMouseDispatcher *this, float a2, float a3)\n{\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCArray *v5; // rcx\n  __int64 v6; // rdi\n  bool v7; // si\n  unsigned int i; // ebp\n  int v9; // eax\n  cocos2d::CCNotificationObserver *v10; // rax\n  struct cocos2d::CCObject *Target; // rax\n  Concurrency::details::_NonReentrantLock *v12; // rcx\n  unsigned int v13; // esi\n  Concurrency::details::_NonReentrantLock *v14; // rcx\n  struct cocos2d::CCObject *v15; // rax\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::noteInput(v4);\n  v5 = *((cocos2d::CCArray **)this + 7);\n  *((_BYTE *)this + 64) = 1;\n  v6 = 0;\n  if ( (unsigned int)cocos2d::CCArray::count(v5) )\n  {\n    v7 = 0;\n    for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)); ++i )\n    {\n      v9 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7));\n      v10 = cocos2d::CCArray::stringAtIndex(*((cocos2d::CCArray **)this + 7), v9 + ~i);\n      if ( !v10 )\n        break;\n      if ( v7 )\n        break;\n      Target = cocos2d::CCNotificationObserver::getTarget(v10);\n      v7 = (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)Target + 16LL))(Target) != 0;\n    }\n  }\n  *((_BYTE *)this + 64) = 0;\n  if ( *((_BYTE *)this + 66) )\n  {\n    v12 = *((Concurrency::details::_NonReentrantLock **)this + 10);\n    v13 = 0;\n    for ( *((_BYTE *)this + 66) = 0; v13 < *(_DWORD *)v12; ++v13 )\n    {\n      cocos2d::CCMouseDispatcher::forceRemoveDelegate(\n        this,\n        *(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v12 + 2) + 8LL * v13));\n      v12 = *((Concurrency::details::_NonReentrantLock **)this + 10);\n    }\n    Concurrency::details::_NonReentrantLock::_Release(v12);\n  }\n  if ( *((_BYTE *)this + 65) )\n  {\n    v14 = *((Concurrency::details::_NonReentrantLock **)this + 9);\n    *((_BYTE *)this + 65) = 0;\n    if ( *(_DWORD *)v14 )\n    {\n      do\n      {\n        v15 = cocos2d::CCMouseHandler::handlerWithDelegate(*(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v14 + 2)\n                                                                                               + 8 * v6));\n        if ( v15 )\n          cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v15);\n        v14 = *((Concurrency::details::_NonReentrantLock **)this + 9);\n        v6 = (unsigned int)(v6 + 1);\n      }\n      while ( (unsigned int)v6 < *(_DWORD *)v14 );\n    }\n    Concurrency::details::_NonReentrantLock::_Release(v14);\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::dispatchScrollMSG from 0x180063070 to 0x1800631da (362 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCApplication::updateMouseControl @ 0x1800776c3\n; > cocos2d::CCEGLView::onGLFWMouseScrollCallback @ 0x18007a59d\n; > sub_18007A5B0 @ 0x18007a600\n; > <???> @ 0x180142a28\n; > <???> @ 0x180142aa8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd840\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 11:21:51 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x180063070\npush    rdi                                                            ; +0x5, 0x180063075\nsub     rsp, 40h                                                       ; +0x6, 0x180063076\nmov     [rsp+48h+arg_8], rsi                                           ; +0xa, 0x18006307a\nmov     rbx, rcx                                                       ; +0xf, 0x18006307f\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x12, 0x180063082\nmovaps  xmm6, xmm2                                                     ; +0x17, 0x180063087\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x1a, 0x18006308a\nmovaps  xmm7, xmm1                                                     ; +0x1f, 0x18006308f\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x180063092\nmov     rcx, rax; this                                                 ; +0x27, 0x180063097\ncall    ?noteInput@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::noteInput(void) ; +0x2a, 0x18006309a\nmov     rcx, [rbx+38h]; this                                           ; +0x2f, 0x18006309f\nmov     byte ptr [rbx+40h], 1                                          ; +0x33, 0x1800630a3\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1800630a7\nxor     edi, edi                                                       ; +0x3c, 0x1800630ac\ntest    eax, eax                                                       ; +0x3e, 0x1800630ae\njz      loc_18006313F                                                  ; +0x40, 0x1800630b0\nmov     rcx, [rbx+38h]; this                                           ; +0x46, 0x1800630b6\nxor     sil, sil                                                       ; +0x4a, 0x1800630ba\nmov     [rsp+48h+arg_0], rbp                                           ; +0x4d, 0x1800630bd\nmov     ebp, edi                                                       ; +0x52, 0x1800630c2\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x54, 0x1800630c4\ntest    eax, eax                                                       ; +0x59, 0x1800630c9\njz      short loc_18006313A                                            ; +0x5b, 0x1800630cb\nmov     [rsp+48h+arg_10], r14                                          ; +0x5d, 0x1800630cd\nmov     r14d, 1                                                        ; +0x62, 0x1800630d2\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x1800630d8\nmov     rcx, [rbx+38h]; this                                           ; +0x70, 0x1800630e0\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x1800630e4\nmov     rcx, [rbx+38h]; this                                           ; +0x79, 0x1800630e9\nmov     edx, ebp                                                       ; +0x7d, 0x1800630ed\nnot     edx                                                            ; +0x7f, 0x1800630ef\nadd     edx, eax; unsigned int                                         ; +0x81, 0x1800630f1\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x83, 0x1800630f3\ntest    rax, rax                                                       ; +0x88, 0x1800630f8\njz      short loc_180063135                                            ; +0x8b, 0x1800630fb\ntest    sil, sil                                                       ; +0x8d, 0x1800630fd\njnz     short loc_180063135                                            ; +0x90, 0x180063100\nmov     rcx, rax; this                                                 ; +0x92, 0x180063102\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x95, 0x180063105\nmovaps  xmm2, xmm6                                                     ; +0x9a, 0x18006310a\nmovaps  xmm1, xmm7                                                     ; +0x9d, 0x18006310d\nmov     rcx, [rax]                                                     ; +0xa0, 0x180063110\nmov     rdx, [rcx+10h]                                                 ; +0xa3, 0x180063113\nmov     rcx, rax                                                       ; +0xa7, 0x180063117\ncall    rdx                                                            ; +0xaa, 0x18006311a\nmov     rcx, [rbx+38h]; this                                           ; +0xac, 0x18006311c\ntest    al, al                                                         ; +0xb0, 0x180063120\nmovzx   esi, sil                                                       ; +0xb2, 0x180063122\ncmovnz  esi, r14d                                                      ; +0xb6, 0x180063126\ninc     ebp                                                            ; +0xba, 0x18006312a\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbc, 0x18006312c\ncmp     ebp, eax                                                       ; +0xc1, 0x180063131\njb      short loc_1800630E0                                            ; +0xc3, 0x180063133\nmov     r14, [rsp+48h+arg_10]                                          ; +0xc5, 0x180063135\nmov     rbp, [rsp+48h+arg_0]                                           ; +0xca, 0x18006313a\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xcf, 0x18006313f\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xd4, 0x180063144\nmov     [rbx+40h], dil                                                 ; +0xd9, 0x180063149\ncmp     [rbx+42h], dil                                                 ; +0xdd, 0x18006314d\njz      short loc_180063182                                            ; +0xe1, 0x180063151\nmov     rcx, [rbx+50h]                                                 ; +0xe3, 0x180063153\nmov     esi, edi                                                       ; +0xe7, 0x180063157\nmov     [rbx+42h], dil                                                 ; +0xe9, 0x180063159\ncmp     [rcx], edi                                                     ; +0xed, 0x18006315d\njbe     short loc_18006317D                                            ; +0xef, 0x18006315f\nmov     rdx, [rcx+10h]                                                 ; +0xf1, 0x180063161\nmov     rcx, rbx; this                                                 ; +0xf5, 0x180063165\nmov     eax, esi                                                       ; +0xf8, 0x180063168\nmov     rdx, [rdx+rax*8]; struct cocos2d::CCMouseDelegate *            ; +0xfa, 0x18006316a\ncall    ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0xfe, 0x18006316e\nmov     rcx, [rbx+50h]; this                                           ; +0x103, 0x180063173\ninc     esi                                                            ; +0x107, 0x180063177\ncmp     esi, [rcx]                                                     ; +0x109, 0x180063179\njb      short loc_180063161                                            ; +0x10b, 0x18006317b\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x10d, 0x18006317d\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x112, 0x180063182\ncmp     [rbx+41h], dil                                                 ; +0x117, 0x180063187\njz      short loc_1800631CD                                            ; +0x11b, 0x18006318b\nmov     rcx, [rbx+48h]                                                 ; +0x11d, 0x18006318d\nmov     [rbx+41h], dil                                                 ; +0x121, 0x180063191\ncmp     [rcx], edi                                                     ; +0x125, 0x180063195\njbe     short loc_1800631C8                                            ; +0x127, 0x180063197\nnop     dword ptr [rax+00000000h]                                      ; +0x129, 0x180063199\nmov     rcx, [rcx+10h]                                                 ; +0x130, 0x1800631a0\nmov     rcx, [rcx+rdi*8]; struct cocos2d::CCMouseDelegate *            ; +0x134, 0x1800631a4\ncall    ?handlerWithDelegate@CCMouseHandler@cocos2d@@SAPEAV12@PEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *) ; +0x138, 0x1800631a8\ntest    rax, rax                                                       ; +0x13d, 0x1800631ad\njz      short loc_1800631BE                                            ; +0x140, 0x1800631b0\nmov     rcx, [rbx+38h]; this                                           ; +0x142, 0x1800631b2\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x146, 0x1800631b6\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x149, 0x1800631b9\nmov     rcx, [rbx+48h]; this                                           ; +0x14e, 0x1800631be\ninc     edi                                                            ; +0x152, 0x1800631c2\ncmp     edi, [rcx]                                                     ; +0x154, 0x1800631c4\njb      short loc_1800631A0                                            ; +0x156, 0x1800631c6\ncall    ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x158, 0x1800631c8\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x15d, 0x1800631cd\nmov     al, 1                                                          ; +0x162, 0x1800631d2\nadd     rsp, 40h                                                       ; +0x164, 0x1800631d4\npop     rdi                                                            ; +0x168, 0x1800631d8\nretn                                                                   ; +0x169, 0x1800631d9", "xrefs": ["cocos2d::CCApplication::updateMouseControl @ 0x1800776c3", "cocos2d::CCEGLView::onGLFWMouseScrollCallback @ 0x18007a59d", "sub_18007A5B0 @ 0x18007a600", "<???> @ 0x180142a28", "<???> @ 0x180142aa8", "<???> @ 0x18014cf68", "<???> @ 0x1801bd840"], "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"}