{"type": "func", "start": 6442945984, "end": 6442946001, "name": "cocos2d::CCEGLView::swapBuffers", "pseudocode": "// \n// cocos2d::CCEGLView::swapBuffers from 0x180078dc0 to 0x180078dd1 (17 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801008c0\n// > <???> @ 0x1801438a8\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::swapBuffers(cocos2d::CCEGLView *this)\n{\n  __int64 v1; // rcx\n\n  v1 = *((_QWORD *)this + 25);\n  if ( v1 )\n  {\n    if ( *(_DWORD *)&ModuleName )\n    {\n      if ( *(_DWORD *)(v1 + 512) )\n        (*(void (**)(void))(v1 + 592))();\n      else\n        sub_1800D3530(65546, \"Cannot swap buffers of a window that has no OpenGL or OpenGL ES context\");\n    }\n    else\n    {\n      sub_1800D3530(65537, 0);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::swapBuffers from 0x180078dc0 to 0x180078dd1 (17 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801008c0\n; > <???> @ 0x1801438a8\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     rcx, [rcx+0C8h]                                                ; +0x0, 0x180078dc0\ntest    rcx, rcx                                                       ; +0x7, 0x180078dc7\njnz     loc_1800D3490                                                  ; +0xa, 0x180078dca\nretn                                                                   ; +0x10, 0x180078dd0", "xrefs": ["<???> @ 0x1801008c0", "<???> @ 0x1801438a8"], "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"}