{"type": "func", "start": 6442940432, "end": 6442940529, "name": "sub_180077810", "pseudocode": "// \n// sub_180077810 from 0x180077810 to 0x180077871 (97 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x180078afd\n// > <???> @ 0x18013ba08\n// > <???> @ 0x18013ba18\n// > <???> @ 0x1801b49ec\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\nvoid __fastcall sub_180077810(__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_1801A8500 )\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 *))v4->getMouseDispatcher)(v4);\n    cocos2d::CCMouseDispatcher::dispatchScrollMSG(v5, (float)v3, 0.0);\n  }\n}", "assembly": "; \n; sub_180077810 from 0x180077810 to 0x180077871 (97 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x180078afd\n; > <???> @ 0x18013ba08\n; > <???> @ 0x18013ba18\n; > <???> @ 0x1801b49ec\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\nsub     rsp, 38h                                                       ; +0x0, 0x180077810\ncmp     cs:qword_1801A8500, 0                                          ; +0x4, 0x180077814\njz      short loc_18007786C                                            ; +0xc, 0x18007781c\nmov     [rsp+38h+var_8], rbx                                           ; +0xe, 0x18007781e\nxorps   xmm0, xmm0                                                     ; +0x13, 0x180077823\ncomisd  xmm2, xmm0                                                     ; +0x16, 0x180077826\nmov     eax, 0FFFFFFF4h                                                ; +0x1a, 0x18007782a\nmov     ebx, 0Ch                                                       ; +0x1f, 0x18007782f\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x24, 0x180077834\ncmova   ebx, eax                                                       ; +0x29, 0x180077839\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x18007783c\nmovd    xmm6, ebx                                                      ; +0x31, 0x180077841\nmov     rcx, rax                                                       ; +0x35, 0x180077845\ncvtdq2ps xmm6, xmm6                                                    ; +0x38, 0x180077848\nmov     rdx, [rax]                                                     ; +0x3b, 0x18007784b\ncall    qword ptr [rdx+0C0h]                                           ; +0x3e, 0x18007784e\nxorps   xmm2, xmm2; float                                              ; +0x44, 0x180077854\nmovaps  xmm1, xmm6; float                                              ; +0x47, 0x180077857\nmov     rcx, rax; this                                                 ; +0x4a, 0x18007785a\ncall    ?dispatchScrollMSG@CCMouseDispatcher@cocos2d@@QEAA_NMM@Z; cocos2d::CCMouseDispatcher::dispatchScrollMSG(float,float) ; +0x4d, 0x18007785d\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x52, 0x180077862\nmov     rbx, [rsp+38h+var_8]                                           ; +0x57, 0x180077867\nadd     rsp, 38h                                                       ; +0x5c, 0x18007786c\nretn                                                                   ; +0x60, 0x180077870", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x180078afd", "<???> @ 0x18013ba08", "<???> @ 0x18013ba18", "<???> @ 0x1801b49ec"], "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"}