{"type": "func", "start": 6442942992, "end": 6442943278, "name": "cocos2d::CCEGLView::CCEGLView", "pseudocode": "// \n// cocos2d::CCEGLView::CCEGLView from 0x180078210 to 0x18007832e (286 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCEGLView::create @ 0x1800794b4\n// > cocos2d::CCEGLView::createWithFullScreen @ 0x180079565\n// > cocos2d::CCEGLView::createWithFullScreen @ 0x1800795fe\n// > cocos2d::CCEGLView::createWithRect @ 0x180079734\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be9d4\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:21:59 +0000\n// \n\n// Hidden C++ exception states: #wind=2\ncocos2d::CCEGLView *__fastcall cocos2d::CCEGLView::CCEGLView(cocos2d::CCEGLView *this)\n{\n  unsigned __int8 *v2; // rbx\n  _BYTE v4[40]; // [rsp+20h] [rbp-28h] BYREF\n  char v5; // [rsp+58h] [rbp+10h] BYREF\n  char v6; // [rsp+60h] [rbp+18h] BYREF\n  char v7; // [rsp+68h] [rbp+20h] BYREF\n\n  cocos2d::CCEGLViewProtocol::CCEGLViewProtocol(this);\n  cocos2d::CCObject::CCObject((cocos2d::CCEGLView *)((char *)this + 120));\n  *(_QWORD *)this = &cocos2d::CCEGLView::`vftable'{for `cocos2d::CCEGLViewProtocol'};\n  *((_QWORD *)this + 15) = &cocos2d::CCEGLView::`vftable'{for `cocos2d::CCObject'};\n  *((_DWORD *)this + 44) = 0;\n  *((_DWORD *)this + 45) = 1;\n  *((_BYTE *)this + 184) = 0;\n  *((_DWORD *)this + 47) = 0;\n  *((_DWORD *)this + 48) = 1065353216;\n  *((_QWORD *)this + 25) = 0;\n  *((_QWORD *)this + 26) = 0;\n  cocos2d::CCSize::CCSize((cocos2d::CCEGLView *)((char *)this + 216));\n  *((_QWORD *)this + 28) = 0;\n  *((_DWORD *)this + 58) = 0;\n  *((_WORD *)this + 118) = 0;\n  strcpy((char *)this + 48, \"cocos2dx\");\n  sub_1800790C0(&dword_1801B2670);\n  v2 = (unsigned __int8 *)&unk_1801ACBA0;\n  do\n  {\n    *(_DWORD *)(*(_QWORD *)sub_180077CF0(&dword_1801B2670, (__int64)v4, v2) + 20LL) = *((_DWORD *)v2 + 1);\n    v2 += 8;\n  }\n  while ( v2 != (unsigned __int8 *)&off_1801ACF70 );\n  qword_1801B2540 = this;\n  sub_1800DB6C0(sub_18007A4E0);\n  sub_1800DB600();\n  sub_1800DB5D0(&v7, &v6, &v5);\n  return this;\n}", "assembly": "; \n; cocos2d::CCEGLView::CCEGLView from 0x180078210 to 0x18007832e (286 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCEGLView::create @ 0x1800794b4\n; > cocos2d::CCEGLView::createWithFullScreen @ 0x180079565\n; > cocos2d::CCEGLView::createWithFullScreen @ 0x1800795fe\n; > cocos2d::CCEGLView::createWithRect @ 0x180079734\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be9d4\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:21:59 +0000\n; \nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x180078210\npush    rbx                                                            ; +0x5, 0x180078215\npush    rsi                                                            ; +0x6, 0x180078216\npush    rdi                                                            ; +0x7, 0x180078217\nsub     rsp, 30h                                                       ; +0x8, 0x180078218\nmov     rdi, rcx                                                       ; +0xc, 0x18007821c\ncall    ??0CCEGLViewProtocol@cocos2d@@QEAA@XZ; cocos2d::CCEGLViewProtocol::CCEGLViewProtocol(void) ; +0xf, 0x18007821f\nnop                                                                    ; +0x14, 0x180078224\nlea     rcx, [rdi+78h]; this                                           ; +0x15, 0x180078225\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x19, 0x180078229\nnop                                                                    ; +0x1e, 0x18007822e\nlea     rax, ??_7CCEGLView@cocos2d@@6BCCEGLViewProtocol@1@@; const cocos2d::CCEGLView::`vftable'{for `cocos2d::CCEGLViewProtocol'} ; +0x1f, 0x18007822f\nmov     [rdi], rax                                                     ; +0x26, 0x180078236\nlea     rax, ??_7CCEGLView@cocos2d@@6BCCObject@1@@; const cocos2d::CCEGLView::`vftable'{for `cocos2d::CCObject'} ; +0x29, 0x180078239\nmov     [rdi+78h], rax                                                 ; +0x30, 0x180078240\nmov     dword ptr [rdi+0B0h], 0                                        ; +0x34, 0x180078244\nmov     dword ptr [rdi+0B4h], 1                                        ; +0x3e, 0x18007824e\nmov     byte ptr [rdi+0B8h], 0                                         ; +0x48, 0x180078258\nxor     ebx, ebx                                                       ; +0x4f, 0x18007825f\nmov     [rdi+0BCh], ebx                                                ; +0x51, 0x180078261\nmov     dword ptr [rdi+0C0h], 3F800000h                                ; +0x57, 0x180078267\nmov     [rdi+0C8h], rbx                                                ; +0x61, 0x180078271\nmov     [rdi+0D0h], rbx                                                ; +0x68, 0x180078278\nlea     rcx, [rdi+0D8h]; this                                          ; +0x6f, 0x18007827f\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x76, 0x180078286\nmov     [rdi+0E0h], rbx                                                ; +0x7b, 0x18007828b\nmov     [rdi+0E8h], ebx                                                ; +0x82, 0x180078292\nmov     [rdi+0ECh], bx                                                 ; +0x88, 0x180078298\nmovsd   xmm0, cs:qword_1801070F0                                       ; +0x8f, 0x18007829f\nmovsd   qword ptr [rdi+30h], xmm0                                      ; +0x97, 0x1800782a7\nmovzx   eax, cs:byte_1801070F8                                         ; +0x9c, 0x1800782ac\nmov     [rdi+38h], al                                                  ; +0xa3, 0x1800782b3\nlea     rcx, dword_1801B2670                                           ; +0xa6, 0x1800782b6\ncall    sub_1800790C0                                                  ; +0xad, 0x1800782bd\nlea     rbx, unk_1801ACBA0                                             ; +0xb2, 0x1800782c2\nlea     rsi, off_1801ACF70                                             ; +0xb9, 0x1800782c9\nmov     r8, rbx                                                        ; +0xc0, 0x1800782d0\nlea     rdx, [rsp+48h+var_28]                                          ; +0xc3, 0x1800782d3\nlea     rcx, dword_1801B2670                                           ; +0xc8, 0x1800782d8\ncall    sub_180077CF0                                                  ; +0xcf, 0x1800782df\nmov     rcx, [rax]                                                     ; +0xd4, 0x1800782e4\nmov     eax, [rbx+4]                                                   ; +0xd7, 0x1800782e7\nmov     [rcx+14h], eax                                                 ; +0xda, 0x1800782ea\nadd     rbx, 8                                                         ; +0xdd, 0x1800782ed\ncmp     rbx, rsi                                                       ; +0xe1, 0x1800782f1\njnz     short loc_1800782D0                                            ; +0xe4, 0x1800782f4\nmov     cs:qword_1801B2540, rdi                                        ; +0xe6, 0x1800782f6\nlea     rcx, sub_18007A4E0                                             ; +0xed, 0x1800782fd\ncall    sub_1800DB6C0                                                  ; +0xf4, 0x180078304\ncall    sub_1800DB600                                                  ; +0xf9, 0x180078309\nlea     r8, [rsp+48h+arg_8]                                            ; +0xfe, 0x18007830e\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x103, 0x180078313\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x108, 0x180078318\ncall    sub_1800DB5D0                                                  ; +0x10d, 0x18007831d\nnop                                                                    ; +0x112, 0x180078322\nmov     rax, rdi                                                       ; +0x113, 0x180078323\nadd     rsp, 30h                                                       ; +0x116, 0x180078326\npop     rdi                                                            ; +0x11a, 0x18007832a\npop     rsi                                                            ; +0x11b, 0x18007832b\npop     rbx                                                            ; +0x11c, 0x18007832c\nretn                                                                   ; +0x11d, 0x18007832d", "xrefs": ["cocos2d::CCEGLView::create @ 0x1800794b4", "cocos2d::CCEGLView::createWithFullScreen @ 0x180079565", "cocos2d::CCEGLView::createWithFullScreen @ 0x1800795fe", "cocos2d::CCEGLView::createWithRect @ 0x180079734", "<???> @ 0x18014cf68", "<???> @ 0x1801be9d4"], "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"}