{"type": "func", "start": 6443250768, "end": 6443250847, "name": "cocos2d::CCDirector::setViewport", "pseudocode": "// \n// cocos2d::CCDirector::setViewport from 0x1800c3450 to 0x1800c349f (79 bytes)\n// \n// 11 xrefs:\n// > cocos2d::CCRenderTexture::clear @ 0x180061a8a\n// > cocos2d::CCRenderTexture::clearDepth @ 0x180061b34\n// > cocos2d::CCRenderTexture::draw @ 0x180061f40\n// > cocos2d::CCRenderTexture::end @ 0x180061fb0\n// > cocos2d::CCRenderTexture::newCCImage @ 0x1800625f0\n// > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a81c\n// > sub_18007A840 @ 0x18007a856\n// > cocos2d::CCEGLView::updateWindow @ 0x18007c2a4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3678\n// > <???> @ 0x1801c3684\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:26 +0000\n// \n\nvoid __fastcall cocos2d::CCDirector::setViewport(cocos2d::CCDirector *this)\n{\n  int v2; // [rsp+40h] [rbp+8h] BYREF\n\n  if ( *((_QWORD *)this + 24) )\n  {\n    cocos2d::cc_timeval::operator=(&v2, (_DWORD *)this + 80);\n    (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 24) + 96LL))(*((_QWORD *)this + 24));\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setViewport from 0x1800c3450 to 0x1800c349f (79 bytes)\n; \n; 11 xrefs:\n; > cocos2d::CCRenderTexture::clear @ 0x180061a8a\n; > cocos2d::CCRenderTexture::clearDepth @ 0x180061b34\n; > cocos2d::CCRenderTexture::draw @ 0x180061f40\n; > cocos2d::CCRenderTexture::end @ 0x180061fb0\n; > cocos2d::CCRenderTexture::newCCImage @ 0x1800625f0\n; > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a81c\n; > sub_18007A840 @ 0x18007a856\n; > cocos2d::CCEGLView::updateWindow @ 0x18007c2a4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3678\n; > <???> @ 0x1801c3684\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:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c3450\nsub     rsp, 30h                                                       ; +0x2, 0x1800c3452\ncmp     qword ptr [rcx+0C0h], 0                                        ; +0x6, 0x1800c3456\nmov     rbx, rcx                                                       ; +0xe, 0x1800c345e\njz      short loc_1800C3499                                            ; +0x11, 0x1800c3461\nlea     rdx, [rcx+140h]                                                ; +0x13, 0x1800c3463\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x1a, 0x1800c346a\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x1f, 0x1800c346f\nmov     rcx, [rbx+0C0h]                                                ; +0x24, 0x1800c3474\nxorps   xmm2, xmm2                                                     ; +0x2b, 0x1800c347b\nmovss   xmm0, [rsp+38h+arg_4]                                          ; +0x2e, 0x1800c347e\nxorps   xmm1, xmm1                                                     ; +0x34, 0x1800c3484\nmovss   xmm3, [rsp+38h+arg_0]                                          ; +0x37, 0x1800c3487\nmovss   [rsp+38h+var_18], xmm0                                         ; +0x3d, 0x1800c348d\nmov     rax, [rcx]                                                     ; +0x43, 0x1800c3493\ncall    qword ptr [rax+60h]                                            ; +0x46, 0x1800c3496\nadd     rsp, 30h                                                       ; +0x49, 0x1800c3499\npop     rbx                                                            ; +0x4d, 0x1800c349d\nretn                                                                   ; +0x4e, 0x1800c349e", "xrefs": ["cocos2d::CCRenderTexture::clear @ 0x180061a8a", "cocos2d::CCRenderTexture::clearDepth @ 0x180061b34", "cocos2d::CCRenderTexture::draw @ 0x180061f40", "cocos2d::CCRenderTexture::end @ 0x180061fb0", "cocos2d::CCRenderTexture::newCCImage @ 0x1800625f0", "cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a81c", "sub_18007A840 @ 0x18007a856", "cocos2d::CCEGLView::updateWindow @ 0x18007c2a4", "<???> @ 0x18014cf68", "<???> @ 0x1801c3678", "<???> @ 0x1801c3684"], "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"}