{"type": "func", "start": 6443363040, "end": 6443363205, "name": "sub_1800DEAE0", "pseudocode": "// \n// sub_1800DEAE0 from 0x1800deae0 to 0x1800deb85 (165 bytes)\n// \n// 9 xrefs:\n// > sub_1800DDC10 @ 0x1800ddcab\n// > sub_1800DDC10 @ 0x1800ddce2\n// > sub_1800DDC10 @ 0x1800ddec8\n// > sub_1800DDC10 @ 0x1800ddf6c\n// > sub_1800DE0E0 @ 0x1800de448\n// > sub_1800DE0E0 @ 0x1800de48e\n// > sub_1800DEC20 @ 0x1800dec58\n// > sub_1800DEC20 @ 0x1800dec97\n// > <???> @ 0x1801baf08\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\nconst char *__fastcall sub_1800DEAE0(int a1)\n{\n  const char *result; // rax\n\n  switch ( a1 )\n  {\n    case 12288:\n      result = \"Success\";\n      break;\n    case 12289:\n      result = \"EGL is not or could not be initialized\";\n      break;\n    case 12290:\n      result = \"EGL cannot access a requested resource\";\n      break;\n    case 12291:\n      result = \"EGL failed to allocate resources for the requested operation\";\n      break;\n    case 12292:\n      result = \"An unrecognized attribute or attribute value was passed in the attribute list\";\n      break;\n    case 12293:\n      result = \"An EGLConfig argument does not name a valid EGL frame buffer configuration\";\n      break;\n    case 12294:\n      result = \"An EGLContext argument does not name a valid EGL rendering context\";\n      break;\n    case 12295:\n      result = \"The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid\";\n      break;\n    case 12296:\n      result = \"An EGLDisplay argument does not name a valid EGL display connection\";\n      break;\n    case 12297:\n      result = \"Arguments are inconsistent\";\n      break;\n    case 12298:\n      result = \"A NativePixmapType argument does not refer to a valid native pixmap\";\n      break;\n    case 12299:\n      result = \"A NativeWindowType argument does not refer to a valid native window\";\n      break;\n    case 12300:\n      result = \"One or more argument values are invalid\";\n      break;\n    case 12301:\n      result = \"An EGLSurface argument does not name a valid surface configured for GL rendering\";\n      break;\n    case 12302:\n      result = \"The application must destroy all contexts and reinitialise\";\n      break;\n    default:\n      result = \"ERROR: UNKNOWN EGL ERROR\";\n      break;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DEAE0 from 0x1800deae0 to 0x1800deb85 (165 bytes)\n; \n; 9 xrefs:\n; > sub_1800DDC10 @ 0x1800ddcab\n; > sub_1800DDC10 @ 0x1800ddce2\n; > sub_1800DDC10 @ 0x1800ddec8\n; > sub_1800DDC10 @ 0x1800ddf6c\n; > sub_1800DE0E0 @ 0x1800de448\n; > sub_1800DE0E0 @ 0x1800de48e\n; > sub_1800DEC20 @ 0x1800dec58\n; > sub_1800DEC20 @ 0x1800dec97\n; > <???> @ 0x1801baf08\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\nadd     ecx, 0FFFFD000h; switch 15 cases                               ; +0x0, 0x1800deae0\ncmp     ecx, 0Eh                                                       ; +0x6, 0x1800deae6\nja      def_1800DEB03; jumptable 00000001800DEB03 default case         ; +0x9, 0x1800deae9\nmovsxd  rax, ecx                                                       ; +0xf, 0x1800deaef\nlea     rdx, cs:180000000h                                             ; +0x12, 0x1800deaf2\nmov     ecx, ds:(jpt_1800DEB03 - 180000000h)[rdx+rax*4]                ; +0x19, 0x1800deaf9\nadd     rcx, rdx                                                       ; +0x20, 0x1800deb00\njmp     rcx; switch jump                                               ; +0x23, 0x1800deb03\nlea     rax, aSuccess; jumptable 00000001800DEB03 case 12288           ; +0x25, 0x1800deb05\nretn                                                                   ; +0x2c, 0x1800deb0c\nlea     rax, aEglIsNotOrCoul; jumptable 00000001800DEB03 case 12289    ; +0x2d, 0x1800deb0d\nretn                                                                   ; +0x34, 0x1800deb14\nlea     rax, aEglCannotAcces; jumptable 00000001800DEB03 case 12290    ; +0x35, 0x1800deb15\nretn                                                                   ; +0x3c, 0x1800deb1c\nlea     rax, aEglFailedToAll; jumptable 00000001800DEB03 case 12291    ; +0x3d, 0x1800deb1d\nretn                                                                   ; +0x44, 0x1800deb24\nlea     rax, aAnUnrecognized; jumptable 00000001800DEB03 case 12292    ; +0x45, 0x1800deb25\nretn                                                                   ; +0x4c, 0x1800deb2c\nlea     rax, aAnEglcontextAr; jumptable 00000001800DEB03 case 12294    ; +0x4d, 0x1800deb2d\nretn                                                                   ; +0x54, 0x1800deb34\nlea     rax, aAnEglconfigArg; jumptable 00000001800DEB03 case 12293    ; +0x55, 0x1800deb35\nretn                                                                   ; +0x5c, 0x1800deb3c\nlea     rax, aTheCurrentSurf; jumptable 00000001800DEB03 case 12295    ; +0x5d, 0x1800deb3d\nretn                                                                   ; +0x64, 0x1800deb44\nlea     rax, aAnEgldisplayAr; jumptable 00000001800DEB03 case 12296    ; +0x65, 0x1800deb45\nretn                                                                   ; +0x6c, 0x1800deb4c\nlea     rax, aAnEglsurfaceAr; jumptable 00000001800DEB03 case 12301    ; +0x6d, 0x1800deb4d\nretn                                                                   ; +0x74, 0x1800deb54\nlea     rax, aArgumentsAreIn; jumptable 00000001800DEB03 case 12297    ; +0x75, 0x1800deb55\nretn                                                                   ; +0x7c, 0x1800deb5c\nlea     rax, aOneOrMoreArgum; jumptable 00000001800DEB03 case 12300    ; +0x7d, 0x1800deb5d\nretn                                                                   ; +0x84, 0x1800deb64\nlea     rax, aANativepixmapt; jumptable 00000001800DEB03 case 12298    ; +0x85, 0x1800deb65\nretn                                                                   ; +0x8c, 0x1800deb6c\nlea     rax, aANativewindowt; jumptable 00000001800DEB03 case 12299    ; +0x8d, 0x1800deb6d\nretn                                                                   ; +0x94, 0x1800deb74\nlea     rax, aTheApplication; jumptable 00000001800DEB03 case 12302    ; +0x95, 0x1800deb75\nretn                                                                   ; +0x9c, 0x1800deb7c\nlea     rax, aErrorUnknownEg; jumptable 00000001800DEB03 default case  ; +0x9d, 0x1800deb7d\nretn                                                                   ; +0xa4, 0x1800deb84", "xrefs": ["sub_1800DDC10 @ 0x1800ddcab", "sub_1800DDC10 @ 0x1800ddce2", "sub_1800DDC10 @ 0x1800ddec8", "sub_1800DDC10 @ 0x1800ddf6c", "sub_1800DE0E0 @ 0x1800de448", "sub_1800DE0E0 @ 0x1800de48e", "sub_1800DEC20 @ 0x1800dec58", "sub_1800DEC20 @ 0x1800dec97", "<???> @ 0x1801baf08"], "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"}