{"type": "func", "start": 6443321680, "end": 6443321882, "name": "sub_1800D4950", "pseudocode": "// \n// sub_1800D4950 from 0x1800d4950 to 0x1800d4a1a (202 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCEGLView::toggleFullScreen @ 0x180078e4e\n// > sub_1800D39B0 @ 0x1800d39d7\n// > <???> @ 0x1801ba710\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 sub_1800D4950(__int64 *a1)\n{\n  __int64 *v2; // rcx\n  __int64 *i; // rdx\n\n  if ( *(_DWORD *)&ModuleName )\n  {\n    if ( a1 )\n    {\n      *((_OWORD *)a1 + 46) = 0;\n      *((_OWORD *)a1 + 47) = 0;\n      *((_OWORD *)a1 + 48) = 0;\n      *((_OWORD *)a1 + 49) = 0;\n      *((_OWORD *)a1 + 50) = 0;\n      *((_OWORD *)a1 + 51) = 0;\n      *((_OWORD *)a1 + 52) = 0;\n      *((_OWORD *)a1 + 53) = 0;\n      *((_OWORD *)a1 + 54) = 0;\n      if ( a1 == (__int64 *)sub_1800D99B0(&unk_1801AB18C) )\n        sub_1800D33F0(0);\n      sub_1800D6610(a1);\n      v2 = (__int64 *)qword_1801A9F60;\n      for ( i = &qword_1801A9F60; v2 != a1; v2 = (__int64 *)*v2 )\n        i = v2;\n      *i = *a1;\n      free(a1);\n    }\n  }\n  else\n  {\n    sub_1800D3530(0x10001u, nullptr);\n  }\n}", "assembly": "; \n; sub_1800D4950 from 0x1800d4950 to 0x1800d4a1a (202 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCEGLView::toggleFullScreen @ 0x180078e4e\n; > sub_1800D39B0 @ 0x1800d39d7\n; > <???> @ 0x1801ba710\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, 0x1800d4950\nsub     rsp, 20h                                                       ; +0x2, 0x1800d4952\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x6, 0x1800d4956\nmov     rbx, rcx                                                       ; +0xd, 0x1800d495d\njnz     short loc_1800D4973                                            ; +0x10, 0x1800d4960\nxor     edx, edx                                                       ; +0x12, 0x1800d4962\nmov     ecx, 10001h                                                    ; +0x14, 0x1800d4964\nadd     rsp, 20h                                                       ; +0x19, 0x1800d4969\npop     rbx                                                            ; +0x1d, 0x1800d496d\njmp     sub_1800D3530                                                  ; +0x1e, 0x1800d496e\ntest    rbx, rbx                                                       ; +0x23, 0x1800d4973\njz      loc_1800D4A14                                                  ; +0x26, 0x1800d4976\nxorps   xmm0, xmm0                                                     ; +0x2c, 0x1800d497c\nmovups  xmmword ptr [rcx+2E0h], xmm0                                   ; +0x2f, 0x1800d497f\nmovups  xmmword ptr [rcx+2F0h], xmm0                                   ; +0x36, 0x1800d4986\nmovups  xmmword ptr [rcx+300h], xmm0                                   ; +0x3d, 0x1800d498d\nmovups  xmmword ptr [rcx+310h], xmm0                                   ; +0x44, 0x1800d4994\nmovups  xmmword ptr [rcx+320h], xmm0                                   ; +0x4b, 0x1800d499b\nmovups  xmmword ptr [rcx+330h], xmm0                                   ; +0x52, 0x1800d49a2\nmovups  xmmword ptr [rcx+340h], xmm0                                   ; +0x59, 0x1800d49a9\nmovups  xmmword ptr [rcx+350h], xmm0                                   ; +0x60, 0x1800d49b0\nmovups  xmmword ptr [rcx+360h], xmm0                                   ; +0x67, 0x1800d49b7\nlea     rcx, unk_1801AB18C                                             ; +0x6e, 0x1800d49be\ncall    sub_1800D99B0                                                  ; +0x75, 0x1800d49c5\ncmp     rbx, rax                                                       ; +0x7a, 0x1800d49ca\njnz     short loc_1800D49D6                                            ; +0x7d, 0x1800d49cd\nxor     ecx, ecx                                                       ; +0x7f, 0x1800d49cf\ncall    sub_1800D33F0                                                  ; +0x81, 0x1800d49d1\nmov     rcx, rbx                                                       ; +0x86, 0x1800d49d6\ncall    sub_1800D6610                                                  ; +0x89, 0x1800d49d9\nmov     rcx, cs:qword_1801A9F60                                        ; +0x8e, 0x1800d49de\nlea     rdx, qword_1801A9F60                                           ; +0x95, 0x1800d49e5\ncmp     rcx, rbx                                                       ; +0x9c, 0x1800d49ec\njz      short loc_1800D49FF                                            ; +0x9f, 0x1800d49ef\nmov     rax, [rcx]                                                     ; +0xa1, 0x1800d49f1\nmov     rdx, rcx                                                       ; +0xa4, 0x1800d49f4\nmov     rcx, rax                                                       ; +0xa7, 0x1800d49f7\ncmp     rax, rbx                                                       ; +0xaa, 0x1800d49fa\njnz     short loc_1800D49F1                                            ; +0xad, 0x1800d49fd\nmov     rax, [rbx]                                                     ; +0xaf, 0x1800d49ff\nmov     rcx, rbx                                                       ; +0xb2, 0x1800d4a02\nmov     [rdx], rax                                                     ; +0xb5, 0x1800d4a05\nadd     rsp, 20h                                                       ; +0xb8, 0x1800d4a08\npop     rbx                                                            ; +0xbc, 0x1800d4a0c\njmp     cs:__imp_free                                                  ; +0xbd, 0x1800d4a0d\nadd     rsp, 20h                                                       ; +0xc4, 0x1800d4a14\npop     rbx                                                            ; +0xc8, 0x1800d4a18\nretn                                                                   ; +0xc9, 0x1800d4a19", "xrefs": ["cocos2d::CCEGLView::toggleFullScreen @ 0x180078e4e", "sub_1800D39B0 @ 0x1800d39d7", "<???> @ 0x1801ba710"], "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"}