{"type": "func", "start": 6442958320, "end": 6442958906, "name": "cocos2d::CCEGLView::toggleFullScreen", "pseudocode": "// \n// cocos2d::CCEGLView::toggleFullScreen from 0x18007bdf0 to 0x18007c03a (586 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1801448b0\n// > <???> @ 0x1801448c4\n// > <???> @ 0x1801448d4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bee0c\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:22:00 +0000\n// \n\nvoid __fastcall cocos2d::CCEGLView::toggleFullScreen(cocos2d::CCEGLView *this, char a2, char a3, char a4)\n{\n  __int64 v5; // rax\n  int *v6; // rax\n  cocos2d::CCRect *v7; // rax\n  float v8; // xmm3_4\n  cocos2d::CCRect *v9; // rax\n  cocos2d::CCRect *v10; // rax\n  unsigned int v11; // ebx\n  unsigned int v12; // edi\n  HWND v13; // rax\n  float v14; // [rsp+20h] [rbp-48h]\n  _BYTE v15[8]; // [rsp+40h] [rbp-28h] BYREF\n  float v16; // [rsp+48h] [rbp-20h]\n  float v17; // [rsp+4Ch] [rbp-1Ch]\n  _BYTE v18[24]; // [rsp+50h] [rbp-18h] BYREF\n\n  if ( *((_BYTE *)this + 232) != a2 || *((_BYTE *)this + 233) != a3 || *((_BYTE *)this + 234) != a4 )\n  {\n    *((_BYTE *)this + 232) = a2;\n    *((_BYTE *)this + 233) = a3;\n    *((_BYTE *)this + 234) = a4;\n    *((_BYTE *)cocos2d::CCApplication::sharedApplication() + 213) = a2;\n    sub_1800DC680(*((_QWORD *)this + 25));\n    cocos2d::CCRect::CCRect((cocos2d::CCRect *)v15);\n    if ( *((_BYTE *)this + 232) )\n    {\n      v5 = sub_1800DBEE0();\n      *((_QWORD *)this + 26) = v5;\n      v6 = (int *)sub_1800DBF20(v5);\n      v7 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, (float)*v6, (float)v6[1]);\n      cocos2d::CCRect::operator=((__int64)v15, (__int64)v7);\n      if ( *((_BYTE *)this + 233) )\n      {\n        sub_1800DCA30(131077, 0);\n        if ( *((_BYTE *)this + 234) )\n        {\n          v16 = v16 + 1.0;\n          v17 = v17 + 1.0;\n        }\n        *((_QWORD *)this + 26) = 0;\n      }\n    }\n    else\n    {\n      sub_1800DCA30(131077, 1);\n      v8 = *((float *)this + 54);\n      v14 = *((float *)this + 55);\n      *((_QWORD *)this + 26) = 0;\n      v9 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, v8, v14);\n      cocos2d::CCRect::operator=((__int64)v15, (__int64)v9);\n    }\n    *((_DWORD *)this + 48) = 1065353216;\n    v10 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, (const struct cocos2d::CCRect *)v15);\n    cocos2d::CCEGLView::setupWindow((__int64)this, (__int64)v10);\n    v11 = (int)v17;\n    v12 = (int)v16;\n    sub_1800DC9E0(*((_QWORD *)this + 25));\n    sub_1800DC880(*((_QWORD *)this + 25), v12, v11);\n    cocos2d::CCEGLView::updateWindow(this, v12, v11);\n    sub_1800DC200(*((_QWORD *)this + 25));\n    if ( *((_BYTE *)this + 232) && *((_BYTE *)this + 233) )\n    {\n      if ( *((_BYTE *)this + 234) )\n      {\n        v13 = (HWND)sub_1800D9CB0(*((_QWORD *)this + 25));\n        SetWindowPos(v13, HWND_MESSAGE|0x2LL, 0, 0, 0, 0, 0x53u);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::toggleFullScreen from 0x18007bdf0 to 0x18007c03a (586 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1801448b0\n; > <???> @ 0x1801448c4\n; > <???> @ 0x1801448d4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bee0c\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:22:00 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x18007bdf0\npush    rsi                                                            ; +0x5, 0x18007bdf5\nsub     rsp, 60h                                                       ; +0x6, 0x18007bdf6\nmovzx   ebx, dl                                                        ; +0xa, 0x18007bdfa\nmov     rsi, rcx                                                       ; +0xd, 0x18007bdfd\ncmp     [rcx+0E8h], dl                                                 ; +0x10, 0x18007be00\njnz     short loc_18007BE1E                                            ; +0x16, 0x18007be06\ncmp     [rcx+0E9h], r8b                                                ; +0x18, 0x18007be08\njnz     short loc_18007BE1E                                            ; +0x1f, 0x18007be0f\ncmp     [rcx+0EAh], r9b                                                ; +0x21, 0x18007be11\njz      loc_18007C02C                                                  ; +0x28, 0x18007be18\nmov     [rsp+68h+arg_0], rdi                                           ; +0x2e, 0x18007be1e\nmov     [rsp+68h+arg_8], r14                                           ; +0x33, 0x18007be23\nmov     [rsp+68h+arg_10], r15                                          ; +0x38, 0x18007be28\nmov     [rcx+0E8h], bl                                                 ; +0x40, 0x18007be30\nmov     [rcx+0E9h], r8b                                                ; +0x46, 0x18007be36\nmov     [rcx+0EAh], r9b                                                ; +0x4d, 0x18007be3d\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x54, 0x18007be44\nmov     [rax+0D5h], bl                                                 ; +0x59, 0x18007be49\nmov     rcx, [rsi+0C8h]                                                ; +0x5f, 0x18007be4f\ncall    sub_1800DC680                                                  ; +0x66, 0x18007be56\nlea     rcx, [rsp+68h+var_28]; this                                    ; +0x6b, 0x18007be5b\ncall    ??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)      ; +0x70, 0x18007be60\ncmp     byte ptr [rsi+0E8h], 0                                         ; +0x75, 0x18007be65\njz      loc_18007BF0F                                                  ; +0x7c, 0x18007be6c\ncall    sub_1800DBEE0                                                  ; +0x82, 0x18007be72\nmov     rcx, rax                                                       ; +0x87, 0x18007be77\nmov     [rsi+0D0h], rax                                                ; +0x8a, 0x18007be7a\ncall    sub_1800DBF20                                                  ; +0x91, 0x18007be81\nxorps   xmm2, xmm2; float                                              ; +0x96, 0x18007be86\nlea     rcx, [rsp+68h+var_18]; this                                    ; +0x99, 0x18007be89\nxorps   xmm1, xmm1; float                                              ; +0x9e, 0x18007be8e\nmovd    xmm0, dword ptr [rax+4]                                        ; +0xa1, 0x18007be91\nmovd    xmm3, dword ptr [rax]                                          ; +0xa6, 0x18007be96\ncvtdq2ps xmm0, xmm0                                                    ; +0xaa, 0x18007be9a\ncvtdq2ps xmm3, xmm3; float                                             ; +0xad, 0x18007be9d\nmovss   [rsp+68h+var_48], xmm0; float                                  ; +0xb0, 0x18007bea0\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xb6, 0x18007bea6\nmov     rdx, rax                                                       ; +0xbb, 0x18007beab\nlea     rcx, [rsp+68h+var_28]                                          ; +0xbe, 0x18007beae\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xc3, 0x18007beb3\ncmp     byte ptr [rsi+0E9h], 0                                         ; +0xc8, 0x18007beb8\njz      loc_18007BF5C                                                  ; +0xcf, 0x18007bebf\nxor     edx, edx                                                       ; +0xd5, 0x18007bec5\nmov     ecx, 20005h                                                    ; +0xd7, 0x18007bec7\ncall    sub_1800DCA30                                                  ; +0xdc, 0x18007becc\ncmp     byte ptr [rsi+0EAh], 0                                         ; +0xe1, 0x18007bed1\njz      short loc_18007BF02                                            ; +0xe8, 0x18007bed8\nmovss   xmm0, [rsp+68h+var_20]                                         ; +0xea, 0x18007beda\nmovss   xmm1, [rsp+68h+var_1C]                                         ; +0xf0, 0x18007bee0\naddss   xmm0, cs:flt_1800EC208                                         ; +0xf6, 0x18007bee6\naddss   xmm1, cs:flt_1800EC208                                         ; +0xfe, 0x18007beee\nmovss   [rsp+68h+var_20], xmm0                                         ; +0x106, 0x18007bef6\nmovss   [rsp+68h+var_1C], xmm1                                         ; +0x10c, 0x18007befc\nmov     qword ptr [rsi+0D0h], 0                                        ; +0x112, 0x18007bf02\njmp     short loc_18007BF5C                                            ; +0x11d, 0x18007bf0d\nmov     edx, 1                                                         ; +0x11f, 0x18007bf0f\nmov     ecx, 20005h                                                    ; +0x124, 0x18007bf14\ncall    sub_1800DCA30                                                  ; +0x129, 0x18007bf19\nmovss   xmm0, dword ptr [rsi+0DCh]                                     ; +0x12e, 0x18007bf1e\nlea     rcx, [rsp+68h+var_18]; this                                    ; +0x136, 0x18007bf26\nmovss   xmm3, dword ptr [rsi+0D8h]; float                              ; +0x13b, 0x18007bf2b\nxorps   xmm2, xmm2; float                                              ; +0x143, 0x18007bf33\nxorps   xmm1, xmm1; float                                              ; +0x146, 0x18007bf36\nmovss   [rsp+68h+var_48], xmm0; float                                  ; +0x149, 0x18007bf39\nmov     qword ptr [rsi+0D0h], 0                                        ; +0x14f, 0x18007bf3f\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x15a, 0x18007bf4a\nmov     rdx, rax                                                       ; +0x15f, 0x18007bf4f\nlea     rcx, [rsp+68h+var_28]                                          ; +0x162, 0x18007bf52\ncall    ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x167, 0x18007bf57\nlea     rdx, [rsp+68h+var_28]; struct cocos2d::CCRect *                ; +0x16c, 0x18007bf5c\nmov     dword ptr [rsi+0C0h], 3F800000h                                ; +0x171, 0x18007bf61\nlea     rcx, [rsp+68h+var_18]; this                                    ; +0x17b, 0x18007bf6b\nlea     r14, [rsi+0C8h]                                                ; +0x180, 0x18007bf70\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x187, 0x18007bf77\nmov     rdx, rax                                                       ; +0x18c, 0x18007bf7c\nmov     rcx, rsi                                                       ; +0x18f, 0x18007bf7f\ncall    ?setupWindow@CCEGLView@cocos2d@@IEAAXVCCRect@2@@Z; cocos2d::CCEGLView::setupWindow(cocos2d::CCRect) ; +0x192, 0x18007bf82\nmov     rcx, [rsi+0C8h]                                                ; +0x197, 0x18007bf87\ncvttss2si ebx, [rsp+68h+var_1C]                                        ; +0x19e, 0x18007bf8e\ncvttss2si edi, [rsp+68h+var_20]                                        ; +0x1a4, 0x18007bf94\ncall    sub_1800DC9E0                                                  ; +0x1aa, 0x18007bf9a\nmov     rcx, [rsi+0C8h]                                                ; +0x1af, 0x18007bf9f\nmov     r8d, ebx                                                       ; +0x1b6, 0x18007bfa6\nmov     edx, edi                                                       ; +0x1b9, 0x18007bfa9\ncall    sub_1800DC880                                                  ; +0x1bb, 0x18007bfab\nmov     r8d, ebx; int                                                  ; +0x1c0, 0x18007bfb0\nmov     edx, edi; int                                                  ; +0x1c3, 0x18007bfb3\nmov     rcx, rsi; this                                                 ; +0x1c5, 0x18007bfb5\ncall    ?updateWindow@CCEGLView@cocos2d@@QEAAXHH@Z; cocos2d::CCEGLView::updateWindow(int,int) ; +0x1c8, 0x18007bfb8\nmov     rcx, [rsi+0C8h]                                                ; +0x1cd, 0x18007bfbd\ncall    sub_1800DC200                                                  ; +0x1d4, 0x18007bfc4\ncmp     byte ptr [rsi+0E8h], 0                                         ; +0x1d9, 0x18007bfc9\nmov     r15, [rsp+68h+arg_10]                                          ; +0x1e0, 0x18007bfd0\nmov     rdi, [rsp+68h+arg_0]                                           ; +0x1e8, 0x18007bfd8\njz      short loc_18007C027                                            ; +0x1ed, 0x18007bfdd\ncmp     byte ptr [rsi+0E9h], 0                                         ; +0x1ef, 0x18007bfdf\njz      short loc_18007C027                                            ; +0x1f6, 0x18007bfe6\ncmp     byte ptr [rsi+0EAh], 0                                         ; +0x1f8, 0x18007bfe8\njz      short loc_18007C027                                            ; +0x1ff, 0x18007bfef\nmov     rcx, [r14]                                                     ; +0x201, 0x18007bff1\ncall    sub_1800D9CB0                                                  ; +0x204, 0x18007bff4\nmov     [rsp+68h+uFlags], 53h ; 'S'; uFlags                            ; +0x209, 0x18007bff9\nxor     r9d, r9d; Y                                                    ; +0x211, 0x18007c001\nmov     [rsp+68h+cy], 0; cy                                            ; +0x214, 0x18007c004\nxor     r8d, r8d; X                                                    ; +0x21c, 0x18007c00c\nmov     rdx, 0FFFFFFFFFFFFFFFFh; hWndInsertAfter                       ; +0x21f, 0x18007c00f\nmov     [rsp+68h+var_48], 0; cx                                        ; +0x226, 0x18007c016\nmov     rcx, rax; hWnd                                                 ; +0x22e, 0x18007c01e\ncall    cs:SetWindowPos                                                ; +0x231, 0x18007c021\nmov     r14, [rsp+68h+arg_8]                                           ; +0x237, 0x18007c027\nmov     rbx, [rsp+68h+arg_18]                                          ; +0x23c, 0x18007c02c\nadd     rsp, 60h                                                       ; +0x244, 0x18007c034\npop     rsi                                                            ; +0x248, 0x18007c038\nretn                                                                   ; +0x249, 0x18007c039", "xrefs": ["<???> @ 0x1801448b0", "<???> @ 0x1801448c4", "<???> @ 0x1801448d4", "<???> @ 0x18014cf68", "<???> @ 0x1801bee0c"], "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"}