{"type": "func", "start": 6442952112, "end": 6442952212, "name": "sub_18007A5B0", "pseudocode": "// \n// sub_18007A5B0 from 0x18007a5b0 to 0x18007a614 (100 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x18007b920\n// > <???> @ 0x180144e5c\n// > <???> @ 0x180144e6c\n// > <???> @ 0x1801becf8\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:59 +0000\n// \n\nvoid __fastcall sub_18007A5B0(__int64 a1, __int64 a2, double a3)\n{\n  int v3; // ebx\n  struct cocos2d::CCDirector *v4; // rax\n  cocos2d::CCMouseDispatcher *v5; // rax\n\n  if ( qword_1801B2540 )\n  {\n    v3 = 12;\n    if ( a3 > 0.0 )\n      v3 = -12;\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v4 + 192LL))(v4);\n    cocos2d::CCMouseDispatcher::dispatchScrollMSG(v5, (float)v3, 0.0);\n  }\n}", "assembly": "; \n; sub_18007A5B0 from 0x18007a5b0 to 0x18007a614 (100 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x18007b920\n; > <???> @ 0x180144e5c\n; > <???> @ 0x180144e6c\n; > <???> @ 0x1801becf8\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:59 +0000\n; \nsub     rsp, 38h                                                       ; +0x0, 0x18007a5b0\ncmp     cs:qword_1801B2540, 0                                          ; +0x4, 0x18007a5b4\njz      short loc_18007A60F                                            ; +0xc, 0x18007a5bc\nmov     [rsp+38h+var_8], rbx                                           ; +0xe, 0x18007a5be\nxorps   xmm0, xmm0                                                     ; +0x13, 0x18007a5c3\ncomisd  xmm2, xmm0                                                     ; +0x16, 0x18007a5c6\nmov     eax, 0FFFFFFF4h                                                ; +0x1a, 0x18007a5ca\nmov     ebx, 0Ch                                                       ; +0x1f, 0x18007a5cf\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x24, 0x18007a5d4\ncmova   ebx, eax                                                       ; +0x29, 0x18007a5d9\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x18007a5dc\nmovd    xmm6, ebx                                                      ; +0x31, 0x18007a5e1\ncvtdq2ps xmm6, xmm6                                                    ; +0x35, 0x18007a5e5\nmov     rcx, [rax]                                                     ; +0x38, 0x18007a5e8\nmov     rdx, [rcx+0C0h]                                                ; +0x3b, 0x18007a5eb\nmov     rcx, rax                                                       ; +0x42, 0x18007a5f2\ncall    rdx                                                            ; +0x45, 0x18007a5f5\nmov     rcx, rax; this                                                 ; +0x47, 0x18007a5f7\nxorps   xmm2, xmm2; float                                              ; +0x4a, 0x18007a5fa\nmovaps  xmm1, xmm6; float                                              ; +0x4d, 0x18007a5fd\ncall    ?dispatchScrollMSG@CCMouseDispatcher@cocos2d@@QEAA_NMM@Z; cocos2d::CCMouseDispatcher::dispatchScrollMSG(float,float) ; +0x50, 0x18007a600\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x55, 0x18007a605\nmov     rbx, [rsp+38h+var_8]                                           ; +0x5a, 0x18007a60a\nadd     rsp, 38h                                                       ; +0x5f, 0x18007a60f\nretn                                                                   ; +0x63, 0x18007a613", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x18007b920", "<???> @ 0x180144e5c", "<???> @ 0x180144e6c", "<???> @ 0x1801becf8"], "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"}