{"type": "func", "start": 6443236368, "end": 6443236447, "name": "cocos2d::CCDirector::setViewport", "pseudocode": "// \n// cocos2d::CCDirector::setViewport from 0x1800bfc10 to 0x1800bfc5f (79 bytes)\n// \n// 11 xrefs:\n// > cocos2d::CCRenderTexture::clear @ 0x18005f8a7\n// > cocos2d::CCRenderTexture::clearDepth @ 0x18005f951\n// > cocos2d::CCRenderTexture::draw @ 0x18005fd5d\n// > cocos2d::CCRenderTexture::end @ 0x18005fdcd\n// > cocos2d::CCRenderTexture::newCCImage @ 0x1800603cd\n// > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x180077c30\n// > sub_180077C40 @ 0x180077c5a\n// > cocos2d::CCEGLView::updateWindow @ 0x180079294\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b93b4\n// > <???> @ 0x1801b93c0\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::CCDirector::setViewport(cocos2d::CCDirector *this)\n{\n  int v2; // [rsp+40h] [rbp+8h] BYREF\n\n  if ( this->m_pobOpenGLView )\n  {\n    cocos2d::cc_timeval::operator=(&v2, &this->m_obWinSizeInPoints);\n    ((void (__fastcall *)(cocos2d::CCEGLView *))this->m_pobOpenGLView->setViewPortInPoints)(this->m_pobOpenGLView);\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setViewport from 0x1800bfc10 to 0x1800bfc5f (79 bytes)\n; \n; 11 xrefs:\n; > cocos2d::CCRenderTexture::clear @ 0x18005f8a7\n; > cocos2d::CCRenderTexture::clearDepth @ 0x18005f951\n; > cocos2d::CCRenderTexture::draw @ 0x18005fd5d\n; > cocos2d::CCRenderTexture::end @ 0x18005fdcd\n; > cocos2d::CCRenderTexture::newCCImage @ 0x1800603cd\n; > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x180077c30\n; > sub_180077C40 @ 0x180077c5a\n; > cocos2d::CCEGLView::updateWindow @ 0x180079294\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b93b4\n; > <???> @ 0x1801b93c0\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\npush    rbx                                                            ; +0x0, 0x1800bfc10\nsub     rsp, 30h                                                       ; +0x2, 0x1800bfc12\ncmp     qword ptr [rcx+0B8h], 0                                        ; +0x6, 0x1800bfc16\nmov     rbx, rcx                                                       ; +0xe, 0x1800bfc1e\njz      short loc_1800BFC59                                            ; +0x11, 0x1800bfc21\nlea     rdx, [rcx+138h]                                                ; +0x13, 0x1800bfc23\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x1a, 0x1800bfc2a\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x1f, 0x1800bfc2f\nmov     rcx, [rbx+0B8h]                                                ; +0x24, 0x1800bfc34\nxorps   xmm2, xmm2                                                     ; +0x2b, 0x1800bfc3b\nmovss   xmm0, [rsp+38h+arg_4]                                          ; +0x2e, 0x1800bfc3e\nxorps   xmm1, xmm1                                                     ; +0x34, 0x1800bfc44\nmovss   xmm3, [rsp+38h+arg_0]                                          ; +0x37, 0x1800bfc47\nmovss   [rsp+38h+var_18], xmm0                                         ; +0x3d, 0x1800bfc4d\nmov     rax, [rcx]                                                     ; +0x43, 0x1800bfc53\ncall    qword ptr [rax+60h]                                            ; +0x46, 0x1800bfc56\nadd     rsp, 30h                                                       ; +0x49, 0x1800bfc59\npop     rbx                                                            ; +0x4d, 0x1800bfc5d\nretn                                                                   ; +0x4e, 0x1800bfc5e", "xrefs": ["cocos2d::CCRenderTexture::clear @ 0x18005f8a7", "cocos2d::CCRenderTexture::clearDepth @ 0x18005f951", "cocos2d::CCRenderTexture::draw @ 0x18005fd5d", "cocos2d::CCRenderTexture::end @ 0x18005fdcd", "cocos2d::CCRenderTexture::newCCImage @ 0x1800603cd", "cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x180077c30", "sub_180077C40 @ 0x180077c5a", "cocos2d::CCEGLView::updateWindow @ 0x180079294", "<???> @ 0x1801438a8", "<???> @ 0x1801b93b4", "<???> @ 0x1801b93c0"], "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"}