{"type": "func", "start": 6442937104, "end": 6442937305, "name": "cocos2d::CCEGLView::getDisplaySize", "pseudocode": "// \n// cocos2d::CCEGLView::getDisplaySize from 0x180076b10 to 0x180076bd9 (201 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b48d8\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\nfloat *__fastcall cocos2d::CCEGLView::getDisplaySize(cocos2d::CCEGLView *this, float *a2)\n{\n  __int64 v2; // rcx\n  HWND v4; // rax\n  HMONITOR v5; // rax\n  float v6; // xmm6_4\n  float v7; // xmm7_4\n  struct tagMONITORINFO mi; // [rsp+20h] [rbp-58h] BYREF\n\n  v2 = *((_QWORD *)this + 25);\n  mi.cbSize = 40;\n  memset(&mi.rcMonitor, 0, 36);\n  v4 = (HWND)sub_1800D8320(v2);\n  v5 = MonitorFromWindow(v4, 2u);\n  v6 = 0.0;\n  v7 = 0.0;\n  if ( GetMonitorInfoW(v5, &mi) )\n  {\n    v6 = (float)mi.rcMonitor.right - (float)mi.rcMonitor.left;\n    v7 = (float)mi.rcMonitor.bottom - (float)mi.rcMonitor.top;\n  }\n  kmVec2Fill(a2, v6, v7);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCEGLView::getDisplaySize from 0x180076b10 to 0x180076bd9 (201 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b48d8\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\npush    rbx                                                            ; +0x0, 0x180076b10\nsub     rsp, 70h                                                       ; +0x2, 0x180076b12\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0x6, 0x180076b16\nmovaps  [rsp+78h+var_28], xmm7                                         ; +0xb, 0x180076b1b\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x180076b20\nxor     rax, rsp                                                       ; +0x17, 0x180076b27\nmov     [rsp+78h+var_30], rax                                          ; +0x1a, 0x180076b2a\nmov     rcx, [rcx+0C8h]                                                ; +0x1f, 0x180076b2f\nxorps   xmm0, xmm0                                                     ; +0x26, 0x180076b36\nxor     eax, eax                                                       ; +0x29, 0x180076b39\nmov     [rsp+78h+mi.cbSize], 28h ; '('                                 ; +0x2b, 0x180076b3b\nmovups  xmmword ptr [rsp+78h+mi.rcMonitor.left], xmm0                  ; +0x33, 0x180076b43\nmov     [rsp+78h+mi.dwFlags], eax                                      ; +0x38, 0x180076b48\nmov     rbx, rdx                                                       ; +0x3c, 0x180076b4c\nmovups  xmmword ptr [rsp+78h+mi.rcWork.left], xmm0                     ; +0x3f, 0x180076b4f\ncall    sub_1800D8320                                                  ; +0x44, 0x180076b54\nmov     rcx, rax; hwnd                                                 ; +0x49, 0x180076b59\nmov     edx, 2; dwFlags                                                ; +0x4c, 0x180076b5c\ncall    cs:MonitorFromWindow                                           ; +0x51, 0x180076b61\nlea     rdx, [rsp+78h+mi]; lpmi                                        ; +0x57, 0x180076b67\nxorps   xmm6, xmm6                                                     ; +0x5c, 0x180076b6c\nmov     rcx, rax; hMonitor                                             ; +0x5f, 0x180076b6f\nxorps   xmm7, xmm7                                                     ; +0x62, 0x180076b72\ncall    cs:GetMonitorInfoW                                             ; +0x65, 0x180076b75\ntest    eax, eax                                                       ; +0x6b, 0x180076b7b\njz      short loc_180076BAB                                            ; +0x6d, 0x180076b7d\nmovd    xmm6, [rsp+78h+mi.rcMonitor.right]                             ; +0x6f, 0x180076b7f\nmovd    xmm0, [rsp+78h+mi.rcMonitor.left]                              ; +0x75, 0x180076b85\nmovd    xmm7, [rsp+78h+mi.rcMonitor.bottom]                            ; +0x7b, 0x180076b8b\ncvtdq2ps xmm0, xmm0                                                    ; +0x81, 0x180076b91\ncvtdq2ps xmm6, xmm6                                                    ; +0x84, 0x180076b94\ncvtdq2ps xmm7, xmm7                                                    ; +0x87, 0x180076b97\nsubss   xmm6, xmm0                                                     ; +0x8a, 0x180076b9a\nmovd    xmm0, [rsp+78h+mi.rcMonitor.top]                               ; +0x8e, 0x180076b9e\ncvtdq2ps xmm0, xmm0                                                    ; +0x94, 0x180076ba4\nsubss   xmm7, xmm0                                                     ; +0x97, 0x180076ba7\nmovaps  xmm2, xmm7                                                     ; +0x9b, 0x180076bab\nmovaps  xmm1, xmm6                                                     ; +0x9e, 0x180076bae\nmov     rcx, rbx                                                       ; +0xa1, 0x180076bb1\ncall    kmVec2Fill                                                     ; +0xa4, 0x180076bb4\nmov     rax, rbx                                                       ; +0xa9, 0x180076bb9\nmov     rcx, [rsp+78h+var_30]                                          ; +0xac, 0x180076bbc\nxor     rcx, rsp; StackCookie                                          ; +0xb1, 0x180076bc1\ncall    __security_check_cookie                                        ; +0xb4, 0x180076bc4\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xb9, 0x180076bc9\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0xbe, 0x180076bce\nadd     rsp, 70h                                                       ; +0xc3, 0x180076bd3\npop     rbx                                                            ; +0xc7, 0x180076bd7\nretn                                                                   ; +0xc8, 0x180076bd8", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b48d8"], "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"}