{"type": "func", "start": 6442946752, "end": 6442946916, "name": "sub_1800790C0", "pseudocode": "// \n// sub_1800790C0 from 0x1800790c0 to 0x180079164 (164 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCEGLView::CCEGLView @ 0x1800782bd\n// > cocos2d::CCEGLView::~CCEGLView @ 0x18007867f\n// > sub_18007C490 @ 0x18007c4ca\n// > <???> @ 0x180144c18\n// > <???> @ 0x180144c28\n// > <???> @ 0x1801beb78\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:59 +0000\n// \n\n_QWORD *__fastcall sub_1800790C0(_QWORD *a1)\n{\n  unsigned __int64 v1; // rdx\n  __int64 v3; // rcx\n  _QWORD *result; // rax\n  _QWORD *v5; // rcx\n  _QWORD *v6; // rbx\n  unsigned __int64 *v7; // rdx\n  unsigned __int64 *v8; // rcx\n  unsigned __int64 v9; // [rsp+30h] [rbp+8h] BYREF\n\n  v1 = a1[2];\n  if ( v1 )\n  {\n    v3 = a1[1];\n    if ( a1[7] >> 3 <= v1 )\n    {\n      **(_QWORD **)(v3 + 8) = 0;\n      v5 = *(_QWORD **)v3;\n      if ( v5 )\n      {\n        do\n        {\n          v6 = (_QWORD *)*v5;\n          j_j_free_0(v5);\n          v5 = v6;\n        }\n        while ( v6 );\n      }\n      *(_QWORD *)a1[1] = a1[1];\n      *(_QWORD *)(a1[1] + 8LL) = a1[1];\n      a1[2] = 0;\n      v7 = (unsigned __int64 *)a1[4];\n      v8 = (unsigned __int64 *)a1[3];\n      v9 = a1[1];\n      return (_QWORD *)sub_180045230(v8, v7, &v9);\n    }\n    else\n    {\n      return sub_180078C70(a1, *(_QWORD *)v3, (_QWORD *)v3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800790C0 from 0x1800790c0 to 0x180079164 (164 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCEGLView::CCEGLView @ 0x1800782bd\n; > cocos2d::CCEGLView::~CCEGLView @ 0x18007867f\n; > sub_18007C490 @ 0x18007c4ca\n; > <???> @ 0x180144c18\n; > <???> @ 0x180144c28\n; > <???> @ 0x1801beb78\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:59 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800790c0\nsub     rsp, 20h                                                       ; +0x2, 0x1800790c2\nmov     rdx, [rcx+10h]                                                 ; +0x6, 0x1800790c6\nmov     rdi, rcx                                                       ; +0xa, 0x1800790ca\ntest    rdx, rdx                                                       ; +0xd, 0x1800790cd\njz      loc_18007915E                                                  ; +0x10, 0x1800790d0\nmov     rax, [rdi+38h]                                                 ; +0x16, 0x1800790d6\nmov     rcx, [rcx+8]                                                   ; +0x1a, 0x1800790da\nshr     rax, 3                                                         ; +0x1e, 0x1800790de\ncmp     rax, rdx                                                       ; +0x22, 0x1800790e2\njbe     short loc_1800790FA                                            ; +0x25, 0x1800790e5\nmov     rdx, [rcx]                                                     ; +0x27, 0x1800790e7\nmov     r8, rcx                                                        ; +0x2a, 0x1800790ea\nmov     rcx, rdi                                                       ; +0x2d, 0x1800790ed\nadd     rsp, 20h                                                       ; +0x30, 0x1800790f0\npop     rdi                                                            ; +0x34, 0x1800790f4\njmp     sub_180078C70                                                  ; +0x35, 0x1800790f5\nmov     rax, [rcx+8]                                                   ; +0x3a, 0x1800790fa\nmov     qword ptr [rax], 0                                             ; +0x3e, 0x1800790fe\nmov     rcx, [rcx]; Block                                              ; +0x45, 0x180079105\ntest    rcx, rcx                                                       ; +0x48, 0x180079108\njz      short loc_18007912C                                            ; +0x4b, 0x18007910b\nmov     [rsp+28h+arg_8], rbx                                           ; +0x4d, 0x18007910d\nmov     rbx, [rcx]                                                     ; +0x52, 0x180079112\nmov     edx, 18h                                                       ; +0x55, 0x180079115\ncall    j_j_free_0                                                     ; +0x5a, 0x18007911a\nmov     rcx, rbx                                                       ; +0x5f, 0x18007911f\ntest    rbx, rbx                                                       ; +0x62, 0x180079122\njnz     short loc_180079112                                            ; +0x65, 0x180079125\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x67, 0x180079127\nmov     rax, [rdi+8]                                                   ; +0x6c, 0x18007912c\nlea     r8, [rsp+28h+arg_0]                                            ; +0x70, 0x180079130\nmov     [rax], rax                                                     ; +0x75, 0x180079135\nmov     rax, [rdi+8]                                                   ; +0x78, 0x180079138\nmov     [rax+8], rax                                                   ; +0x7c, 0x18007913c\nmov     qword ptr [rdi+10h], 0                                         ; +0x80, 0x180079140\nmov     rax, [rdi+8]                                                   ; +0x88, 0x180079148\nmov     rdx, [rdi+20h]                                                 ; +0x8c, 0x18007914c\nmov     rcx, [rdi+18h]                                                 ; +0x90, 0x180079150\nmov     [rsp+28h+arg_0], rax                                           ; +0x94, 0x180079154\ncall    sub_180045230                                                  ; +0x99, 0x180079159\nadd     rsp, 20h                                                       ; +0x9e, 0x18007915e\npop     rdi                                                            ; +0xa2, 0x180079162\nretn                                                                   ; +0xa3, 0x180079163", "xrefs": ["cocos2d::CCEGLView::CCEGLView @ 0x1800782bd", "cocos2d::CCEGLView::~CCEGLView @ 0x18007867f", "sub_18007C490 @ 0x18007c4ca", "<???> @ 0x180144c18", "<???> @ 0x180144c28", "<???> @ 0x1801beb78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}