{"type": "func", "start": 6442932816, "end": 6442933115, "name": "cocos2d::CCEGLView::~CCEGLView", "pseudocode": "// \n// cocos2d::CCEGLView::~CCEGLView from 0x180075a50 to 0x180075b7b (299 bytes)\n// \n// 4 xrefs:\n// > sub_180075BB0 @ 0x180075c0e\n// > sub_180075BB0 @ 0x180075bcc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b46c8\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::CCEGLView::~CCEGLView(cocos2d::CCEGLView *this)\n{\n  _Thrd_t v2; // [rsp+20h] [rbp-18h] BYREF\n\n  this->__vftable = (cocos2d::CCEGLView_vtbl *)&cocos2d::CCEGLView::`vftable'{for `cocos2d::CCEGLViewProtocol'};\n  *(_QWORD *)&this->m_idk1 = &cocos2d::CCEGLView::`vftable'{for `cocos2d::CCObject'};\n  byte_1801A8528 = 0;\n  if ( hWnd )\n    PostMessageA(hWnd, 0x12u, 0, 0);\n  if ( dword_1801A8538 )\n  {\n    if ( dword_1801A8538 == Thrd_id() )\n    {\nLABEL_12:\n      std::_Throw_Cpp_error(5);\n      JUMPOUT(0x180075B7ALL);\n    }\n    v2 = (_Thrd_t)unk_1801A8530;\n    if ( Thrd_join(&v2, nullptr) )\n    {\n      std::_Throw_Cpp_error(2);\n      __debugbreak();\n    }\n    unk_1801A8530 = 0;\n  }\n  hWnd = nullptr;\n  if ( Mtx_lock((_Mtx_t)&unk_1801A8558) )\n    goto LABEL_12;\n  if ( dword_1801A85A4 == 0x7FFFFFFF )\n  {\n    dword_1801A85A4 = 2147483646;\n    std::_Throw_Cpp_error(6);\n    __debugbreak();\n  }\n  sub_180076360(&xmmword_1801A85A8);\n  Mtx_unlock((_Mtx_t)&unk_1801A8558);\n  sub_180076710(&dword_1801A85D0);\n  qword_1801A8500 = nullptr;\n  sub_1800D39A0();\n  cocos2d::CCObject::~CCObject((cocos2d::CCObject *)&this->m_idk1);\n  cocos2d::CCEGLViewProtocol::~CCEGLViewProtocol(this);\n}", "assembly": "; \n; cocos2d::CCEGLView::~CCEGLView from 0x180075a50 to 0x180075b7b (299 bytes)\n; \n; 4 xrefs:\n; > sub_180075BB0 @ 0x180075c0e\n; > sub_180075BB0 @ 0x180075bcc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b46c8\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_0], rbx                                               ; +0x0, 0x180075a50\npush    rdi                                                            ; +0x5, 0x180075a55\nsub     rsp, 30h                                                       ; +0x6, 0x180075a56\nmov     rbx, rcx                                                       ; +0xa, 0x180075a5a\nlea     rax, ??_7CCEGLView@cocos2d@@6BCCEGLViewProtocol@1@@; const cocos2d::CCEGLView::`vftable'{for `cocos2d::CCEGLViewProtocol'} ; +0xd, 0x180075a5d\nmov     [rcx], rax                                                     ; +0x14, 0x180075a64\nlea     rax, ??_7CCEGLView@cocos2d@@6BCCObject@1@@; const cocos2d::CCEGLView::`vftable'{for `cocos2d::CCObject'} ; +0x17, 0x180075a67\nmov     [rcx+78h], rax                                                 ; +0x1e, 0x180075a6e\nxor     eax, eax                                                       ; +0x22, 0x180075a72\nxchg    al, cs:byte_1801A8528                                          ; +0x24, 0x180075a74\nmov     rcx, cs:hWnd; hWnd                                             ; +0x2a, 0x180075a7a\ntest    rcx, rcx                                                       ; +0x31, 0x180075a81\njz      short loc_180075A96                                            ; +0x34, 0x180075a84\nxor     r9d, r9d; lParam                                               ; +0x36, 0x180075a86\nxor     r8d, r8d; wParam                                               ; +0x39, 0x180075a89\nlea     edx, [r9+12h]; Msg                                             ; +0x3c, 0x180075a8c\ncall    cs:PostMessageA                                                ; +0x40, 0x180075a90\ncmp     cs:dword_1801A8538, 0                                          ; +0x46, 0x180075a96\njz      short loc_180075ADA                                            ; +0x4d, 0x180075a9d\ncall    _Thrd_id                                                       ; +0x4f, 0x180075a9f\ncmp     cs:dword_1801A8538, eax                                        ; +0x54, 0x180075aa4\njz      loc_180075B70                                                  ; +0x5a, 0x180075aaa\nmovups  xmm0, xmmword ptr cs:unk_1801A8530                             ; +0x60, 0x180075ab0\nmovaps  xmmword ptr [rsp+38h+var_18._Hnd], xmm0                        ; +0x67, 0x180075ab7\nxor     edx, edx; int *                                                ; +0x6c, 0x180075abc\nlea     rcx, [rsp+38h+var_18]; _Thrd_t                                 ; +0x6e, 0x180075abe\ncall    _Thrd_join                                                     ; +0x73, 0x180075ac3\ntest    eax, eax                                                       ; +0x78, 0x180075ac8\njnz     loc_180075B65                                                  ; +0x7a, 0x180075aca\nxorps   xmm0, xmm0                                                     ; +0x80, 0x180075ad0\nmovups  xmmword ptr cs:unk_1801A8530, xmm0                             ; +0x83, 0x180075ad3\nmov     cs:hWnd, 0                                                     ; +0x8a, 0x180075ada\nlea     rcx, unk_1801A8558; _Mtx_t                                     ; +0x95, 0x180075ae5\ncall    _Mtx_lock                                                      ; +0x9c, 0x180075aec\ntest    eax, eax                                                       ; +0xa1, 0x180075af1\njnz     short loc_180075B70                                            ; +0xa3, 0x180075af3\ncmp     cs:dword_1801A85A4, 7FFFFFFFh                                  ; +0xa5, 0x180075af5\njz      short loc_180075B50                                            ; +0xaf, 0x180075aff\nlea     rcx, xmmword_1801A85A8                                         ; +0xb1, 0x180075b01\ncall    sub_180076360                                                  ; +0xb8, 0x180075b08\nlea     rcx, unk_1801A8558; _Mtx_t                                     ; +0xbd, 0x180075b0d\ncall    _Mtx_unlock                                                    ; +0xc4, 0x180075b14\nlea     rcx, dword_1801A85D0                                           ; +0xc9, 0x180075b19\ncall    sub_180076710                                                  ; +0xd0, 0x180075b20\nmov     cs:qword_1801A8500, 0                                          ; +0xd5, 0x180075b25\ncall    sub_1800D39A0                                                  ; +0xe0, 0x180075b30\nlea     rcx, [rbx+78h]; this                                           ; +0xe5, 0x180075b35\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0xe9, 0x180075b39\nmov     rcx, rbx; this                                                 ; +0xee, 0x180075b3e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf1, 0x180075b41\nadd     rsp, 30h                                                       ; +0xf6, 0x180075b46\npop     rdi                                                            ; +0xfa, 0x180075b4a\njmp     ??1CCEGLViewProtocol@cocos2d@@UEAA@XZ; cocos2d::CCEGLViewProtocol::~CCEGLViewProtocol(void) ; +0xfb, 0x180075b4b\nmov     cs:dword_1801A85A4, 7FFFFFFEh                                  ; +0x100, 0x180075b50\nmov     ecx, 6; int                                                    ; +0x10a, 0x180075b5a\ncall    ?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int)      ; +0x10f, 0x180075b5f\nint     3; Trap to Debugger                                            ; +0x114, 0x180075b64\nmov     ecx, 2; int                                                    ; +0x115, 0x180075b65\ncall    ?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int)      ; +0x11a, 0x180075b6a\nint     3; Trap to Debugger                                            ; +0x11f, 0x180075b6f\nmov     ecx, 5; int                                                    ; +0x120, 0x180075b70\ncall    ?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int)      ; +0x125, 0x180075b75\ndb 0CCh                                                                ; +0x12a, 0x180075b7a", "xrefs": ["sub_180075BB0 @ 0x180075c0e", "sub_180075BB0 @ 0x180075bcc", "<???> @ 0x1801438a8", "<???> @ 0x1801b46c8"], "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"}