{"type": "func", "start": 6442532528, "end": 6442532631, "name": "cocos2d::extension::CCScrollView::unregisterScriptHandler", "pseudocode": "// \n// cocos2d::extension::CCScrollView::unregisterScriptHandler from 0x180013eb0 to 0x180013f17 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c530\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:41 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCScrollView::unregisterScriptHandler(\n        cocos2d::extension::CCScrollView *this,\n        int a2)\n{\n  _QWORD *v2; // r9\n  __int64 **v4; // rcx\n  __int64 **v5; // rdx\n  __int64 *i; // rax\n  __int64 **v7; // rax\n\n  v2 = (_QWORD *)((char *)this + 552);\n  v4 = *((__int64 ***)this + 69);\n  v5 = v4;\n  for ( i = v4[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n  {\n    if ( *((_DWORD *)i + 7) >= a2 )\n      v5 = (__int64 **)i;\n    else\n      i += 2;\n  }\n  if ( !*((_BYTE *)v5 + 25) && a2 >= *((_DWORD *)v5 + 7) && v4 != v5 )\n  {\n    v7 = sub_180004A50(v2, v5);\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScrollView::unregisterScriptHandler from 0x180013eb0 to 0x180013f17 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c530\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:41 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x180013eb0\nlea     r9, [rcx+228h]                                                 ; +0x4, 0x180013eb4\nmov     r8d, edx                                                       ; +0xb, 0x180013ebb\nmov     rcx, [r9]                                                      ; +0xe, 0x180013ebe\nmov     rdx, rcx                                                       ; +0x11, 0x180013ec1\nmov     rax, [rcx+8]                                                   ; +0x14, 0x180013ec4\ncmp     byte ptr [rax+19h], 0                                          ; +0x18, 0x180013ec8\njnz     short loc_180013EE8                                            ; +0x1c, 0x180013ecc\nxchg    ax, ax                                                         ; +0x1e, 0x180013ece\ncmp     [rax+1Ch], r8d                                                 ; +0x20, 0x180013ed0\njge     short loc_180013EDC                                            ; +0x24, 0x180013ed4\nadd     rax, 10h                                                       ; +0x26, 0x180013ed6\njmp     short loc_180013EDF                                            ; +0x2a, 0x180013eda\nmov     rdx, rax                                                       ; +0x2c, 0x180013edc\nmov     rax, [rax]                                                     ; +0x2f, 0x180013edf\ncmp     byte ptr [rax+19h], 0                                          ; +0x32, 0x180013ee2\njz      short loc_180013ED0                                            ; +0x36, 0x180013ee6\ncmp     byte ptr [rdx+19h], 0                                          ; +0x38, 0x180013ee8\njnz     short loc_180013F12                                            ; +0x3c, 0x180013eec\ncmp     r8d, [rdx+1Ch]                                                 ; +0x3e, 0x180013eee\njl      short loc_180013F12                                            ; +0x42, 0x180013ef2\ncmp     rcx, rdx                                                       ; +0x44, 0x180013ef4\njz      short loc_180013F12                                            ; +0x47, 0x180013ef7\nmov     rcx, r9                                                        ; +0x49, 0x180013ef9\ncall    sub_180004A50                                                  ; +0x4c, 0x180013efc\nmov     edx, 28h ; '('                                                 ; +0x51, 0x180013f01\nmov     rcx, rax; Block                                                ; +0x56, 0x180013f06\nadd     rsp, 28h                                                       ; +0x59, 0x180013f09\njmp     j_j_free                                                       ; +0x5d, 0x180013f0d\nadd     rsp, 28h                                                       ; +0x62, 0x180013f12\nretn                                                                   ; +0x66, 0x180013f16", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004c530"], "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"}