{"type": "func", "start": 6442959392, "end": 6442959550, "name": "cocos2d::CCEGLView::updateWindow", "pseudocode": "// \n// cocos2d::CCEGLView::updateWindow from 0x18007c220 to 0x18007c2be (158 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCEGLView::onGLFWWindowSizeFunCallback @ 0x18007a897\n// > sub_18007A8A0 @ 0x18007a8b9\n// > cocos2d::CCEGLView::resizeWindow @ 0x18007b61c\n// > cocos2d::CCEGLView::toggleFullScreen @ 0x18007bfb8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bee6c\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::updateWindow(cocos2d::CCEGLView *this, int a2, int a3)\n{\n  float *v4; // rbx\n  struct cocos2d::CCDirector *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  struct cocos2d::CCDirector *v7; // rax\n  float v8; // [rsp+30h] [rbp+8h] BYREF\n  int v9; // [rsp+38h] [rbp+10h] BYREF\n  int v10; // [rsp+40h] [rbp+18h] BYREF\n\n  v10 = a3;\n  v9 = a2;\n  sub_1800DC800(*((_QWORD *)this + 25));\n  sub_1800DC750(*((_QWORD *)this + 25), &v9, &v10);\n  cocos2d::CCEGLViewProtocol::setFrameSize(this, (float)v9, (float)v10);\n  v4 = kmVec2Fill(&v8, (float)v9, (float)v10);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::updateScreenScale(v5, v4);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setViewport(v6);\n  v7 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setProjection(v7, 0);\n}", "assembly": "; \n; cocos2d::CCEGLView::updateWindow from 0x18007c220 to 0x18007c2be (158 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCEGLView::onGLFWWindowSizeFunCallback @ 0x18007a897\n; > sub_18007A8A0 @ 0x18007a8b9\n; > cocos2d::CCEGLView::resizeWindow @ 0x18007b61c\n; > cocos2d::CCEGLView::toggleFullScreen @ 0x18007bfb8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bee6c\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_10], r8d                                              ; +0x0, 0x18007c220\nmov     [rsp+arg_8], edx                                               ; +0x5, 0x18007c225\npush    rbx                                                            ; +0x9, 0x18007c229\nsub     rsp, 20h                                                       ; +0xa, 0x18007c22a\nmov     rbx, rcx                                                       ; +0xe, 0x18007c22e\nmov     rcx, [rcx+0C8h]                                                ; +0x11, 0x18007c231\ncall    sub_1800DC800                                                  ; +0x18, 0x18007c238\nmov     rcx, [rbx+0C8h]                                                ; +0x1d, 0x18007c23d\nlea     r8, [rsp+28h+arg_10]                                           ; +0x24, 0x18007c244\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x29, 0x18007c249\ncall    sub_1800DC750                                                  ; +0x2e, 0x18007c24e\nmovd    xmm2, [rsp+28h+arg_10]                                         ; +0x33, 0x18007c253\nmov     rcx, rbx; this                                                 ; +0x39, 0x18007c259\nmovd    xmm1, [rsp+28h+arg_8]                                          ; +0x3c, 0x18007c25c\ncvtdq2ps xmm2, xmm2; float                                             ; +0x42, 0x18007c262\ncvtdq2ps xmm1, xmm1; float                                             ; +0x45, 0x18007c265\ncall    ?setFrameSize@CCEGLViewProtocol@cocos2d@@UEAAXMM@Z; cocos2d::CCEGLViewProtocol::setFrameSize(float,float) ; +0x48, 0x18007c268\nmovd    xmm2, [rsp+28h+arg_10]                                         ; +0x4d, 0x18007c26d\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x53, 0x18007c273\nmovd    xmm1, [rsp+28h+arg_8]                                          ; +0x58, 0x18007c278\ncvtdq2ps xmm2, xmm2                                                    ; +0x5e, 0x18007c27e\ncvtdq2ps xmm1, xmm1                                                    ; +0x61, 0x18007c281\ncall    kmVec2Fill                                                     ; +0x64, 0x18007c284\nmov     rbx, rax                                                       ; +0x69, 0x18007c289\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6c, 0x18007c28c\nmov     rcx, rax                                                       ; +0x71, 0x18007c291\nmov     rdx, rbx                                                       ; +0x74, 0x18007c294\ncall    ?updateScreenScale@CCDirector@cocos2d@@QEAAXVCCSize@2@@Z; cocos2d::CCDirector::updateScreenScale(cocos2d::CCSize) ; +0x77, 0x18007c297\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x18007c29c\nmov     rcx, rax; this                                                 ; +0x81, 0x18007c2a1\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x84, 0x18007c2a4\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x89, 0x18007c2a9\nmov     rcx, rax                                                       ; +0x8e, 0x18007c2ae\nxor     edx, edx                                                       ; +0x91, 0x18007c2b1\ncall    ?setProjection@CCDirector@cocos2d@@QEAAXW4ccDirectorProjection@2@@Z; cocos2d::CCDirector::setProjection(cocos2d::ccDirectorProjection) ; +0x93, 0x18007c2b3\nadd     rsp, 20h                                                       ; +0x98, 0x18007c2b8\npop     rbx                                                            ; +0x9c, 0x18007c2bc\nretn                                                                   ; +0x9d, 0x18007c2bd", "xrefs": ["cocos2d::CCEGLView::onGLFWWindowSizeFunCallback @ 0x18007a897", "sub_18007A8A0 @ 0x18007a8b9", "cocos2d::CCEGLView::resizeWindow @ 0x18007b61c", "cocos2d::CCEGLView::toggleFullScreen @ 0x18007bfb8", "<???> @ 0x18014cf68", "<???> @ 0x1801bee6c"], "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"}