{"type": "func", "start": 6442935856, "end": 6442936071, "name": "cocos2d::CCEGLView::checkErrorGL", "pseudocode": "// \n// cocos2d::CCEGLView::checkErrorGL from 0x180076630 to 0x180076707 (215 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b486c\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\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCEGLView::checkErrorGL(cocos2d::CCEGLView *this, const char *a2)\n{\n  GLenum Error; // edi\n  const CHAR *v5; // rbx\n  HWND v6; // rax\n\n  Error = glGetError();\n  v5 = Buf2;\n  if ( Error )\n  {\n    while ( 1 )\n    {\n      switch ( Error )\n      {\n        case 0x500u:\n          v5 = \"INVALID_ENUM\";\n          break;\n        case 0x501u:\n          v5 = \"INVALID_VALUE\";\n          break;\n        case 0x502u:\n          v5 = \"INVALID_OPERATION\";\n          break;\n        case 0x505u:\n          v5 = \"OUT_OF_MEMORY\";\n          break;\n        case 0x506u:\n          v5 = \"INVALID_FRAMEBUFFER_OPERATION\";\n          break;\n      }\n      v6 = (HWND)sub_1800D8320(*((_QWORD *)this + 25));\n      MessageBoxA(v6, v5, a2, 0);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::checkErrorGL from 0x180076630 to 0x180076707 (215 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b486c\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_10], rbx                                              ; +0x0, 0x180076630\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x180076635\npush    rsi                                                            ; +0xa, 0x18007663a\npush    rdi                                                            ; +0xb, 0x18007663b\npush    r14                                                            ; +0xc, 0x18007663c\nsub     rsp, 50h                                                       ; +0xe, 0x18007663e\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x180076642\nxor     rax, rsp                                                       ; +0x19, 0x180076649\nmov     [rsp+68h+var_28], rax                                          ; +0x1c, 0x18007664c\nmov     rbp, rdx                                                       ; +0x21, 0x180076651\nmov     rsi, rcx                                                       ; +0x24, 0x180076654\ncall    cs:glGetError                                                  ; +0x27, 0x180076657\nmov     edi, eax                                                       ; +0x2d, 0x18007665d\nlea     rbx, Buf2                                                      ; +0x2f, 0x18007665f\ntest    eax, eax                                                       ; +0x36, 0x180076666\njz      short loc_1800766E5                                            ; +0x38, 0x180076668\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x18007666a\nmov     [rsp+68h+var_48], 0                                            ; +0x40, 0x180076670\nmov     eax, edi                                                       ; +0x45, 0x180076675\nsub     eax, 500h                                                      ; +0x47, 0x180076677\njz      short loc_1800766BD                                            ; +0x4c, 0x18007667c\nsub     eax, 1                                                         ; +0x4e, 0x18007667e\njz      short loc_1800766B4                                            ; +0x51, 0x180076681\nsub     eax, 1                                                         ; +0x53, 0x180076683\njz      short loc_1800766AB                                            ; +0x56, 0x180076686\nsub     eax, 3                                                         ; +0x58, 0x180076688\njz      short loc_1800766A2                                            ; +0x5b, 0x18007668b\ncmp     eax, 1                                                         ; +0x5d, 0x18007668d\njz      short loc_180076699                                            ; +0x60, 0x180076690\nmov     [rsp+68h+var_41], 0                                            ; +0x62, 0x180076692\njmp     short loc_1800766C4                                            ; +0x67, 0x180076697\nlea     rbx, aInvalidFramebu; \"INVALID_FRAMEBUFFER_OPERATION\"          ; +0x69, 0x180076699\njmp     short loc_1800766C4                                            ; +0x70, 0x1800766a0\nlea     rbx, aOutOfMemory; \"OUT_OF_MEMORY\"                             ; +0x72, 0x1800766a2\njmp     short loc_1800766C4                                            ; +0x79, 0x1800766a9\nlea     rbx, aInvalidOperati; \"INVALID_OPERATION\"                      ; +0x7b, 0x1800766ab\njmp     short loc_1800766C4                                            ; +0x82, 0x1800766b2\nlea     rbx, aInvalidValue; \"INVALID_VALUE\"                            ; +0x84, 0x1800766b4\njmp     short loc_1800766C4                                            ; +0x8b, 0x1800766bb\nlea     rbx, aInvalidEnum; \"INVALID_ENUM\"                              ; +0x8d, 0x1800766bd\nmov     rcx, [rsi+0C8h]                                                ; +0x94, 0x1800766c4\ncall    sub_1800D8320                                                  ; +0x9b, 0x1800766cb\nmov     rcx, rax; hWnd                                                 ; +0xa0, 0x1800766d0\nxor     r9d, r9d; uType                                                ; +0xa3, 0x1800766d3\nmov     r8, rbp; lpCaption                                             ; +0xa6, 0x1800766d6\nmov     rdx, rbx; lpText                                               ; +0xa9, 0x1800766d9\ncall    cs:MessageBoxA                                                 ; +0xac, 0x1800766dc\nnop                                                                    ; +0xb2, 0x1800766e2\njmp     short loc_180076670                                            ; +0xb3, 0x1800766e3\nmov     rcx, [rsp+68h+var_28]                                          ; +0xb5, 0x1800766e5\nxor     rcx, rsp; StackCookie                                          ; +0xba, 0x1800766ea\ncall    __security_check_cookie                                        ; +0xbd, 0x1800766ed\nlea     r11, [rsp+68h+var_18]                                          ; +0xc2, 0x1800766f2\nmov     rbx, [r11+30h]                                                 ; +0xc7, 0x1800766f7\nmov     rbp, [r11+38h]                                                 ; +0xcb, 0x1800766fb\nmov     rsp, r11                                                       ; +0xcf, 0x1800766ff\npop     r14                                                            ; +0xd2, 0x180076702\npop     rdi                                                            ; +0xd4, 0x180076704\npop     rsi                                                            ; +0xd5, 0x180076705\nretn                                                                   ; +0xd6, 0x180076706", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b486c"], "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"}