{"type": "func", "start": 6443235424, "end": 6443235626, "name": "cocos2d::CCDirector::setOpenGLView", "pseudocode": "// \n// cocos2d::CCDirector::setOpenGLView from 0x1800bf860 to 0x1800bf92a (202 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCApplication::setupGLView @ 0x180073d53\n// > <???> @ 0x180141e18\n// > <???> @ 0x180141e28\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b933c\n// > <???> @ 0x1801b9348\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::setOpenGLView(cocos2d::CCDirector *this, struct cocos2d::CCEGLView *a2)\n{\n  cocos2d::CCConfiguration *v4; // rbx\n  cocos2d::CCEGLView *m_pobOpenGLView; // rcx\n  _DWORD *v6; // rax\n  cocos2d::CCEGLView *v7; // rcx\n  cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // rax\n  cocos2d::EGLTouchDelegate *v9; // rdx\n\n  if ( this->m_pobOpenGLView != a2 )\n  {\n    v4 = cocos2d::CCConfiguration::sharedConfiguration();\n    cocos2d::CCConfiguration::gatherGPUInfo(v4);\n    cocos2d::CCConfiguration::dumpInfo(v4);\n    m_pobOpenGLView = this->m_pobOpenGLView;\n    if ( m_pobOpenGLView )\n      cocos2d::CCObject::release((cocos2d::CCObject *)&m_pobOpenGLView->m_idk1);\n    this->m_pobOpenGLView = a2;\n    cocos2d::CCObject::retain((cocos2d::CCObject *)&a2->m_idk1);\n    v6 = (_DWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))this->m_pobOpenGLView->getDesignResolutionSize)(this->m_pobOpenGLView);\n    cocos2d::CCSize::operator=(&this->m_obWinSizeInPoints, v6);\n    v7 = this->m_pobOpenGLView;\n    if ( v7 )\n    {\n      cocos2d::CCDirector::setGLDefaultValues(this);\n      v7 = this->m_pobOpenGLView;\n    }\n    m_pTouchDispatcher = this->m_pTouchDispatcher;\n    v9 = &m_pTouchDispatcher->cocos2d::EGLTouchDelegate;\n    if ( !m_pTouchDispatcher )\n      v9 = nullptr;\n    ((void (__fastcall *)(cocos2d::CCEGLView *, cocos2d::EGLTouchDelegate *))v7->setTouchDelegate)(v7, v9);\n    cocos2d::CCTouchDispatcher::setDispatchEvents(this->m_pTouchDispatcher, 1);\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setOpenGLView from 0x1800bf860 to 0x1800bf92a (202 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCApplication::setupGLView @ 0x180073d53\n; > <???> @ 0x180141e18\n; > <???> @ 0x180141e28\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b933c\n; > <???> @ 0x1801b9348\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_8], rsi                                               ; +0x0, 0x1800bf860\npush    rdi                                                            ; +0x5, 0x1800bf865\nsub     rsp, 20h                                                       ; +0x6, 0x1800bf866\nmov     rsi, rdx                                                       ; +0xa, 0x1800bf86a\nmov     rdi, rcx                                                       ; +0xd, 0x1800bf86d\ncmp     [rcx+0B8h], rdx                                                ; +0x10, 0x1800bf870\njz      loc_1800BF91F                                                  ; +0x17, 0x1800bf877\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1d, 0x1800bf87d\ncall    ?sharedConfiguration@CCConfiguration@cocos2d@@SAPEAV12@XZ; cocos2d::CCConfiguration::sharedConfiguration(void) ; +0x22, 0x1800bf882\nmov     rcx, rax; this                                                 ; +0x27, 0x1800bf887\nmov     rbx, rax                                                       ; +0x2a, 0x1800bf88a\ncall    ?gatherGPUInfo@CCConfiguration@cocos2d@@QEAAXXZ; cocos2d::CCConfiguration::gatherGPUInfo(void) ; +0x2d, 0x1800bf88d\nmov     rcx, rbx; this                                                 ; +0x32, 0x1800bf892\ncall    ?dumpInfo@CCConfiguration@cocos2d@@QEBAXXZ; cocos2d::CCConfiguration::dumpInfo(void) ; +0x35, 0x1800bf895\nmov     rcx, [rdi+0B8h]                                                ; +0x3a, 0x1800bf89a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x41, 0x1800bf8a1\ntest    rcx, rcx                                                       ; +0x46, 0x1800bf8a6\njz      short loc_1800BF8B4                                            ; +0x49, 0x1800bf8a9\nadd     rcx, 78h ; 'x'; this                                           ; +0x4b, 0x1800bf8ab\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x4f, 0x1800bf8af\nlea     rcx, [rsi+78h]; this                                           ; +0x54, 0x1800bf8b4\nmov     [rdi+0B8h], rsi                                                ; +0x58, 0x1800bf8b8\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x5f, 0x1800bf8bf\nmov     rcx, [rdi+0B8h]                                                ; +0x64, 0x1800bf8c4\nmov     rax, [rcx]                                                     ; +0x6b, 0x1800bf8cb\ncall    qword ptr [rax+50h]                                            ; +0x6e, 0x1800bf8ce\nmov     rdx, rax                                                       ; +0x71, 0x1800bf8d1\nlea     rcx, [rdi+138h]                                                ; +0x74, 0x1800bf8d4\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x7b, 0x1800bf8db\nmov     rcx, [rdi+0B8h]                                                ; +0x80, 0x1800bf8e0\ntest    rcx, rcx                                                       ; +0x87, 0x1800bf8e7\njz      short loc_1800BF8FB                                            ; +0x8a, 0x1800bf8ea\nmov     rcx, rdi; this                                                 ; +0x8c, 0x1800bf8ec\ncall    ?setGLDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setGLDefaultValues(void) ; +0x8f, 0x1800bf8ef\nmov     rcx, [rdi+0B8h]                                                ; +0x94, 0x1800bf8f4\nmov     rax, [rdi+78h]                                                 ; +0x9b, 0x1800bf8fb\nxor     r9d, r9d                                                       ; +0x9f, 0x1800bf8ff\nmov     r8, [rcx]                                                      ; +0xa2, 0x1800bf902\ntest    rax, rax                                                       ; +0xa5, 0x1800bf905\nlea     rdx, [rax+38h]                                                 ; +0xa8, 0x1800bf908\ncmovz   rdx, r9                                                        ; +0xac, 0x1800bf90c\ncall    qword ptr [r8+58h]                                             ; +0xb0, 0x1800bf910\nmov     rcx, [rdi+78h]; this                                           ; +0xb4, 0x1800bf914\nmov     dl, 1; bool                                                    ; +0xb8, 0x1800bf918\ncall    ?setDispatchEvents@CCTouchDispatcher@cocos2d@@QEAAX_N@Z; cocos2d::CCTouchDispatcher::setDispatchEvents(bool) ; +0xba, 0x1800bf91a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xbf, 0x1800bf91f\nadd     rsp, 20h                                                       ; +0xc4, 0x1800bf924\npop     rdi                                                            ; +0xc8, 0x1800bf928\nretn                                                                   ; +0xc9, 0x1800bf929", "xrefs": ["cocos2d::CCApplication::setupGLView @ 0x180073d53", "<???> @ 0x180141e18", "<???> @ 0x180141e28", "<???> @ 0x1801438a8", "<???> @ 0x1801b933c", "<???> @ 0x1801b9348"], "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"}