{"type": "func", "start": 6442945440, "end": 6442945647, "name": "sub_180078BA0", "pseudocode": "// \n// sub_180078BA0 from 0x180078ba0 to 0x180078c6f (207 bytes)\n// \n// 7 xrefs:\n// > sub_1800784E0 @ 0x1800784e9\n// > cocos2d::CCEGLView::~CCEGLView @ 0x180078667\n// > cocos2d::CCEGLView::pumpRawInput @ 0x18007b44b\n// > sub_1800E9190 @ 0x1800e91f2\n// > <???> @ 0x180144b6c\n// > <???> @ 0x180144b7c\n// > <???> @ 0x1801beae8\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\nvoid __fastcall sub_180078BA0(_QWORD *a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rbx\n  void *v4; // rcx\n  _QWORD *v5; // rcx\n\n  v2 = a1[4];\n  if ( v2 )\n  {\n    do\n      a1[4] = --v2;\n    while ( v2 );\n    a1[3] = 0;\n  }\n  if ( a1[1] )\n  {\n    v3 = a1[2];\n    while ( v3 > 0 )\n    {\n      --v3;\n      v4 = *(void **)(a1[1] + 8 * v3);\n      if ( v4 )\n        j_j_free_0(v4);\n    }\n    v5 = (_QWORD *)a1[1];\n    if ( (unsigned __int64)(8LL * a1[2]) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v5 = (_QWORD *)*(v5 - 1);\n    }\n    j_j_free_0(v5);\n    a1[1] = 0;\n    a1[2] = 0;\n  }\n}", "assembly": "; \n; sub_180078BA0 from 0x180078ba0 to 0x180078c6f (207 bytes)\n; \n; 7 xrefs:\n; > sub_1800784E0 @ 0x1800784e9\n; > cocos2d::CCEGLView::~CCEGLView @ 0x180078667\n; > cocos2d::CCEGLView::pumpRawInput @ 0x18007b44b\n; > sub_1800E9190 @ 0x1800e91f2\n; > <???> @ 0x180144b6c\n; > <???> @ 0x180144b7c\n; > <???> @ 0x1801beae8\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; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x180078ba0\npush    rdi                                                            ; +0x5, 0x180078ba5\nsub     rsp, 30h                                                       ; +0x6, 0x180078ba6\nmov     rdi, rcx                                                       ; +0xa, 0x180078baa\nxor     esi, esi                                                       ; +0xd, 0x180078bad\nmov     rcx, [rcx+20h]                                                 ; +0xf, 0x180078baf\ntest    rcx, rcx                                                       ; +0x13, 0x180078bb3\njz      short loc_180078BD4                                            ; +0x16, 0x180078bb6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x18, 0x180078bb8\nlea     rax, [rcx-1]                                                   ; +0x20, 0x180078bc0\nmov     [rdi+20h], rax                                                 ; +0x24, 0x180078bc4\nmov     rcx, rax                                                       ; +0x28, 0x180078bc8\ntest    rax, rax                                                       ; +0x2b, 0x180078bcb\njnz     short loc_180078BC0                                            ; +0x2e, 0x180078bce\nmov     [rdi+18h], rsi                                                 ; +0x30, 0x180078bd0\ncmp     [rdi+8], rsi                                                   ; +0x34, 0x180078bd4\njz      short loc_180078C4E                                            ; +0x38, 0x180078bd8\nmov     [rsp+38h+arg_0], rbx                                           ; +0x3a, 0x180078bda\nmov     rbx, [rdi+10h]                                                 ; +0x3f, 0x180078bdf\ntest    rbx, rbx                                                       ; +0x43, 0x180078be3\njle     short loc_180078C0F                                            ; +0x46, 0x180078be6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x180078be8\nmov     rax, [rdi+8]                                                   ; +0x50, 0x180078bf0\ndec     rbx                                                            ; +0x54, 0x180078bf4\nmov     rcx, [rax+rbx*8]; Block                                        ; +0x57, 0x180078bf7\ntest    rcx, rcx                                                       ; +0x5b, 0x180078bfb\njz      short loc_180078C0A                                            ; +0x5e, 0x180078bfe\nmov     edx, 20h ; ' '                                                 ; +0x60, 0x180078c00\ncall    j_j_free_0                                                     ; +0x65, 0x180078c05\ntest    rbx, rbx                                                       ; +0x6a, 0x180078c0a\njg      short loc_180078BF0                                            ; +0x6d, 0x180078c0d\nmov     rdx, [rdi+10h]                                                 ; +0x6f, 0x180078c0f\nmov     rcx, [rdi+8]                                                   ; +0x73, 0x180078c13\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x77, 0x180078c17\nshl     rdx, 3                                                         ; +0x7c, 0x180078c1c\ncmp     rdx, 1000h                                                     ; +0x80, 0x180078c20\njb      short loc_180078C41                                            ; +0x87, 0x180078c27\nmov     rax, [rcx-8]                                                   ; +0x89, 0x180078c29\nadd     rdx, 27h ; '''                                                 ; +0x8d, 0x180078c2d\nsub     rcx, rax                                                       ; +0x91, 0x180078c31\nsub     rcx, 8                                                         ; +0x94, 0x180078c34\ncmp     rcx, 1Fh                                                       ; +0x98, 0x180078c38\nja      short loc_180078C59                                            ; +0x9c, 0x180078c3c\nmov     rcx, rax; Block                                                ; +0x9e, 0x180078c3e\ncall    j_j_free_0                                                     ; +0xa1, 0x180078c41\nmov     [rdi+8], rsi                                                   ; +0xa6, 0x180078c46\nmov     [rdi+10h], rsi                                                 ; +0xaa, 0x180078c4a\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xae, 0x180078c4e\nadd     rsp, 30h                                                       ; +0xb3, 0x180078c53\npop     rdi                                                            ; +0xb7, 0x180078c57\nretn                                                                   ; +0xb8, 0x180078c58\nxor     r9d, r9d; LineNo                                               ; +0xb9, 0x180078c59\nmov     [rsp+38h+Reserved], rsi; Reserved                              ; +0xbc, 0x180078c5c\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x180078c61\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x180078c64\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x180078c66\ncall    cs:_invoke_watson                                              ; +0xc8, 0x180078c68\ndb 0CCh                                                                ; +0xce, 0x180078c6e", "xrefs": ["sub_1800784E0 @ 0x1800784e9", "cocos2d::CCEGLView::~CCEGLView @ 0x180078667", "cocos2d::CCEGLView::pumpRawInput @ 0x18007b44b", "sub_1800E9190 @ 0x1800e91f2", "<???> @ 0x180144b6c", "<???> @ 0x180144b7c", "<???> @ 0x1801beae8"], "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"}