{"type": "func", "start": 6443363536, "end": 6443363610, "name": "sub_1800DECD0", "pseudocode": "// \n// sub_1800DECD0 from 0x1800decd0 to 0x1800ded1a (74 bytes)\n// \n// 2 xrefs:\n// > sub_1800DDC10 @ 0x1800de079\n// > <???> @ 0x1801baf2c\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__int64 (__fastcall *__fastcall sub_1800DECD0(_QWORD *a1))(_QWORD, _QWORD)\n{\n  if ( a1 == sub_1800D99B0((__int64)&unk_1801AB18C) )\n    return (__int64 (__fastcall *)(_QWORD, _QWORD))eglSwapBuffers(qword_1801AC168, a1[84]);\n  else\n    return sub_1800D3530(0x10008u, \"EGL: The context must be current on the calling thread when swapping buffers\");\n}", "assembly": "; \n; sub_1800DECD0 from 0x1800decd0 to 0x1800ded1a (74 bytes)\n; \n; 2 xrefs:\n; > sub_1800DDC10 @ 0x1800de079\n; > <???> @ 0x1801baf2c\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\npush    rbx                                                            ; +0x0, 0x1800decd0\nsub     rsp, 20h                                                       ; +0x2, 0x1800decd2\nmov     rbx, rcx                                                       ; +0x6, 0x1800decd6\nlea     rcx, unk_1801AB18C                                             ; +0x9, 0x1800decd9\ncall    sub_1800D99B0                                                  ; +0x10, 0x1800dece0\ncmp     rbx, rax                                                       ; +0x15, 0x1800dece5\njz      short loc_1800DED00                                            ; +0x18, 0x1800dece8\nlea     rdx, aEglTheContextM; \"EGL: The context must be current on the\"... ; +0x1a, 0x1800decea\nmov     ecx, 10008h                                                    ; +0x21, 0x1800decf1\nadd     rsp, 20h                                                       ; +0x26, 0x1800decf6\npop     rbx                                                            ; +0x2a, 0x1800decfa\njmp     sub_1800D3530                                                  ; +0x2b, 0x1800decfb\nmov     rdx, [rbx+2A0h]                                                ; +0x30, 0x1800ded00\nmov     rcx, cs:qword_1801AC168                                        ; +0x37, 0x1800ded07\nadd     rsp, 20h                                                       ; +0x3e, 0x1800ded0e\npop     rbx                                                            ; +0x42, 0x1800ded12\njmp     cs:eglSwapBuffers                                              ; +0x43, 0x1800ded13", "xrefs": ["sub_1800DDC10 @ 0x1800de079", "<???> @ 0x1801baf2c"], "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"}