{"type": "func", "start": 6442952224, "end": 6442952531, "name": "cocos2d::CCEGLView::onGLFWWindowFocus", "pseudocode": "// \n// cocos2d::CCEGLView::onGLFWWindowFocus from 0x18007a620 to 0x18007a753 (307 bytes)\n// \n// 3 xrefs:\n// > sub_18007A760 @ 0x18007a775\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bed1c\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::onGLFWWindowFocus(cocos2d::CCEGLView *this, struct GLFWwindow *a2, int a3)\n{\n  __int64 v6; // rcx\n  struct cocos2d::CCApplication *v7; // rax\n  cocos2d::CCApplication *v8; // rax\n  HWND v9; // rax\n\n  byte_1801ACB90 = a3 != 0;\n  v6 = *((_QWORD *)this + 25);\n  if ( v6 )\n  {\n    if ( !a3 )\n    {\n      if ( *((_BYTE *)this + 236) )\n        sub_1800DD5A0(v6, 208897, 212993);\n      cocos2d::CCEGLView::clearQueuedInput(this);\n      goto LABEL_11;\n    }\n  }\n  else if ( !a3 )\n  {\n    goto LABEL_11;\n  }\n  if ( v6 && *((_BYTE *)this + 236) )\n    sub_1800DD5A0(v6, 208897, 212995);\n  v7 = cocos2d::CCApplication::sharedApplication();\n  (*(void (__fastcall **)(struct cocos2d::CCApplication *))(*(_QWORD *)v7 + 32LL))(v7);\n  v8 = cocos2d::CCApplication::sharedApplication();\n  cocos2d::CCApplication::resyncVerticalSync(v8);\nLABEL_11:\n  if ( *((_BYTE *)this + 232) && *((_BYTE *)this + 233) && *((_BYTE *)this + 234) )\n  {\n    v9 = (HWND)sub_1800D9CB0(a2);\n    if ( a3 )\n    {\n      SetWindowPos(v9, HWND_MESSAGE|0x2LL, 0, 0, 0, 0, 0x53u);\n    }\n    else\n    {\n      SetWindowPos(v9, (HWND)0xFFFFFFFFFFFFFFFELL, 0, 0, 0, 0, 0x13u);\n      *((_DWORD *)this + 47) = 2;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::onGLFWWindowFocus from 0x18007a620 to 0x18007a753 (307 bytes)\n; \n; 3 xrefs:\n; > sub_18007A760 @ 0x18007a775\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bed1c\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_0], rbx                                               ; +0x0, 0x18007a620\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18007a625\npush    rdi                                                            ; +0xa, 0x18007a62a\nsub     rsp, 40h                                                       ; +0xb, 0x18007a62b\ntest    r8d, r8d                                                       ; +0xf, 0x18007a62f\nmov     rbx, rcx                                                       ; +0x12, 0x18007a632\nmov     edi, r8d                                                       ; +0x15, 0x18007a635\nmov     rsi, rdx                                                       ; +0x18, 0x18007a638\nsetnz   cs:byte_1801ACB90                                              ; +0x1b, 0x18007a63b\nmov     rcx, [rcx+0C8h]                                                ; +0x22, 0x18007a642\ntest    rcx, rcx                                                       ; +0x29, 0x18007a649\njz      short loc_18007A676                                            ; +0x2c, 0x18007a64c\ntest    r8d, r8d                                                       ; +0x2e, 0x18007a64e\njnz     short loc_18007A67A                                            ; +0x31, 0x18007a651\ncmp     [rbx+0ECh], r8b                                                ; +0x33, 0x18007a653\njz      short loc_18007A66C                                            ; +0x3a, 0x18007a65a\nmov     edx, 33001h                                                    ; +0x3c, 0x18007a65c\nmov     r8d, 34001h                                                    ; +0x41, 0x18007a661\ncall    sub_1800DD5A0                                                  ; +0x47, 0x18007a667\nmov     rcx, rbx; this                                                 ; +0x4c, 0x18007a66c\ncall    ?clearQueuedInput@CCEGLView@cocos2d@@QEAAXXZ; cocos2d::CCEGLView::clearQueuedInput(void) ; +0x4f, 0x18007a66f\njmp     short loc_18007A6B6                                            ; +0x54, 0x18007a674\ntest    edi, edi                                                       ; +0x56, 0x18007a676\njz      short loc_18007A6B6                                            ; +0x58, 0x18007a678\ntest    rcx, rcx                                                       ; +0x5a, 0x18007a67a\njz      short loc_18007A698                                            ; +0x5d, 0x18007a67d\ncmp     byte ptr [rbx+0ECh], 0                                         ; +0x5f, 0x18007a67f\njz      short loc_18007A698                                            ; +0x66, 0x18007a686\nmov     edx, 33001h                                                    ; +0x68, 0x18007a688\nmov     r8d, 34003h                                                    ; +0x6d, 0x18007a68d\ncall    sub_1800DD5A0                                                  ; +0x73, 0x18007a693\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x78, 0x18007a698\nmov     rcx, [rax]                                                     ; +0x7d, 0x18007a69d\nmov     rdx, [rcx+20h]                                                 ; +0x80, 0x18007a6a0\nmov     rcx, rax                                                       ; +0x84, 0x18007a6a4\ncall    rdx                                                            ; +0x87, 0x18007a6a7\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x89, 0x18007a6a9\nmov     rcx, rax; this                                                 ; +0x8e, 0x18007a6ae\ncall    ?resyncVerticalSync@CCApplication@cocos2d@@QEAAXXZ; cocos2d::CCApplication::resyncVerticalSync(void) ; +0x91, 0x18007a6b1\ncmp     byte ptr [rbx+0E8h], 0                                         ; +0x96, 0x18007a6b6\njz      loc_18007A743                                                  ; +0x9d, 0x18007a6bd\ncmp     byte ptr [rbx+0E9h], 0                                         ; +0xa3, 0x18007a6c3\njz      short loc_18007A743                                            ; +0xaa, 0x18007a6ca\ncmp     byte ptr [rbx+0EAh], 0                                         ; +0xac, 0x18007a6cc\njz      short loc_18007A743                                            ; +0xb3, 0x18007a6d3\nmov     rcx, rsi                                                       ; +0xb5, 0x18007a6d5\ncall    sub_1800D9CB0                                                  ; +0xb8, 0x18007a6d8\nxor     ecx, ecx                                                       ; +0xbd, 0x18007a6dd\nxor     r9d, r9d; Y                                                    ; +0xbf, 0x18007a6df\nxor     r8d, r8d; X                                                    ; +0xc2, 0x18007a6e2\ntest    edi, edi                                                       ; +0xc5, 0x18007a6e5\njz      short loc_18007A719                                            ; +0xc7, 0x18007a6e7\nmov     [rsp+48h+uFlags], 53h ; 'S'; uFlags                            ; +0xc9, 0x18007a6e9\nmov     rdx, 0FFFFFFFFFFFFFFFFh; hWndInsertAfter                       ; +0xd1, 0x18007a6f1\nmov     [rsp+48h+cy], ecx; cy                                          ; +0xd8, 0x18007a6f8\nmov     [rsp+48h+var_28], ecx; cx                                      ; +0xdc, 0x18007a6fc\nmov     rcx, rax; hWnd                                                 ; +0xe0, 0x18007a700\ncall    cs:SetWindowPos                                                ; +0xe3, 0x18007a703\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xe9, 0x18007a709\nmov     rsi, [rsp+48h+arg_8]                                           ; +0xee, 0x18007a70e\nadd     rsp, 40h                                                       ; +0xf3, 0x18007a713\npop     rdi                                                            ; +0xf7, 0x18007a717\nretn                                                                   ; +0xf8, 0x18007a718\nmov     [rsp+48h+uFlags], 13h; uFlags                                  ; +0xf9, 0x18007a719\nmov     rdx, 0FFFFFFFFFFFFFFFEh; hWndInsertAfter                       ; +0x101, 0x18007a721\nmov     [rsp+48h+cy], ecx; cy                                          ; +0x108, 0x18007a728\nmov     [rsp+48h+var_28], ecx; cx                                      ; +0x10c, 0x18007a72c\nmov     rcx, rax; hWnd                                                 ; +0x110, 0x18007a730\ncall    cs:SetWindowPos                                                ; +0x113, 0x18007a733\nmov     dword ptr [rbx+0BCh], 2                                        ; +0x119, 0x18007a739\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x123, 0x18007a743\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x128, 0x18007a748\nadd     rsp, 40h                                                       ; +0x12d, 0x18007a74d\npop     rdi                                                            ; +0x131, 0x18007a751\nretn                                                                   ; +0x132, 0x18007a752", "xrefs": ["sub_18007A760 @ 0x18007a775", "<???> @ 0x18014cf68", "<???> @ 0x1801bed1c"], "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"}