{"type": "func", "start": 6443249808, "end": 6443250009, "name": "cocos2d::CCDirector::setOpenGLView", "pseudocode": "// \n// cocos2d::CCDirector::setOpenGLView from 0x1800c3090 to 0x1800c3159 (201 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCApplication::setupGLView @ 0x1800769e1\n// > <???> @ 0x18014b184\n// > <???> @ 0x18014b194\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3600\n// > <???> @ 0x1801c360c\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::setOpenGLView(cocos2d::CCDirector *this, struct cocos2d::CCEGLView *a2)\n{\n  cocos2d::CCConfiguration *v4; // rbx\n  __int64 v5; // rcx\n  _DWORD *v6; // rax\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rdx\n\n  if ( *((struct cocos2d::CCEGLView **)this + 24) != a2 )\n  {\n    v4 = cocos2d::CCConfiguration::sharedConfiguration();\n    cocos2d::CCConfiguration::gatherGPUInfo(v4);\n    cocos2d::CCConfiguration::dumpInfo(v4);\n    v5 = *((_QWORD *)this + 24);\n    if ( v5 )\n      cocos2d::CCObject::release((cocos2d::CCObject *)(v5 + 120));\n    *((_QWORD *)this + 24) = a2;\n    cocos2d::CCObject::retain((struct cocos2d::CCEGLView *)((char *)a2 + 120));\n    v6 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 24) + 80LL))(*((_QWORD *)this + 24));\n    cocos2d::CCSize::operator=((_DWORD *)this + 80, v6);\n    v7 = *((_QWORD *)this + 24);\n    if ( v7 )\n    {\n      cocos2d::CCDirector::setGLDefaultValues(this);\n      v7 = *((_QWORD *)this + 24);\n    }\n    v8 = *((_QWORD *)this + 15);\n    v9 = v8 + 56;\n    if ( !v8 )\n      v9 = 0;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 88LL))(v7, v9);\n    cocos2d::CCTouchDispatcher::setDispatchEvents(*((cocos2d::CCTouchDispatcher **)this + 15), 1);\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setOpenGLView from 0x1800c3090 to 0x1800c3159 (201 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCApplication::setupGLView @ 0x1800769e1\n; > <???> @ 0x18014b184\n; > <???> @ 0x18014b194\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3600\n; > <???> @ 0x1801c360c\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; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x1800c3090\npush    rdi                                                            ; +0x5, 0x1800c3095\nsub     rsp, 20h                                                       ; +0x6, 0x1800c3096\nmov     rsi, rdx                                                       ; +0xa, 0x1800c309a\nmov     rdi, rcx                                                       ; +0xd, 0x1800c309d\ncmp     [rcx+0C0h], rdx                                                ; +0x10, 0x1800c30a0\njz      loc_1800C314E                                                  ; +0x17, 0x1800c30a7\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1d, 0x1800c30ad\ncall    ?sharedConfiguration@CCConfiguration@cocos2d@@SAPEAV12@XZ; cocos2d::CCConfiguration::sharedConfiguration(void) ; +0x22, 0x1800c30b2\nmov     rcx, rax; this                                                 ; +0x27, 0x1800c30b7\nmov     rbx, rax                                                       ; +0x2a, 0x1800c30ba\ncall    ?gatherGPUInfo@CCConfiguration@cocos2d@@QEAAXXZ; cocos2d::CCConfiguration::gatherGPUInfo(void) ; +0x2d, 0x1800c30bd\nmov     rcx, rbx; this                                                 ; +0x32, 0x1800c30c2\ncall    ?dumpInfo@CCConfiguration@cocos2d@@QEBAXXZ; cocos2d::CCConfiguration::dumpInfo(void) ; +0x35, 0x1800c30c5\nmov     rcx, [rdi+0C0h]                                                ; +0x3a, 0x1800c30ca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x41, 0x1800c30d1\ntest    rcx, rcx                                                       ; +0x46, 0x1800c30d6\njz      short loc_1800C30E4                                            ; +0x49, 0x1800c30d9\nadd     rcx, 78h ; 'x'; this                                           ; +0x4b, 0x1800c30db\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x4f, 0x1800c30df\nlea     rcx, [rsi+78h]; this                                           ; +0x54, 0x1800c30e4\nmov     [rdi+0C0h], rsi                                                ; +0x58, 0x1800c30e8\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x5f, 0x1800c30ef\nmov     rcx, [rdi+0C0h]                                                ; +0x64, 0x1800c30f4\nmov     rax, [rcx]                                                     ; +0x6b, 0x1800c30fb\ncall    qword ptr [rax+50h]                                            ; +0x6e, 0x1800c30fe\nmov     rdx, rax                                                       ; +0x71, 0x1800c3101\nlea     rcx, [rdi+140h]                                                ; +0x74, 0x1800c3104\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x7b, 0x1800c310b\nmov     rcx, [rdi+0C0h]                                                ; +0x80, 0x1800c3110\ntest    rcx, rcx                                                       ; +0x87, 0x1800c3117\njz      short loc_1800C312B                                            ; +0x8a, 0x1800c311a\nmov     rcx, rdi; this                                                 ; +0x8c, 0x1800c311c\ncall    ?setGLDefaultValues@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setGLDefaultValues(void) ; +0x8f, 0x1800c311f\nmov     rcx, [rdi+0C0h]                                                ; +0x94, 0x1800c3124\nmov     rax, [rdi+78h]                                                 ; +0x9b, 0x1800c312b\nxor     r8d, r8d                                                       ; +0x9f, 0x1800c312f\ntest    rax, rax                                                       ; +0xa2, 0x1800c3132\nlea     rdx, [rax+38h]                                                 ; +0xa5, 0x1800c3135\nmov     rax, [rcx]                                                     ; +0xa9, 0x1800c3139\ncmovz   rdx, r8                                                        ; +0xac, 0x1800c313c\ncall    qword ptr [rax+58h]                                            ; +0xb0, 0x1800c3140\nmov     rcx, [rdi+78h]; this                                           ; +0xb3, 0x1800c3143\nmov     dl, 1; bool                                                    ; +0xb7, 0x1800c3147\ncall    ?setDispatchEvents@CCTouchDispatcher@cocos2d@@QEAAX_N@Z; cocos2d::CCTouchDispatcher::setDispatchEvents(bool) ; +0xb9, 0x1800c3149\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xbe, 0x1800c314e\nadd     rsp, 20h                                                       ; +0xc3, 0x1800c3153\npop     rdi                                                            ; +0xc7, 0x1800c3157\nretn                                                                   ; +0xc8, 0x1800c3158", "xrefs": ["cocos2d::CCApplication::setupGLView @ 0x1800769e1", "<???> @ 0x18014b184", "<???> @ 0x18014b194", "<???> @ 0x18014cf68", "<???> @ 0x1801c3600", "<???> @ 0x1801c360c"], "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"}