{"type": "func", "start": 6442947088, "end": 6442947246, "name": "cocos2d::CCEGLView::updateWindow", "pseudocode": "// \n// cocos2d::CCEGLView::updateWindow from 0x180079210 to 0x1800792ae (158 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCEGLView::onGLFWWindowSizeFunCallback @ 0x180077c87\n// > sub_180077C90 @ 0x180077ca9\n// > cocos2d::CCEGLView::resizeWindow @ 0x18007883c\n// > cocos2d::CCEGLView::toggleFullScreen @ 0x180078fb0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4b60\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 cocos2d::CCEGLView::updateWindow(cocos2d::CCEGLView *this, int a2, int a3)\n{\n  float *v4; // rbx\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  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_1800D4AD0(*((_QWORD *)this + 25));\n  sub_1800D4A20(*((_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, (struct cocos2d::CCSize)v4);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setViewport(v6);\n  v7 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setProjection(v7, kCCDirectorProjection2D);\n}", "assembly": "; \n; cocos2d::CCEGLView::updateWindow from 0x180079210 to 0x1800792ae (158 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCEGLView::onGLFWWindowSizeFunCallback @ 0x180077c87\n; > sub_180077C90 @ 0x180077ca9\n; > cocos2d::CCEGLView::resizeWindow @ 0x18007883c\n; > cocos2d::CCEGLView::toggleFullScreen @ 0x180078fb0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4b60\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\nmov     [rsp+arg_10], r8d                                              ; +0x0, 0x180079210\nmov     [rsp+arg_8], edx                                               ; +0x5, 0x180079215\npush    rbx                                                            ; +0x9, 0x180079219\nsub     rsp, 20h                                                       ; +0xa, 0x18007921a\nmov     rbx, rcx                                                       ; +0xe, 0x18007921e\nmov     rcx, [rcx+0C8h]                                                ; +0x11, 0x180079221\ncall    sub_1800D4AD0                                                  ; +0x18, 0x180079228\nmov     rcx, [rbx+0C8h]                                                ; +0x1d, 0x18007922d\nlea     r8, [rsp+28h+arg_10]                                           ; +0x24, 0x180079234\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x29, 0x180079239\ncall    sub_1800D4A20                                                  ; +0x2e, 0x18007923e\nmovd    xmm2, [rsp+28h+arg_10]                                         ; +0x33, 0x180079243\nmov     rcx, rbx; this                                                 ; +0x39, 0x180079249\nmovd    xmm1, [rsp+28h+arg_8]                                          ; +0x3c, 0x18007924c\ncvtdq2ps xmm2, xmm2; float                                             ; +0x42, 0x180079252\ncvtdq2ps xmm1, xmm1; float                                             ; +0x45, 0x180079255\ncall    ?setFrameSize@CCEGLViewProtocol@cocos2d@@UEAAXMM@Z; cocos2d::CCEGLViewProtocol::setFrameSize(float,float) ; +0x48, 0x180079258\nmovd    xmm2, [rsp+28h+arg_10]                                         ; +0x4d, 0x18007925d\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x53, 0x180079263\nmovd    xmm1, [rsp+28h+arg_8]                                          ; +0x58, 0x180079268\ncvtdq2ps xmm2, xmm2                                                    ; +0x5e, 0x18007926e\ncvtdq2ps xmm1, xmm1                                                    ; +0x61, 0x180079271\ncall    kmVec2Fill                                                     ; +0x64, 0x180079274\nmov     rbx, rax                                                       ; +0x69, 0x180079279\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x6c, 0x18007927c\nmov     rcx, rax                                                       ; +0x71, 0x180079281\nmov     rdx, rbx                                                       ; +0x74, 0x180079284\ncall    ?updateScreenScale@CCDirector@cocos2d@@QEAAXVCCSize@2@@Z; cocos2d::CCDirector::updateScreenScale(cocos2d::CCSize) ; +0x77, 0x180079287\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x18007928c\nmov     rcx, rax; this                                                 ; +0x81, 0x180079291\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x84, 0x180079294\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x89, 0x180079299\nmov     rcx, rax                                                       ; +0x8e, 0x18007929e\nxor     edx, edx                                                       ; +0x91, 0x1800792a1\ncall    ?setProjection@CCDirector@cocos2d@@QEAAXW4ccDirectorProjection@2@@Z; cocos2d::CCDirector::setProjection(cocos2d::ccDirectorProjection) ; +0x93, 0x1800792a3\nadd     rsp, 20h                                                       ; +0x98, 0x1800792a8\npop     rbx                                                            ; +0x9c, 0x1800792ac\nretn                                                                   ; +0x9d, 0x1800792ad", "xrefs": ["cocos2d::CCEGLView::onGLFWWindowSizeFunCallback @ 0x180077c87", "sub_180077C90 @ 0x180077ca9", "cocos2d::CCEGLView::resizeWindow @ 0x18007883c", "cocos2d::CCEGLView::toggleFullScreen @ 0x180078fb0", "<???> @ 0x1801438a8", "<???> @ 0x1801b4b60"], "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"}